on 03-25-2015 10:44 AM
Hi,
This is rahul.I have an issue.When I am open user defined form via Workflow.Getting me form id changed in form load event.If Form Id ABC Then Getting me ABC0,ABC1,ABC3....
Please tell me about this issue... i am Stuck...?????
Thanks & Regards
Rahul
Hi Rahul,
It's possible to have multiple instances of the same form open. Such as when you open twice the Invoice form.
You can capture the ID using the arguments passed on the FormLoadEvent (usually pVal.FormUID).
To have only one instance you can change the XML of your form to a fixed value.
Best regards,
Pedro Magueija
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pedro,
i am already the arguments passed on the FormLoadEvent (usually pVal.FormUID).
Here My Code...
Public Sub ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean)
Select Case pVal.EventType
Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.FormTypeEx = "UDO_FT_B1ODTO" And pVal.Before_Action = False
objform = objMain.objApplication.Forms.Item(FormUID)
MessageBox.Show(objform.UniqueID)
End Select
End Sub
Get form id UDO_FT_B1ODTO0,UDO_FT_B1ODTO1,UDO_FT_B1ODTO2
Hi Rahul,
Then that is the behavior. Since you are using the default UDO form, and the setting in the UniqueID gets "ignored", the only way I see it is to create an addon and do the loading of the form via the LoadBatchActions.
Anyway why do you need to have only one form id?
Best regards,
Pedro Magueija
Hi Rahul,
You don't need to have only one id for that. The code you showed above will still work for all the instances of the form that you open.
In example:
If you open your form and disable an item. Then you open a second instance of the form the item will also be disabled.
Best regards,
Pedro Magueija
User | Count |
---|---|
89 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.