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 have a simple HTML page. I add two select list boxes. I select these two controls and try to chain them by clicking the "Add to chain" button, but it's inactive. Why? Is it because neither have a Parameter assigned? Why do I need parameters?
Puzzled and annoyed.This message has been edited. Last edited by: Francis Mariani,
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
Ramkumar, thanks for letting me know. Until IBI describes why, it seems like an arbitrary decision. From an existing form, I want to open a new window that has chained select lists and also a double list control.
I suppose I will have to fake it.
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
I took the code which you provided and went to the parameters tab (in the html composer) and assigned a dynamic / embedded procedure using mdbdates.mas which has the following contents
YEAR_NUM WEEK_NUM
2011 1
2010 52
2010 51
2010 50
2010 49
2010 48
2010 47
2010 46
2010 45
2010 44
2010 43
More years and weeks follow...
I assicted the first one to year and the second on to week. then I clicked on combobox1 and dragged it (the little gray box) to combobox2. And, Wah La, done with chaining.
Is there something else that I'm missing in the solution which you seek?
Note the embedded code:
SUM FST.MDBDATES.SEG01.WEEK_NUM
BY MDBDATES.SEG01.WEEK_NUM
-*insert_filters_here
ON TABLE PCHOLD FORMAT XML
END
I don't have any parameters in this page because this page is called from a button on a main page. I use Javascript to populate a form element (parameter) on the main page based on the selected values on this popped-up page, hence to parameters here. Of course I will be told that this is not what HTML Composer is designed to do, Perhaps it should be called Parameter Filler-Outer...
Doug, I will give your suggestion a try, thanks.
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
Values being populated through JavaScipt - Oh Oh...
That way this is really a headache...
Then you need to simulate Chaining as well thorugh JavaScript. I mean write couple of Functions on Onchange event and populate the Select box with needed values.
Thanks,
Ramkumar. WebFOCUS/Tableau Webfocus 8 / 7.7.02 Unix, Windows HTML/PDF/EXCEL/AHTML/XML/HTML5
Posts: 394 | Location: Chennai | Registered: December 02, 2009
I have a complex main HTML form. On it are several filters that I've decided to populate from a secondary form - a different HTML window containing a double list. I could not fit six double lists on the main form, and probably wouldn't look right GUI wise. My double list HTML form behaves very well - I open it with an onclick, I populate the previously selected values from the main form. Upon Save, I save them to the main form - everything works. Now, I'd like to add a chained select list to the available selections side of the double list.
So, to test, I created a blank html page where I want to set up two select lists that are chained, but I've discovered they must be "bound?" to a parameter, which I don't have. I guess I have to create a dummy fex with a parameter on it and then bring that into my HTML page.
Needless to say I could do this a lot faster and with cleaner code than the GUI...
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
That sounds complex enough ... Have you considered doing something like this:
1) Fex to DEFAULT what's need in the Launch Page (LP). 2) -HTMLFORM ... (LP 1) which spawns fex 2. 3) Fex 2: takes the info from LP1 and does a -HTMLFORM (LP 2) with all the previous values 4) LP 2 executes (final fex) which has the parameters need for the binding in LP 2?
OR starting with "LP 2" and "final fex" with the parm:value pairs hidden and passed from LP 1?
I did this at Ford (see Ford Motor Company / Item 1 for a sample). We called it a dual launch page. LP 1 is the top (white section) / LP 2 is the lower (gray section).
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
Tony, which controls do I put in a hidden div? And, if it's hidden it won't display in HTML Composer.
I would simply like to chain two select lists and have their values populated by a dynamic execution of a fex. Why on earth do report variables have to be involved?
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
In my experience with HTML Composer v7.6.8 and v7.6.11, if something is hidden using CSS, it is hidden on the "Design" tab, it may very well be in the "HTML" tab, but that is not the objective of HTML Composer.
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
And, if it's hidden it won't display in HTML Composer.
True, but I was just suggesting another method other than creating a new browser session (or tab etc.) so that all your code would be self cotained and therefore easier to deal with. Using methods mentioned in other posts, you could make these visible whilst manipulating within DS. In fact I have just coded such a thing because the of the fact that I was already pushing the limits for sum of by fields and across fields in a report (each "cell" is a potential input control) but still had need for input of more data, so I used a div which I style.display = block or none as necessary. As you know, I prefer hand coding but (with rel 7.7.n) I have now taken to using the GUI for as much as I can and then adding the stuff that would be more "challenging" in the GUI. Works for me and that approach has helped me understand the interaction between the new embedded XML section and the ibirls3.js functions etc.
I have used modal dialogues before to give a similar functionality but wouldn't suggest them unless you are definitely only using IE as FireFox doesn't support them.
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
I see you are running v7.6.8 so I don't know if this helps or not. In 7.6.9 you can chain controls without the use of any 'parameters'. By this I mean that you don't need to set up the ampervariable in your procedure nor do you need to use the Add Parameter function in the HTML Composer.
The key is setting the 'Resolves Parameter' value in the properties and settings screen for the chain itself. Look at the first example in the code below and notice how listboxes 1 and 2 chain together with no parameters used at all. In the second example notice how I am using ampervariables in the procedure code that populates listbox 5 but I did not need to create any within the HTML page. I did use a -DEFAULT in listbox 5 simply to give it a value for when the page initially loads.
You'll also notice that there is no report procedure associated with the page so I'm not leveraging any parameters used there either.
Francis, Please PM me your email address to send you a document I've written to do some dynamic chaining. I'd like to post it here or as a technique, but would like a second set of eyeballs on it to make sure it is ready for public consumption. I'm not sure if it is this exact issue, but I recall you having some frustration on the general topic recently.