On 2012-07-30, at 3:40 PM, David Holt <programming...@mac.com> wrote:

> Well, this was a strange one. There is yet another utility that comes in 
> handy:
> 
> ERD2WUtilities.resetContextCache(d2wContext)
> 
> It seemed that nextPageDelegate for the embedded download button became the 
> nextPageDelegate for the entire page because of the cached values.
> 
> Once empty I needed to set the dynamicPage value again so that the context is 
> not completely empty when you're done.

I've just confirmed this utility is used this way in ERD2WSwitchComponent

        ERD2WUtilities.resetContextCache(subContext);
        subContext.setDynamicPage((String) valueForBinding("_dynamicPage"));


> 
> 
> On 2012-07-27, at 4:50 PM, David Holt <programming...@mac.com> wrote:
> 
>> ERD2WUtilities.parentListPage(sender) did it. Thanks Ramsey. Now for the 
>> inevitable next question:
>> 
>> The delegate just returns the download using the ERDActionBar embedded in 
>> the list. Now when I go to hit the page level buttons on the Inspect page 
>> (Edit or Return), it downloads as if the embedded download button has been 
>> pressed??
>> 
>> 
>> On 2012-07-27, at 4:29 PM, Ramsey Gurley <rgur...@smarthealth.com> wrote:
>> 
>>> Sorry I didn't reply earlier. I'm used to seeing you answer questions 
>>> instead of asking them :-)
>>> 
>>> ERD2WUtilities has a number of methods that should get you the page you 
>>> want.
>>> 
>>> Ramsey
>>> 
>>> On Jul 27, 2012, at 4:19 PM, David Holt wrote:
>>> 
>>>> Maybe I should have asked: can I get the array of objects in an embedded 
>>>> list in a BranchDelegate?
>>>> 
>>>> Thanks,
>>>> 
>>>> David
>>>> 
>>>> 
>>>> On 2012-07-27, at 1:59 PM, David Holt <programming...@mac.com> wrote:
>>>> 
>>>>> Hello all,
>>>>> 
>>>>> We've been using a button on list pages of documents that allows you to 
>>>>> download all the attachments at once. We can get the display group using 
>>>>> sender.context().page().
>>>>> 
>>>>> ClassCastException: er.modern.look.pages.ERMODInspectPage cannot be cast 
>>>>> to er.directtoweb.pages.ERD2WListPage
>>>>> 
>>>>> Is there anything similar that could be done to get access to the 
>>>>> displayGroup of a list of documents embedded in an inspect page?
>>>>> 
>>>>> WODisplayGroup displayGroup = ((ERD2WListPage) 
>>>>> sender.context().page()).displayGroup();
>>>>> 
>>>>> Thanks,
>>>>> 
>>>>> David
>>>>> _______________________________________________
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>> https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
>>>>> 
>>>>> This email sent to programming...@mac.com
>>>> 
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
>>>> Help/Unsubscribe/Update your Subscription:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>>>> 
>>>> This email sent to rgur...@smarthealth.com
>>> 
>> 
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
>> 
>> This email sent to programming...@mac.com
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
> 
> This email sent to programming...@mac.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to