You might be able to do this for an inspect page, but it's not going to work on a list page. There's no 'object' when you're creating table headers which contain displayNameForProperty. If it's an inspect page, you could just say something like
100: entity.name = "MyEntity" and propertyKey = "rpt_quant_Value" => displayNameForProperty = "object.rptQuantDisplayName" [ERDDelayedKeyValueAssignment] And create a rptQuantDisplayName() method on your eo. Ramsey On Jan 13, 2012, at 6:48 AM, James Cicenia wrote: > What I am trying to accomplish is to set the displayNameForProperty based > upon a dynamic calculation of the key. > > I am using fake keys like "rpt_quant_Value". These are created dynamically > based upon values in a to-many relationship. > This way a user can report on the value in its report by selecting it as a > column. I then parse the part after rpt_quant_ to give > me my lookup to return the value in the column. This is all working pretty > well. > > Now I just need to figure out how to set the displayNameForProperty based > upon some dynamic calculation. > > Thanks > James > > > On Jan 12, 2012, at 9:14 PM, Ramsey Gurley wrote: > >> session.objectStore.user.isAdmin >> >> Careful though. Don't terminate your session or object keypaths on an EO. >> If you just want to check for the existence of an EO, then you can do >> >> session.objectStore.user.isNonNull >> >> Ramsey >> >> On Jan 12, 2012, at 11:04 AM, James Cicenia wrote: >> >>> Hello >>> >>> How can I make up a rule to return a session dictionary's value based upon >>> the key? >>> >>> Thanks >>> James >>> >>> >>> _______________________________________________ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list ([email protected]) >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/webobjects-dev/ramseygurley%40gmail.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: > http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
