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.
Hi - I am trying to build an HTML Launch Page that uses Double-List Controls where a user can select the fields they want in the SUM and BY sections of a report. The challenge I have is that the 'output' of the Double-List Control looks like...
'SumField1' OR 'SumField2' OR 'SumField3'.
I have two goals here. The first is to do this in a way that the user is not limited to the number of fields they can select in the Double-List Control. The other is to convert the 'output' of the Double-List Control into proper code for a report.
Is it possible to reference the items in the Double-List Control by an index number? For example, if the control is named sumSelect, would there be a sumSelect.1 value and a sumSelect.2 value and so on?
I guess the conversion for the SUM portion of the report would be fairly simple. I could just use STRREP to remove the single-quotes and OR values. The part I'm having trouble with is converting the SORT portion of the report into separate BY lines.
Any suggestions?
Thanks,
DanThis message has been edited. Last edited by: Dan Pinault,
7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007
I'm using the Double-List Control provided by the HTML Composer. The left side (selectfrom) is not assigned to a parameter but is populated from the data source. The right side (selectto) is assigned to a parameter and gets its values based on what the user selects on the left side. Both sides are set to allow multiple selections.
Are there other specific attributes you are looking for?
Thanks,
Dan
7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007
which will be interpretted by WF as the following variables and values
&listbox2 = ENGLAND
&listbox20 = 3
&listbox20 = ENGLAND
&listbox20 = FRANCE
&listbox20 = ITALY
These should be easily built into your required type of coding and I guess that is what you're after? I'm using 7.6.5 standalone DS but things haven't changed that much between 7.6 releases.
What code are you getting? (Just the contents of the form will do)
T
p.s. Have I ever mentioned how awful the generated code is (hand coders nightmare)? No? Are you sure This message has been edited. Last edited by: Tony A,
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
The attribute (which is why I wanted to see them) that is causing the OR is the OPERATION attribute on the customselect1_selectto control.
There are a few values that this can be - AND, OR, NONE etc. and they control how the variable is built. With your current value of OR you get what you have. Change it to AND and you get the drift.
I can't remember what value it should be to provide the idnexed variables that you need but I am sure that I posted it some time ago (>3 years?).
Have a hunt around and see if you can find it. I am sure that the post was about the module ibirls.js so that might help narrow it down.
Good luck
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
This may be a silly question but how did you get the URL info? When I run the FEX or the HTML page all I get in the browser is https://servername:sslport/ibi_apps/WFServlet. Could the fact that I'm running this from MRE and/or running with SSL be preventing me from seeing the rest of the URL? Or is it something so obvious I'm just missing it?
Thanks,
Dan
7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007
I must still be doing something wrong. Either that or there IS a big enough difference from 7.6.5 to 7.6.8. No matter how I configure the multi-select in my launch page I can not get it to pass
&CNTRYSEL.0, &CNTRYSEL.1, &CNTRYSEL.2, &CNTRYSEL.3, etc.
I added
-? &
to the end of my FEX and all I see is
&CNTRYSEL = 'ENGLAND' OR 'ITALY' OR 'JAPAN'
Are you willing to post the code you ran to get your output with
&listBox.0, &listBox.1, &listBox.2, &listBox.3, etc.
?
Thanks!
Dan
7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007
Sure will but it will have to wait until I get to the machine with 7.6.5 on it (I only have 7.1.6 against 7.6.2 server here). I also have to recreate it - I mullered it by replacing it with your code once you posted it.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
No problem, now that I'm at the 7.6.5 install I've been able to recreate. Bear in mind I don't normally use the GUI and I've only put minimal controls on (I didn't even bother with a fex!). The URL produced is
Well, I went ahead and submitted a case for this. No matter what I do I can't get the multiple instances of the amper variable. Maybe it is something with 7.6.8.
I'll post an update when I learn something.
Cheers
7.7.05M/7.7.03 HF6 on Windows Server 2003 SP2 output to whatever is required.
Posts: 393 | Location: St. Paul, MN | Registered: November 06, 2007
We had a similar requirement which allows user to report on any columns of any tables. We used the same approach to extract columns from multiselect listbox (items connected either with OR or AND).