In previous versions of WF when working in the portal you could show one value in the filter drop-down and return a corresponding value to you procedure.
You have a list of key value pairs say zip code and city name. You use the city name to populate the drop down and the zip code would be the return value.
Can this be done in designer.This message has been edited. Last edited by: FP Mod Chuck,
WF 8.2.06 Windows/Linux
September 15, 2020, 11:08 AM
FP Mod Chuck
I think you are referring to using App Studio to create an HTML composer page where you can specify a display value and a value from value. You can still do that and put that html form into a designer page. There is currently no way to modify the filter within designer to specify two fields to use in the filter.
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
September 15, 2020, 12:13 PM
You can code the variable to accomplish this. For example, &PCD.(FIND PCD,PRODUCT IN ggsales). The following fex when dropped into the Designer page will create a dropdown that displays the PRODUCT field, but will pass the PCD field to the fex for the user's selection:
-DEFAULT &PCD = '_FOC_NULL';
-SET &ALLPCD = IF &PCD EQ '_FOC_NULL' THEN 1 ELSE 0;
TABLE FILE ggsales
COMPUTE PCD_DISPLAY/A20 = IF &ALLPCD THEN 'All Products' ELSE PRODUCT; NOPRINT
WHERE PCD EQ '&PCD.(FIND PCD,PRODUCT IN ggsales).'
"Sales for <PCD_DISPLAY (&PCD)"
September 15, 2020, 02:33 PM
Thanks. I'll give your syntax a try. It looks to be exactly what I want.