on 02-20-2017 4:09 PM - last edited on 02-03-2024 5:33 PM by postmig_api_4
Hi Евгений,
Try this:
Add your UDO as you did in your code.
After this run a code like this:
SAPbobsCOM.UserObjectsMD userObjectsMD = (SAPbobsCOM.UserObjectsMD)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD);
if(userObjectsMD.GetByKey(ObjectName))
{
userObjectsMD.FormSRF = formSRF;
userObjectsMD.RebuildEnhancedForm = BoYesNoEnum.tNO;
CodErro = userObjectsMD.Update();
this.ValidateAction();
}
To update the srf of your UDO. My formSRF is a string variable with my xml as string. After this, do the logout and login in your SAP B1.
Hope it helps.
Kind Regards,
Diego Lother
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so mutch Diego !!!!!!
Very pleased with you to keep communication 🙂
Hi,
Found this as well in the documentation:
RebuildEnhancedForm If needed, rebuild the UDO enhanced form (UDO form with header-line style).Field name: IsRebuild.
Perhaps setting that to Yes will rebuild the UDO form?
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,
Have you tried setting that property to the path to the SRF file? The documentation is a bit unclear but it seems to be the path.
The *.srf file of the UDO enhanced form (UDO form with header-line style).
Field name: NewFormSrf.
Length: 16 characters.
Also, the length of the field seems to be too short to contain the full XML.
I haven't tested this, but maybe you can give it a go and leave some feedback.
Good luck.
Pedro Magueija
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
106 | |
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.