• 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
popup selection not inserting value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

popup selection not inserting value


  • Subject: popup selection not inserting value
  • From: Jeremy Matthews <email@hidden>
  • Date: Tue, 22 Nov 2005 10:57:25 -0500

Seems simple, doesn't it?

I've reconstructed the fetch and syntax in EOM and reflected changes in code and in WOB; now the fetch values populate the array (popup) correctly, and shows values in the popup correctly.

Now, a new entry gets inserted correctly (all text fields), excepting the value chosen from the popup list. It gets set to null. 
So, I need to figure out why the selected popup value is not set correctly, even if a value is chosen. It always goes to null. 
Since I'm populating the popup from a fetch, do I need to write a takeValueForKey statement?


WOD:

displayString:        testTypeEnumerator.testType
item:  testTypeEnumerator
list: testList
noSelectionString: "Choose one!"
selection: newTestsEntry.testType

Code:

public WOComponent addTest()
    {
EOEditingContext ec = session().defaultEditingContext();
ec.insertObject(newTestsEntry);
System.out.println("Saving new Test" + newTestsEntry);
ec.saveChanges();
newTestsEntry = new Tests();
        return context().page();
    }


Thanks,
jeremy

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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:
    • Re: popup selection not inserting value
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Deploying to servlet and database settings
  • Next by Date: Re: Newbie question - Return Date from Calendar
  • Previous by thread: Re: EOF Connection Pooling?
  • Next by thread: Re: popup selection not inserting value
  • Index(es):
    • Date
    • Thread