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

Having a great bad time with Dependent drop down

Thread began 4/13/2020 11:40 am by Rokon | Last modified 4/20/2020 2:09 pm by Ray Borduin | 56 views | 9 replies |

Rokon

Having a great bad time with Dependent drop down

Hello

I am very much new with your tools and often I get stuck as many time it generate wrong code with DW2020, Now for the dynamic dependent drop down I become puzzled with your new system as it just does not work on my side, sure something is wrong on my side. Can you pls help me by giving a video tutorial?

I also hope that you will make good video tutorial so that always does not need to write in the forum, Also I hope that you will test your tools with DW2020 I mean with latest version as many place I face problem due to wrong code generation the tools. I am using Win10, DW2020 with php7

Sign in to reply to this post

Ray BorduinWebAssist

The best tool I have is the tutorial: http://www.webassist.com/tutorials/Dynamic-Dropdowns-with-Data-Bridge-2-0

A customer did put together a video tutorial based on his experience getting this working. You can find it here: https://www.youtube.com/channel/UCxBP0QpO2IGwo9F2TcfUNhg/videos

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

Rokon

Originally Said By: Ray Borduin
  The best tool I have is the tutorial: http://www.webassist.com/tutorials/Dynamic-Dropdowns-with-Data-Bridge-2-0

A customer did put together a video tutorial based on his experience getting this working. You can find it here: https://www.youtube.com/channel/UCxBP0QpO2IGwo9F2TcfUNhg/videos  



At last after several hour try I was able to make it and noticed that main problem was that the Ajax script was not generating on the page.

Now I got other problem as this dynamic dependent drop down is populating on the POST form where my requirement is the generated value I need to submit as GET to filter the record. Example on the books reading page I have to filter out the book by bookID and then by SectionID and this value I need to pass via GET so that the url is visible for the values. I could easily get the bookID value but how to get the SectionID value as it is in the child page and on the main page it is bringing the whole drop down inside a POST form.

Sign in to reply to this post

Ray BorduinWebAssist

You can add hidden form elements to the page with the parent dropdown and they will be passed with the parent dropdown form when it submits to the child dropdown plugin page.

GET and POST work the same way, so you could use either.

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

Rokon

Originally Said By: Ray Borduin
  You can add hidden form elements to the page with the parent dropdown and they will be passed with the parent dropdown form when it submits to the child dropdown plugin page.

GET and POST work the same way, so you could use either.  



Dear Ray

I was thinking like that but can't figure out to pick the value of the field from child page as in my parent page inside the div it shows like
<?php echo((isset($WA_section_1586802530391))?$WA_section_1586802530391->Body:"") ?>

but on the child page the actual value which i need to pick is <?php echo($bookSection->getColumnVal("SectionID")); ?>

Pls guide me here.
=============================

Here is the code of my parent page

<div class="row">
<form action="index.php" method="post" id="jumpbooks" title="For book change" accept-charset="UTF-8">
<div id="book" class="col-sm">
<select name="book" class="custom-select" id="book" onChange="framework_load_plugin_url('section.php',document.getElementById('jumpbooks'),'section','../../','');return document.MM_returnValue">
<?php
while(!$hadithBookList->atEnd()) { //dyn select
?>
<option value="<?php echo($hadithBookList->getColumnVal("BookID")); ?>"<?php if (!(strcmp($hadithBookList->getColumnVal("BookID"), ($mainHadith->getColumnVal("BookID"))))) {echo "selected=\"selected\"";} ?>><?php echo($hadithBookList->getColumnVal("BookNameBD")); ?></option>
<?php
$hadithBookList->moveNext();
} //dyn select
$hadithBookList->moveFirst();
?>
<input type="submit">
</select>
</div>
<div class="col-sm" id="section"><?php echo((isset($WA_section_1586802530391))?$WA_section_1586802530391->Body:"") ?>
</div>

</form>
</div>
----------------------------------------
I think in order to send query by GET method I have to use another form to pick the value and then pass to URL as in this present form if i select GET method the drop down does not work,

Sign in to reply to this post

Rokon

Originally Said By: Ray Borduin
  You can add hidden form elements to the page with the parent dropdown and they will be passed with the parent dropdown form when it submits to the child dropdown plugin page.

GET and POST work the same way, so you could use either.  



OK, I figured out the way, on child page I changed the method to GET and on main page also change method to GET and it's now working fine. Thanks.

Sign in to reply to this post

Rokon

Two or more dependent dynamic select list

Hello

I was able to do single dependent drop down list but my situation here is I have minimum of two dependent list and can't figure out how to do.

Master list is "Books Type"
First child page list is: "Books Name"
Second child page list is: "Books Cat"

Now I can do till the first child page of Books Name but how to do the second child page for Book cat, as when the first child Books Name change then the second child "Books cat" has to change and this part I am stuck.

Sign in to reply to this post

Ray BorduinWebAssist

The concept is the same. You can add a child to the child inside the plugin and continue cascading down the line.

I can help you with this in a premier support ticket if you want to do it with screen sharing. Alternatively you could give me FTP access and a url and I can take a look a what you have done to point out where it might have gone wrong.

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

Rokon

Originally Said By: Ray Borduin
  The concept is the same. You can add a child to the child inside the plugin and continue cascading down the line.

I can help you with this in a premier support ticket if you want to do it with screen sharing. Alternatively you could give me FTP access and a url and I can take a look a what you have done to point out where it might have gone wrong.  




Please find the login info at private message.
The page name is: http://new.hadithbd.com/books/detail/index.php?book=14&section=145

Sign in to reply to this post

Ray BorduinWebAssist

You had it close. You just had added a second form on your books-name.php page. You can't add a form inside another form. I removed it and updated the code so that the child dropdown submits the original form. I think it is working now.

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

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