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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at email@example.com and provide your corporate email address, company, and name.
I am trying to create a hold file which feeds data to a dropdown list using our custom js framework. Following is the fex procedure.
-DEFAULTH &A = 'All';
SET ASNAMES = ON
SET PAGE = NOLEAD
ENGINE SQLORA SET DEFAULT_CONNECTION wmbi
'<option value="' || loc_regn_num || '">' || loc_regn_num||'-'||loc_regn_nm || '</option>' AS listvalue
where loc_stat_cd = 'A'
and loc_regn_num is not null
and LOC_OPEN_DT is not null
and LOC_CLOSE_DT > SYSDATE
ORDER BY loc_regn_num
TABLE FILE SQLOUT
PRINT LISTVALUE AS ''
BY LOC_REGN_NUM NOPRINT
ON TABLE HOLD AS TMP
<option value="ALL" Selected>&A</option>
Insert the following code after your -RUN and comment out the HTMLFORM code which will create a report and validate the contents of the hold file. I will be surprised if the leading characters - + and ) are displayed.
TABLE FILE tmp PRINT LISTVALUE BY LOC_REGN_NUM ON TABLE PCHOLD FORMAT HTML END
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
Posts: 2128 | Location: Customer Support | Registered: April 12, 2005