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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Multiple check box options - Any advice would be appreciated

Thread began 7/10/2011 6:06 am by Jon Cunningham | Last modified 7/18/2011 1:14 pm by Jon Cunningham | 3031 views | 32 replies

Jon CunninghamBeta Tester

Hi Jason,

I have started from scratch.

My database looks like this:-

--
-- Table structure for table `vehicle`
--

CREATE TABLE IF NOT EXISTS `Vehicle` (
`VehicleID` int(11) NOT NULL auto_increment,
`VehicleOptionsID` int(11) NOT NULL,
`VehicleManufacturerName` varchar(255) NOT NULL DEFAULT '',
`VehicleModel` varchar(100) NOT NULL DEFAULT '',
`VehicleShowroomName` varchar(100) NOT NULL DEFAULT '',
`VehicleCategoryName` varchar(100) NOT NULL DEFAULT '',
`VehicleShortDesc` varchar(255) NOT NULL DEFAULT '',
`VehicleLongDesc` varchar(500) NOT NULL DEFAULT '',
`VehicleNo_of_doors` int(11) NOT NULL DEFAULT '0',
`VehicleColour` varchar(50) NOT NULL DEFAULT '',
`VehicleVin_no` varchar(50) NOT NULL DEFAULT '',
`VehicleCC` varchar(100) NOT NULL DEFAULT '',
`VehicleReg` text NOT NULL,
`VehicleMiles` double NOT NULL DEFAULT '0',
`VehicleFuel` double NOT NULL DEFAULT '0',
`VehicleYear` bigint(20) NOT NULL DEFAULT '0',
`VehiclePrice` double NOT NULL DEFAULT '0',
`VehicleImage1` varchar(100) NOT NULL,
`VehicleImage2` varchar(100) NOT NULL,
`VehicleImage3` varchar(100) NOT NULL,
`VehicleImage4` varchar(100) NOT NULL,
`VehicleImage5` varchar(100) NOT NULL,
`VehicleImage6` varchar(100) NOT NULL,
`VehicleImage7` varchar(100) NOT NULL,
`VehicleImage8` varchar(100) NOT NULL,
`VehicleImage9` varchar(100) NOT NULL,
`VehicleImage10` varchar(100) NOT NULL,
`VehicleActive` tinyint(1) default '1',
PRIMARY KEY (`VehicleID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1423 ;


--
-- Table structure for table `Options`
--

CREATE TABLE IF NOT EXISTS `options` (
`OptionsID` int(11) NOT NULL auto_increment,
`OptionsName` varchar(100) NOT NULL DEFAULT '',
PRIMARY KEY (`OptionsID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=54 ;


--
-- Table structure for table `vehicleOptions`
--

CREATE TABLE IF NOT EXISTS `vehicleOptions` (
`vehicleOptionsID` int(11) NOT NULL auto_increment,
`vehicleOptionsVehicleID` int(11) NOT NULL,
`vehicleOptionsOptionID` int(11) NOT NULL,
PRIMARY KEY (`vehicleOptionsID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=54 ;

Steps I have gone through.

1. Run DA Wizard using Vehicle Table.

2. Opened vehicle_insert.php page

Created a new record set called rsVoptions from the 'options' table

3. Added a Tick Box and gave it an id of OptionBox.

4. Added <?php echo $row_rsVoptions['OptionsID']; ?> for the Checked Value

5. From the bindings panel i have added <?php echo $row_rsVoptions['OptionsName']; ?>

6. Added Repeat Region to Tickbox.

7. As per Andrews Tutorial i have changed $WA_redirectURL = "vehicle_Detail.php";

to $WA_redirectURL = "";

8. From Server Behaviours > DataAssist > I run Manage Relational Manager

9. Changed Trigger to 'Button: Insert pressed'

10. Chose vehicleoptions for my relational table and gotopage i chose vehicle_Detail.php and click next

(This is the bit i get stumped on)

11. Set the “Foreign key column” to vehicleOptionsID
Data type Numeric
Key Value 'Session WADA_Insert_vehicle (see figure1)

and clicked next

12. Set the “Foreign key column” to vehicleOptionsOptionID
Data type Numeric
Options Form field 'OptionBox' in repeat Region (rsVoptions) (see figure2.)

13. Clicked Next (see figure3)

14. Clicked Finish and save vehicle_Insert.php

Manage Relational Table has a red exclamation mark against it.

15. opened vehicle_Insert.php and filled out form

on submit no options information is stored in the database.

I know I am doing something wrong in the last stages of the process.

Any help would be appreciated.

Kind regards

Jonathon

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