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

rating

Possible to imitate the Multi-field dropdown server behaviour in ADDT from Interakt using Data Bridge V2?

Thread began 12/19/2019 3:55 am by RMor41509037 | Last modified 12/23/2019 2:20 pm by Ray Borduin | 50 views | 8 replies |

RMor41509037

Possible to imitate the Multi-field dropdown server behaviour in ADDT from Interakt using Data Bridge V2?

Wondering if it is possible to imitate the Multi-field dropdown server behaviour in ADDT from Interakt using Data Bridge V2? I have a form with a dynamic select and need 2 textfields populated in same form with values from the select db. If possible can you please provide an example? Thank you for your time.

Sign in to reply to this post

Ray BorduinWebAssist

Check out this tutorial:
http://www.webassist.com/tutorials/Dynamic-Dropdowns-with-Data-Bridge-2-0

I think that is what you are looking for.

Sign in to reply to this post
Did this help? Tips are appreciated...

RMor41509037

I had looked at that but don't actually need a dependant drop down.
I have a dropdown on a form that feeds off a table that has
id, age, age_category and price fields ,
what I require to happen is when the person picks the age from the drop down two other form textfields are populated one by the age_category value and one by the price value.
I found this article in the forum http://www.webassist.com/forums/posts.php?id=39171 which seems to be similar to what I require but can't figure out how to filter the second recordset properly to make it work.
Thanks
Randy

Sign in to reply to this post

Ray BorduinWebAssist

You could still use that tutorial... but it might be overkill.

The easier solution (although it requires some hand coding) would be to put the age_category and price values into the select list <option> tag with attributes like:

<option age="" price="" value="">text</option>

and then populate the age, price, value, and text from your recordset. Then add an onchange event to the select list that calls a function. That function can check the the current selection in the list and populate the text fields based on the attributes you added.

Sign in to reply to this post
Did this help? Tips are appreciated...

RMor41509037

I have setup the <option> tag as follows
<option age="<?php echo($Recordset1->getColumnVal("age")); ?>" price="<?php echo($Recordset1->getColumnVal("prices")); ?>" value="<?php echo($Recordset1->getColumnVal("cat")); ?>"><?php echo($Recordset1->getColumnVal("age")); ?></option>
This this correct?

Sorry, unfortunately I am not smart enough to setup a function, are you able to assist?
Thank you
Randy

Sign in to reply to this post

Ray BorduinWebAssist

Attach your page to a reply and I can help.

Sign in to reply to this post
Did this help? Tips are appreciated...

RMor41509037

I have attached . Please note I have some PVII components used on there in case you are wondering and they cause issues

Attached Files
coaldaleentry20A.php
Sign in to reply to this post

Ray BorduinWebAssist

So I think you could do:

<select name="age" class="TEXT90" id="age" onchange="ageUpdate()">



Then somewhere you define the ageUpdate function like:

function ageUpdate() {
var ageList = document.getElementById("age");
var ageSelected = ageList.options[ageList.selectedIndex];
document.getElementById("cat").value = ageSelected.value;
document.getElementById("prices").value = ageSelected.getAttribute("price");
}
Sign in to reply to this post
Did this help? Tips are appreciated...

RMor41509037

Thank you Ray.
I used a variation of that and got it to work,
Thank you for you time!

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