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.
I am trying to create a drop down to allow the user to decide the sort order of a specific column. I was able to get the drop down with the column choices and the separate drop down with highest and lowest. However, when I run the report it does not understand the highest and lowest values being passed. Both values were created as report variables. I have searched on here to find an answer, but have not come across it. Does anyone know how to?
The salerank.fex in the ibinccen directory has an example of that.
What happens if you put a -TYPE at the beginning of your program to see what the contents of the selected variables are? You can put a -EXIT right after that. Once you determine what is coming back, you can figure out the problem.
What I guess I am saying is that we don't have enough information to help you. You could also post your code between the code tags.
Where are you setting your variable &Order and &Filter and what are the values supposed to be? There would normally be some -SET statements to set these up from the parameters you pass. What &var is handling the HIGHEST or LOWEST value that you are wanting to control? Also it seemed a little strange that you would DEFINE Top100 to a literal value and then sort on that value - even though it is the same for every record.
And, unless the stylesheet is part of the issue here, you can leave that part off when posting. Just makes it harder to get to the bottom of things.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Also if you don't see the selected items from your web page when you do the -TYPE and the -EXIT (make sure your output format is HTML for this), then there is something wrong with your launch page. Or are you using the default autoprompt page?
Check out the following code where I do what it seems that you are attempting (I left out much of the extraeous code):
-* File JaguarReport.fex
Get the dates used in the extract -INCLUDE reportdates -INCLUDE EXTRACT1
-* 20080805 DL : Added &SortOrder so that we can combine the two versions into one procedures -* &SortOrder values are: EXCESS and PERCENT which are used in the HEADING -* The -DEFAULT &SortOrder is used and picked up in the GUI for the Launch Page creation. -DEFAULT &SortOrder = 'EXCESS' ; -TYPE *** &|SortOrder (IN): &SortOrder
TABLE FILE RANKING5 PRINT DEALER_# AS 'DEALER#DEALER_NAME AS 'DEALER NAME' COUNTOFVIN AS 'VINS' TOTALS/P10M AS 'TOTAL' EXCESS DLR_CPVS/P5M AS 'CPVS' PERCENT
RANKED BY HIGHEST &SortField NOPRINT
HEADING "USA - ALL VEHICLES EXCESS COST RANKING ~ BY &SortOrder" "For Six Months Ending &ReportEndMonth &ReportEndDay, &ReportEndYear" FOOTING BOTTOM "Ran On : &DATEMtrDYY @ &ReportTime" "Prog ID: &FOCFOCEXEC <60>PageofON TABLE PCHOLD FORMAT PDF -*ON TABLE HOLD ON TABLE SET HTMLCSS ON ON TABLE SET STYLESHEET * TYPE=Report, GRID=Off, SQUEEZE=ON, UNITS=Inches,$ TYPE=REPORT, IMAGE=jaguar.jpg, POSITION=( .25 .25), SIZE=(.86 .55),$ TYPE=REPORT, IMAGE=jaguar.jpg, POSITION=(7.39 .25), SIZE=(.86 .55),$ TYPE=DATA, FONT='COURIER', SIZE=8,$ TYPE=TITLE, FONT='COURIER', SIZE=8,$ TYPE=HEADING, JUSTIFY=CENTER, STYLE=BOLD+ITALIC, SIZE=10,$ TYPE=FOOTING, LINE=2, STYLE=BOLD+ITALIC, SIZE=8,$ TYPE=FOOTING, LINE=1, JUSTIFY=LEFT, STYLE=BOLD+ITALIC, SIZE=9,$ TYPE=SUBFOOT, FONT=TIMES, SIZE=9,$ ENDSTYLE END
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, 2005