08-22-2017 11:00 AM - edited 02-04-2024 12:50 AM
Hi,
I created UDO with all menu's properties valorized by sdk, but when I run the project the menu item doesn't show. To show it I need to re-choose the company, do someone know how show it immediatly?
Thank you
Gianni
Here my code:
var oUserObjectMD = (UserObjectsMD)Globals.GlobalCompany.GetBusinessObject(BoObjectTypes.oUserObjectsMD);
oUserObjectMD.ObjectType = BoUDOObjType.boud_MasterData;
oUserObjectMD.CanFind = BoYesNoEnum.tYES;
oUserObjectMD.Code = "TestCode";
oUserObjectMD.Name = "TestName";
oUserObjectMD.TableName = "TT_TableTest";
oUserObjectMD.CanCreateDefaultForm = BoYesNoEnum.tYES;
oUserObjectMD.EnableEnhancedForm = BoYesNoEnum.tYES;
oUserObjectMD.MenuCaption = "My UDO";
oUserObjectMD.FatherMenuID = 3328;
oUserObjectMD.Position = 1;
oUserObjectMD.MenuUID = "MyUDO";
oUserObjectMD.MenuItem = BoYesNoEnum.tYES;
oUserObjectMD.FormColumns.FormColumnAlias = "Code";
oUserObjectMD.FormColumns.FormColumnDescription = "Code";
oUserObjectMD.FormColumns.Add();
oUserObjectMD.FindColumns.ColumnAlias = "Code";
oUserObjectMD.FindColumns.ColumnDescription = "Color Code";
oUserObjectMD.FindColumns.Add();
var result = oUserObjectMD.Add() == 0;
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
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.