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     [SOLVED] Creating a dynamic SORT order

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Creating a dynamic SORT order
 Login/Join
 
Member
posted
I have to give end user an ability to decide SORT order of the report. I can put a list of fields on dropdown/list where user can multiselect the fields. I am not able to figure out how to use the selected ones in my program/fex

This message has been edited. Last edited by: Kerry,


7.6.9/7.7
Windows/OS 390
PDF/Excel
 
Posts: 6 | Registered: December 07, 2010Report This Post
Silver Member
posted Hide Post
Something like this:
TABLE FILE CAR
SUM DEALER_COST
BY &SORT
END
  

Where &SORT value can be passed from the HTML page drop-down


7.7.04
Win2K3, Unix
Oracle 10G,SQL2K,XFOCUS,ESRI,BID,MRE,SELF-SERVICCE
 
Posts: 36 | Location: Melville,NY | Registered: August 09, 2004Report This Post
Member
posted Hide Post
quote:
&SORT

Thanks Jimbo..


7.6.9/7.7
Windows/OS 390
PDF/Excel
 
Posts: 6 | Registered: December 07, 2010Report This Post
Expert
posted Hide Post
You can also add &SORT (If it's a user friendly / displayable value) to the TITLE and toggle it via DM to be used in a drilldown.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Gold member
posted Hide Post
I guess I took this a bit further and have our users select the columns they want to display and the sort order using a double-list box in Composer.

The procedure code is this:

-DEFAULT &SORTLISTA = '''MODEL'' NONE ''TYPE'';
-SET &SORTOBJ1A = STRREP(&SORTLISTA.LENGTH, &SORTLISTA, 1, '''', 0, 'x', &SORTLISTA.LENGTH, A&SORTLISTA.LENGTH);
-SET &SORTOBJA = 'BY ' | STRREP(&SORTOBJ1A.LENGTH, &SORTOBJ1A, 4 , 'NONE', 2, 'BY', &SORTOBJ1A.LENGTH, A&SORTOBJ1A.LENGTH);


TABLE FILE CAR
BY &SORTOBJA
END


version 8202M
Reporting Server on
Windows Server using DB2 Connect to access data from iseries.
 
Posts: 78 | Registered: December 29, 2009Report This Post
Expert
posted Hide Post
I changed this a bit (corrected two syntax errors, it didn't work as written) and added HEADING and a few other things...
-DEFAULT &SORTLISTA = '''MODEL'' NONE ''TYPE''';
-SET &SORTOBJ1A = STRREP(&SORTLISTA.LENGTH, &SORTLISTA, 1, '''', 0, 'x', &SORTLISTA.LENGTH, A&SORTLISTA.LENGTH);
-SET &SORTOBJA = 'BY ' | STRREP(&SORTOBJ1A.LENGTH, &SORTOBJ1A, 4 , 'NONE', 2, 'BY', &SORTOBJ1A.LENGTH, A&SORTOBJ1A.LENGTH);

-SET &ECHO = ALL ; 
TABLE FILE CAR
HEADING
"Sort Order: &SORTOBJA"
&SORTOBJA
ON TABLE SET PAGE OFF
END
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Gold member
posted Hide Post
Thanks for the cleanup Doug, i free-form typed the code, never a good idea.


version 8202M
Reporting Server on
Windows Server using DB2 Connect to access data from iseries.
 
Posts: 78 | Registered: December 29, 2009Report 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     [SOLVED] Creating a dynamic SORT order

Copyright © 1996-2020 Information Builders