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 a List box which is updated with data from a fex and a button on a HTML page. I am trying to Refresh the List box everytime the Button is clicked. Tried using populateDynamicCtrl(obj) but didnt work.
Is there any way this can be accomplished.
Thanks in Advance, pvpar
Release: Webfocus 7.6.11 OS/Platform: Windows Output: HTML, EXL2K
There is a feature in 7702 that handles this. If you are at 7702, please review the documentation.
Thanks.
David Glick Director WebFOCUS App Studio and WebFOCUS Developer Studio WebFOCUS Division Information Builders, Inc. Direct (917) 339-5560 Voice Mail (212) 736-6250 x3560 Fax (212) 947-5168 Email david_glick@ibi.com
//Begin function form1Reset_onclick
function form1Reset_onclick(ctrl) {
document.getElementById('comboBox1').selectedIndex = 0;
window.top.frames.report1.location.href='about:blank';
}
//End function form1Reset_onclick
The document line will reset your list box The window line will clear you output frame
Hope this helps out.
MA
WebFOCUS Server 8.1.05 Windows 2008 Server WebFOCUS AppStudio 8.1.05 Windows 7 Professional IE 11 and Chrome Version 43.0.2357.124 m. Mostly HTML, PDF, Excel, and AHTML
I have found that when using the "Reset Button" it will reset the controls but not the report frame. And then sometimes when I add the code to clear the frame then it stops resetting the control until I add the code to reset that too.
WebFOCUS Server 8.1.05 Windows 2008 Server WebFOCUS AppStudio 8.1.05 Windows 7 Professional IE 11 and Chrome Version 43.0.2357.124 m. Mostly HTML, PDF, Excel, and AHTML
MAdams1 I tried using the code you posted, it didn't work. I already have the reset button but want to remove that so that the user doesnt have to reset the listbox everytime he adds something. Here's some background of what I am tring to do. I have a FOCUS database to which I am tring to add and remove records, say COUNTRY names. I provided a HTML page for this functionality which has two buttons one to add the COUNTRY name, a list box with a Delete Button to delete existing COUNTRIES. Theoretically the user should be able to enter the COUTNRY name in the text box and press ADD Button to add it to the Database and the List box is as updated to reflect the changes. Same is true with the Delete button. Went through the documentation and the forum too,but couldn't find anything. Is there a way this can be accomplished.
Thanks, Pvparuc
Release: Webfocus 7.6.11 OS/Platform: Windows Output: HTML, EXL2K
Do you have the text box and the list box chained?
WebFOCUS Server 8.1.05 Windows 2008 Server WebFOCUS AppStudio 8.1.05 Windows 7 Professional IE 11 and Chrome Version 43.0.2357.124 m. Mostly HTML, PDF, Excel, and AHTML
I did something similar about five years back and it was a relatively simple Ajax call to wfservlet. Intercept the returning result and use the innerHTML attribute on the listbox to set the new contents.
I realize that's kind of a drive-by recommendation with about zero detail, but as I recall I was worried going in but it turned out to be pretty straightforward. Ajax is really pretty easy once you figure out a couple of basic concepts.
Option 2 -- Flash the screen. The button push submits the page and it returns with the new contents in the listbox. Easy, functional, not super-pretty. Other materials on the screen may prohibit this happening.
Option 3 -- Use JavaScript to call a focexec into a hidden iframe. That is, hand-assemble a url line to make a call to wfservlet. When it arrives have javascript in the iframe grab the output lines from the returning report (i.e., the new contents for the listbox) and set them in the parent window's listbox via the innerHTML attribute. It's pretty basic, but you won't have to dig into an Ajax call and it will keep you out of HTML Composer's idiosyncrasies. This one is easy to do, easy to debug. Leave the iframe visible while you work, hide it when you're done. The result will function like an Ajax call without all the protocol.
Clear as mud?
J.This message has been edited. Last edited by: John_Edwards,
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007