Hi,

We were just looking into this with Laurent this morning for another
requirement. The cleanest solution is clearly Misi's.
There just two drawbacks :
- you have to manage a table for your temporary records (=> delay,
clustering, i/o ...) or use a "temporary table" if your DBMS allows it
- it implies a delay on the client-side

Now there is a client-side only solution with JavaScript (yes, AGAIN :p).
You need a dummy character menu, named "EmptyMenu" in my example. Attach it
to your field.
The following code must be run from a Run Process action in an active link,
and re-creates the dummy menu with the values you pass to the object
constructor :
javascript new
ARMenu("EmptyMenu",{novals:false,mval:[{l:"val1",v:null},{l:"val2",v:null}]});







I can't test it right now, but this code _should_ work to add an item :
javascript window.ARMenus["EmptyMenu"].mval.push({l:"label",v:"value"});
new ARMenu("EmptyMenu",window.ARMenus["EmptyMenu"]);




On Sun, Jan 6, 2013 at 12:30 PM, Misi Mladoniczky <[email protected]> wrote:

> Hi,
>
> The drop-down-list must be created as a char-field with a search-menu
> attached. You can set the display-attributes so that it looks like a
> drop-down-list.
>
> When you "Add" stuff, you must create records in a form, that will later
> be displayed in your search-menu. Use the Push-Fields action to create
> records.
>
>         Best Regards - Misi, RRR AB, http://rrr.se
>
> > I need to create the following:
> >
> > 1. A button named AddList with label Add to List.
> >
> > 2. A Character field called eg new_item.
> >
> > 3. A dropdown list initially empty (ie no dropdown items)
> >
> > The user enters text into the new_item field and clicks on AddList
> > button to add the text item in new_item to the dropdown.
> >
> > I have scoured the docs and can't quite work it out.
> >
> > How would I do this?
> >
> > Angus
> >
> >
> _______________________________________________________________________________
> > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> > "Where the Answers Are, and have been for 20 years"
> >
>
>
> _______________________________________________________________________________
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> "Where the Answers Are, and have been for 20 years"
>

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to