close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Insert page, 2 tables & 1 'stages' form.

Thread began 1/26/2012 5:39 am by gary.brett434358 | Last modified 1/28/2012 3:05 am by gary.brett434358 | 1196 views | 10 replies

gary.brett434358

Good morning, OK managed to start this now.

1 - Run DA wizard to create tblContacts - ContactID | ContactName | ContactDate | ContactAssignedTo

2 - Open tblConactsinsert.php in DW, add manual fields for input data to tblCases - CaseID | ContactID | CaseType | CaseDate | CaseStatus

3 - Server Behaviours Panel - Data Assist | Insert | Insert Single Record

4 - Select tblCases, Key Column 'CaseID', complete table field values by selecting the manual fields I just created on the form, example [<?php echo ((isset($_POST["CaseType"]))?$_POST["CaseType"]:""); ?>]

5 - Open 'insert record [tblContact]', key column is 'ContactID' & Store As 'WADA_Insert_tblcontacts'

6 - Open 'insert record [tblCases]', key column is 'CaseID' & Store AS 'tblcases_CaseID', go to ContactID from tblcases and set value as 'WADA_Insert_tblcontacts'

The records get inserted on both tables which is great but on the tblCases side there is no ContactID leaving the cases unassigned to anyone. I am guessing the binding is in the wrong place but cannot fathom where it should go?

Worth noting that the 'ContactAssignedTo' field from tblContacts is the field that will link to the case? I need the ID that is selected from that field to also insert into ContactID field of tblCases.

For example, if user selected 'John Smith' from the menu on 'ContactAssignedTo' this would insert ContactID 100 into both tblContacts.ContactAssignedTo & tblCases.ContactID

Sorry for all questions, I think I am nearly there!

regards

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