Search found 3 matches

by raulo
Thu Mar 08, 2018 1:08 am
Forum: Questions & Answers
Topic: adding theme to reusable part embed in simple html page
Replies: 4
Views: 8492

Re: adding theme to reusable part embed in simple html page

Thank you. That did the trick!

The solution was adding this in the reusable part:

Evtroutine Handling(#Com_owner.CreateInstance)
#SYS_WEB.WebPage.Theme <= #SYS_THEME<2015blue>
Endroutine
by raulo
Wed Mar 07, 2018 12:46 pm
Forum: Questions & Answers
Topic: adding theme to reusable part embed in simple html page
Replies: 4
Views: 8492

Re: adding theme to reusable part embed in simple html page

thank you for the reply. I tried adding the line #SYS_WEB.WebPage.Theme <= #SYS_THEME<2015Blue> in a method, then invoke the method first from the html web page, but no change at all. the theme change is ignored.
by raulo
Wed Mar 07, 2018 1:51 am
Forum: Questions & Answers
Topic: adding theme to reusable part embed in simple html page
Replies: 4
Views: 8492

adding theme to reusable part embed in simple html page

Hi guys,

If you use a reusable part, inside an external html page (not a LANSA Web Page), meaning, adding lines like this to the html:

<script src="/xxxpgmlib/lansa_14_1_50_0/lansa.js"></script>
...
LANSA.init({sys:"xxxpgmlib",part:"xxx",lang:{ def:"ENG",code: { "ENG":"en-US", "FRA":"fr-FR", "JPN ...