I am trying to add some functionality to Inotes using the Formsxx_9.ntf.
I have succeeded in adding some menu entries which will start agents in the users mail application.
What i am trying to do now is to switch the menu entries on or off depending on etries in a specific profile document in the application.
What i understood from studying Forms_9.ntf and the available documentation (Redbook) is that INotes gives me access to profile documents using this code. @DbCommand("haiku";"h_GetProfileField";"calendarprofile";"Owner")
so i tried the following in the Custom_JS_Lite subform in Forms9_x.nsf
in this function
function Custom_Scene_Actions_Lite(s_MenuID)
...
// Fetch myProfile document values
var myAction = {@DbCommand("Haiku";"h_GetProfileField";"myProfile";"myAction")};
alert("myAction var: " + myAction);
... Before i add the menu items to the menu.
But i am obviously missing something here. Because loading this code results in having a blank Inotes Screen.
So what am i missing?
And it ist not the alert that is giving me trouble. If i remove this line and add only the first one the result is the same.
Thank you in advance for anserring this question.