Required property of a field

237 views
Skip to first unread message

ciche...@fater.it

unread,
Mar 14, 2014, 7:35:52 AM3/14/14
to suppor...@runmyprocess.com
Hello,
I have an array where a field/column must be set "required" only for i.e. the "Launch" screen and not on the others.

Is it possible ?

Thank you!

Richard Manga

unread,
Mar 14, 2014, 7:58:50 AM3/14/14
to suppor...@runmyprocess.com
Good morning!

To do what you want, you should use the following logic:

- Create not visible input widgets (one widget/web interface) with the same variable names. ("myvar1" and "myvar1")

- Give 2 different default values to your widgets ("default1" and "default2")

- Click on the "Configure widget" property of your column and add the following code inside the "Required" Javascript option:

"[[myvar1]]"=="default1"

That means that your column will be required only in the web interface where the default value of "myvar1" is "default1".

Regards,

Richard Manga.



--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/6778c81f-1188-44a8-9f23-d60e404a5cf3%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

ciche...@fater.it

unread,
Mar 14, 2014, 12:19:38 PM3/14/14
to suppor...@runmyprocess.com, ciche...@fater.it

Hello Richard,
I would like to do that in the same Web Interface, but in different "screens".
If I understood, you mean:
- create 2 input widget with i.e. "id_1" and "id_2", having the same variable
(myvar1) and a different default value ("default1" and "default2")
- make each widget active only on one of 2 different screens
- set the required javascript option as mentioned

Is it correct ?

Thank you.
P.S.
I suppose it does not exist a function that returns the name of active "screen"


Richard Manga

unread,
Mar 14, 2014, 12:34:28 PM3/14/14
to suppor...@runmyprocess.com, ciche...@fater.it
Good Afternoon,

Yes,your reasoning is correct.

There is not a function that gives you the name of the active screen.

Regards,

Richard Manga


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

ciche...@fater.it

unread,
Mar 17, 2014, 7:17:08 AM3/17/14
to suppor...@runmyprocess.com, ciche...@fater.it
On Friday, March 14, 2014 12:35:52 PM UTC+1, ciche...@fater.it wrote:

Hello,
I saw that there is a function "widgetID.setColumnActive(index,true/false)".
Is it then possible to create a JS widget active only at "launch" screen"
that active/inactive alternatively some columns of the array ?

If yes, are there differences in the behaviour that should be considered compared to the previous solution ?

Thank you,
Luigi


Abdellatif El Alaoui

unread,
Mar 17, 2014, 11:08:40 AM3/17/14
to suppor...@runmyprocess.com
Hello Cichella,

It's possible to do it by creating a JS that makes a widget active on launch screen "widgetID.setColumnActive(index,true);" and another JS in the other screen that makes the widget inactive"widgetID.setColumnActive(index,true);"
The JS is launched once the page has loaded.

Best regards,


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.



--

Abdellatif EL ALAOUI

Customer Solution Engineer


Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.

ciche...@fater.it

unread,
Mar 17, 2014, 12:30:22 PM3/17/14
to suppor...@runmyprocess.com, ciche...@fater.it
On Friday, March 14, 2014 12:35:52 PM UTC+1, ciche...@fater.it wrote:

Fine!
I managed to set inactive an array's column with i.e.
"id_array1.setColumnActive(5,false)".

Is it also possible to set the array's column required/not required with
"widgetID.setRequired(false/true)" ?

What should it be the "widgetID" of the array's column ?
Is is something like "id_array1[id_column1]" ?

Thank you!

Abdellatif El Alaoui

unread,
Mar 17, 2014, 12:45:09 PM3/17/14
to suppor...@runmyprocess.com, ciche...@fater.it
You can't set required a column of an array with this option :  widgetID.setRequired(false/true).
The function "widgetID.setRequired(false/true)" set only widget with variables required. If you wan't to set a column required, you have to go the your array configuration and set the script wich follows required box..

Best regards,



--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
Reply all
Reply to author
Forward
0 new messages