• 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: weird popup problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: weird popup problem


  • Subject: Re: weird popup problem
  • From: Ken Anderson <email@hidden>
  • Date: Thu, 29 Sep 2005 17:48:14 -0400

Are these EOs?  Are they in the same editing context?

On Sep 29, 2005, at 5:37 PM, James Cicenia wrote:

this makes me even more confused and paranoid.

assignee = (PortfolioResource) theTicketAssignment.valueForKey("assignee");
System.out.println("Assignee is "+assignee.fullName());
if(list().containsObject(assignee) == true){
System.out.println("IT's True");
}


IT DOES NOT EQUAL TRUE?!!!! WTF?

Yet Assignee full name prints out perfectly. The database and the relationships are all correct. list() calls:

    public NSArray list(){
        if(list==null){
            list = ((Session)session()).portfolio().ticketResources();
        }
        return list;
    }

What obvious thing am I not seeing!? ticketResources() is a sorted array of PortfolioResources.

- james




On Sep 29, 2005, at 4:06 PM, Chuck Hill wrote:





And you are sure that


session.portfolio.ticketResources.containsObject(assignee) == true


?

Chuck

On Sep 29, 2005, at 1:35 PM, Jerry W. Walker wrote:



Hi, James,

It's sounding more and more like the old "changed the WO template structure between appendToResponse and the next takeValuesFromRequest" issue.

I would check for that very carefully.

Regards,
Jerry



On Sep 29, 2005, at 3:55 PM, James Cicenia wrote:




Nothing is standing out. All javascript was removed same behavior. Take out the no selection binding it works. Put in a noSelectionString binding and it acts as though it is null. Checked the RR loop nothing there at all. Very mysterious, baffling, etc.
Not reusing anything, etc.


It has to be something obvious or very very very subtle.

- james


On Sep 29, 2005, at 11:27 AM, Arturo Perez wrote:





James Cicenia wrote:





Hello -
I have never seen this problem before but, if I put a string in the No Selection binding, than my popup won't show the current selection. If I remove the no selection binding then editing works (shows the current selection) but then when entering data for the first time it will have the first value selected which is wrong. Here is my bindings:
PopUpButton1: WOPopUpButton {
displayString = portfolioTicketResource.fullName;
item = portfolioTicketResource;
list = session.portfolio.ticketResources;
noSelectionString = "--- please select ---";
selection = assignee;
}
Any ideas? I seem to think I have been doing popups like this forever.








Well, make sure you're not reusing the variable portfolioTicketResource elsewhere in your page.

Make sure you're not mutating the list session.portfolio.ticketResources during the RR loop.

You don't have javascript doing submits behind your back, do you?

-arturo






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


This email sent to email@hidden






--
__ Jerry W. Walker, Partner
C o d e F a b, LLC - "High Performance Industrial Strength Internet Enabled Systems"
email@hidden
212 465 8484 X-102 office
212 465 9178 fax



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


This email sent to email@hidden




--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/ practical_webobjects







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


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
References: 
 >weird popup problem (From: James Cicenia <email@hidden>)
 >Re: weird popup problem (From: Arturo Perez <email@hidden>)
 >Re: weird popup problem (From: James Cicenia <email@hidden>)
 >Re: weird popup problem (From: "Jerry W. Walker" <email@hidden>)
 >Re: weird popup problem (From: Chuck Hill <email@hidden>)
 >Re: weird popup problem (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: weird popup problem
  • Next by Date: Re: weird popup problem
  • Previous by thread: Re: weird popup problem
  • Next by thread: Re: weird popup problem
  • Index(es):
    • Date
    • Thread