Focal Point
[CLOSED]HTML Composer multi-select combobox

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5737016586

February 21, 2017, 05:48 PM
jlsnyc
[CLOSED]HTML Composer multi-select combobox
Is there a way to build the passing & variable string like Value1,Value2,value3....etc instead of value1 OR value2 OR value3 ... etc. from the HTML composer.

We need it to be comma delimited not OR delimited.

This message has been edited. Last edited by: <Emily McAllister>,
February 21, 2017, 06:11 PM
Waz
We either change it via javascript on the page or via Dialog Manager when it reaches FOCUS


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

February 22, 2017, 09:41 AM
jlsnyc
Can you send JS code from the HTML composer,
February 22, 2017, 09:51 AM
Francis Mariani
It may be quicker doing it in the WebFOCUS procedure called by the HTML page:

-SET &MY_PARM1 = '''ENGLAND'' OR ''FRANCE'' OR ''SPAIN''';

-TYPE &MY_PARM1

-SET &MY_PARM1C = STRREP (&MY_PARM1.LENGTH, &MY_PARM1, 4, ' OR ', 2, ', ', &MY_PARM1.LENGTH, 'A&MY_PARM1.LENGTH');

-TYPE &MY_PARM1C

Be aware that if a value itself contains ' OR ' it will be replaced by a comma...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
February 22, 2017, 02:12 PM
Waz
quote:
Can you send JS code from the HTML composer,


The code we use may not help you as its set up for our environment and the way our portal works.

But simply, we use IbComposer_getAllAmpersValues() and manipulate the values before calling the portal update.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!