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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Details page problem displaying extra data

Thread began 10/05/2010 2:41 pm by Brad Lawryk | Last modified 10/12/2010 9:57 pm by Brad Lawryk | 1607 views | 22 replies

Jason ByrnesWebAssist

the issue is in the way that Dreamweaver interprates the parameter's created by DataAssist.


When the DataAssist wizard creates a parameter, it uses the database column name to ensure that the parameter name will always be unique.

When the code for the parameter is written by Dreamweaver, it concatinates the parameter name and the recordset name seperated by an underscore:
<paramName>_<rsName>

for example the parameter name for the client_id column would be created as

$Paramclient_id_WADAclients

Heres where the issue comes in:

when Dreamweaver inspects the parameter variable code, it interprates everything after the first underscore as the recordset name. so it sees:
$Paramclient_id_WADAclients


as
Paramter name: Paramclient
Recordset name: id_WADAclients


instead of as
Paramter name: Paramclient_id
Recordset name: WADAclients


you could recreate the problem outsoide of dataassist by creating a recordset that used a parameter with an underscore in the name.


the workaround would be to edit the code to remove the underscore form the perameters name. For example, change:

php:
$Paramclient_id_WADAclients = "-1";
if (isset($_GET['client_id'])) {
$Paramclient_id_WADAclients = (get_magic_quotes_gpc()) ? $_GET['client_id'] : addslashes($_GET['client_id']);
}



to:

php:
$Paramclientid_WADAclients = "-1";
if (isset($_GET['client_id'])) {
$Paramclientid_WADAclients = (get_magic_quotes_gpc()) ? $_GET['client_id'] : addslashes($_GET['client_id']);
}

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