Chris Spencer
6-Jan-2017, 06:18 PM
Migrating a webapp that is embedded in WP gave some issues
First issue was the function defined in cCryptoAES.pkg that is part of the WordPress library is define now in CryptoGrpaherConstants.pkg and needs to be removed from
the wordpress librarys definition as below
// remove this in cCryptoAES.pkg
//External_Function CryptSetKeyParam "CryptSetKeyParam" advapi32.dll ;
// Handle hKey ;
// UInteger dwParam ;
// Pointer pbdata ;
// UInteger dwFlags ;
// Returns Boolean
Secondly there is an forward reference error now on compile in cWPWebAppView.pkg
// Part of the CallAction interface. Used to return a view's object definition to the client.
// Returns a structure of objects and properties for nested DDO and cWebObjects
// These are returned to the client as serialized JSON.
// sViewName - Is the name of the view to be loaded
// sInvokingView - Is the name of the view that triggered the LoadView call. This is mostly used
// in the cWebDialog class when activating a modal dialog.
// bPreLoaded - This is true if the view has already been initialized during a previous call
// which happens if pbOverrideStateOnShow.
{ Visibility=Private }
Function LoadView String sViewName String sInvokingView Boolean bPreLoaded Returns Boolean
Handle hoView
Handle[] aDDOViews
Boolean bAllowAccess bInWP bUseWPLogin bWPLoggedIn
tWebObjectDef[] aObjectDefs
tWebDDODef DDODef
String sPreLoad
Get InWordPress to bInWP
Get WPInfo "bWPUserLoggedIn" to bWPLoggedIn
Get pbUseWPLogin to bUseWPLogin
// Get a handle to the view we are loading....
Get GetAjaxWebAppView of ghoWebControlLocator sViewName to hoView
If (hoView <> C_WebUnresolvedObject) Begin
// Set up the web properties system to allow WebGet to access this view....
Set phoLoadView to hoView
Send ProcessLoadViewSyncProps to ghoSyncPropsHandler hoView
- Error 4306: C:\TUFware\Development-19.0\Clients\CWAT\AppSrc\cWPWebApp.pkg (ln 475) Forward reference not resolved MSG_PROCESSLOADVIEWSYNCPROPS
First issue was the function defined in cCryptoAES.pkg that is part of the WordPress library is define now in CryptoGrpaherConstants.pkg and needs to be removed from
the wordpress librarys definition as below
// remove this in cCryptoAES.pkg
//External_Function CryptSetKeyParam "CryptSetKeyParam" advapi32.dll ;
// Handle hKey ;
// UInteger dwParam ;
// Pointer pbdata ;
// UInteger dwFlags ;
// Returns Boolean
Secondly there is an forward reference error now on compile in cWPWebAppView.pkg
// Part of the CallAction interface. Used to return a view's object definition to the client.
// Returns a structure of objects and properties for nested DDO and cWebObjects
// These are returned to the client as serialized JSON.
// sViewName - Is the name of the view to be loaded
// sInvokingView - Is the name of the view that triggered the LoadView call. This is mostly used
// in the cWebDialog class when activating a modal dialog.
// bPreLoaded - This is true if the view has already been initialized during a previous call
// which happens if pbOverrideStateOnShow.
{ Visibility=Private }
Function LoadView String sViewName String sInvokingView Boolean bPreLoaded Returns Boolean
Handle hoView
Handle[] aDDOViews
Boolean bAllowAccess bInWP bUseWPLogin bWPLoggedIn
tWebObjectDef[] aObjectDefs
tWebDDODef DDODef
String sPreLoad
Get InWordPress to bInWP
Get WPInfo "bWPUserLoggedIn" to bWPLoggedIn
Get pbUseWPLogin to bUseWPLogin
// Get a handle to the view we are loading....
Get GetAjaxWebAppView of ghoWebControlLocator sViewName to hoView
If (hoView <> C_WebUnresolvedObject) Begin
// Set up the web properties system to allow WebGet to access this view....
Set phoLoadView to hoView
Send ProcessLoadViewSyncProps to ghoSyncPropsHandler hoView
- Error 4306: C:\TUFware\Development-19.0\Clients\CWAT\AppSrc\cWPWebApp.pkg (ln 475) Forward reference not resolved MSG_PROCESSLOADVIEWSYNCPROPS