In-Process, looking for an equivalent of JS X.CreateObjForm

423 views
Skip to first unread message

Liviu Buligan

unread,
Feb 11, 2022, 11:04:05 AM2/11/22
to Softone Developers Network
Hi guys,
I have an in-process dll that uses CreateModule to craete a new record of an object, and then save it using PostData();
I need the form to be opened and shown before saving,  like the Js function X.CreateObjForm.
Can you please help?

Thanks!

Νίκος Μάλιακκας

unread,
Feb 14, 2022, 3:47:04 PM2/14/22
to Softone Developers Network
I am afraid you will have to use some workarounds.
I am using an intermediate dialog object , pass the parameters needed to open the new document with javascript and X.CreateObjForm
and call the intermediate with XSupport.ExecS1Command (.net)
The problem is when you also need to pass the details dataset and when the way to construct it , is not a sql query, but it is at memory.
If this is the case, then you can try to use the XGlobal object to "send" the datasets and from the javascript in the target object , to populate them.

Liviu Buligan

unread,
Feb 16, 2022, 2:52:44 PM2/16/22
to Softone Developers Network
Thank you Nikos. i've got the point. 
I used a custom windows form with the necessary data and create the object but still, I bang my head to a closed door. My intention was to post a new record in a custom object (like an error log, but with some comments from the user) and then raise an exception to stop the save process. But the exception causes the rollback for my object  transaction as well, being included in the same SQL begin/commit cycle
It is important to know for sure that there is no simple alternative CreteObjForm function from JS. 
Thank you for your answer.



Pericles Argyriades

unread,
Jun 1, 2025, 5:50:00 AM6/1/25
to Softone Developers Network
Three years later, i am at the same need. Have you find anything new that can help?
Reply all
Reply to author
Forward
0 new messages