Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     passing leading spaces from data-entry page

Read-Only Read-Only Topic
Go
Search
Notify
Tools
passing leading spaces from data-entry page
 Login/Join
 
Member
posted
Is there a simple way to keep the leading zeros on an amper var being passed from a data-entry page?

-*if I do it this way:
-SET &X1=' FORD';

TABLE FILE CAR
PRINT *
WHERE MODEL EQ '&X1';

provides me with what I need:
WHERE MODEL EQ ' FORD';

but if I key-enter the same result in my data-entry page, then it eliminates the preceding spaces, which I do NOT want.

Thanks,
Carol
 
Posts: 1 | Location: Des Plaines, IL | Registered: November 24, 2004Report This Post
<Pietro De Santis>
posted
You may try using JavaScript to convert the blanks in your form objects to something else (underscores, for example) and then in your fex, convert them back to blanks.
 
Report This Post
Expert
posted Hide Post
CArol, i just had this very problem myself, and on this board, "Rolland" gave me the answer. (read thread # 911)
Use the FTOA function. ("floating point to Alpha")
It works for my forms like a charm.
Even works for a variable of all zeros.
read your &IN = '000' or as all blanks from your form.
-SET &OUT = FTOA(&IN,'(F3L)','A3');
Now, your post said 'leading zeros' and then talked about 'leading blanks'...and your example doesn't have any leading blanks because this html board will nuke extra spaces..so i'm not sure if you want leading zero control or leading blank control. leading blanks are harder. Post back to us if you need help on blanks.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     passing leading spaces from data-entry page

Copyright © 1996-2020 Information Builders