Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Getting Item ID Before Document Saved.

I have a parent child relationship between an orders and a products list (part of an order). In the order forms you can add products.

That's working fine, but the problem I have is that obviously the new order doesn't get an ID until it's saved, meaning the products can't be related back to an order.

Just wondering if anyone knew a good way to work around this.

The options I've thought of so far are:-
  1. Using an independent counter/field I can increment on form load using SPS, instead of the item ID,
  2. On NewForm.asp load, create a new order on the fly using SPS and then send them to the edit form for that new document.
  3. somehow tag the new products and update them after the order has been submitted with a workflow running on the order list.
Any advice/suggestions?

Viewing all articles
Browse latest Browse all 6517

Trending Articles