i am working on Navision with .Net where i am trying to have single Instance(till Navision closes) once we establish connection with .Net code.
create a code unit : - 50001
IF CreateRTCCOMObject THEN BEGIN
CreateRTCCOMObject() : Boolean
IF ISCLEAR(RTCCOMObject) THEN BEGIN
IF CREATE(RTCCOMObject,FALSE,ISSERVICETIER) THEN
RTCCOMObject : automation server variable
excution : calling from customer / vendor card Button (On push)
It shows (Created) from both forms
Expected Output :
click from 1st form - message (created) should pop up.
click on 2nd form - message (already created) should pop up
note : i want single instance not recreating it … Actually the instance dies on complete execution of function… .