web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    RE: Showing the price of an Item based on item select.

    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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans