My bad, I just overlooked you're using d2wContext().

Is this something you're writing? If yes, where exactly?

Farrukh

On 2012-02-08, at 5:25 PM, James Cicenia wrote:

> Not sure that is relevant.
> 
> When instantiating a D2WQueryPage and you pass in "Grouped" or "Sectioned" 
> property keys it will fail:
> 
>>> String key = (String)keysEnum.nextElement();
> 
> 
> James
> 
> 
> On Feb 8, 2012, at 6:13 AM, Farrukh Ijaz wrote:
> 
>> 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/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