close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Missing Server Behavior

Thread began 7/12/2010 10:44 pm by paulshoe379536 | Last modified 7/14/2010 2:35 pm by Jimmy Wu | 1027 views | 4 replies |

paulshoe379536

Missing Server Behavior

I have and insert page that was created with DataAssist. The "Insert Record" server behavior is not showing in the installed behavior list although the code is on the page and the page works properly. The problem is, I can't re-open the behavior to make adjustments. How do I restore access to the "Insert Record" behavior? This is happening on more than one page.

It seems like I can get the behavior to redisplay if I remove the dynamic path on "$WA_redirectURL = " A sample below. Should I be using a different syntax?

----------------------------------------------------------------------------------------
$WA_redirectURL = "/members/members_Update.php?member_id=".$_SESSION['member_id'];
----------------------------------------------------------------------------------------

Sign in to reply to this post

Jimmy Wu

if you add another ."" after the dynamic code, then the server behavior will inspect correctly. So it would look like this:
$WA_redirectURL = "/members/members_Update.php?member_id=".$_SESSION['member_id']."";

Sign in to reply to this post

paulshoe379536

I don't know why I'm having so much trouble with these plugins.

Below is my code for the file upload. I am getting the error messages attached and the wizard will not run.

----------------------------------
<?php
// WA Application Builder Update
if (isset($_POST["Update_x"])) // Trigger
{
$WA_connection = $cpDVD;
$WA_table = "family_members";
$WA_redirectURL = "/members/admin_members_Detail.php?member_id=".$_SESSION['member_id']."";
$WA_keepQueryString = false;
$WA_indexField = "family_member_id";
$WA_fieldNamesStr = "last_name|first_name|address1|address2|city|state|zip|home_phone|cell_phone|work_phone|email|birthday|groups|hobbies|comments|photo";
$WA_fieldValuesStr = "".((isset($_POST["last_name"]))?$_POST["last_name"]:"") ."" . "|" . "".((isset($_POST["first_name"]))?$_POST["first_name"]:"") ."" . "|" . "".((isset($_POST["address1"]))?$_POST["address1"]:"") ."" . "|" . "".((isset($_POST["address2"]))?$_POST["address2"]:"") ."" . "|" . "".((isset($_POST["city"]))?$_POST["city"]:"") ."" . "|" . "".((isset($_POST["state"]))?$_POST["state"]:"") ."" . "|" . "".((isset($_POST["zip"]))?$_POST["zip"]:"") ."" . "|" . "".((isset($_POST["home_phone"]))?$_POST["home_phone"]:"") ."" . "|" . "".((isset($_POST["cell_phone"]))?$_POST["cell_phone"]:"") ."" . "|" . "".(isset($_POST["work_phone"]))?$_POST["work_phone"]:"") ."" . "|" . "".((isset($_POST["email"]))?$_POST["email"]:"") ."" . "|" . "".((isset($_POST["birthday"]))?$_POST["birthday"]:"") ."" . "|" . "".((isset($_POST["groups"]))?$_POST["groups"]:"") ."" . "|" . "".((isset($_POST["hobbies"]))?$_POST["hobbies"]:"") ."" . "|" . "".((isset($_POST["comments"]))?$_POST["comments"]:"") ."". "|" . "".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"] ."";
$WA_columnTypesStr = "',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''";
$WA_comparisonStr = "=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);

$WA_where_fieldValuesStr = "".((isset($_POST["WADAUpdateRecordID"]))?$_POST["WADAUpdateRecordID"]:"") ."";
$WA_where_columnTypesStr = "none,none,NULL";
$WA_where_comparisonStr = "=";
$WA_where_fieldNames = explode("|", $WA_indexField);
$WA_where_fieldValues = explode("|", $WA_where_fieldValuesStr);
$WA_where_columns = explode("|", $WA_where_columnTypesStr);
$WA_where_comparisons = explode("|", $WA_where_comparisonStr);

$WA_connectionDB = $database_cpDVD;
mysql_select_db($WA_connectionDB, $WA_connection);
if (!session_id()) session_start();
$updateParamsObj = WA_AB_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);
$WhereObj = WA_AB_generateWhereClause($WA_where_fieldNames, $WA_where_columns, $WA_where_fieldValues, $WA_where_comparisons );
$WA_Sql = "UPDATE `" . $WA_table . "` SET " . $updateParamsObj->WA_setValues . " WHERE " . $WhereObj->sqlWhereClause . "";
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
if ($WA_redirectURL != "") {
if ($WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
$WA_redirectURL .= ((strpos($WA_redirectURL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_redirectURL);
}
}
?>

Sign in to reply to this post

paulshoe379536

after making adjustments you suggested for redirect and upload locations, it seems like things are working better now... thanks for the help

Sign in to reply to this post

Jimmy Wu

Great to hear that it worked out for you. If you run into any additional issues, feel free to open a new thread.

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