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     Controlling Sort Order

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Controlling Sort Order
 Login/Join
 
Member
posted
Can you control the sort order by the order in which the user entered the data? If so, how?

I have an HTML-generated input form where the user enters 3 or more text fields for, say, car manufacturers:

Mercedes Chevrolet Volkswagen

The report automatically sorts the output alphabetically with the BY CAR_MFCT command. How can I use amper variables (the number varies) to sort by the order of the user input?
 
Posts: 6 | Registered: March 07, 2005Report This Post
Expert
posted Hide Post
Depends upon what data you have in your table. If you have a timestamp then sorting is easy.

If you mean that the form is supplying multiple values in the form &var, &var0, &var1, &var2 etc. from a multi select combo box then you can utilise the count in &var0 to build an FML (aka EMR etc.) report to control the rows of data -

-DEFAULT &var = 'ENGLAND';
-DEFAULT &var0 = 4;
-DEFAULT &var1 = 'ENGLAND';
-DEFAULT &var2 = 'JAPAN';
-DEFAULT &var3 = 'FRANCE';
-DEFAULT &var4 = 'W GERMANY';

TABLE FILE CAR
SUM RCOST DCOST
FOR COUNTRY
-SET &Cnt = 0;
-REPEAT :Loop1 &var0 TIMES ;
-SET &Cnt = &Cnt + 1;
'&var&Cnt.EVAL' WHEN EXISTS OVER
-:Loop1
""
END

If this is not what you mean then more detail please and we'll try to assist.
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
<Steve Cowell>
posted
There is a ROWS element to the BY functionality in the same way as the is for ACROSS with columns, you could use the user input var to control this.
Hope this helps. Steve C
 
Report 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     Controlling Sort Order

Copyright © 1996-2020 Information Builders