Content Selection Framework - Expression Syntax

This is Interesting: Free IT Magazines  
Home > Archive > Content Selection Framework > February 2004 > Expression Syntax





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Expression Syntax
Quinn Wilson

2004-02-27, 12:36 pm

I have two problems I want to solve.

First I want to apply a discount to the contents of (only) one
catalog. I am trying to identify the name of the Catalog using the
syntax below but it doesn't seem to work.
Has anyone done something similar?
<CLAUSE OPER="equal">
<Property ID="product._product_CatalogName" TYPE="STRING"/>
<IMMED-VAL TYPE="string">
<![CDATA[OutletStore]]>
</IMMED-VAL>
</CLAUSE>


Second I have set up an expression "On Sale" to compare two product
attributes, namely the list price and an attribute I've generated
called "OriginalRetail".

I modified this in the ES_ExprInfo table by hand because the bizdesk
complains that the arguments are not valid. Is there anyway to extend
the expression syntax to make this sort of thing not break in the
bizdesk expression builder?

<CLAUSE OPER="less-than">
<Property ID="product._product_cy_list_price" TYPE="CURRENCY"/>
<Property ID="product._product_OriginalRetail" TYPE="CURRENCY"/>
</CLAUSE>
David Messner [MSFT]

2004-02-27, 3:36 pm

Hi Quinn

For #1, try "product.product_catalog" instead of
"product._product_CatalogName". This key is not set by QCI but should be
there if you used the managed LineItem class, I think (verify by looking at
the pipeline log).

For #2, you're own your own as to the BizDesk mods. We've had this on the
feature list for a while (properties on the RHS of expressions and not just
IMMED-VALs) but it hasn't been addressed yet. What's your scenario? Is
this working for you on the back-end (evaluator side)? I don't think it's
been tested.

regards
-djm
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2004 Microsoft Corporation. All rights
reserved.
--------------------
From: Quinn.Wilson@nygard.com (Quinn Wilson)
Newsgroups: microsoft.public.commerceserver.campaigns_csf
Subject: Expression Syntax
Date: 27 Feb 2004 09:35:41 -0800
Organization: http://groups.google.com
Lines: 27
Message-ID: <43724709.0402270935.7cf12fbb@posting.google.com>
NNTP-Posting-Host: 64.4.94.50
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1077903341 16539 127.0.0.1 (27 Feb 2004
17:35:41 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 27 Feb 2004 17:35:41 +0000 (UTC)
Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!npeer.de.kpn-eurorings.net!news.glorb.com!postnews1.google.com!not-for-
mail
Xref: cpmsftngxa06.phx.gbl
microsoft.public.commerceserver.campaigns_csf:2546
X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf

I have two problems I want to solve.

First I want to apply a discount to the contents of (only) one
catalog. I am trying to identify the name of the Catalog using the
syntax below but it doesn't seem to work.
Has anyone done something similar?
<CLAUSE OPER="equal">
<Property ID="product._product_CatalogName" TYPE="STRING"/>
<IMMED-VAL TYPE="string">
<![CDATA[OutletStore]]>
</IMMED-VAL>
</CLAUSE>


Second I have set up an expression "On Sale" to compare two product
attributes, namely the list price and an attribute I've generated
called "OriginalRetail".

I modified this in the ES_ExprInfo table by hand because the bizdesk
complains that the arguments are not valid. Is there anyway to extend
the expression syntax to make this sort of thing not break in the
bizdesk expression builder?

<CLAUSE OPER="less-than">
<Property ID="product._product_cy_list_price" TYPE="CURRENCY"/>
<Property ID="product._product_OriginalRetail" TYPE="CURRENCY"/>
</CLAUSE>

Quinn Wilson

2004-02-28, 2:34 am

davidme@online.microsoft.com (David Messner [MSFT]) wrote in message news:<E3ujIkW$DHA.464@cpmsftngxa06.phx.gbl>...
> Hi Quinn
>
> For #1, try "product.product_catalog" instead of
> "product._product_CatalogName". This key is not set by QCI but should be
> there if you used the managed LineItem class, I think (verify by looking at
> the pipeline log).


It worked. That's great! You know I noticed a couple of posts on this
list asking the same question(err..to be able to apply a discount to a
whole catalog)...and the answer was always "can't be done."

Thanks, I appreciate it.

>
> For #2, you're own your own as to the BizDesk mods. We've had this on the
> feature list for a while (properties on the RHS of expressions and not just
> IMMED-VALs) but it hasn't been addressed yet. What's your scenario? Is
> this working for you on the back-end (evaluator side)? I don't think it's
> been tested.

Seems to be working fine on the evaluator side, yes. I'll take a look
at the bizdesk.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com