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] WF8 HTML Composer OnExecute

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] WF8 HTML Composer OnExecute
 Login/Join
 
Platinum Member
posted
Does anyone know if the js function OnExecute is still working in WF8 app studio? I know it isn't in the list of js functions that popup. I vaguely remember from WF7 you could call this function, pass it 'ctrl' which was an object and it would work but now it doesn't seem to do anything when called.

On the same note, how do you call a request defined in the html composer from js? I noticed a function called 'IbComposer_execute' but not clue how it works aside from http://forums.informationbuild...1057331/m/4587041526

Sadly I have to obey the html composer GUI for this one Frowner

This message has been edited. Last edited by: Tim P.,


WebFOCUS App Studio 8.2.02
Windows 7, All Outputs
 
Posts: 141 | Location: Mclean, VA | Registered: December 04, 2012Report This Post
Master
posted Hide Post
quote:
Originally posted by Tim P.:
...On the same note, how do you call a request defined in the html composer from js? I noticed a function called 'IbComposer_execute' but not clue how it works...


If you are talking about a task, you can use this IBI function:

IbComposer_triggerExecution("task2",1);

In this example, I am executing a task named "task2".


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report This Post
Platinum Member
posted Hide Post
Awesome squatch! That's exactly what I needed!

I wish the API would give you the arguments for the function when you choose it from their little popup window instead of just giving you the function name and expecting you to figure out the arguments. Like IbComposer_triggerExecution(param1,param2,param3) and you just fill in the blanks...maybe one day.

I assume the OnExecute function is no more in WF8 then? I did notice 'ctrl' was still being populated when you make an onclick function for a control, wonder what that's used for now. It's still some kind of object:

 var eventObject = event ? event : window.event;
var ctrl = eventObject.target ? eventObject.target : eventObject.srcElement; 


WebFOCUS App Studio 8.2.02
Windows 7, All Outputs
 
Posts: 141 | Location: Mclean, VA | Registered: December 04, 2012Report This Post
Master
posted Hide Post
I started on WebFOCUS 8 and am not familiar with OnExecute.

Yes, ctrl is an object a property extracted from an event object, and it can tell you which element ("control" in WebFOCUS speak) triggered the event.

target Event Property

var eventObject = event ? event : window.event;
var ctrl = eventObject.target ? eventObject.target : eventObject.srcElement;

The two lines above are put there as a courtesy by App Studio, in order to account for Microsoft and non-Microsoft browsers.

The question mark and colon combination says, "If an event object was passed in, use that, otherwise we are working with an Internet Explorer browser that does not pass in an event object." In that case, the event information is found elsewhere in that IE browser (i.e., in a global area of the browser called "window"). Thank you, Microsoft, for never fearing to lead where others refuse to follow.

This message has been edited. Last edited by: Squatch,


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report 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] WF8 HTML Composer OnExecute

Copyright © 1996-2020 Information Builders