Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Populate List/Menu in Update Record form

New Here ,
Jun 14, 2006 Jun 14, 2006

Copy link to clipboard

Copied

I am creating an update record form that contains a list/menu (with values General, 2002, 2004, 2006)

How do I populate this menu so that it pulls current value from database, and not just the top default value each time?
TOPICS
Server side applications

Views

620
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 14, 2006 Jun 14, 2006

Copy link to clipboard

Copied

Swn-Y-Mor wrote:
> I am creating an update record form that contains a list/menu (with values
> General, 2002, 2004, 2006)
>
> How do I populate this menu so that it pulls current value from database, and
> not just the top default value each time?

Select the menu object in the form. Then click the Dynamic button in the
Property Inspector. In the dialog box that opens, click the lightning
bolt next to Select value equal to. Finally, choose the data field from
the correct recordset.

--
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2006 Jun 14, 2006

Copy link to clipboard

Copied

Brilliant,
Thanks for the quick reply
Works like a dream

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2006 Jun 14, 2006

Copy link to clipboard

Copied

Whoops - spoke too soon,
My update form displays correct drop down value, but when I submit the update it inserts a blank value into my field

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 14, 2006 Jun 14, 2006

Copy link to clipboard

Copied

Swn-Y-Mor wrote:
> Whoops - spoke too soon,
> My update form displays correct drop down value, but when I submit the update it inserts a blank value into my field

That's got nothing to do with selecting the correct value in the first
place. There's something wrong with the way you have set up the Update
Record server behavior.

--
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2006 Jun 14, 2006

Copy link to clipboard

Copied

OK,
Got the list to populate dynamically, although I have an issue with my "update record" page. For some reason, any dynamic list/menu that I add, the record ID shows up as one of the options (at the bottom of the list).

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 15, 2006 Jun 15, 2006

Copy link to clipboard

Copied

LATEST
Any suggestions?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines