Hi James,

In practice you should use either d2wContext.setDynamicPage(...) or 
d2wContext.setEntity(...) and d2wContext.setTask(...) methods prior to call 
d2wContext.valueForKey(...).

Farrukh

On 2012-02-07, at 11:24 PM, James Cicenia wrote:

> Here is the code:
> 
>         if (null == _nullablePropertyKeys) {
>             NSMutableArray array = new NSMutableArray();
>             String preKey = propertyKey();
>             D2WContext d2wContext = d2wContext();
>             for (Enumeration keysEnum = 
> displayPropertyKeys().objectEnumerator(); keysEnum.hasMoreElements();) {
>                 String key = (String)keysEnum.nextElement();
>                 setPropertyKey(key);
> 
>                 Object isMandatory = d2wContext.valueForKey("isMandatory");
>                 if (isMandatory != null && 
> !ERXValueUtilities.booleanValue(isMandatory)) {
>                     array.addObject(key);
>                 }
>             }
>             _nullablePropertyKeys = array;
>             setPropertyKey(preKey); // Restore the property key.
>         }
>         return _nullablePropertyKeys;
>     }
> 
> 
> Since it brings back all property keys... it doesn't work with 
> Grouped/Tabbed/Sectioned property lists as those are arrays.
> 
> 
> - James
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to