close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Session Value on DataAssist page with DFP

Thread began 12/14/2009 12:50 am by bjgarner241692 | Last modified 12/16/2009 12:37 pm by Jason Byrnes | 1794 views | 7 replies |

bjgarner241692

Session Value on DataAssist page with DFP

I am trying to set a Session Value so that when a user inserts a record, it sets the value from a drop down list on the Insert Page as a Session Value, so that I can then use that Session Value to preset the selected value of that dropdown when they return to the page to insert the next record.

I have tried to set it on the Insert Page, triggered by Insert.
I have tried to set it on the Details Page, triggered by any form post as well as before page load.

Nothing seems to work. I cannot trigger the Session Value.

I cannot use Request.Form because of Digital File Pro and WA_DFP_UploadObj.Form will not work either.

Sign in to reply to this post

Jason ByrnesWebAssist

It may be that the Insert record behavior is redirecting the page before the session can be set.


Send a copy of your page so I can take a look at the code to get an idea of where the problem is.

Sign in to reply to this post

bjgarner241692

Detail page attached.

Attached Files
documents_Detail.zip
Sign in to reply to this post

bjgarner241692

Insert page attached.
These attempts were not implemented together. It's one or the other.
By default the Session code is inserted just after the include statements on the Insert page but the page will not load if I leave it there so I moved it down to just above </head>.

That allows it to load, but the Session Value does not set.

Attached Files
documents_Insert.zip
Sign in to reply to this post

Jason ByrnesWebAssist

There is no form past being made to the detail page, so the code on the detail page for setting the session value will never be triggered.


On the insert page, the code for setting the session variable needs to be after the Upload File code , but before the Inssert Record code.


move the code at lines 98 - 102:

<%
if (cStr(WA_DFP_UploadObj.Form("Insert.x")) <> "") then
Session("AddressID") = "" & cStr(WA_DFP_UploadObj.Form("cAddressID")) & ""
end if
%>




to line 44 so that the session is created after the file is uploaded and before the record is inserted.

Sign in to reply to this post

bjgarner241692

Great thank-you.
I will give that a try and post back.

Sign in to reply to this post

bjgarner241692

Worked great.
With that, I am able to preselect the values of a couple of fields to ease entering lots of repeated data.

Sign in to reply to this post

Jason ByrnesWebAssist

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