close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Insert ID not set for subsequent transaction

Thread began 6/14/2012 1:33 pm by neo314 | Last modified 6/15/2012 1:51 pm by neo314 | 1103 views | 4 replies |

neo314

SOLVED: Insert ID not set for subsequent transaction

I have a gallery program in which an image can have a title and description as well. The Image's name determined by a formula, so the flow is:


  1. Insert the Title & Description
  2. Upload file and rename based on a formula which includes the Insert ID and works.
  3. Update the gallery's Icon Image ID to be the Insert ID if the icon has not been set.
  4. Update the Image record to include the new file name.


What is strange is that the Insert ID is referenced in steps 2, 3, & 4, but works in 2 & 4 correctly and inserts the last used value in step 3.


In other words, if I just inserted image 7 into gallery 3; created gallery 4 (new so no icon set yet); and add an image to gallery 4, the image has the correct Insert ID in the name and the WHERE clause for step for is correct because the file name is updated correctly, BUT gallery 4 gets 7 assigned to the icon's ID foreign key field.


The order of the code is correct, so I cannot understand what is happening here.

Sign in to reply to this post

Jason ByrnesWebAssist

please send files so I can examine the code. Without seeing the code, I will not be able to tell what is wrong.

Sign in to reply to this post

neo314

Would you mind opening a support case. I prefer not to post the file in the forum.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

neo314

Never mind. I figured it out. The trigger is allowing the tranaction on page load when it should be the previous value (duh).

Sorry for any inconvenience. Let me take this opportunity to beg for the ability to create formula triggers like IF form is posted AND this value = 0...

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...