I am currently in the midst of creating an mobile application to track inventory in a warehouse. The home page has an example list of items in the warehouse with two buttons that says "Loan" and "Return", and has an icon that has a QR Code scanner to locate an item based on the Image link. The application works by the user locating the item they intend to loan out by either scrolling through the list or using the QR Code Scanner on the top right hand corner of the screen, they tend tap on the loan button and fill out a form. Once done, the expression for the quantity in the list on the home page will be updated according to the item that is being loaned out.
The main problem that I am facing is that the update only happens to the first item on the list despite me choosing the 2nd or 3rd item.
Hi Yap,I've attached an oml as I have edited some of your actions inside your application.Please see attached oml and try it for yourself.Hope this will help you.
Regards,
Alec
Hi Yap,
When you redirect to your Return screen, you have mandatory inputs for quantity and id, but you do not require those parameters on the Loan screen, maybe you need to input also the id for the item on the Loan screen?
Cheers,
Hi Alec,
Could you further elaborate what you have done as I'm not able to solve it.
Shen.
You need to put something in the input parameters of your Loan screen (the ones I highlighted in green in my previous comment) so that you can make updates on a specific item.
I have put in something under the loan screen portion, but it still does not work. It only updates for the first item despite me tapping on the loan button for the second item. Is there any other way to make it work?
Shen
I understand OML file, thank you for your help! I appreciate it.
Hi Yep,
First you have to change the input parameter (InventoryInformationId) madatory property to "Yes" in Loan Screen, after that pass the Aggregate current value(GetInventoryInformations.List.Current.InventoryInformation.Id) in the Button on-click property.
if mandatory field not required. you can also do the same.
Thanks,
Ravi
Hi Ravi,
I have changed the input parameter (InventoryInformationId) mandatory portion to "Yes" in the loan screen and have input the (GetInventoryInformations.List.Current.InventoryInformation.Id) in the button on-click. However, it still does not update the item that I want to update. Example, I tapped on the loan button for the second item, but the update happens on the first item. Is there any other way to make it work?
i review the oml, problem in server action(Loan_QuantityOfInventory). Filter not applied in Aggregate.
Thank you for your help! I appreciate it.