Focal Point
[SOLVED]running javascript after and object is loaded on a form

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

July 22, 2016, 12:04 PM
Jay Potter
[SOLVED]running javascript after and object is loaded on a form
In AppStudio v8.0.9, I want to create javascript to be executed after an object is loaded with data during the loading of a forms. I have an object loaded via a datasource when a form is created. I show or hide other objects on the form depending on the value of the object. The object name is editDashboard.

I know I have to put the javascript in the Embedded Javascript area, but I do not know what the name of the function/event is. In DevStudion I was able to click on the object event and it started the function.

This is the first time i have had to do it in AppStudio v8.0.9 and I am lost.

This message has been edited. Last edited by: <Emily McAllister>,


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
July 22, 2016, 02:10 PM
Squatch
Click on the control or component, then go to the Properties panel, then click on the yellow lightning bolt. There should be an "on load" input box there. Click on the right side of the input box and the skeleton of a JavaScript function will be created.

Then go to the Embedded JavaScript area to program inside the skeleton code.


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
July 22, 2016, 02:31 PM
Jay Potter
Lightning strikes and the light bulb turns on! Thanks that is the answer I was looking for.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster