Can some one help me with html composer to get this?
my manager wants an adhoc form. i had all controls, list boxes etc. but he needs one control which shows all available fields that report has and user needs to select what fields he want in the report.
i tried using double list control but it outputs the strings with quotes and OR in between.
is there any way to achieve this without much coding and with GUI?
Thank you..This message has been edited. Last edited by: Kerry,
8.1.05 HTML,PDF,EXL2K, Active, All
January 20, 2011, 11:46 AM
Alan B
The double list control is okay.
In the called focexec STRREP the ' OR ' to ' '. I think the quotes are okay, but could also use STRREP to remove.
Then PRINT &variable
Problem is the sort order...
Alan. WF 7.705/8.007
January 20, 2011, 11:50 AM
Enigma006
Thanks Alan. I am working on same for now. Can you provide any sample code to remove OR using those functions?
And I dont think sort order is a problem. User can sort the fields using those arrows in double list control. so it quotes and OR are remvoed it table request should print the fields in that sort order.
8.1.05 HTML,PDF,EXL2K, Active, All
January 20, 2011, 01:29 PM
ABT
be aware this is a much bigger request than he probably thinks it is...
ThanksThis message has been edited. Last edited by: Enigma006,
8.1.05 HTML,PDF,EXL2K, Active, All
January 20, 2011, 04:31 PM
Enigma006
This worked but when I replace last parameter A100 with A&C1LENGTH, it gives me error. any clue?
8.1.05 HTML,PDF,EXL2K, Active, All
January 20, 2011, 04:35 PM
Francis Mariani
STRREP does not like a blank replacement character.
You could try the following:
-SET &C2 = 'MODEL OR CAR OR COUNTRY';
-SET &C3 = STRREP(&C2.LENGTH, &C2, 2, 'OR', 0, 'X', 100, 'A100');
-TYPE &C3
Between each value is ' OR '. Since you're only replacing the 'OR' there will be two blanks between each value, so the replacement string can have a length of zero, with the X as a dummy character that is not used.
Beware of using STRREP to replace 'OR' - this will mess up a value such as 'OREGON'.
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
January 20, 2011, 04:44 PM
Tom Flynn
quote:
This worked but when I replace last parameter A100 with A&C1LENGTH, it gives me error. any clue?