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 am new to WebFOCUS, and am currently using version 8.2.
I have an HTM file with an embedded JavaScript script that validates the user-entered data when the form is submitted.
In the Tasks & Animations, I specify JavaScript (first) and a FEX script (second). The JavaScript ends with "return true" if the validation does not find errors in the user-entered data, or "return false" otherwise.
All seem to work well, except that the FEX is always executed.
Would it possible for us to get the FEX executed conditionally per the above?
Any insights and hints would be much appreciated.This message has been edited. Last edited by: FP Mod Chuck,
Leave your task to execute the JavaScript on form submission but remove the focexec call.
Instead, create a new task for the focexec and change the trigger type to "TBD". Remember the task id for this.
Within your JavaScript, left click and drag the task for the focexec to the point where your user entered details should result in the execution of the focexec.
This essentially does what Waz suggests above but instead of you having to type the "IbComposer_execute" code, the drag and drop does this for you.
Good luck!
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, 2004
*** In List of: a new entry MyFex is created, Trigger Type: TBD Requests/Actions: External procedure/myFexReport Target type: Window
*** Open tab, Embedded JavaScript drag and drop MyFex (from List of) to the js page, and it does paste the text "IbComposer_triggerExecution("MyFex", 1);" there among the codes. Rearrange the code to place the statement at the designated line in the js codes.
*** When run, upon pressing on the button, I got the alert message, then after pressing on OK there, myFexReport window appears so beautifully.
Thank you all for making my splash here such an easy one!