• 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
SOLVED Re: Is there a way to create rules programatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SOLVED Re: Is there a way to create rules programatically?


  • Subject: SOLVED Re: Is there a way to create rules programatically?
  • From: James Cicenia <email@hidden>
  • Date: Tue, 17 Jan 2012 11:46:47 -0600

That was it!   Now it works completely dynamically! 

The user gets a pick list of propertyKeys which include those from the administration table.

I generate the "fake" keys with a wee bit of logic in the name of the key "rpt_project_quant".

Then in my EO:

public Object handleQueryWithUnboundKey(String key){
if(key.startsWith("rpt_project_quant_")){


key =key.substring("rpt_project_quant_".length(), key.length());
        return this.quantitativeForecastedMetricValueByName(key);
}else if(key.startsWith("rpt")){
return null;
}else{
return super.handleQueryWithUnboundKey(key);


}


}

Now that my headers work too, my users will think it a dream.

Thanks a lot!

James



smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >Is there a way to create rules programatically? (From: James Cicenia <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: Farrukh Ijaz <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: James Cicenia <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: Farrukh Ijaz <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: Jesse Tayler <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: Ramsey Gurley <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: James Cicenia <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: Ramsey Gurley <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: James Cicenia <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: David LeBer <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: James Cicenia <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: David LeBer <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: James Cicenia <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: David LeBer <email@hidden>)
 >Re: Is there a way to create rules programatically? (From: David LeBer <email@hidden>)

  • Prev by Date: Re: Using the wonder source, eclipse question
  • Next by Date: ERCoolComponents?
  • Previous by thread: Re: Is there a way to create rules programatically?
  • Next by thread: WOLips sites
  • Index(es):
    • Date
    • Thread