• Introducing Dark Mode! Switch by clicking on the lightbulb icon next to Search or by clicking on Default style at the bottom left of the page!

E1 Pages - Getting defaults into the Form Controls on entry

johndanter

Legendary Poster
Hi folks,

I've been asked to add an icon to a page which points to the Batch Version launch screen P98305W but to auto default 'R554111X' into the UBE field

I was thinking of the Parameterised URL feature and the FormDS, but the jas server changes each ENV, so I can't do that

I found this, just not sure how to use it
function runE1App(appId, formId, version, menuSysCode, taskName, formDSTmpl, formDSData);

Thanks

John
 
Last edited:

johndanter

Legendary Poster
Found it

function runE1App(appId, formId, version, menuSysCode, taskName, formDSTmpl, formDSData);

Required Parameters:
• appId = E1 Application Name, for example P0411
• formId = E1 Application Form ID, for example W0411G
• version = E1 Application Version, for example ZJDE0001
• e.g., javascript:runE1App('P0411','W0411G','ZJDE0001')

Optional Parameters:
• menuSysCode = E1 Application system code
• taskName = Custom Title - Form Name
• formDSTmpl (data structure template)= Use to pass data into the form (e.g. "1|4|7|8")
• formDSData (data structure data) = Use to pass data into the form (e.g. "1|4|7|8")

The formDSTmpl and formDSData stand for form data structure template and data respectively.
They are analagous to passing in arguments or a parameter to a function. There are certain parameters a form can accept when launched. The template defines which ones are being supplied so |1|4|7|8| means we are going to be supplying a value for the 1st, 4th, 7th, and 8th parameter.
The formDSData would then be |value_for_1|value_for_4|value_for_7|value_for_8|
Here is an example for WSJ (Work with Server Jobs) app:
• DSTmpls = |4|7|10|11|13|
• DSData = |server|dataSource|jobId|port|isAutoLaunchOn|
 
Top