cancel
Showing results for 
Search instead for 
Did you mean: 

oitem.GetbyKey()

Former Member
0 Kudos

I'm try to do oitem.GetbyKey() via VB.net 2005. The ItemCode has a space inside.

Ex: REV_MOTORINI PM

The code does not return error but oitem doesn't retrieve the object links to the master data with the name ItemCode

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ercole,

you do your work in this way:

if (oItem.GetByKey("REV_MOTORINI PM) == true)

{

// perform your action.

}

hope it helps.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ercole Conte,

You ghave to input the key that you wish to be searched within the oItem.GetbyKey(). Suppose if you would like to Search for REV_MOTORINI PM, then you would have to give it as oItem.GetbyKey("REV_MOTORINI PM") Provided that REV_MOTORINI PM is a value of the ItemCode of the table OITM.

Hope this helps,

Regards,

Siju Dasan