How to rerieve the name of the current screen ?

207 views
Skip to first unread message

yves.d...@gmail.com

unread,
Aug 7, 2015, 6:22:19 AM8/7/15
to Fujitsu RunMyProcess Developer Community
Hello,

Is it a way thanks to an internal parameter to automatically retrieve the name of the current screen ?

In that way, I could set automatically some behaviour like opening directly the right tab in a tab widget, etc.

Regards
Yves

Murali

unread,
Aug 7, 2015, 6:52:41 AM8/7/15
to Fujitsu RunMyProcess Developer Community, yves.d...@gmail.com
Hi Yves,

Could you please elaborate your requirement with some sample scenario.

Regards,
Murali

yves.d...@gmail.com

unread,
Aug 7, 2015, 10:46:30 AM8/7/15
to Fujitsu RunMyProcess Developer Community, yves.d...@gmail.com
Murali,

Take that case.
A request form has to be filled in by 4 differents services (parallel task).
The webinterface is made of a tab widgets with 4 tabs, one per service.
I want that when people click in the link received by email, their related tab is open

I can add one JS per screen (which is only available in that screen) which will fill in a text widget with the screen name. Then a JS will listen to that text widget and change the open tab using setSelectedTabIndex.

But there should be a simpler way ?

Regards
Yves

Murali

unread,
Aug 8, 2015, 6:20:19 AM8/8/15
to Fujitsu RunMyProcess Developer Community, yves.d...@gmail.com
Hi Yves,

1) Include a JS widget in your web interface that listens a Text widget(type: number, variable: selected_tab_index) and make these widgets available in all screens.Set the selected index of Tab widget using below script.
id_tab.setSelectedTabIndex(id_selected_tab_index.getValue()); //index starts from 0

2) Update the variable value 'selected_tab_index' with respective index value in Input Variables of a Manual task.

With the above implementation, when user access the Task, respective Tab widget tab will be selected.
You can update/display the screen name in similar approach.

Regards,
Murali

yves.d...@gmail.com

unread,
Aug 12, 2015, 3:47:28 AM8/12/15
to Fujitsu RunMyProcess Developer Community, yves.d...@gmail.com
OK. So no direct way to retrieve the screen name but your proposal is simpler than mine

Thanks Murali
Yves

Reply all
Reply to author
Forward
0 new messages