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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

one select update two fields with different values?

Thread began 7/04/2016 10:54 am by tony | Last modified 7/06/2016 11:15 am by Ray Borduin | 61 views | 3 replies |

tony

one select update two fields with different values?

Hi all,
I have a product table contaning 3 fields:
1- id_prod
2- name_prod
3- price_prod

And I have another db table containing the fields nameprod_user and priceprod_user.

I have a form in a page where the user select the product using a select dropdown. The dropdown is populated with a recordset on the product table.

I know how to put the select value in a database field, but in this case I need to put the select value along with another value.

Example:
The select dropdown has the value set to name_prod.
I need to select also the price_prod value.
Then I need to put the two values (name_prod and price_prod in the related db fields: nameprod_user and priceprod_user).

I can do this easily using the good-old ADDT from Interakt (using Multi-field dropdown server behaviour).

How can I do this with data bridge?

TIA
tony

Sign in to reply to this post

Ray BorduinWebAssist

Probably the easiest way is to:

1) Set the value of the select list to the id_prod column
2) Add a recordset to the page to filter based on the the id_prod submitted from the select list
3) Then you can use any other columns from the recordset to set the values for the insert

Sign in to reply to this post

tony

Originally Said By: Ray Borduin
  Probably the easiest way is to:

1) Set the value of the select list to the id_prod column
2) Add a recordset to the page to filter based on the the id_prod submitted from the select list
3) Then you can use any other columns from the recordset to set the values for the insert  


Hi Ray,
thanks for your reply.
1) ok
2) how can I do this in the same page as the form without reloading the page?

TIA
tony

Sign in to reply to this post

tony

Originally Said By: tony
  Hi Ray,
thanks for your reply.
1) ok
2) how can I do this in the same page as the form without reloading the page?

TIA
tony  


nevermind.
I tried it and it works IN THE SAME PAGE without reloading.
Thanks.
tony

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