Re: Changing value of a WOConditional binding inside WORepetition
Re: Changing value of a WOConditional binding inside WORepetition
- Subject: Re: Changing value of a WOConditional binding inside WORepetition
- From: David Holt <email@hidden>
- Date: Tue, 30 Aug 2005 15:05:31 -0700
Hi Ken,
DeletedLookup currently has values of "Yes" or "No" corresponding to 1
or 0 in the Document class. I am sure that setting a boolean variable
in Document would be MUCH easier. ;-) Originally I was thinking that I
might have three states to take care of (no, pending, yes).
I am using a simple list of the documents in the display group. I have
view/edit links for each row and wanted to mark the individual rows for
deletion if necessary. The conditional toggles whether the link
displayed is the "deleteDocument" link or the "undeleteDocument" link.
The problem is that when a user clicks the undelete link, it sets the
value in the itemDocument back to 0, but the corresponding conditional
doesn't update.
I don't want to use a submit button in this case because the user is
going to expect that the links in each row of the repetition handle the
actions that they want to do. I could see my users clicking links and
having no idea that they would have to submit in addition.
On 30 Aug 2005, at 2:47 PM, Ken Anderson wrote:
David,
Can you explain what the DeletedLookup class does? I'm having a hard
time understanding this code.
Also, it's pretty unusual to call saveChanges() inside
appendToResponse() like that. Is there a reason you need these
changes sent to the database immediately? Typically, you would let
the users manipulate whatever they want, then have a save or cancel
button at the bottom of the page. Is there a reason you need to do it
this way?
Ken
On Aug 30, 2005, at 5:37 PM, David Holt wrote:
_______________________________________________
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