Quantcast
Channel: SAP Business One SDK
Viewing all articles
Browse latest Browse all 49

SAP Update EditSize for UserFieldsMD

$
0
0

Hello, i want to share with a code for updating UserFieldsMD EditSize

First you have to got the TableName of UserFieldsMD and the FieldID then;

Dim IRs as integer = 0

Dim _SizeInt As Integer = 50

oUserFieldMD as SAPbobsCOM.UserFieldsMD

oUserFieldMD.EditSize = _SizeInt

OUserFiedMD.Update()

IF IRs <> 0 then

msgBox ( "Object already exists in the database.")

Else

msgBox("Size Update.")

END IF

 

 

________________________

Hope That was helpful for you

Good Day

Amina D

Hello,

I want to share my experience with you about updating a UserFieldsMD:

 

oUserFieldMD.GetByKey(sTableName, sFieldID)

                       

                            oUserFieldMD.EditSize = _SizeInt

 

 

                            oUserFieldMD.Update()

                            Dim lRetCode As Integer = 0

                            lRetCode = oUserFieldMD.Update

                            If 0 <> lRetCode Then

 

 

                                MsgBox("Object already exists in the database.")

                            Else

                                MsgBox("Size updated.")

                            End If

 

I hope thant was a helpful for you.

Good Day.

Amina D

Hello,

I want to share my experience with you about updating a UserFieldsMD:

 

oUserFieldMD.GetByKey(sTableName, sFieldID)

                       

                            oUserFieldMD.EditSize = _SizeInt

 

 

                            oUserFieldMD.Update()

                            Dim lRetCode As Integer = 0

                            lRetCode = oUserFieldMD.Update

                            If 0 <> lRetCode Then

 

 

                                MsgBox("Object already exists in the database.")

                            Else

                                MsgBox("Size updated.")

                            End If

 

I hope thant was a helpful for you.

Good Day.

Amina D

 


Viewing all articles
Browse latest Browse all 49

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>