• 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: How to display a non-attribute form field that's embedded in a WORepetition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to display a non-attribute form field that's embedded in a WORepetition


  • Subject: Re: How to display a non-attribute form field that's embedded in a WORepetition
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 10 Nov 2010 10:28:14 -0500

if you don't want to expose this in your model object until the end, you can always just have an NSMutableDictionary<ComplianceItem, String> _pendingData; in your component with

public void setPendingData(String pendingData) {
if (pendingData == null) { 
_pendingData.removeObjectForKey(_repetitionComplianceItem);
} else {
_pendingData.setObjectForKey(pendingData, _repetitionComplianceItem);
}
}

public String pendingData() {
return _pendingData.objectForKey(_repetitionComplianceItem);
}


On Nov 10, 2010, at 10:13 AM, Farrukh Ijaz wrote:

I would define just define a public transient attribute to the entity class. This will allow me to use it in D2W rules too it won't break anything even if due to some reason the Entity is serialized / deserialized / marshalled / unmarshalled. And you would be able to bind your WOTextField to this transient property too.

class ComplianceItem extends _ComplianceItem {

public transient String something;

}

Farrukh

On 2010-11-10, at 4:32 PM, Paula Loehr wrote:

I have a WORepetition of complianceItems.
I want to display a WOTextField within the repetition and it’s not an attribute of complianceItem.
When the user clicks the “Save Changes” button, I want to be able to reference the
WOTextField for each complianceItem and add the contents of it to an attribute in complianceItem.

Thanks in advance,
Paula

--
Paula Loehr

K12 Inc
719-460-4350
email@hidden

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: How to display a non-attribute form field that's embedded in a WORepetition
      • From: Paula Loehr <email@hidden>
    • Re: How to display a non-attribute form field that's embedded in a WORepetition
      • From: Farrukh Ijaz <email@hidden>
References: 
 >How to display a non-attribute form field that's embedded in a WORepetition (From: Paula Loehr <email@hidden>)
 >Re: How to display a non-attribute form field that's embedded in a WORepetition (From: Farrukh Ijaz <email@hidden>)

  • Prev by Date: Re: How to display a non-attribute form field that's embedded in a WORepetition
  • Next by Date: Re: How to display a non-attribute form field that's embedded in a WORepetition
  • Previous by thread: Re: How to display a non-attribute form field that's embedded in a WORepetition
  • Next by thread: Re: How to display a non-attribute form field that's embedded in a WORepetition
  • Index(es):
    • Date
    • Thread