how to use EvalXml
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 > how to use EvalXml




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

    how to use EvalXml  
Rajashekar


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


 
07-09-04 08:13 PM

Hi

I am trying to use ExpressionEvaluatorClass 's EvalXml method, but I always
get System.DBNull as result. Purpose is to evaluate th expression XML
against the OrderForm, this function returns
ExpressionEvaluator.ExpressionResult enumeration which has 3 values true,
false and undefined.

I am not sure whether the parameters I am passing to this function are
correct. Here is what I am using:

Dim objExpressionEvaluator As
Microsoft.CommerceServer.Interop.Targeting.ExpressionEvaluatorClass = New
Microsoft.CommerceServer.Interop.Targeting.ExpressionEvaluatorClass

If Not (IsDBNull(objExpressionEvaluator.EvalXML(strExpressionXML,
TransactionContext.Current.CartOrderForm.Dictionary))) Then

//Code....It never gets inside as the return value from the function is
always null..

End If


Regards







[ Post a follow-up to this message ]



    RE: how to use EvalXml  
Andy Xu[MSFT]


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


 
07-09-04 08:15 PM

Hi, there,

you need to call IExpressionEvaluator's Connect method before doing any eval
uation. Parse an expression store's connection string to Connect method.

HTH,
Andy Xu [MSFT]
Commerce Server Team
--
This posting is provided "AS IS" with no warranties, and confers no rights. Use of incl
uded script samples are subject to the terms specified at http://www.microsoft.com
/info/cpyright.htm

Note:  For the benefit of the community-at-large, all responses to this mess
age are best directed to the newsgroup/thread from which they originated.
--------------------
From: "Rajashekar" <rajasekhark@bsil.com>
Subject: how to use EvalXml
Date: Wed, 7 Jul 2004 10:30:38 +0530
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Message-ID: <OMRUW99YEHA.1264@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.commerceserver.campaigns_csf
NNTP-Posting-Host: leased-200-22-2.bng.vsnl.net.in 203.200.22.2
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXS01.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MS
FTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.campaigns_csf:277
2
X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf

Hi

I am trying to use ExpressionEvaluatorClass 's EvalXml method, but I always
get System.DBNull as result. Purpose is to evaluate th expression XML
against the OrderForm, this function returns
ExpressionEvaluator.ExpressionResult enumeration which has 3 values true,
false and undefined.

I am not sure whether the parameters I am passing to this function are
correct. Here is what I am using:

Dim objExpressionEvaluator As
Microsoft.CommerceServer.Interop.Targeting.ExpressionEvaluatorClass = New
Microsoft.CommerceServer.Interop.Targeting.ExpressionEvaluatorClass

If Not (IsDBNull(objExpressionEvaluator.EvalXML(strExpressionXML,
TransactionContext.Current.CartOrderForm.Dictionary))) Then

//Code....It never gets inside as the return value from the function is
always null..

End If


Regards









[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:39 AM.      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