close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Data Assist Insert Page

Thread began 2/02/2011 10:04 am by mrobben375515 | Last modified 2/04/2011 7:33 am by Jason Byrnes | 2576 views | 3 replies |

mrobben375515

Data Assist Insert Page

I selected the school_ID (which is set to the key column), to show up as a text field on the insert page. However, it didn't show up. I tried it a couple more times with no success. So I put the text field in manually and tried to configure the insert code but now I'm getting a php error. I need to be able to insert a school ID because if I don't then when I click the update button it can't query correctly. But I don't want to have to go into the database and set up a school ID either. I've attached the page, and the error message is below.

Fatal error: Call to undefined function WA_AB_generateInsertParams() in /home/content/50/7015650/html/Admin/ssinsert.php on line 28

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

Jason ByrnesWebAssist

the issue is that the school_ID column is set to be the Index Column.


you should not be entering anything in the index column.


the index column should be the primary key column in your database.

You should set the primary key column to be an auto number column so that the database will assign it a unique ID.

Set the school_Id to be an auto increment column in the database and let the database handle giving the school an id.

the error is occurring because your page is missing the following line:
<?php require_once("../WA_DataAssist/WA_AppBuilder_PHP.php"); ?>

Sign in to reply to this post

mrobben375515

Gotcha. Ok, i changed the id column to auto populate. Now when I insert the "Proof File Name" and "product ID" fields I have set up don't show up in the database. I have 5 other fields that show up fine, but those 2 don't.

Also, when I try to delete a file I get the following error.

Fatal error: Call to undefined function WA_AB_generateWhereClause() in /home/content/50/7015650/html/Admin/ssdelete.php on line 70

I've upload both files for you to look at. Thanks

Attached Files
ssdelete.zip
ssinsert.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the insert page has 2 problems:
1) The proof file name and product ID columns in the database have spaces in the name, this is not valid for naming database columns.

2) the proof file name and product ID Form elements on the page have spaces in the name. this is not valid for naming form elements.



On the delete page, move this code at line 81 - 84:
<?php require_once( "../WA_Globals/WA_Globals.php" ); ?>
<?php require_once('../Connections/PowerStoreConnection.php'); ?>
<?php require_once("../WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php require_once('../WA_CMS/WA_CMS.php'); ?>

to line 1

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