Focal Point
[SOLVED] Refresh A Control that is not chained

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6147084576

April 07, 2015, 12:17 PM
TexasStingray
[SOLVED] Refresh A Control that is not chained
I have an html page written in composer that has dynamic filters. These filters are populate from a procedure/database. there is also a "Check for New" button that calls a procedure and updates/inserts records into the same database table. and redisplay the report in an iframe. I have the report calling a parent javascript function when its finished. Now in that function in need to tell WebFOCUS to refresh these 2 drop down list controls and they are not chained to any other control. Is there and IbComposer_??? function that I can use to tell WF to rerun the procedures to refresh these controls?

WF 80xx

Thanks
Scott

This message has been edited. Last edited by: <Kathryn Henning>,




Scott

Have you tried using?

 
    IbComposer_ResetDownChainControls('control_name');
 


I have used it to reset a control when the control is not chained.


WebFOCUS 8.1.05
Tried that, it's for a controls children not the control itself.




Scott

Can't you just use location.reload();?
I'd perfer not to reload the whole page ss there are several controls that will also reload taking some time to load again.




Scott

Maybe put that control in an iFrame and then just reload that?
Seems like something so easy should not require so much extra work. Anyways I had to create a dummy variable and chain the 2 controls to it. Then I set the dummy value in javascript with IbComposer_setCurrentSelection with the 3rd parameter to true so that it updates the children. To much extra work for somehting so simple.




Scott

quote:
IbComposer_

Did you not look in the documentation (here) and then try IbComposer_populateDynamicCtrl?

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 
TexasStingray, you don't want to reload the whole page, but what about reloading the report itself. I'm assuming you have a button or something to click refresh? On click, use the following JavaScript.

	var graphDisplay = document.getElementById ( "graphObjectIdHere" );
	graphDisplay.src = '/ibi_apps/views.bip?BIP_REQUEST_TYPE=BIP_RUN&BIP_folder=IBFS%253A%252FWFC%252FRepository%252FMyFolder&BIP_item=MyReportToRefresh.fex';


This will reload the that report even if it's not attached to the button.



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
Hi TexasStingray

Have a hidden control and chain it to the two controls. In the properties and Settings for the chained properties (Setting in App Studio) set the action to "populate, show" and type in _FOC_NULL for the Selected Values...

Set the Selected Value to _FOC_NULL...

Then anytime you want to reset the 2nd and 3rd control just use the following JavaScript:

IbComposer_setCurrentSelection('hidden_control_name', '_FOC_NULL', true);

Hope I did not leave anything out but that should work. If it does not work then open a case and ask for Barry..

Thanks Barry


WebFOCUS 8103, Windows, App Studio