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

Hi Vaibhav,

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



Regards

Rahul Sahu

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

Solution

Rahul Sahu wrote:

Hi Vaibhav,

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



Regards

Rahul Sahu

 

Hi Rahul,

Thanks for the help, but the problem persists, as the user has option to change color after page is loaded. Tried applying values in preparation, but values initialized in preparation are not affecting the style of the container either.


To clear the question, Once page is loaded, the user has option to change color from the combo boxes available, they can choose values from there and the style of the container "YourContainer" should change accordingly. 


Dorine Boudry wrote:

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

 

 Hi Dorine! That helps, Thanks! :)