12
Views
4
Comments
Solved
Style extended property with variable
Question

Hi,

I wanted a container where user could choose the background and text color. It is not an input from other screen, is done after the screen is loaded.

I tried storing the required value in a variable and apply it in style extended property of the container, then put an ajax refresh on the container to get the new style. But this doesn't change the default look of the container.

Here, user choices contains values like "background: rgb(211,211,211); color: rbg(240,255,255)". The container always has default class applied even after refreshes.

Is it possible to do so using this technique or some other?


Thanks

Rank: #139
Solution

Hi Vaibhav,


this should be easy enough, see attached oml, try to find what you are doing different.

There's no reason to do it in the preparation, an onChange + AjaxRefresh works fine.


Good luck,

Dorine

DemoUserStyleAppliedTraditional.oml

Rank: #89

Hi Vaibhav,

Set UserChoices="background: rgb(211,211,211); color: rbg(240,255,255)" on prepration and use it.



Regards

Rahul Sahu

Rank: #139
Solution

Hi Vaibhav,


this should be easy enough, see attached oml, try to find what you are doing different.

There's no reason to do it in the preparation, an onChange + AjaxRefresh works fine.


Good luck,

Dorine

DemoUserStyleAppliedTraditional.oml