cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle Deprecated scripts when converting Designstudio 1.x to lumira2.0

former_member195433
Participant
0 Kudos

I have converted Design studio 1.6 version to 2.0.

Other than just converting to Ui5 mode and saving it with Lumira 2.0 tool I found that converted application in 2.0 isnt working .

There are some scripts which are deprecated like below

DropDown.onSelect(); Text_1.onClick();

Currently I am copying scripts in Dropdowns and text components to GlobalScripts functions and calling them instead of using Compnent onselect and onclick scripts.

Is there a better way to handle conversion ? Given the fact that there are numerous applications and lot number of scripts written with onSelect() and OnClick().

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Thanks Pramod for the reply,So presently code is written for button and onclick() is been used in chart.So you mean to create global script and call in the chart.

Will try else will give the script and let me know where need to be corrected.

Sorry if I am asking basic as I am working after a long time in Lumira Designer

Thanks pramod for the support.

former_member195433
Participant
0 Kudos

Yes put the script in GLOBALSCRIPT.name() and call it from interactions onchart.

former_member195433
Participant
0 Kudos

Put the code in globalscripts and use it to call wherever Needed

0 Kudos

Hi mbensan and pramod.lumburu,

I am also facing same issue onclick() function is deprecated in button.Is there any way can recall with anyother function?

Regards,

Shiva

former_member195433
Participant
0 Kudos

In any case, centralising scripts in Global Script functions as you've indicated is a good practice to simplify maintenance and coding, instead of directly triggering component event scripts.


Use Globalscripts.

MustafaBensan
Active Contributor
0 Kudos

Hi Pramod,

As far as I am aware there is no mass search and replace tool to automate script conversions. Unfortunately, you need to go through a one-off manual exercise to update the deprecated scripts.

My observation is that in Lumira Designer 2.1, DropDown.onSelect() is still a valid script call but Text_1.onClick() has been deprecated. In any case, centralising scripts in Global Script functions as you've indicated is a good practice to simplify maintenance and coding, instead of directly triggering component event scripts.

Regards,

Mustafa.

former_member195433
Participant
0 Kudos

Mustafa,

Thanks for the suggestion. I think i am using Lumira Designer 2.0 and DropDown.onSelect()isnt valid.May be i will upgrade my client tool and check out. Are onSelect(),onClick() scripts have been removed Completely in Listboxes,text,buttons etc in Lumira ?

Regards,

Pramod