Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Refreshing Listbox with an OnClick Event

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Refreshing Listbox with an OnClick Event
 Login/Join
 
Gold member
posted
We have an html page with a form that allows a user to enter a name and email and click a save button to write the data to a table using the modify function..

On the same page we have a listbox that grabs the values from the same table using an external proc. When a new user is added, how can we refresh the listbox and execute the modify procedure, so that the listbox shows the new users instantly?

PS: we are already tried using this command: IbComposer_ResetDownChainControls('combobox2');


Thank you.

This message has been edited. Last edited by: Joey Sandoval,




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro


 
Posts: 94 | Location: Austin, TX | Registered: August 08, 2012Report This Post
Gold member
posted Hide Post
We're able to get this working with the following help from IBI:

 
Problem:

Can a dynamic dropdown re-query the database after certain events occur on the
form?  Is there a JavaScript function that can accomplish this, or would the
page need to be refreshed, so that all the controls are reloaded?

Solution:

Below are specific JavaScript calls to automatically load dynamic controls
without having to reload the page.

 For controls not chained:
___________________________________________________________________________

    var select = document.getElementById("listbox1");
    if(select)
       {
          populateDynamicCtrl(select);
       }

 
 For all controls of the chain:
___________________________________________________________________________

          populateDynamicChains();

 
 For a control in the chain and all controls after it in the chain:
___________________________________________________________________________

    var select = document.getElementById("listbox1");
    if(select)
       {
         DoUpdateSelection(select);
         DoResetDownChainControls(select);
       }
 




Prod/Dev: WebFOCUS 8.0.08 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.08 on Windows 7 Pro


 
Posts: 94 | Location: Austin, TX | Registered: August 08, 2012Report This Post
Master
posted Hide Post
I am doing the same but it is not working.

Did you set the xml attributes before calling this functions?


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Refreshing Listbox with an OnClick Event

Copyright © 1996-2020 Information Builders