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

Userfield in ITM1

Hello,

I have added a userfield in table ITM1. It's ok, the userfield appears in the table but i can't access it or update it.

I get the following message :"Invalid field name"

This is my code for updating the userfield :

oItem_Price.UserFields.Fields.Item("u_slb_coef3").Value = 12

Have you ever add a userfield in this table ??

Have you some idea ???

Thank you .

Jocelyn

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2007 at 07:33 AM

    Hi Jocelyn,

    You must ensure that the field name the exact same case as it is in the SQL database. U_SBO is not equal to u_sbo or u_Sbo. Open the table in SQL server and make sure what the field name and case is and try it again.

    Hope it helps,

    Adele

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2007 at 04:20 AM

    Jocelyn,

    R u using userdatasource or dbdatasource so that i can help u. Weather u cant able to insert the value aslo rite?

    Regards,

    Anitha

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2007 at 10:05 PM

    Hello Adele,

    You solved my problem, the error was in the case of the name of th userfield.

    Thanks a lot, you're great !

    Jocelyn

    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.