Hi there,
I'm currently working on a K2 Smartform project that involves what I imagine to be associative SmartObjects. I've seen a few examples and demo's performing exactly what I wish to do so I'm pretty sure it's possible.
Consider the following scenario:
I have 2 SmartObjects with the following properties:
Order:
- ID Auto Number
- Description Text
- Requester Text
- Products ID Multivalue
Product:
- ID Auto Number
- Name Text
- Description Text
- Price Decimal
I've configured an association on the Product SmartObject ID with the Products ID
I have an Order form allowing the user to capture the order descirption, requester and associated products. Assume that none of the products have been precaptured - meaning every order will have its own set of unique products.
It is on the associated products that I'm having a problem. I can't seem to figure out how I would create this order with a list of products.
I'd imagine there should be a way when executing the Order Create method to write all of the included Product IDs to the multivalue Product ID column.
Furthermore, I'd probably only want to only create those Products to the Product SmartObject when the Order Create Method is executed.
Any help on this would be greatly appreciated.
Thanks in advance,
Sean