on 08-01-2017 3:23 PM - last edited on 02-04-2024 12:24 AM by postmig_api_4
Hi,
I'm using SAP Business One v9.2 and VS2015 for development. I created UDO with code like this.
var lUserObjectMD = (SAPbobsCOM.UserObjectsMD)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD);
lUserObjectMD.Code = 'xx';
lUserObjectMD.Name = 'yy';
lUserObjectMD.ObjectType = BoUDOObjType.boud_MasterData; lUserObjectMD.TableName = 'tbl';
...
This is ok.
Then i add udo form from VS2015 -> Add -> New Item ->SAP Business One UDO Form. Form named xx.b1f (not srf or xml)
Then design it(add some new fields and customize form items)
I call udo form from menu like this.
SAPbouiCOM.Form oUDO1 = Application.SBO_Application.OpenForm(SAPbouiCOM.BoFormObjectEnum.fo_UserDefinedObject, "xx", "");
If i execute "Save Udo To Database" then everything is ok. When i click the menu i can see my designed form .
But i want to make it add-on project. If i create add-on installer from VS2015->Sap BusinessOne Studio->Extension Package without "save udo to database" i saw the default udoform. I want to see my desingned form. How can i do this.
Thanks.
Hi,
Refer to SAP Note 2327050 for the same. Just save the UDO to one particular database once and then using the mentioned SAP Note, you can copy/import the UDO from one database to another.
Hope it helps!
Kind regards,
ANKIT CHAUHAN
SAP SME Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.