• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get SelectedObject from AjaxAutoComplete
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get SelectedObject from AjaxAutoComplete


  • Subject: Re: How to get SelectedObject from AjaxAutoComplete
  • From: Henrique Gomes <email@hidden>
  • Date: Wed, 21 Sep 2011 14:53:37 +0100



> selection = session.selectedMotClefs;

How is that defined in your Session?
I wonder why your are using the session at all. Why not a local variable on your WOComponent?

> 		if (getSelectedMotClefs() != null) {


What's the code for getSelectedMotClefs() ?

HG

On Sep 21, 2011, at 2:47 PM, Raymond NANEON wrote:

>
>
>>
>> Is the AutoComplete inside a form?
>
> Yes It's inside a form.
>>
>>
>> Also, AjaxAutoComplete has both a value and a selection binding. You can use either of both.
>
> The value take the selection.attribute but I want the selection Only which is an Object to get his pk.
> here my WOD :
> motClefsAutoComplete1 : AjaxAutoComplete {
> 	id = "auto1";
> 	list = session.matchMotcClefs;
> 	value = session.motClefs;//Not this
> 	item = session.motClefsRepetition;
> 	displayString = session.motClefsRepetition.refidxval;
> 	selection = session.selectedMotClefs;//I want this
> }
>>
>>
>> HG
>
> Ray
>>
>>
>> On Sep 21, 2011, at 2:14 PM, Raymond NANEON wrote:
>>
>> > Help please, my project is stuck on this problem.
>> >
>> > When I use WORequest and use formValueForkey("autoComp1") I get a String of a textField component . Where is the selectedMotClefs I chose to fill the field?
>> >
>> > Thanks
>> > Envoyé depuis iCloud
>> >
>> > Le 21 sep 2011 à 03:05, Raymond NANEON <email@hidden> a écrit :
>> >
>> >> Hi All,
>> >>
>> >> I have a lill' problem with AjaxAutoComplete. I am having difficult to get the selected Object bind to selection attribute.
>> >>
>> >> Here is my HMTL code :
>> >>
>> >> <div id = "searchForm"><wo name = "autoCompAOF1"><webobject name = "motClefsAutoComplete1"/></wo></div>
>> >>
>> >> Here is WOD code :
>> >>
>> >> motClefsAutoComplete1 : AjaxAutoComplete {
>> > id = "autoComp1";
>> >> list = session.matchMotcClefs;
>> >> value = session.motClefs;
>> >> item = session.motClefsRepetition;
>> >> displayString = session.motClefsRepetition.refidxval;
>> >> selection = session.selectedMotClefs;
>> >> //afterUpdateElement = ctrl.refreshPop2;
>> >> }
>> >>
>> >> autoCompAOF1 : AjaxObserveField {
>> >> fullSubmit = true;
>> >> elementName = "span";
>> >> action = ctrl.refreshPop2;
>> >> updateContainerID = "pop2";
>> >> }
>> >>
>> >> Here is my java method to get Selected Object :
>> >>
>> >> // Module de recherches
>> >> public WOActionResults refreshPop2() {
>> >> if (getSelectedMotClefs() != null) {
>> >> //
>> >> }
>> >> return null;
>> >> }
>> >>
>> >> What is the way to have data of selectedMotClefs?
>> >>
>> >> Thanks
>> >> Envoyé depuis iCloud
>> >> _______________________________________________
>> >> Do not post admin requests to the list. They will be ignored.
>> >> Webobjects-dev mailing list (email@hidden)
>> >> Help/Unsubscribe/Update your Subscription:
>> >>
>> >> This email sent to email@hidden
>> > _______________________________________________
>> > Do not post admin requests to the list. They will be ignored.
>> > Webobjects-dev mailing list (email@hidden)
>> > Help/Unsubscribe/Update your Subscription:
>> >
>> > This email sent to email@hidden
>>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Rép : Re: How to get SelectedObject from AjaxAutoComplete
      • From: Raymond NANEON <email@hidden>
References: 
 >Rép : Re: How to get SelectedObject from AjaxAutoComplete (From: Raymond NANEON <email@hidden>)

  • Prev by Date: Rép : Re: How to get SelectedObject from AjaxAutoComplete
  • Next by Date: Re: AjaxModalDialog in iframe
  • Previous by thread: Rép : Re: How to get SelectedObject from AjaxAutoComplete
  • Next by thread: Rép : Re: How to get SelectedObject from AjaxAutoComplete
  • Index(es):
    • Date
    • Thread