PDA

View Full Version : Wordpress WebApp issue



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

Chris Spencer
8-Jan-2017, 03:16 AM
Do I need to pass this on to Mike Peat?

Harm Wibier
8-Jan-2017, 10:36 AM
Do I need to pass this on to Mike Peat?
Just did..

Mike Peat
8-Jan-2017, 10:42 AM
Reading now...

Mike Peat
9-Jan-2017, 07:50 AM
Chris (and anybody else as quick off the mark to test DF4WP with the 19.0 Alpha 1)

Attached a new version of the DF4WP library which seems to do the job. Tested, but not extensively so - please feedback any issues.

Mike

Chris Spencer
10-Jan-2017, 12:39 AM
Mike
Thanks
Seems to have fixed issues, will test more and report

Mike Peat
11-Jan-2017, 07:25 AM
Thanks for the feedback Chris - let me know (here, on in the DF4WP forum) if you encounter problems.

Mike