trying to use LineItem.Item in C#
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 > trying to use LineItem.Item in C#




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

    trying to use LineItem.Item in C#  
cbuda


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


 
12-23-04 10:51 PM

I am trying to add some custom attributes to a new line item using Item
attribute of LineItem but it Item does not seem to be available.  The odd
thing is that I seem to only have the problem in c#.  I tested the same thin
g
out in a VB.Net control and was able to see the Item attribute.  Any idea wh
y
this may be happening?  I need to get this working in C# because I have an
existing C# control that needs to have this logic.  If this is not possible,
is there any other way to accomplish this (adding customer attributes to a
line).

Thanks





[ Post a follow-up to this message ]



    RE: trying to use LineItem.Item in C#  
David Messner [MSFT]


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


 
12-28-04 07:49 AM

I'm not clear on what you mean by an "attribute" in this context.  But at
any rate, the LineItem class has an indexer in C#

lineItem["myPropertyName"] = <value>;

If you want this stored in a separate DB column for baskets/orders, you'll
need to create the column in your DB matching this property name, otherwise
it will be stored in the marshalled_data column.

-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: trying to use LineItem.Item in C#
thread-index: AcTpDsAjBJSHTqQqQ0SnX6m0wCbgPg==
X-WBNR-Posting-Host: 65.217.204.139
From: "examnotes" <cbuda@discussions.microsoft.com>
Subject: trying to use LineItem.Item in C#
Date: Thu, 23 Dec 2004 08:45:03 -0800
Lines: 10
Message-ID: <79CB4778-3133-407F-9975-759A4F38E05B@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:15299
X-Tomcat-NG: microsoft.public.commerceserver.general

I am trying to add some custom attributes to a new line item using Item
attribute of LineItem but it Item does not seem to be available.  The odd
thing is that I seem to only have the problem in c#.  I tested the same
thing
out in a VB.Net control and was able to see the Item attribute.  Any idea
why
this may be happening?  I need to get this working in C# because I have an
existing C# control that needs to have this logic.  If this is not
possible,
is there any other way to accomplish this (adding customer attributes to a
line).

Thanks






[ Post a follow-up to this message ]



    RE: trying to use LineItem.Item in C#  
cbuda


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


 
01-04-05 10:56 PM

Thanks, that is exactly what I was looking for

"David Messner [MSFT]" wrote:

> I'm not clear on what you mean by an "attribute" in this context.  But at
> any rate, the LineItem class has an indexer in C#
>
> lineItem["myPropertyName"] = <value>;
>
> If you want this stored in a separate DB column for baskets/orders, you'll
> need to create the column in your DB matching this property name, otherwis
e
> it will be stored in the marshalled_data column.
>
> -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 righ
ts
> reserved.
>
> --------------------
> Thread-Topic: trying to use LineItem.Item in C#
> thread-index: AcTpDsAjBJSHTqQqQ0SnX6m0wCbgPg==
> X-WBNR-Posting-Host: 65.217.204.139
> From: "examnotes" <cbuda@discussions.microsoft.com>
> Subject: trying to use LineItem.Item in C#
> Date: Thu, 23 Dec 2004 08:45:03 -0800
> Lines: 10
> Message-ID: <79CB4778-3133-407F-9975-759A4F38E05B@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:15299
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> I am trying to add some custom attributes to a new line item using Item
> attribute of LineItem but it Item does not seem to be available.  The odd
> thing is that I seem to only have the problem in c#.  I tested the same
> thing
> out in a VB.Net control and was able to see the Item attribute.  Any idea
> why
> this may be happening?  I need to get this working in C# because I have an
> existing C# control that needs to have this logic.  If this is not
> possible,
> is there any other way to accomplish this (adding customer attributes to a
> line).
>
> Thanks
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





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