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 :
Microsoft Dynamics AX (Archived)

SalesTable ( form) Customer Reference

(0) ShareShare
ReportReport
Posted on by 3,945

hi all ,
having one small doubt
In SalesTable(form) a field is there namely WareHouse. In this form(SalesTable) it is present at two places that is Sales Order Line and LinesDetail->Product.
When we change the WareHouse from  LinesDetail->Product , then that change is reflecting to the Sales Order Line.WareHouse as well.
Same thing i want For Customer Reference , i have added one field in Sales Order Line TabPage and i want that when this Customer Reference will change then the same should reflect in Sales Order Line(tabPage).CustomerRefernce.
So , guys please give some idea how i achieve this .
Thanks
Gautam 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    simply write your code in modifiedfield (method) of table, in which you have added new field.

    put a new case in under switch

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,064 Super User 2025 Season 2 on at

    Hi Gautam,

    I'm not sure if I understand your question correctly. You are referring to the field Warehouse on Sales Order Line and LineDetails-> Product. In fact it is the same field placed on two different places.

    For your field Customer Reference I assume it is one new field on the SalesLine table? Then you can place the field on several places like the grid and details pages. If it is a table field, you don't have to add coding.

  • Gautam Profile Picture
    3,945 on at

    hi Andre,

    here Customer Reference is field from two different table that is SalesLine and SalesTable

    but there Warehouse is from same table

  • Gautam Profile Picture
    3,945 on at

    hi Sohaib

    i have written the same what you have told.

    But the problem is that data only show when i refresh the form.

    so tell me

  • Verified answer
    syed baber Profile Picture
    11,633 on at

    Hi Gautam,

    You need to call reread and refresh on the datasource to see the updated data. On datasource field's modified method, write the following line of code:

    SalesLine_ds.reread()

    SalesLine_ds.refresh()

    This is based on the assumption that you update the field on SalesLine table.

    Please verify and let me know if you have any further queries.

    Thanks,

    Baber.

  • Verified answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    yeah as baber mentioned, refresh your DS, and it should be working fine

  • Gautam Profile Picture
    3,945 on at

    Ya ya its working fine sohaib

    Thanks

  • syed baber Profile Picture
    11,633 on at

    Hi Gautam,

    Please mark my answer as verified it if resolves your issue.

    Thanks,

    Baber.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans