In my inventory/product ordering app, is it possible to add a Product to an Order directly from the Products_Details view, or Products Deck View?
Iโd like User to be able to browse Products and add them to their Order directly from there, the Products table, rather than opening the Orders, then Add and Order Detail then going through all the De-Refs to find that Product.
It looks like I could do this with an Action like โGo to another view in this appโ, or โCopy this row and edit the copyโ, or
โGrouped execute a series of actionsโ
TYTY!!
I would think you would have an orders table, and a child table with the order line itemsโฆ And basically a quick linktoform action that populates the child order record without the parent orderโฆ Strip back the view to just show the product name and maybe a quantity pre populated with 1, then the save button feels like a confirmationโฆ And hopefully your could have some creative way of dumping the user back where they wereโฆ (Easy if doing it from the detail viewโฆ Cause you would just have another action that takes them to that referenced product id.)
Then as they are adding products you would have a slice that shows items added by that user and without confirmed order on the child order products tableโฆ And the cart would show all of those itemsโฆ (You could even make the cart name equal to the current count concatenated with โcartโ)
Then the magic happens, while reviewing their cart, where there would be +, -, and x actions to change the quantityโฆ They then can click an action on the table, I would call it checkoutโฆ
It would linktoform to create an order. Showing them their list of products, and a totalโฆ Then they can click another action โfinalizeโ with a confirmation. This officially ties the children to their open orderโฆ And locks it down, sends an email, etcโฆ
@Grant_Stead Thanks Brosef!
I got this working, easier than I thought, as usual!
1st time working with LINKTOFORM().
Great ideas, thx!
I really need to play/learn more b/f asking for help.
You are so great at helping and I thank you for me and everyone else that you thoughtfully and expertly help!
Hi Stephen - When I saw your post, I thought, yes, I need that, so I set up a test app with a parent and child table linked by the child ID (initial value of UniqueID() in the child row).
Then I created an in-line action in the parent deck view that ran actions to set the child ID in the parent row to UniqueID(), and then copy that child ID across to the child form, using LinkToForm to open the child form and add in the child ID value generated in the parent deck view.
It doesnโt work.
Iโm guessing your orders and products tables are related, so how did you โrelateโ them using the LinkToForm?
Thanks for any info you can provide.
Please ignore the above post. Sorted it. Schoolboy error.
User | Count |
---|---|
14 | |
11 | |
9 | |
7 | |
4 |