retrieving catalogContext
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
retrieving catalogContext

 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server
Author Message
CreateVariants method
Guest





Posted: Mon Dec 27, 2004 9:19 pm    Post subject: retrieving catalogContext Reply with quote

Hi,
We have several stores that we've built in CS2002, now i am developing an
administrator interface to manage these stores. (bypassing CS built-in
management interface)
The problem is that i'm not working in the context of a store, hence i
cannot work with catalogContext object. is there a way retrieve this object
from outside the store once the administrator select the store of interest.
specifically i'm trying to implement a search function that will return the
set of all products in which there "description" field contains a certain
value.
Amir
Back to top
David Messner [MSFT]
Guest





Posted: Thu Dec 30, 2004 5:08 am    Post subject: RE: retrieving catalogContext Reply with quote

Sure, you can create a CatalogContext using its static factory method:

CreateFromConnectionString(String, DebugContext)

Use an instance of ConsoleDebugContext for the second argument if your code
is not running in HttpContext.

-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.

--------------------
Thread-Topic: retrieving catalogContext
thread-index: AcTsJ2fwblZ5NdYjScetx9dGHQc8QQ==
X-WBNR-Posting-Host: 212.143.57.174
From: =?Utf-8?B?Q3JlYXRlVmFyaWFudHMgbWV0aG9k?=
<CreateVariantsmethod@discussions.microsoft.com>
Subject: retrieving catalogContext
Date: Mon, 27 Dec 2004 07:19:06 -0800
Lines: 11
Message-ID: <6DE46DD3-25F4-4E2E-8B2E-D0A672FC21E6@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:15308
X-Tomcat-NG: microsoft.public.commerceserver.general

Hi,
We have several stores that we've built in CS2002, now i am developing an
administrator interface to manage these stores. (bypassing CS built-in
management interface)
The problem is that i'm not working in the context of a store, hence i
cannot work with catalogContext object. is there a way retrieve this object
from outside the store once the administrator select the store of interest.
specifically i'm trying to implement a search function that will return the
set of all products in which there "description" field contains a certain
value.
Amir
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB