cancel
Showing results for 
Search instead for 
Did you mean: 

Add Time in the No object Table

Former Member
0 Kudos

Hi All,

In my form i am using No object table in this i am trying to add the time to the table. But it is added as '0'. My Code Follows:-

PSSIT_PEY2.UserFields.Fields.Item("U_Frtime").Value = oLFromTimeEdit.Value

PSSIT_PEY2.UserFields.Fields.Item("U_Totime").Value = oLToTimeEdit.Value

How can added the time correctly?

Thanks in Advance.

Regards,

Madhavi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

PSSIT_PEY2.UserFields.Fields.Item("U_Frtime").Value = oLFromTimeEdit.String // instead of value

PSSIT_PEY2.UserFields.Fields.Item("U_Totime").Value = oLToTimeEdit.String // instead of value

in SBO, the time should be entered at UI is in format like 1100 or 1230 or 1320.

and check while creating the UDF, the default value should not be 0.

Former Member
0 Kudos

Hi anuj singh,

If i give string instead of value also not adding correctly. I didn't set the default value as 0 but it is added as 0 in the table.

Regards,

Madhavi

Former Member
0 Kudos

Madhvi,

what value comes in your time variable.

take the value in the variable from the edit text.

and check it. is your code giving some error.

Answers (1)

Answers (1)

Former Member
0 Kudos

HI Madhavi,

Please check the data type of your UDFs. Are they of Date and Time type.

SAPbobsCOM.BoFieldTypes.db_Date & SAPbobsCOM.BoFldSubTypes.st_Time

I think your UDFs are of integer type.

Former Member
0 Kudos

Hi anuj singh,

It is in time format only but not added in the table.

Regards,

Madhavi