Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Commerce Server General > How to use Mark...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 2407 of 2446
Post > Topic >>

How to use MarketingExpressionEvaluator.Evaluate ?

by "Ziver MALHASOGLU" <zam@[EMAIL PROTECTED] > Feb 26, 2008 at 06:48 PM

Hi,



I needed a way to use commerce server objects to evaluate expressions. I 
want use ExpressionEvaluator object to evaluate target expressions and 
catalog expressions, but couldn't find the way to evaluate this
expressions. 
I want the evaulation's result to be assigned to 
ExpressionEvaluator.ExpressionResult object. But I don't set to 
TarrgetingProfileCollection of the ExpressionResults' parameters. For this

reason ExpressionResult returns the "UndefinedResult" value, but the 
expected values are "true" or "false".



Below i have upplied the code that i expect to return boolean value, but
it 
returns "UndefinedResult"



UserObjectProfile profile = CurrentUser.GetUserProfile(true);

Microsoft.CommerceServer.Runtime.Profiles.Profile userprofile =

CommerceContext.Current.ProfileSystem.GetProfile("{" +
profile.Id.ToString() 
+ "}", "UserObject");

TargetingProfileCollection profiles = new TargetingProfileCollection();

profiles.Add("Profile",userprofile);



MarketingExpressionEvaluator expressionEvaluator = new 
MarketingExpressionEvaluator(connectionString, 
CommerceContext.Current.DebugContext);

MarketingExpressionEvaluator.ExpressionResult result = 
expressionEvaluator.Evaluate(expressinid, profiles);
 




 1 Posts in Topic:
How to use MarketingExpressionEvaluator.Evaluate ?
"Ziver MALHASOGLU&qu  2008-02-26 18:48:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 16:18:55 CST 2008.