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.
I'm trying to take advantage of the 7.6.9 conditional chaining in the following way...
combobox1 is a sigle-select dropdown list and is populated by the following code.
CHECK FILE CAR HOLD
TABLE FILE HOLD
SUM SEGNAME FIELDNAME TITLE
BY SEGNAME
BY FIELDNAME
BY TITLE
ON TABLE PCHOLD FORMAT XML
END
This populates the dropdown list with the names of the fields in the CAR master file.
listbox1 is a multi-select listbox that I want to populate with the VALUES of the particular FIELD selected in combobox1. I'm trying to use code like this...
TABLE FILE CAR
-* I do not know what to put in next line
BY [SELECTED_VALUE_FROM_COMBOBOX1]
ON TABLE PCHOLD FORMAT XML
END
Anybody know how I can use the selected value from combobox1 in the fex that populates listbox1?
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
Our product WrapApp has an object called "field list" which automatically produces the list of fields from a specific master and has an &variable associated with it, &FFF, for example. To this object, we attach a fex which populates a list box with the values of the field selected. The list box also has an &variable associated with it, say &LLL.
TABLE FILE filename
SUM FST.&FFF
BY &FFF
ON TABLE HOLD AS LISTB1
END
-SET &SW_LISTB1='LLL';
That's it.
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
You will need to write a javascript function that will copy the selected value of combobox1 to a hidden variable during the onChange event of combobox1. Then you will have simulate the firing of an event in a javascript function. This will simulate the firing of a chaining event.
I appreciate the fact that your product may have features that meet my needs but I'm trying to work within the framework that I currently have. Also, in my opinion, this developer forum is not the place to sell your wares. This type of predatory marketing will only serve to decrease any credibility you may have. Information Builders has many successful partner relationships with other vendors. Perhaps you should pursue that.
Mighty Max,
Thanks for the tip. I tried something similar to what you are suggesting but without JavaScript. I bound combobox1 to a parameter called FLDSELECT. Then, in the procedure to populate listbox1 I tried to use &FLDSELECT.EVAL but that did not work. I also tried !IBI.AMP.FLDSELECT but that didn't work either.
I'm hoping to make this work with as little hand-coding as possible. I'll keep playing!
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
Dan, did you come to the pres Tony and I gave on Tuesday at Summit on chaining? I know you were in Nashville... we actually saw you live and in person...did you miss the Focal Point event?
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
...this developer forum is not the place to sell your wares...
Which is very true. I don't see a need for implementing third party products, or even mannually adding JavaScript, when WebFOCUS can do a specific function. Afterall, this is a WebFOCUS Forum not a third party forum - imho.
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
this developer forum is not the place to sell your wares
If Dan were hawking a competing product (one that would supplant WF) I'd agree. But for the benefit of those who, despite coverage in the current version of the GUI, would consider rolling their own solution, posting info about the availability of a third-party add-on as an available alternative is a service.
(Note that SRL and WrapApp are featured in an article in the current issue of IB Mag.)
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Susannah - Sadly I did not see your presentation though I wanted to. I'll download the file(s) from the Summit site.
Francis - Coding of any sort is definitely not my expertise. I'm really more of a trainer, demonstrator, techie sales-helper kind of guy. So, for me, I need to make the GUI go as far as I can before I think about adding anything by hand.
Jack - I'm glad to see that SRL and WrappApp have gotten some press from IBI. That lends some credibility to the product offering. I would think the Miscellaneous Announcements forum might be a better place for third party product discussions. In THIS forum to make mention of a tool or website or code snippet that has helped you as a developer is in keeping with the spirit of the forum. To basically reply to a question with, "My product can do that." is not very helpful.
Danny-SRL - Please don't take offense to my comments. Your product does look very impressive and I'm sure is very useful. It's just that, TO ME, as soon as someone tries to sell something in a discussion forum like this, their posts become tainted with an agenda.
In any event, BACK TO THE ORIGINAL QUESTION, last night my train of thought was to run a report from the onChange event of combobox1 and hold the output. Then, populate listbox1 from that hold file. I just have to figure out how to cause listbox1 to re-populate. Am I making this too complicated? I was hoping I could do it with the conditional chaining in 7.6.9 and use the Populate with Alternate option for listbox1 but DevStudio crashes when I add the external procedure to the properties and settings for listbox1. I'll start with a fresh html page and try again. Otherwise I might have to submit a case for that.
Thanks everybody!
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
Yes, Houston, We have a problem! Actually, it's a BUG. I brought this up in the Expert Room at Summit 09 and it seemed new to them.
Here's the issue: The "Value Field" gets filled in when you "double click" on a field in the MFD (dynamic / data source / CAR.mas). However, the "Display field" does not. You can drag and drop any field into the VALUE or DISPLAY text boxes. It's been logged as an issue... See THIS for image of this issue.
The bottom line, is that the WebFOCUS HTML Painter can do this as well without the manual coding.
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
Sorry Doug, but I cannot reproduce the issue you describe. If I click the ellipses button next to Value field and double-click a field from the list, both Value Field and Display field get populated. Same with drag and drop. You state you opened a case for this. Please tell me the number so I can take a look.
As far as Dan's issue goes, the field list will only show fields in the master file. By using ASNAMES, these names will not show in the field list and will need to be manually typed in. Dan went to the code itself to do the typing, but you actually can type in the field names in the Properties and Settings dialog directly.
David Glick Director WebFOCUS App Studio and WebFOCUS Developer Studio WebFOCUS Division Information Builders, Inc. Direct (917) 339-5560 Voice Mail (212) 736-6250 x3560 Fax (212) 947-5168 Email david_glick@ibi.com
Dan went to the code itself to do the typing, but you actually can type in the field names in the Properties and Settings dialog directly.
David, I am not able to type anything in the Value Field or Display Field boxes. From the GUI my only options are to drag a fieldname from a master file or click the ellipses and select a fieldname from there. This is why I had to go to the code to enter those. I submitted a case for that (51752565).
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
Mighty Max: I don't believe this will work in 768 without custom JavaScript. In 769 it works without any custom JavaScript.
Dan: Please forgive me. In 7610 we opened those prompts for typing, so you are correct in that it cannot be typed in the frontend in 769.
David Glick Director WebFOCUS App Studio and WebFOCUS Developer Studio WebFOCUS Division Information Builders, Inc. Direct (917) 339-5560 Voice Mail (212) 736-6250 x3560 Fax (212) 947-5168 Email david_glick@ibi.com