close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Child List not Populating

Thread began 10/03/2011 5:26 am by webmaster424590 | Last modified 10/04/2011 8:13 am by Jason Byrnes | 2130 views | 5 replies |

webmaster424590

Child List not Populating

Hi there...ok i am stuck.

I have followed the start up PDF located here dynamic_dropdowns_gsg.pdf
Read through the forums and still no luck.

1. There is no body on load code that i can see - is this an issue?
2. Is the ID in the child query meant to be the same as the ID in the Parent menu?
3. Dynamic Array setup image is here 58ffe3ac3db02ebf6f90a23178b0a4dd
4. Populate list from array setup image is here 1c0f22d8e5438074b876c3fe3a154778

Any help is appreciated

Cheers

Sign in to reply to this post

Jason ByrnesWebAssist

1) No, the populate list from array behavior must be set to the onchange event of the parent ,list, not the body on load.

2) The ChildID in the Create Dynamic Array behavior will be assigned to the Value of the Child List. The Parent ID needs to match the value of the parent list.

3 - 4) the Create Dynamic array and Populate list from array behaviors look to be configured properly, as long as the value of the muofficeid column from the recordset matches the value that is being posted by the parent list.

Sign in to reply to this post

webmaster424590

Fixed

Thanks Jason. Sorry you replied jsut as i was typing this out.

Got this sorted but is there a way to display two(2) fields from the dependant table - that is Firstname and Surname?

Cheers

Sign in to reply to this post

Jason ByrnesWebAssist

do you want to do this in the child list? as the child list label?

send a copy of your page so i can tell you the exact code to edit.

Sign in to reply to this post

webmaster424590

Jason yes that would be the idea - to have the child array display both firstname and surname
sanatised version attached.
cheers
chris

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

Jason ByrnesWebAssist

I see you tried doing this by creating a new array item:

php:
echo "WAJA[".$n."][".$m."][1] = "."'".WA_DD_Replace($row_officesulist["musufirstname"])."'".";\n";

    echo "WAJA[".$n."][".$m."][2] = "."'".WA_DD_Replace($row_officesulist["musususurname"])."'".";\n";




instead of creating a new array item, concatenate the last name into the original array item:

php:
echo "WAJA[".$n."][".$m."][1] = "."'".WA_DD_Replace($row_officesulist["musufirstname"])." ".WA_DD_Replace($row_officesulist["musususurname"]."'".";\n";
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...