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
March 05, 2013, 04:25 PM
Joey Sandoval
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
July 09, 2013, 03:42 PM
Kamesh
I am doing the same but it is not working.
Did you set the xml attributes before calling this functions?