• 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: Using AjaxInPlaceEditor in WORepetition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using AjaxInPlaceEditor in WORepetition


  • Subject: Re: Using AjaxInPlaceEditor in WORepetition
  • From: Raymond NANEON <email@hidden>
  • Date: Thu, 04 Aug 2011 00:12:06 +0200

Hi Ted

Le 3 août 2011 à 21:28, Theodore Petrosky a écrit :


Raymond,

I assume I do not understand but, it appears that you are trying to bind the value of the inPlaceEditor to a single string var in your session. then when you click the ok or exit the inPlaceEditor you are trying to assign this value to the appropriate person object.

I will ask again. Is there a reason that you can not add an attribute "txImplication" to your entity person?
I can't add an attribute "txImplication" to my entity person because this attribute exist in the entity project which have relationship with entity person. perhaps I am doing something wrong in my code.

I would love to see your project perhaps you would like to use teamviewer and allow me to look?  
No problem with team viewer but I am in france and there is jet lag beetwen us. I will be home around 5pm

http://www.teamviewer.com

Ted
Ray

--- On Wed, 8/3/11, Raymond NANEON <email@hidden> wrote:

From: Raymond NANEON <email@hidden>
Subject: Re: Using AjaxInPlaceEditor in WORepetition
To: "Theodore Petrosky" <email@hidden>
Cc: "WebObjects webobjects-dev" <email@hidden>
Date: Wednesday, August 3, 2011, 1:50 PM

Hi All,


Here is the code of what I'm telling and I attached picture too see how the app look like.
In html :

...
      <wo name = "tableRow">
        <tr>
          <td><wo name = "pole" /></td>
          <td><wo name = "nompre" /></td>
          <td><wo name = "implication" /></td>
          <td><wo name = "cout" /></td>
        </tr>
      </wo>
...

In WOD

...
tableRow : WORepetition {
    list = session.personneDg.displayedObjects;
    item = session.personRepetition;
}

pole : WOString {
    value = poleValues;
}

nompre : WOString {
    value = ~""+session.personRepetition.nomPatronymique+" "+session.personRepetition.prenom;
}
implication : AjaxInPlaceEditor {
    value = session.TxImplication;
    action = "">}

...

In java Class

...
    public void saveOnChange() {
        System.out.println("Implication.saveOnChange: save on change was performed for value " + session.getTxImplication());
        NSMutableDictionary dicKey = new NSMutableDictionary();
//Here I select the person where the app user put the information
        session.getPersonneDg().setSelectedObject(session.getPersonRepetition());
        EOIndividuUlr perso = ((EOIndividuUlr) session.getPersonneDg().selectedObject()).localInstanceIn(ed);
//Here I take Id of the selected person in the displayGroup and associate the information about him and put all in a dictionnary to have for each information about person, the id attached
        dicKey.put(perso.primaryKey(), session.getTxImplication());
        persTxKey.addEntriesFromDictionary(dicKey);
        
        //return "this.value; return true;";
    }

...

In Session Class :

...
private String txImplication = "taux%";
...
//Here is my problem because the variable txImplication is the same for each person in the repetition
    /**
     * @return the txImplication
     */
    public String getTxImplication() {
        return txImplication;
    }

    /**
     * @param txImplication the txImplication to set
     */
    public void setTxImplication(String txImplication) {
        this.txImplication = txImplication;
    }

…

Le 3 août 2011 à 16:51, Theodore Petrosky a écrit :


I still have to ask how is this being used?

Why can you not add this attribute to the entity and be done? If each entity had the column you need just bind to the attribute.
When you say "add this attribut to teh entity", what do you mean? Each Enttity don't have the column I need. The column I need exist in another entity which have relationship with the Entity that I want to bind the attribut. Look at my code and screen shot

ted


Message: 1
Date: Wed, 03 Aug 2011 09:42:05 +0200
From: Raymond NANEON <email@hidden>
Subject: Re: Using AjaxInPlaceEditor in WORepetition
To: WebObjects webobjects-dev <email@hidden>
Message-ID: <email@hidden">email@hidden>
Content-Type: text/plain; charset="iso-8859-1"

Hi All,

Someone can help me about my problem? I have almost finish
my app but this thing make me late.
Thanks for your help

Le 1 août 2011 à 12:47, email@hidden
a écrit :

Hi Hee
 
No prob. Then you may just need to add an index
counter to track down the object that you are interested to
alter its string value, as mentioned.
==>I don't understand very well. Do you have a code
to clear all your words?
        ...
       
movieTitleChanged=movieToCheck.title() + "Add more info .."
; I don't want to add info to the title for each movie.
          ...


 
Cheers
 
Ray
 



Thanks
Ray


 _______________________________________________
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: Using AjaxInPlaceEditor in WORepetition
      • From: "Cheong Hee (Gmail)" <email@hidden>
References: 
 >Re: Using AjaxInPlaceEditor in WORepetition (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: Using AjaxInPlaceEditor in WORepetition
  • Next by Date: Re: Using AjaxInPlaceEditor in WORepetition
  • Previous by thread: Re: Using AjaxInPlaceEditor in WORepetition
  • Next by thread: Re: Using AjaxInPlaceEditor in WORepetition
  • Index(es):
    • Date
    • Thread