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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dynamic Dropdown values for Update page

Thread began 7/21/2014 12:43 pm by iainmacdonald331081 | Last modified 7/23/2014 2:55 pm by Jason Byrnes | 2089 views | 18 replies |

iainmacdonald331081

Dynamic Dropdown values for Update page

This is the last thing I haven't quite got with the dynamic drop downs. Basically to get them to work and how the current values for a record on the update page.

I've attached the file, and added some details below.

Sign in to reply to this post

iainmacdonald331081

More info

Attached Files
index_new.zip
Sign in to reply to this post

Jason ByrnesWebAssist

you need to use the Set Selected In List behavior to set the parent using list using the corresponding column from the WADAlodges recordset on the body tags on load event

also add the Populate list from array behavior to the onload event to populate the child list and another instance of the set selected behavior to set the child list.

Sign in to reply to this post

iainmacdonald331081

Thanks Jason - I have added the Set Selected In List behaviour, but only to the Continent field from the WADAlodges recordset. How do I apply / make use of any On Load event on the body tag?

See screenshot.

Attached Files
wapng.zip
Sign in to reply to this post

Jason ByrnesWebAssist

select the body tag in the tag selector when you add the set selected behavior and select the onload event.

Sign in to reply to this post

iainmacdonald331081

Sorry Jason - I'm not getting this.

I tried that, and have the line:

<body onLoad="WA_setSelectionsInChildList(MM_findObj('Parent'),<?php echo $row_WADAlodges['Continent']; ?>)">

But still not showing the current value.

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

iainmacdonald331081

Thanks Jason.

Details below.

Sign in to reply to this post

Jason ByrnesWebAssist

in the onload event, you are using a column named Category:
onload="WA_setSelectionsInChildList(MM_findObj('Parent'),<?php echo $row_WADAnominations['Category']; ?>)"

using var_dump to write the contents of the WADAnominations recordset, i do not see a column being returned named Category. I see a column named CategoriesFullID, is that the one that should be used?


looks like it, if i change it to:
onload="WA_setSelectionsInChildList(MM_findObj('Parent'),<?php echo $row_WADAnominations['CategoriesFullID']; ?>)"

on load selects the Best Walking Safari form the category

Sign in to reply to this post

iainmacdonald331081

Thanks Jason - sorry I missed that - I've been changing the data structure quite a bit with all this, breaking them out into continents and countries, and having them separate, when they used to be part of the category.

All looks like its working, and also with the short name, so thanks you for spotting that.

I did notice one other odd thing - if you search the site for 'Zarafa Camp' which has a lot of nominations over a few years, the year drop down in the update page isn't always showing the correct year.

It looks like its OK for 2015 and 2014, but all the others are showing 2008.

Sign in to reply to this post
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...