web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Add new field Real Type at SalesLine Table

(0) ShareShare
ReportReport
Posted on by 2,075

Dear All,

i have some question for adding new field at some table.

Previously i had add string type to table salesline, once added to salesline form and i edit sales line, this field typeable.

later, when i add real type to table salesline, once added to salesline form and i edit sales line, this field is not typeable, i had try several real field using extendedtype same as unitprice/qty field, but those added new field still not typeable.

Please help to inform , is there any location/class where i can write some code to make this field typeable.

Please help.

Any advice would be nice.

Thank you.

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    Fields are editable by default; no special code should be needed. If other fields of the same record were editable, I could mean that you inadvertently set field property AllowEdit or Enabled to No.

    Nevertheless the SalesLine data source in SalesLine form is set with Allow Edit = No, therefore no fields can be edited there.

  • benjamin84 Profile Picture
    2,075 on at

    Hi Martin,

    i had check property setting and its already setted to Yes, as attached, 

    and i check SalesLine data source in SalesLine form is set with Allow Edit = No, but the origin field for unit price, qty, uom is enable, its only new field with type real that not typeable, my new field for string type is typeable.

    Please advice.

    Setting-_5F00_.png

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    If a data source is disabled, enabling individual fields make no difference.

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    Several possibilities come to mind. First of all, may you have opened the new string field to edit in the code? (If you are not the one who opened the field, you can check the autoDeclaration. If it is "No" search with fieldName in the from codes)

    Second, there may be a syncronization problem. Does it change when you press F5?

    You may have turned it off to edit in the form datasource or table.(check allowEdit and allowEditOnCreate properties)

    Finally, when you open the table directly, can you change the related field?

  • benjamin84 Profile Picture
    2,075 on at

    Hi Martin,

    already change and sett property for allow to Yes.

    After that, already logout and login again, clear reset usage data for all ( form, parameter, etc ) but still same. its not typeable.

    but my new field with string type typeable.

    thanks

    Datasource-salesline.png

  • benjamin84 Profile Picture
    2,075 on at

    Hi Ergun,

    i never do edit in the code, i usually only add new field and personalize at form to shown it.

    only me do the customization, no one else understand X++ in my office.

    i had compile, sinchronize and increment CIL too.

    never change at table or form datasource, 

    my practice is create new field and i can use those field directly.

    if i open at table, i can it directly.

    the strange thing is : if i create string type, its typeable, but if i create real/int its not typeable when i edit data at salesline form.

    thank you

  • ergun sahin Profile Picture
    8,826 Moderator on at

    Did you add a new field or duplicate an existing field

  • benjamin84 Profile Picture
    2,075 on at

    Hi Ergun,

    had tried both, duplicated from qtyordered and from unitprice ( since they typeable at salesline ), but still same, the created file is not typeable.

    thank you

  • ergun sahin Profile Picture
    8,826 Moderator on at

    Can you create new form and try change values (at least we can understand that are we have table (sql) problem or problem come from form)

  • benjamin84 Profile Picture
    2,075 on at

    HI Ergun,

    had tried create new form, drag table salesline to datasource ( no touch anything at property )

    compile, increment cil, then open my form and its typeable.

    strange why its not typeable at form salesline grid.

    is there any other location i could check ?

    Thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans