close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Using multiple files to build update screen

Thread began 12/21/2009 6:39 am by hbibizadeh396670 | Last modified 12/21/2009 12:12 pm by Eric Mittman | 908 views | 1 replies |

hbibizadeh396670

Using multiple files to build update screen

I have two files, one is a property file and the second is an image file, the relationship between the two files is (one to many).
The property file's key is Property ID, and the image file primary key is Image ID, and the secondary key is property ID.
I need to set up a delete, update, and insert screen, which will handle the two files simultaneously, eg set up property details and add several images in the same screen.
1. How do I relate (connect) the two files.
2. How do I use data assist to build the screen to update, delete, and insert the two files in the same screen or page.

Sign in to reply to this post

Eric Mittman

The wizard will only create pages that handle a single page at a time so you can start with one of these but you will need to add the insert/update for the other table to this page.

The idea is that you start on the page that has the property insert occurring. You can then add to this page a multiple insert for the relating table since there is a one to many relationship.

In the multiple insert you will need to add the form elements for the values you want to insert into this other table, then use the repeat selection server behavior to repeat these form the number of records that you would like to insert into the table. In this new multiple update insert server behavior you would use the id from the property insert, this value is set on the first step of the insert. Whatever you specify as the key field and the session name will be the value that stores this id for you. You just reference this session variable in your multiple insert for your foreign key column.

If you are not familiar with the multiple insert/update/delete server behaviors there are some Solution Recipes that are available on the DataAssist support page here:

dataassist/

Please post back with any questions that you have about any part of this and we will be glad to help you get this going.

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