How do I make the content selection framework aware of a property that has been added
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > How do I make the content selection framework aware of a property that has been added




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

    How do I make the content selection framework aware of a property that has been added  
jb_in_marietta@yahoo.com


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


 
02-07-04 02:37 PM

I am using Commerce Server 2002.
I have added a boolean property called "SubscribesToHSI" to the
Targeting Context profile.  I have created a targeting
expression referencing this property, and I am using this expression
in an ad campaign.

Let's say that my application has ascertained that the value of
"SubscribesToHSI" is True.  How do I make the
"Commerce.ContentSelector" object
aware of this value before I invoke its GetContent method?

Can someone please give me an actual code sample in classic ASP
(VBScript) demonstrating how to do this.
I have been through the newsgroups with a fine tooth comb, and I have
yet to find a concrete example.

Thanks in advance!

--Jonathan


Following is an example of the code I am using to retrieve the
content:

public function CoreGetAdContent()
Dim CSO, Ads

'Create a ContentSelector object.
Set CSO = Server.CreateObject("Commerce.ContentSelector")

CSO.NumRequested = 1
CSO.PageGroup = "Browse"

'---------------------------------------------------------------------
'  PRESUMABLY I WILL BE SETTING A PROPERTY OF THE CSO OBJECT AT
THIS
'  POINT TO INDICATE THAT "SubscribesToHSI" = True.
'  UNFORTUNATELY, I HAVE BEEN UNABLE TO FIND AN EXAMPLE OF HOW
'  TO DO THIS 
'---------------------------------------------------------------------


'Use the GetContent method to get some content. Use the dictionary
'previously created in the Global.asa file and referenced through
the
'Application collection.

Set Ads = CSO.GetContent(Application("CSFAdsContext"))

'Ads is a SimpleList containing the selected content.
'Write the content to the page, if any.

Set CoreGetAdContent = Ads
end function





[ Post a follow-up to this message ]



    Sponsored Links  




 





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