• 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: Extra set of eyes on this WOPopUp.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extra set of eyes on this WOPopUp.


  • Subject: Re: Extra set of eyes on this WOPopUp.
  • From: James Cicenia <email@hidden>
  • Date: Mon, 7 Jun 2010 20:15:20 -0500

ah! thanks! I think too much javascript these few days are blinding these tired eyes.

thanks again.

On Jun 7, 2010, at 7:38 PM, Chuck Hill wrote:

>
> On Jun 7, 2010, at 5:33 PM, James Cicenia wrote:
>
>>
>> I believe you, however....
>>
>>
>> Then is it possible that the Ajax stuff is messing with the object upon selection?
>> I have done popups... dozens and dozens over the years. However, with all the
>> new AJAX, I can't necessarily read the tea leaves of unexpected ec results.
>>
>> Here is the pattern of setting it.. Where is the context wrong?
>>
>>
>> public void setSelectedAlertSector(AlertSector pSector)
>> {
>> currentMasterAlert.setAlertGroupRelationship((AlertSector)EOUtilities.localInstanceOfObject(currentMasterAlert.editingContext(), pSector));
>> }
>
> That is not wrong, THIS is wrong:
>
>>>>> list = session.ratings;
>
>
> The objects in session.ratings are not in the EC used on this page.  They need to be.  You need to make a local copy in the correct EC.
>
>
> Chuck
>
>
>
>> On Jun 7, 2010, at 6:08 PM, Chuck Hill wrote:
>>
>>>
>>> On Jun 7, 2010, at 3:47 PM, James Cicenia wrote:
>>>
>>>> But then why would I get the "first" object set?
>>>
>>> Who cares why?  If they are not in the same EC, it won't work.
>>>
>>> Chuck
>>>
>>>> And I am actually doing this:
>>>>
>>>> public Rating selectedRating()
>>>> 	{
>>>> 		return currentMaster.rating();
>>>> 	}
>>>>
>>>>
>>>> public void setSelectedRating(Rating pRating)
>>>> 	{
>>>> 		currentMasterAlert.setRatingRelationship((Rating)EOUtilities.localInstanceOfObject(ec(), pRating));
>>>> 		System.out.println(pRating.name());
>>>>   }
>>>>
>>>> YET in my javascript:
>>>>
>>>> function createNameEntry(){
>>>> 	var inAddMode = "<webobject name = "inAddMode"/>";
>>>> 	$('NameEntry').value = "";
>>>> 	var typeIndex  = $('typeSelect').selectedIndex;
>>>> 	var sectorIndex  = $('sectorSelect').selectedIndex;
>>>> 	var ratingIndex  = $('ratingSelect').selectedIndex;
>>>>
>>>> 	if($('typeSelect').selectedIndex > 0){
>>>> 		$('NameEntry').value += $('typeSelect').options[typeIndex].text+" - ";
>>>> 	}
>>>> 	if($('sectorSelect').selectedIndex > 0){
>>>> 		$('NameEntry').value += $('sectorSelect').options[sectorIndex].text+" - ";
>>>> 	}
>>>> 	if($('ratingSelect').selectedIndex > 0){
>>>> 		$('NameEntry').value += $('ratingSelect').options[ratingIndex].text;
>>>> 	}
>>>> }
>>>>
>>>> The NameEntry field gets set correctly and then upon submit.. it gets the "first" object of the list always.
>>>>
>>>>
>>>> On Jun 7, 2010, at 5:33 PM, Chuck Hill wrote:
>>>>
>>>>> session.ratings and selectedRating are not in the same EC
>>>>>
>>>>>
>>>>> On Jun 7, 2010, at 3:08 PM, James Cicenia wrote:
>>>>>
>>>>>> The problem, no matter what I pick, it always selects the first non-null entry in the dropdown.
>>>>>>
>>>>>> As evidenced by my printout.
>>>>>>
>>>>>> YET -
>>>>>>
>>>>>> In the javascript is does put the correct rating.name in the text field!
>>>>>> Just the object is getting somehow mis-referenced.
>>>>>>
>>>>>> public void setSelectedRating(Rating pRating)
>>>>>> {
>>>>>> 	System.out.println(pRating.name());
>>>>>> }
>>>>>> RatingPopUp : WOPopUpButton{
>>>>>> id = "ratingSelect";
>>>>>> list = session.ratings;
>>>>>> item = aRating;
>>>>>> name="CA_type";
>>>>>> class="MB_focusable MB_field width100";
>>>>>> selection = selectedRating;
>>>>>> displayString = aRating.name;
>>>>>> noSelectionString = "-- select rating --";
>>>>>>
>>>>>> onChange = "javascript:createNameEntry()";
>>>>>> }
>>>>>>
>>>>>> Thanks
>>>>>> James
>>>>>> _______________________________________________
>>>>>> 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
>>>>>
>>>>> --
>>>>> Chuck Hill             Senior Consultant / VP Development
>>>>>
>>>>> 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:
>>>>
>>>> This email sent to email@hidden
>>>
>>> --
>>> Chuck Hill             Senior Consultant / VP Development
>>>
>>> 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:
>>
>> This email sent to email@hidden
>
> --
> Chuck Hill             Senior Consultant / VP Development
>
> 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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Extra set of eyes on this WOPopUp.
      • From: James Cicenia <email@hidden>
References: 
 >Extra set of eyes on this WOPopUp. (From: James Cicenia <email@hidden>)
 >Re: Extra set of eyes on this WOPopUp. (From: Chuck Hill <email@hidden>)
 >Re: Extra set of eyes on this WOPopUp. (From: James Cicenia <email@hidden>)
 >Re: Extra set of eyes on this WOPopUp. (From: Chuck Hill <email@hidden>)
 >Re: Extra set of eyes on this WOPopUp. (From: James Cicenia <email@hidden>)
 >Re: Extra set of eyes on this WOPopUp. (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Extra set of eyes on this WOPopUp.
  • Next by Date: Re: Oracle searching with accented characters
  • Previous by thread: Re: Extra set of eyes on this WOPopUp.
  • Next by thread: Re: Extra set of eyes on this WOPopUp.
  • Index(es):
    • Date
    • Thread