Hi Ray

Hope I get it right and may be this is what you need.  To manupulate the string 
for each iterative object in an array, you could set the index of WORepetition 
to an integer.  Then before display the string, check the objectAtIndex of the 
array and decide if the the string is to alter accordingly for that object.  

Cheers

Cheong Hee

  ----- Original Message ----- 
  From: [email protected] 
  To: Theodore Petrosky ; WebObjects webobjects-dev 
  Sent: Monday, August 01, 2011 2:48 AM
  Subject: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


  Hi Ted,


   if you have a list (an array) to create the objects in the repetition, then 
each object will have an attribute (string) to use for the binding of the in 
place editor.
  ==> I have an array to create the objects in repetition but each object don't 
have an attribute string. I created independent 
  variable which give an information about theses objects in the loop (that 
mean each object have the "same variable" for the editor and it's my problem).


  There is another way to use the InPlaceEditor in the loop without using the 
same variable for each object?


  ========================================

  Message du : 31/07/2011
  De : "Theodore Petrosky " <[email protected]>
  A : "WebObjects webobjects-dev" <[email protected]>, 
[email protected]
  Copie à : 
  Sujet : Re: Re: Using AjaxInPlaceEditor in WORepetition



  I am lost. 
   if you have a list (an array) to create the objects in the repetition, then 
each object will have an attribute (string) to use for the binding of the in 
place editor. Ted --- On Sat, 7/30/11, [email protected] wrote: From: 
[email protected] Subject: Re: Re: Using AjaxInPlaceEditor in WORepetition 
To: "Theodore Petrosky" , "WebObjects webobjects-dev" Date: Saturday, July 30, 
2011, 3:52 PM Hi Ted, Thanks for your quick reply but in my case the editor is 
not bound to the item.variable. The variable is not an item but a simple 
String. Let me explain, in the repetition I have item.variable and for each 
item.variable, I have an information to give.So the table have 2 columns, one 
for item.variable and the second is a variable string for the editor. So when 
for the first item.variable I give an information, this information is apply 
for all item.variable because there is one variable bound to the editor which 
loop for each item.variable. So I want to know if there is another to do it or 
how to fix it. Ray ======================================== Message du : 
30/07/2011 De : "Theodore Petrosky " A : [email protected] Copie à 
: [email protected] Sujet : Re: Using AjaxInPlaceEditor in WORepetition It 
sounds like it is giving you exactly what you are asking for. a WORepetition 
with the same piece of data on every line. I have a table with a repetition and 
the editor is bound the the item.variable of the line with no problem. a string 
ImageEditInPlace : AjaxInPlaceEditor { value = theGridItem.image; submitOnBlur 
= true; okButton = false; cancelLink = false; action = 
saveAfterLeavingInPlaceEditor; size = "15"; clickToEditText ="HeadLine"; 
editClass="editInPlaceClass"; } Ted > ------------------------------ > > 
Message: 8 > Date: Sat, 30 Jul 2011 18:58:20 +0200 (CEST) > From: 
[email protected] > Subject: Using AjaxInPlaceEditor in WORepetition > To: 
WebObjects webobjects-dev > Message-ID: > 
<18747875.180751312045100987.JavaMail.www@wsfrf1217> > Content-Type: 
text/plain; charset="utf-8" > > Hi, > > > I have a little problem with 
AjaxInPlaceEditor in a > WORepetition. The Problem is the variable I declared 
for > AjaxInPlaceEditor. > In the WORepetition I have the same variable in each 
line > of the repetition and when I choose in example line 2 and > edit it and 
put an information, > the same information is repeat on all other line. > > > 
So How can I fix it? How can I use an AjaxInPlaceEditor in > a WORepetition 
with one variable and isolate it when I edit > a line in the repetition and put 
an information? > > > Thanks for your help. 





------------------------------------------------------------------------------


  _______________________________________________
  Do not post admin requests to the list. They will be ignored.
  Webobjects-dev mailing list      ([email protected])
  Help/Unsubscribe/Update your Subscription:
  http://lists.apple.com/mailman/options/webobjects-dev/chng34%40gmail.com

  This email sent to [email protected]
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to