• 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: d2w add displayPropertyKeys in new ListPageInterface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: d2w add displayPropertyKeys in new ListPageInterface


  • Subject: Re: d2w add displayPropertyKeys in new ListPageInterface
  • From: Ramsey Gurley <email@hidden>
  • Date: Tue, 09 Dec 2014 13:10:38 -0700

No, that’s fine. However, with custom assignment you could put the rule in a framework and wouldn’t have to implement that method on your session in every app you build. You can also control caching properly using dependent keys.

100 : pageConfiguration = 'ListInstrumentFamily' => displayPropertyKeys = "” [MyAssignment]


On Dec 9, 2014, at 12:05 PM, Theodore Petrosky <email@hidden> wrote:

Ramsey,

since displayPropertyKeys is looking for an array of strings is there a way to do this. Where session.myDisplayKeys returns an array of strings.

100 : pageConfiguration = 'ListInstrumentFamily' => displayPropertyKeys = "session.myDisplayKeys" [com.webobjects.directtoweb.Assignment]

or does this also get one ‘stuck’?

Ted

On Dec 9, 2014, at 1:44 PM, James Cicenia <email@hidden> wrote:

I have been able to change the displayProperties in code and have it successfully render.

Then again I think I am instantiating a new report each time.



On Dec 9, 2014, at 11:54 AM, Ramsey Gurley <email@hidden> wrote:

You may want to avoid pushing the context like that. I’ve had some case where I pushed the context on values typically set by rules and it resulted in hard caching those values. No matter what other rules I had set, it was stuck that way. If I need to do it in code, I do so via a custom rule assignment.

On Dec 9, 2014, at 9:56 AM, James Cicenia <email@hidden> wrote:

Great -
forgot about d2wContext()
thanks




On Dec 9, 2014, at 10:35 AM, Theodore Petrosky <email@hidden> wrote:


this will do what you want, just create the array of strings that represent the keys you want.

((D2WPage) lpi).d2wContext().takeValueForKey(theArray, "displayPropertyKeys”);



On Dec 9, 2014, at 11:25 AM, James Cicenia <email@hidden> wrote:


How does one add the displayPropertKeys in code for a new ListPageInterface?

I could add it to the session and use a rule to grab it, but that doesn’t sound right.

Thanks
James


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
References: 
 >d2w add displayPropertyKeys in new ListPageInterface (From: James Cicenia <email@hidden>)
 >Re: d2w add displayPropertyKeys in new ListPageInterface (From: Theodore Petrosky <email@hidden>)
 >Re: d2w add displayPropertyKeys in new ListPageInterface (From: James Cicenia <email@hidden>)
 >Re: d2w add displayPropertyKeys in new ListPageInterface (From: Ramsey Gurley <email@hidden>)
 >Re: d2w add displayPropertyKeys in new ListPageInterface (From: James Cicenia <email@hidden>)
 >Re: d2w add displayPropertyKeys in new ListPageInterface (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: Google Calendar access from WO
  • Next by Date: Re: Best way to run static class method from a string?
  • Previous by thread: Re: d2w add displayPropertyKeys in new ListPageInterface
  • Next by thread: Deploying issue
  • Index(es):
    • Date
    • Thread