cancel
Showing results for 
Search instead for 
Did you mean: 

how to change the name of header of UDT through coding?

Former Member
0 Kudos

hi expert,

I am new in sap b1 sdk.so please help me.

Q:how to change the name of header of UDT through coding?

actually i want to change 'Name' to 'Email Address'.

thanks

sanoj yadav

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Sanoj,

Try This.....


  sbo_application.ActivateMenuItem("51213")  'Activates Your UDT with menuid 51213
                    Dim omat As SAPbouiCOM.Matrix
                    oform = sbo_application.Forms.GetFormByTypeAndCount("11059", "1")  'UDT Form Name
                   omat = oform.Items.Item("3").Specific   'Matirx Id in the UDT i.e Item =3
                   omat.Columns.Item("Name").TitleObject.Caption = "Email Address"  'changing the coloumn 'Name' to  'Email Address'

Thanks

Shafi

Former Member
0 Kudos

Hi Sanoj........

Code and Name these two fields are System Created. You can not change those field structures. But you can use different Fields as UDF as per your own Field Description.......

Regards,

Rahul

Former Member
0 Kudos

Hi Sanoj Yadav,

Code and Name are 2 reserved field headers for UDT. You are not allowed to change them.

Thanks,

Gordon

Former Member
0 Kudos

Hi Both of you,

Thanks for your reply, i just want to change the description of the field Name to "Email Address" which can be done from UI with CTRL+double click.

Is not that possible through sdk?

Regards

Sanoj

Former Member
0 Kudos

All those changes are in table SDIS (Dynamic Interface (Strings)). They are associated with specific forms. I don't know if this object is exposed to DI or not.