Skip to Content
author's profile photo Former Member
Former Member

oitem.GetbyKey()

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 06:49 AM

    Hi Ercole,

    you do your work in this way:

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

    {

    // perform your action.

    }

    hope it helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2007 at 06:05 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.