Hi still very new with outsystems. While completing the Order Management application I set the name of the assign and set the value. However when i go to set the value it states that I hav the wrong data type. Im not sure where i messed up at as I have been following the steps verbatim. All help is appreciated
Hi @Jezreel Miller ,
The document mentions it correctly, and I have highlighted the relevant section in the image below regarding the amount assignment. Please check.
If possible please share your oml file i will do the changes and let you know.
Thanks,
Vipin Yadav
Hello @Jezreel Miller ,
It seems that you're trying to assign the Amount (a Decimal value resulting from the calculation Quantity * Price) to the OrderId field, which expects an Order Identifier data type.
This is causing the data type mismatch error. To fix this, make sure you are assigning the calculated Amount to a field or variable that is of type Decimal (e.g., Amount), and ensure the OrderId is being assigned an appropriate identifier value, such as GetOrderItemById.List.Current.OrderItem.OrderId.
Let me know if you need additional help!
Hi Mihai, thank you fo your response i will give it a shot and let you know the results :)
You are doing wrong assiment for Quanity * Price, you are assigning this value in order id.
Correct way is you can assigne Quanity * Price in the amount.
example -
GetOrderitemByld.List.Current.Orderitem.Amount = GetOrderitemByld.List.Current.Orderitem.Quanity * GetItemyid.List.Current.Item.Price
hi thanks for the info. if i am doing it wrong then that would me something is off with the steps they hve provided me with. I followed them exactly. I will give your method a try in a few and let you know. thank. you for your help. Attached below is the instructions i was following
Thank you I appreciate your help. When i return home I will share my OML file
Ok @Jezreel Miller .
You are the man, I have corrected it. Thank you for your assistance, until next time!