adding theme to reusable part embed in simple html page
Posted: Wed Mar 07, 2018 1:51 am
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":"ja-JP" } },splash:{ limg:"spin",txt:"Loading..." } } );
...
LANSA.showPart( "a034rp", "LANSAFrame", function(pPart)
as per the documentation here: http://docs.lansa.com/14/en/lansa017/index.htm#lansa/vlwebeng02_0035.htm
the reusable part is shown in the web page and you can interact with their events, methods and properties...
BUT, as reusable parts inherit the theme from the Web Page, how can we pass a Theme to this reusable part that now is living by itself in a non LANSA html page? We want the reusable part to have a blue theme, but currently everything is just gray.
Thank you,
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":"ja-JP" } },splash:{ limg:"spin",txt:"Loading..." } } );
...
LANSA.showPart( "a034rp", "LANSAFrame", function(pPart)
as per the documentation here: http://docs.lansa.com/14/en/lansa017/index.htm#lansa/vlwebeng02_0035.htm
the reusable part is shown in the web page and you can interact with their events, methods and properties...
Thank you,