Embed a Reusable Part in a 3rd Party Web Page
Posted: Fri Nov 01, 2019 12:58 pm
I have a simple RP a PRIM_PANL containing a FilePicker. The file picker has a logo and text.
In a WEBEVENT fulction I have
<div id="LANSAFrame" style="width:50px;height:50px;">
<script type="text/javascript">
var myPart = null;
LANSA.init({sys:"dc-pgmlib",part:"V40",lang:{ def:"ENG",code: { "ENG":"en-AU" } },splash:{ limg:"spin",txt:"Loading..." } } );
LANSA.showPart( "GEN0006", "LANSAFrame", function( newPart ) {
myPart = newPart;
LANSA.setProperty( myPart, "EntityType", "<RDML MERGE="WEBETC_CT">" );
LANSA.setProperty( myPart, "EntityId", "<RDML MERGE="WEBEID_CT">" );
LANSA.setProperty( myPart, "UserId", "<RDML MERGE="WEBUSR_CT">" );
LANSA.setProperty( myPart, "UploadCAPTION", "Select a project" );
LANSA.invokeMethod( myPart, "CheckAuthority" );
});
</script>
This is executing and the #SYS_WEB.Console.Log entries in the RP show that the code is executing but there is nothing on the screen. The PRIM_PANL and FilePicker are both set to visible but they're not.
Any ideas?
In a WEBEVENT fulction I have
<div id="LANSAFrame" style="width:50px;height:50px;">
<script type="text/javascript">
var myPart = null;
LANSA.init({sys:"dc-pgmlib",part:"V40",lang:{ def:"ENG",code: { "ENG":"en-AU" } },splash:{ limg:"spin",txt:"Loading..." } } );
LANSA.showPart( "GEN0006", "LANSAFrame", function( newPart ) {
myPart = newPart;
LANSA.setProperty( myPart, "EntityType", "<RDML MERGE="WEBETC_CT">" );
LANSA.setProperty( myPart, "EntityId", "<RDML MERGE="WEBEID_CT">" );
LANSA.setProperty( myPart, "UserId", "<RDML MERGE="WEBUSR_CT">" );
LANSA.setProperty( myPart, "UploadCAPTION", "Select a project" );
LANSA.invokeMethod( myPart, "CheckAuthority" );
});
</script>
This is executing and the #SYS_WEB.Console.Log entries in the RP show that the code is executing but there is nothing on the screen. The PRIM_PANL and FilePicker are both set to visible but they're not.
Any ideas?