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

rating

Insert Page with links to update pages

Thread began 9/17/2009 3:58 pm by jenkolaka19379118 | Last modified 9/22/2009 9:11 am by jenkolaka19379118 | 1038 views | 4 replies |

jenkolaka19379118

Insert Page with links to update pages

Good Day,

I have created an admin interface using dataassist. My insert_page allows an administrator to create/add new courses to the database. The course table in my database has 3 foriegn keys;

subject_cat_id (INT)
examination_id (INT)
awarding_body_id (INT)

These columns are primary keys in three seperate tables.

Because data assist is designed to create an insert form for 1 table, I would like to request your help for the following.

1. After creating my insert form using data assist wizard for add/ create course, I would like to create (dynamic) dropdowns that will list all the subject_categories, examination_categories, and awarding_body_categories available in my database.

2. If these rows do not exist i would like to create a button/link (bound to a form text field) that would link to an insert page for these 3 foriegn keys(3 indiviual insert pages). When the admin fills in these new catgories and clicks send/update I would like to be redirected back to the course insert form with the new data populating the fields, + my original filled in fields still in tact (not sure if a cookie or session variable is needed).

3. Now when the insert page is complete the admin can click the insert button and all the field in the table are populated even the foriegn keys.

I know this is possible as I have seen it in powerstore, but I have no idea how to implement this using data assist (and possibly dynamic dropdowns)

Sign in to reply to this post

Jason ByrnesWebAssist

When you run through the DataAssist Wizard, starting on the fifth page of the wizard, for the foreign key columns, change the Display As option to Menu. Then Click the Lightning bolt icon and select the corresponding table. Set the vlauie to the ID column, and the label to the text column.


You will then need to create the insert pages for the foreign key tables.


You can use the data assist wizard to create the insert pages for those tables. After the have been created, go into the Insert Record server behavior on each one, and set the redirect after link to go back to the main insert page. on the main insert page, add links to the other three insert pages.

Sign in to reply to this post

jenkolaka19379118

Hi Jason,

That worked!

but the only problem is that I lose the data I had already started filling in on the main insert form when I am redirected. Is there a way that form data will not be lost if I navigate away from the main insert page. If so would you be able to direct me on how to do it?

Sign in to reply to this post

Jason ByrnesWebAssist

Not really, not without some ajax coding to repopulate the lists.

it is necessary to reload the page to repopulate the lists. When the page reloads, the information already entered will be cleared.

Sign in to reply to this post

jenkolaka19379118

Hi Jason,

Thanks for the help, I may have to work around that issue, I had hoped wa cookie toolkit could do it but I don't think that is what it is designed to do. Not to worry.

God Bless :)

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