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> Sort Order Drill missing on sorted column

Read-Only Read-Only Topic
Go
Search
Notify
Tools
<SOLVED> Sort Order Drill missing on sorted column
 Login/Join
 
<dksib>
posted
I am creating each of the drills within the style using a save table.
-SET &SRT_C = '  ';
-READ SS1, &SRT_C
-REPEAT :Loop4 WHILE &IORETURN EQ 0;
-SET &RNDM = EDIT(HHMMSS('A8'),'99$99$99');
-SET &SORTDIR  = IF (('&SORT.EVAL' EQ '&SRT_C.EVAL') AND ('&SORTDIR.EVAL' EQ 'LOWEST')) THEN 'HIGHEST' ELSE 'LOWEST';
-SET &DIRCOLOR = IF ('&SRT_C.EVAL' EQ '&SORT.EVAL') THEN 'WHITE' ELSE IF ('&SORTDIR.EVAL' EQ 'LOWEST') THEN 'RED' ELSE 'BLACK';
TYPE=TITLE, COLUMN='&SRT_C.EVAL', COLOR='&DIRCOLOR.EVAL', FOCEXEC=app/fss.fex(SORT='&SRT_C.EVAL' \
 RNDM='&RNDM.EVAL' PREVSORT='&SORT.EVAL' \
  SORTDIR='&SORTDIR.EVAL'), 
	 STYLE=-UNDERLINE,
$
-READ SS1, &SRT_C
-:Loop4


It works great for the first time. Once I select a column it is SORTED but it does not allow me to select it again unless I select another but then it was not the last one so it still SORTs in the same order as it did previously.

As you can see I have added a random number based upon the time to make it unique but this did not work.

Thanks
David

Version wf 7.6.7

This message has been edited. Last edited by: <dksib>,
 
Report This Post
Expert
posted Hide Post
I, personally, wouldn't do it this way (in the sytle sheet). I'd use a DEFAULTed sort variable and pass the value of that through my DRILLDOWN. This, of course, would be reset based on the value passed in ot the DEFAULTed value for the first execution of the fex. imho.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
<dksib>
posted
This is what I am using in the table file
 &BYAA.EVAL BY &SORTDIR &SORT NOPRINT 


The byaa is either a '-*' or space depends upon if it is the first time running or not.

That still does not help me with hoe to fix the hyperlink on the column title the second time around. I thought that if I added a random number such as the time it would create a NEW link, but it does not.

David
 
Report This Post
Virtuoso
posted Hide Post
Can you create an example with the CAR file and post the code?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Expert
posted Hide Post
Consider passing &SORT_IN via your DRILLDOWN and this:[
-DEFAULT &SORT_IN = 'HIGHEST' ;
-SET &SORT = IF &SORT_IN EQ 'HIGHEST' THEN 'LOWEST' ELSE 'HIGHEST' ;
...
&BYAA.EVAL BY &SORTDIR &SORT NOPRINT
...
Please do provide something in the CAR file so we can better serve you.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
<dksib>
posted
Thanks for your help.

Changed the field name to 'P1 - P255' works.
 
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     <SOLVED> Sort Order Drill missing on sorted column

Copyright © 1996-2020 Information Builders