close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Recordset not Available for E-Mail

Thread began 8/12/2014 5:54 am by Mike Perry | Last modified 8/12/2014 9:43 am by Jason Byrnes | 1632 views | 7 replies |

Mike Perry

Recordset not Available for E-Mail

I've had this issue before -- correcting it required adding the Recordsets to the page calling UE, and adding the 'global' statement to the required Recordset variables. I've tried the same here, but the e-mail doesn't include the requested data.

Both the calling page and the template are attached -- thanks. .

Mike

Sign in to reply to this post

Jason ByrnesWebAssist

Think order of operations.

the code order on your page is:

* Create recordsets that look up the order info

* Store the order info to the database

* Send the email containing the order info using the recordsets

Since the recordsets are created before the information is saved to the databases, they are not returning a result.

you need to reorder the code so the recordsets come after saving the information to the database and before sending the email for them to work.

Sign in to reply to this post

Mike Perry

A new set of eyes sure helps -- especially ridiculously simple problems like this.

A quick question -- can I "separate" all the functions into separate <?php ?> sections (recordsets, inserts, and the GetSQLValueString code) without causing problems? They get combined when behaviors are added, and it gets confusing rearranging them. . .

Thanks, Jason. . .

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, you can create separate code blocks for each function.

Sign in to reply to this post

Mike Perry

One more --

I'm now getting double e-mails; first without the data, and a second one with it. Is there a way to delay triggering the e-mail transmission until after the page loads? Is there an "after page loads" trigger available?

Thanks,

ETA: Actually I'm getting phantom empty record inserts as well. No other "Insert Record" behaviors in the associated pages. . .

Sign in to reply to this post

Jason ByrnesWebAssist

use the recordset not empty trigger, there is not an after page loads trigger that you could use.

Sign in to reply to this post

Mike Perry

I think that cured it . .

Sign in to reply to this post

Jason ByrnesWebAssist

Cool, glad to hear it is working.

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