I have a date field in a form that users are able to change many documents with an agent that calls a DLL (ndbform1.dll if anyone is familiar with it) that brought up a dialog box with a calendar. By selecting a date and hitting OK, the new date would be populated in the aforementioned field.
It worked fine with releases 4.x and 5.x, but a few users have been upgraded to 6.5.4 and the agent no longer works. The calendar dialog box is not displayed at all.
If someone can help me fix it or point me in the direction of an easy alternative, that would be greatly appreciated.
Here is my code for the agent, which works in an action button as well (which calls another agent for populating the field):
result := @DbCommand(“Form1”:“NoCache”;“Calendar”;“Choose new call back date”;@Today;“T”);
ENVIRONMENT ENVresult:=@Text(result);
@If(ENVresult = “Current transaction aborted”; @Return(DateCallBack); (@Command([ToolsRunMacro]; “(HIDDEN Change call back date)”)));
@All
Here’s the 2nd “hidden” agent:
FIELD DateCallBack := DateCallBack;
result := @TextToTime(@Environment(“ENVresult”));
@SetField(“DateCallBack”;result);
SELECT @All
FYI: the environment variable in the notes.ini for ENVresult is stored as:
$ENVresult=The necessary external database driver cannot be located
If you have some ideas and need more information, let me know and I’ll reply quickly.