Expression Syntax
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Content Selection Framework > Expression Syntax




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Expression Syntax  
Quinn Wilson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-27-04 05: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>





[ Post a follow-up to this message ]



    RE: Expression Syntax  
David Messner [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-27-04 08: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>






[ Post a follow-up to this message ]



    Re: Expression Syntax  
Quinn Wilson


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-28-04 07: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 a
t
> 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 jus
t
> 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.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:09 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register