JS API to set paint layout


(Chris Horikx) #1

Hi Guys,

 

I've composed a script that, amongst other things, applies paint layouts to a nest content div and also to a standard page.

 

This works, but it seems that the asset doesn't think it has a paint layout applied unless I clear it manually and apply again manually. I seem to remember this had to do with lookups being updated? Is there any way to programatically introduce a refresh of lookups so that the selection of a paint layout in the JS API will stick and work?

 

Thanks in advance


(Bart Banda) #2

No idea, but maybe you could post your script here so that one of the developers could take a peek and see if they can spot any improvements or errors to make it work?