close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Set session

Thread began 3/29/2010 8:29 pm by nickj | Last modified 3/30/2010 9:26 am by nickj | 637 views | 4 replies |

nickj

Set session

I've worked all day on this with no luck. I need the detail page to have a session variable of the record ID just like "$_SESSION['WADA_Insert_tblVendors']". Unfortunately "$_SESSION['WADA_Insert_tblVendors']", which appears in the bindings Session and can be dragged onto the page, but will not work to filter a record set.

I need to create several additional recordsets based on it. ADT I could set a custom trigger to collect the record ID and pass it to a session variable.

Nick

Sign in to reply to this post

Russell CollinsBeta Tester

record ID

Hi,
The "$_SESSION['WADA_Insert_tblVendors']" is used on the insert page as there is no record in the database to view until the insert behaviour has occured (to enable any filtering).
After that point you could filter the recordset by the record ID using URL as in "record ID = URL parameter" this is in the simple view of the RS or if its going to be a set record ID use
"entered value"

If you are trying to add and view information to lookup tables your better to use the manage relational table behaviour. If you have 3 tables. Main, second and then the 3rd table(lookup) with info from both main and second

Regards

Russ

Sign in to reply to this post

nickj

Thanks for your quick response. The "$_SESSION['WADA_Insert_tblVendors']" appears in the detail page of the WDA set, it appears as a session variable but is not able to filter a record-set.

On the detail page I need to use a look-up table which, depending on the date will give a price. The query below should return a result only if the created date is before '2010-03-30 23:56:16! It returns a results for records later than the 30th.


I Also tried to edit the record-set but the filtering on "dateCreated". It did not work, it returned a result even for records with a date later than tblVendors.dateCreated = '2010-03-30 23:56:16'. In SQL this works but not on the page. WADA is doing something else altogether.

"SELECT label.descr_lbl AS electric
, vendorType.descr_lbl AS vend_type
, non_pro.descr_lbl AS Non_Profit
, vendorType.pre30_ven AS Pre30
, label.value_lbl AS Elec_qty
, tblVendors.*
FROM (((tblVendors
LEFT JOIN label AS non_pro ON non_pro.value_lbl=tblVendors.nonProfit)
LEFT JOIN vendorType ON vendorType.value_ven=tblVendors.vendorType)
LEFT JOIN label ON label.value_lbl=tblVendors.electric_ven)
WHERE label.group_lbl=4
AND non_pro.group_lbl=4
AND vendorType.group_ven=1
AND tblVendors.dateCreated = '2010-03-30 23:56:16'
AND tblVendors.ID = %s OR ( -1= %s AND ID= %s)",

Sign in to reply to this post

Russell CollinsBeta Tester

primary key on main table

Hi,
Once the data has been inserted from the form with the "$_SESSION['WADA_Insert_tblVendors']" it should be the last time you use it, its that "$_SESSION['WADA_Insert_tblVendors']" data that has now been inserted into the db as its primary key (VendorsID).
So any other pages need to now reference (or filter) this primary key "VendorID" now stored in your main table not the one that is temporarily created on the insert page.

Regards
Russ

ps have you successfully used "manage relational table" in DA before ?

Sign in to reply to this post

nickj

Thanks Russ, no I haven't used "manage relational table" .Is this Webassist behavior still available?

Nick

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