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] Refresh A Control that is not chained

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Refresh A Control that is not chained
 Login/Join
 
Master
posted
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

 
Posts: 865 | Registered: May 24, 2004Report This Post
Guru
posted Hide Post
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
 
Posts: 496 | Registered: January 04, 2008Report This Post
Master
posted Hide Post
Tried that, it's for a controls children not the control itself.




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Guru
posted Hide Post
Can't you just use location.reload();?
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report This Post
Master
posted Hide Post
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

 
Posts: 865 | Registered: May 24, 2004Report This Post
Guru
posted Hide Post
Maybe put that control in an iFrame and then just reload that?
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report This Post
Master
posted Hide Post
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

 
Posts: 865 | Registered: May 24, 2004Report This Post
Expert
posted Hide Post
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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Master
posted Hide Post
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
 
Posts: 578 | Registered: October 01, 2014Report This Post
Gold member
posted Hide Post
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
 
Posts: 80 | Location: NYC | Registered: November 13, 2008Report 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] Refresh A Control that is not chained

Copyright © 1996-2020 Information Builders