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

Rép : Re: Re: Using AjaxInPlaceEditor in WORepetition


  • Subject: Rép : Re: Re: Using AjaxInPlaceEditor in WORepetition
  • From: Raymond NANEON <email@hidden>
  • Date: Mon, 08 Aug 2011 15:28:58 +0000 (GMT)

Hi Ted,

I did it. Here is my java code if you would like to make some changes.
Attached a copy of my screen test.

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>

    </table>

InWOD

implication : AjaxInPlaceEditor {

value = theEditor;

action = saveOnChange;

}

In Java Class : 

...

private NSMutableDictionary txImplication = new NSMutableDictionary();

public ForAjaxEditor Editor = new ForAjaxEditor();


...


public WOActionResults ajoutPerson() {

...

// Add line to set row and the String value

Editor.setIndex(session.getPersonneDg().allObjects().count() - 1);

Editor.setTempUtil("taux%");

// Here I use NSDictionnary, it's perfect

txImplication.put(Editor.getIndex(), Editor.getTempUtil());

...


}


public String theEditor() {

if (session.getPersonneDg().selectedObject() != null) {

Integer index = session.getPersonneDg().displayedObjects().indexOf(session.getPersonneDg().selectedObject());

if (txImplication.containsKey(index)) {

return (String) txImplication.get(index);

}

}

return Editor.getTempUtil();

}


public void setTheEditor(String aValue) {

session.getPersonneDg().setSelectedObject(session.getPersonRhRepetition());

EOIndividuUlr perso = ((EOIndividuUlr) session.getPersonneDg().selectedObject()).localInstanceIn(ed);

int index = session.getPersonneDg().displayedObjects().indexOf(perso);

if (txImplication.containsKey(index)) {

txImplication.setObjectForKey(aValue, index);

}

}TestOK.png

Thanks a lot and to all guys which makes WO great
Ray
Envoyé depuis iCloud
 _______________________________________________
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

  • Prev by Date: Re: Design question: are cross database ManyToMany relationships possible (Lars Sonchocky-Helldorf)
  • Next by Date: Re: setUser() vs. setUserRelationship()
  • Previous by thread: Re: Design question: are cross database ManyToMany relationships possible (Lars Sonchocky-Helldorf)
  • Next by thread: Cayenne
  • Index(es):
    • Date
    • Thread