Damn good question really. I have been living in some possessed wonder environment.
However, let us take this a different way so that I am not chasing my tail,
your tail, or source code trails anymore.
I want to simply create a component that works with your PropertyName.
public String value()
{
lookupString =(String)valueForKey("propertyKey");
if(lookupString.startsWith("rpt_project_forecasted")){
return
lookupString.substring("rpt_project_forecasted_quant_".length(),
lookupString.length())+" (f)";
}
if(lookupString.startsWith("rpt_project_actual")){
return
lookupString.substring("rpt_project_actual_quant_".length(),
lookupString.length())+" (a)";
}
return "";
}
Now what should this be wrapped in? ERXStatelessComponent? ERDCustomComponent? ?
I have tried to make this work with all combinations of failure. With
d2wContext always null ?
Thanks
James
On Jan 29, 2012, at 9:58 AM, David LeBer wrote:
> Why?
>
> I don't know, ghosts? No, maybe aliens? Oh, I know, alien ghosts!
>
> What are you doing in your code? What troubleshooting have you tried? You
> said it worked, what did you change?
>
> D
>
> --
> David LeBer
> Codeferous Software
>
> On 2012-01-29, at 8:14 AM, James Cicenia wrote:
>
>> OK -
>>
>> I had this working a bit. Now i get errors.
>>
>> I changed it:
>>
>> PropertyName: ERXSwitchComponent {
>> WOComponentName = d2wContext.propertyNameComponentName;
>> localContext = d2wContext;
>> }
>>
>>
>> I pass in a rule
>>
>> propertyNameComponentName via Assignment
>>
>> My component subclasses ERXStatelessComponent
>>
>> Then when I run the code it always thinks d2wContext is null ?
>>
>> Why?
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
>>
>> This email sent to [email protected]
>
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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]
