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 an HTML doc, with 3 chained drop down boxes (combobox1,2,3). Each uses the Dynamic/Default data source method. Each resolves a parameter and passes to the next. They work as expected.
I am trying to set the initial value of the first box from an amper var (&BUSINESS_MODEL) that is present when the HTML page loads using the following function.
function onInitialUpdate() {
document.getElementById("combobox1").value = "!IBI.AMP.BUSINESS_MODEL;";
}
The drop downs works fine until I add the code above, then it appears blank.
The load task is set to refresh input controls
Is there anything else that must be set to make this work?This message has been edited. Last edited by: Don Garland,
Don, Instead of displaying from a data source, can you use a fex?
Example:
TABLE FILE CAR
SUM
COMPUTE COUNTRY/A10 = 'Garland';
COMPUTE SORT_1/A1 = '1';
CAR NOPRINT
BY COUNTRY NOPRINT
WHERE RECORDLIMIT EQ 1;
ON TABLE HOLD AS HOLD1
END
-RUN
TABLE FILE CAR
SUM
COMPUTE SORT_1/A1 = '2';
BY COUNTRY
ON TABLE HOLD AS HOLD2
END
-RUN
TABLE FILE HOLD1
PRINT
COUNTRY
BY SORT_1 NOPRINT
BY COUNTRY
ON TABLE PCHOLD FORMAT XML
MORE
FILE HOLD2
END
-EXIT
Yes, I've been trying to get away from using fex based requests, the explicit method, because in almost every case, the HTML doc develops an error trying to resolve the variables when you open it. It's annoying. Plus I like less moving parts if I can get away with it.
Not sure what's keep this from working, I used an example from an earlier post and it worked in a car example so it should work here.
Hi Don, It is "my" understanding, !IBI.AMP is used only within -HTMLFORM statements, may be wrong... Did you try with single quotes, or, no quotes? Just kind of guessing now... Tom
Yes, single quotes didn't help. Dang, I think your right about the -HTMLFORM, my car example used that and it was working. Okay I'll mark this as [SOLVED].
You can hard code a default in the HTML page, or you can use a fex to set a default in a calling HTML page that the composer page will pick up a default for you (which is what we do here).