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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Showing the price of an Item based on item select.

(0) ShareShare
ReportReport
Posted on by 495

Hello Everyone, 

I have a requirement to develop a form to show the item price of an item  based on the item that is selected. This is what I have done:

1. create a table with 2 fields ItemCode (extendedDataType---ItemID) and ItemSaleprice(this sales price should come form table InventTableModule  Price column)

I hava a job that gives me the item sales price here is the code:

static void CheckPriceITM(Args _args)
{
InventTableModule inventTableModule;
InventTable inventTable;
EcoResProduct ecoResProduct;

while select inventTable
where inventTable.ItemId == "105102"
join ecoResProduct
where ecoResProduct.RecId == inventTable.Product
join inventTableModule
where inventTableModule.ItemId == inventTable.ItemId
{

if (inventTableModule.ModuleType == ModuleInventPurchSales::Sales)

      {
         info(strFmt(" %1", inventTableModule.Price));

      }
  }
}

My question is,  now do i get the job and put it in a way that on the form, when I select an item it shows the price in another control.

Please help, thanks.

MY FORM

priceform.png

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Rustem Galiamov Profile Picture
    8,072 on at

    Hi Lionel07!

    You can try to use modified() method on form control (or field on data source table).

    You need to set auto declaration property of your ItemPrice control to Yes and then in modified() method of ItemNumber control you can set value to ItemPrice control.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dserp Profile Picture

dserp 4

#2
dekion Profile Picture

dekion 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans