Hi
Jason in: \ AppHtml \ Custom \ ... is include in a current sscript
I want to call the function 'enablePushNotifications = function () {.....'.
I built the cWebPush.pkg:
this is used in Dashboard.wo:
Use cWbPushUp.pkg
Object oWebPush is a cWebPushNotifications
Procedure OnActivatePush Boolean bActivate
Forward Send OnActivatePush bActivate
End_Procedure
End_Object
.
.
.
....Procedure OnClick
Send OnActivatePush True
End_Procedure
the cWebPush.pkg:
Use cWebObject.pkg
Class cWebPushNotifications is a cWebObject
Procedure Construct_Object
Forward Send Construct_Object
{WebProperty = True}
Property Boolean psEnablePushNotification True
Set psJSClass to "enablePushNotifications" // pushup in WebGeolocation.js 09.03.2019
End_Procedure
Procedure End_Construct_Object
Forward Send End_Construct_Object
WebPublishProcedure OnActivatePush
End_Procedure
{MethodType = Event}
Procedure OnActivatePush Boolean bActivate
Send ClientAction "enablePushNotifications" bActivate
End_Procedure
End_Class
in Dashboard i want to start the procedure with 'Send OnActivatePush True' and get Error # invalid message MSG_ONACTIVATEPUSH DF ERROR #: 98 '
Ralf