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 page that will have a dropdown to various databases I can go to. Based on what they choose in the dropdown, how can I dynamically or programmatically create a connection string?This message has been edited. Last edited by: Kerry,
Version: 8.0.0.6 Windows platform All output formats will probably be used.
Have a -INCLUDE to a program that looks up the database type and credential information in a file that you have created, write the information to a SAVE file, then -READ into amper variables that you can use in the connect string. Then depending on the data base, you may need to set a default connection.
Here is an example of one for DB2 though you could make the engine type a variable as well.
ENGINE DB2 SET CONNECTION_ATTRIBUTES &CONN/&DB_user,&DB_pass
ENGINE DB2 SET DEFAULT_CONNECTION &CONN
You would have to put logic around this of course. And each program would need the -INCLUDE.
How did you create your html page? Did you use the HTML Composer? Did you reference a focexec that had the amper variable &CONN in it. If the answer is yes, then the page's submit button will automatically provide the value of &CONN to the focexec.
I would suggest that you start smaller. Practice passing the value for country to a focexec against the car file until you understand that process.