close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Can I pass New IDs from one Multiple Insert to another?

Thread began 3/14/2013 10:27 am by troyd | Last modified 3/14/2013 2:43 pm by Jason Byrnes | 1202 views | 5 replies |

troyd

Can I pass New IDs from one Multiple Insert to another?

In short, here is what I am trying to do.

I have a Multiple Insert behavior (5 iterations). Working great.
I then need a second Multiple Insert behavior that inserts into a second relational table, using the newly created id for each.

This is something I do all the time using the Single Insert behavior. The SESSION ID is easy to use. But the Multiple Insert behavior doesn't seem to create any session array that I could use.

Am I overlooking something or is this not possible? I tried going with the Manage Relational Table but hit a road block when it asks for the Main key value.

Thanks,
TroyD

Sign in to reply to this post

Jason ByrnesWebAssist

No, the multiple insert behavior does not save the inserted IDs to a session.

Sign in to reply to this post

troyd

That's what I was afraid of.
Is there a way that I could post them to a second results page and go from there?

In other words, they are inserted as new, but then immediately appear on a second page in a result list containing only those new records?

I've thought about maybe trying to query the highest table id number right before the first insert, then query them on the second page based on that data. But I wanted to check on a cleaner method. There is a chance for error doing it this way because of the off chance that more than one person is inserting records at the exact same time. Thoughts?

Thanks
TroyD

Sign in to reply to this post

Jason ByrnesWebAssist

i think the only way that could be done is to have a new column that gets a 0 value on initial insert. on the next page, you can return the records with a 0 value for that column, then update that column to 1.

Sign in to reply to this post

troyd

Very good idea Jason. Thanks so much.

I'm going to take your idea and tweak it a little by tagging one of the current columns. I love creative ideas.

Thanks Again,

TroyD

Sign in to reply to this post

Jason ByrnesWebAssist

I'm always afraid to throw out ideas like that. In the past I have made similar suggestions and the person asking the question had no idea how that would work...

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...