COM API Product attributes

I'm using the COM API with C# to develop a web application.
I have a list of products on a web page. When someone clicks on the product I would like to show some, not all, of the attributes.
How can I retrieve the value of a particular attribute?

If I try the following I always get "Incorrect parameter". If I pass the index of the attribute, it works. Will this not work for attributes with spaces in their name?
XCATCOMLib.Search search = new XCATCOMLib.SearchClass();
XCATCOMLib.ResultSetDefinition productsRsDef = null;
XCATCOMLib.Tables tables = catalog.Tables;
XCATCOMLib.Table prodTable = tables.Item(PRODUCT_TABLE);
productsRsDef = new XCATCOMLib.ResultSetDefinitionClass();
productsRsDef.Table = prodTable.Name;
productsRsDef.IncludeAttributes = true;
productsRsDef.ShowEmptyAttributes = false;
for (int j = 0; j < prodTable.Fields.Count; j++)
   productsRsDef.Fields.Add(prodTable.Fields.Item(j));
XCATCOMLib.TaxonomyLookupParameter param = search.Parameters.NewTaxonomyLookupParameter(PRODUCT_TABLE, CATEGORY_FIELD);
param.NodeID = DEHYDRATORS_CATEGORYID;
XCATCOMLib.FreeFormTableParameter tableParam = search.Parameters.NewFreeFormParameter(PRODUCT_TABLE);
ResultSet rs = catalog.GetResultSet(search, productsRsDef, prodTable.Fields.Item(0).Name, true, 0);          
XCATCOMLib.Fields objFields = rs.Fields;
for(int itemCounter = 1; !rs.EOF; rs.MoveNext(), ++itemCounter)
AttributeValues attributeValues = rs.Fields.Item("Category").Attributes.Item("PressGen: Flow Rate").Values;

Similar Messages

  • COM API Characteristic attribute

    What methods do I need to call in order to do the following?
    I want to get all the products that have a Numeric (Characteristic) attribute that has a Min value <= X and a Max value >= Y

    here is my solution...
    XCATCOMLib.Search search = new XCATCOMLib.SearchClass();
    XCATCOMLib.FreeFormTableParameter tableParam = search.Parameters.NewFreeFormParameter(PRODUCT_TABLE);
    double sysVolume = double.Parse(this.txtSysVolumeftcu.Text);
    XCATCOMLib.FreeFormParameters ffParams = tableParam.Fields.New "Category",SearchOperatorEnum.xcSearchOperatorAnd).FreeForm;                              
    XCATCOMLib.FreeFormAttributeParameter volMinParam = ffParams.NewAttribute(178, RatingEnum.xcMinimumRating, SearchOperatorEnum.xcSearchOperatorAnd);
    volMinParam.Values.NewCharacteristic(sysVolume, 9, FreeFormSearchTypeEnum.xcLessThanOrEqualToSearchType);
    XCATCOMLib.FreeFormAttributeParameter volMaxParam = ffParams.NewAttribute(178, RatingEnum.xcMaximumRating, SearchOperatorEnum.xcSearchOperatorAnd);
    volMaxParam.Values.NewCharacteristic(sysVolume, 9, FreeFormSearchTypeEnum.xcGreaterThanOrEqualToSearchType);

  • MDM com API: Retriving Attribute priority in C++

    Has anyone been able to retrive attribute priority using C++ in MDM 5.5sp3? We're in the process of upgrading from mdme4 to 5.5sp3 and the code that has worked for us in the past is failing to return the priority value:
    unsigned char ucPriority;
    ucPriority = a2iAttribute->Priority;
    (Where a2iAttributre is a valid IAttribute object)
    Is now always returning a value of 0 irregardless of the true value of the priority.
    When we access the priority in either VB 6.0 and c# (.net 1.1) it works fine.
    We're using build 5.0.28.17 from Jan 17th, 2006.
    Any ideas?
    Thanks,
    -glenn

    It turns out this problem occured only when we tried accessing an attribute's priority via icatalog.GetLimitedAttributes.
    Many thanks to Nick Luu and Stanley Levin at SAP for their help in narrowing down on the exact problem and getting it fixed in time for the release of mdm 5.5 SP3 Hotfix 5 on 8-11.

  • How do I keep product attributes from floating over product description on ecommerce site?

    When MistyAcresAlpaca.com went live, the site was working perfectly.  Over the past week, I've seen changes to the site's menus , footers and products pages that were not initiated by myself.  It appears to be a software, JS or JQuery issue.
    To clarify, catalogs have been rearranged on menu, product attributes float over product descriptions and foot information has been rearranged. 
    Customers who try to order products using IE as a browser are unable to do so.  Using Chrome or Firefox, customers are able to order products but attributes (size, color) are still floating over the product. Most of the sites customers use IE as a browser.
    Please advise on how this can be resolved and the website stablized.

    Think you may have a missing end </div> for your <div id="nav">, as it appears to be currently encapsulating the entire page including the footer.
    As a result styling for the menu #nav ul li is being adopted further down on the product details.
    Regards
    Mike

  • Adobe VBScript or COM API fails when Adobe application not already open on a certain machine

    Was wondering if anybody might have input on this or observed this themselves. Is there a known issue/bug for this?
    I'm building scripted tooling to automate tasks in Adobe Illustrator and Photoshop, using the COM API (what Adobe lists as VBScript scripting reference, but is really COM). I've tested with both JScript (Microsoft Javascript, for doing same things you would use VBScript for) and Python using COM. In both cases got the same issue.
    When I was building the tooling, it works fine for me. But on a colleagues machine, the problem comes up. Sadly the error messaging is vague to pinpoint the root cause of the problem. We just know when it happens, but not why/how. We both have Windows 7 64-bit and are using 64-bit version of the Adobe apps, version CS6. Though we also have 32-bit version installed as well.
    The funny thing about my colleague's machine is the the tool/script will execute fine if Adobe Illustrator/Photoshop is already open. But if the app is not open already, it just fails at the point of instantiating the COM object. On my machine it works fine in both cases.
    Here's the error output observed:
    in JScript
    C:\scripts>cscript windows_cli_script_runner.js /s:C:\scripts\test.jsx
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    C:\scripts\windows_cli_script_runner.js(25, 5) (null): 0x800700C1
    in Python
    C:\scripts>python cli_script_runner.py -s C:\scripts\test.jsx
    cli_script_runner.py:33: SyntaxWarning: import * only allowed at module level
      def run_script(script,doc=None,app=None):
    Traceback (most recent call last):
      File "cli_script_runner.py", line 89, in <module>
        run_script(args.script)
      File "cli_script_runner.py", line 68, in run_script
        app_ref = win32com.client.Dispatch(app)
      File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch
        dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
      File "C:\Python27\lib\site-packages\win32com\client\dynamic.py", line 114, in _GetGoodDispatchAndUserName
        return (_GetGoodDispatch(IDispatch, clsctx), userName)
      File "C:\Python27\lib\site-packages\win32com\client\dynamic.py", line 91, in _GetGoodDispatch
        IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
    pywintypes.com_error: (-2147024703, 'OLE error 0x800700c1', None, None)
    C:\scripts>
    basically both point to this line at failure:
    in JScript
    var app_ref = new ActiveXObject(app);
    in Python
    app_ref = win32com.client.Dispatch(app)
    where app is "Illustrator.Application.CS6" or "Photoshop.Application", per the Adobe scripting guide and VBScript scripting reference.
    I didn't test VBScript but assume it's the same since JScript and VBScript and Python are all using same COM interface, and VBScript and JScript using same Windows Scripting Host interface.

    Also, there appears to be rather an unfortunate bug.  If the publisher does not yet have a subscriber, it looks like these two properties return an error.  Oof.
    So. there is this other way to do it.  Embarrassing.
    var allowAudio:Boolean = true;
    var allowVideo:Boolean = true;
    publishingStream.send("|RtmpSampleAccess", allowAudio, allowVideo);
    Yep.  The secret vertical bar call.  I believe you can make this call once on the publishing stream.  However, that'll only get to the subscribers that are currently connected and it won't get to subscribers that have yet to connect.
    You can also call send on the specific subscribing streams to give different permissions to each subscriber.
    More...
    http://forums.adobe.com/thread/632355?tstart=0

  • 0x8007000e (E_OUTOFMEMORY) while adding a firewall rule using the windows firewall COM API

    Hello,
    Configuration: Windows Embedded 8 64-bit.
    I'm using the Windows Firewall with Advanced Security COM API. The program uses the INetFwRules interface. Basically, I'm using the following code (Form the code sample available here : http://msdn.microsoft.com/en-us/library/windows/desktop/dd339604%28v=vs.85%29.aspx.)
     I get the error when performing "hr = pFwRules->Add(pFwRule);".
    We can also encounter the problem when removing a rule (using pFwRules->Remove(ruleName);)
    HRESULT hrComInit = S_OK;
    HRESULT hr = S_OK;
    INetFwPolicy2 *pNetFwPolicy2 = NULL;
    INetFwRules *pFwRules = NULL;
    INetFwRule *pFwRule = NULL;
    long CurrentProfilesBitMask = 0;
    BSTR bstrRuleName = SysAllocString(L"SERVICE_RULE");
    BSTR bstrRuleDescription = SysAllocString(L"Allow incoming network traffic to myservice");
    BSTR bstrRuleGroup = SysAllocString(L"Sample Rule Group");
    BSTR bstrRuleApplication = SysAllocString(L"%systemroot%\\system32\\myservice.exe");
    BSTR bstrRuleService = SysAllocString(L"myservicename");
    BSTR bstrRuleLPorts = SysAllocString(L"135");
    // Initialize COM.
    hrComInit = CoInitializeEx(
    0,
    COINIT_APARTMENTTHREADED
    // Ignore RPC_E_CHANGED_MODE; this just means that COM has already been
    // initialized with a different mode. Since we don't care what the mode is,
    // we'll just use the existing mode.
    if (hrComInit != RPC_E_CHANGED_MODE)
    if (FAILED(hrComInit))
    printf("CoInitializeEx failed: 0x%08lx\n", hrComInit);
    goto Cleanup;
    // Retrieve INetFwPolicy2
    hr = WFCOMInitialize(&pNetFwPolicy2);
    if (FAILED(hr))
    goto Cleanup;
    // Retrieve INetFwRules
    hr = pNetFwPolicy2->get_Rules(&pFwRules);
    if (FAILED(hr))
    printf("get_Rules failed: 0x%08lx\n", hr);
    goto Cleanup;
    // Create a new Firewall Rule object.
    hr = CoCreateInstance(
    __uuidof(NetFwRule),
    NULL,
    CLSCTX_INPROC_SERVER,
    __uuidof(INetFwRule),
    (void**)&pFwRule);
    if (FAILED(hr))
    printf("CoCreateInstance for Firewall Rule failed: 0x%08lx\n", hr);
    goto Cleanup;
    // Populate the Firewall Rule object
    pFwRule->put_Name(bstrRuleName);
    pFwRule->put_Description(bstrRuleDescription);
    pFwRule->put_ApplicationName(bstrRuleApplication);
    pFwRule->put_ServiceName(bstrRuleService);
    pFwRule->put_Protocol(NET_FW_IP_PROTOCOL_TCP);
    pFwRule->put_LocalPorts(bstrRuleLPorts);
    pFwRule->put_Grouping(bstrRuleGroup);
    pFwRule->put_Profiles(CurrentProfilesBitMask);
    pFwRule->put_Action(NET_FW_ACTION_ALLOW);
    pFwRule->put_Enabled(VARIANT_TRUE);
    // Add the Firewall Rule
    hr = pFwRules->Add(pFwRule);
    if (FAILED(hr))
    printf("Firewall Rule Add failed: 0x%08lx\n", hr);
    goto Cleanup;
    This works pretty well but, sometimes, at system startup, adding a rule ends up with the error 0x8007000e (E_OUTOFMEMORY) ! At startup, the system is always loaded cause several applications starts at the same time. But nothing abnormal. This is quite a random
    issue.
    According MSDN documentation, this error indicates that the system "failed to allocate the necessary memory".
    I'm not convinced that we ran out of memory.
    Has someone experienced such an issue? How to avoid this?
    Thank you in advance.
    Regards, -Ruben-

    Does Windows 8 desktop have the same issue? Are you building a custom WE8S image, or are you using a full WE8S image? The reason I ask is to make sure you have the modules in the image to support the operation.
    Is Windows Embedded 8.1 industry an option?
    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

  • Change the description of the product attributes

    Hi,
    I want to change the description of the product attributes from 1 - 6(Check Box)  in MM02 in the SALES : Sales Org 2 Tab.
    How to do this.
    Kindly let me know.
    Regards
    Manoj

    Hi dude,
           You can try Text Enhancements for ur Data Element  in CMOD.
           Tcode  CMOD, Goto>text enhancements>Data Elements-->NewDEcust Doc.
    Regards
    Srikanth M

  • Replication of Product Attributes from ECC to CRM

    Hi Experts - Is there any standard functionality in CRM which serves same as Product attributes of ECC.
    In ECC, Product attributes 1 to 10 can be used as an indicator to check whether the ship-to party accepts the attributes of a product. During sales order creation system will give a warning or error based on product attributes of ship-to party and material.
    Let us know, if this functionality supports in CRM.
    Thanks,
    Sree

    Hello,
    I have exactly the same question. Did you find out if it is possible?
    I haven't found anything in the standard doc , si I guess these ECC product attributes don't have an equivalent in CRM, meaning we should use customer specific  fields on ECC side and  product "attributes" (in the sense of attributes of customized set types) on CRM side.

  • Search on Product Attributes in Web UI

    Hi All,
    Need your help on a requirement that we have:
    We need to capture the customer Legacy (Old) material number in CRM product master.
    We also need to search on this Legacy Number in the Product Search View in the IC_AGENT profile.
    We thought of storing it in a Product Master Attribute, as there is no standard field in the CRM Product Master to capture this Code. However the Product Attributes are not visible in the Product Search criteria in the WebUI (Role IC_AGENT).
    Has anyone worked on adding Product Master Attributes in Product Search criteria in the WebUI (Role IC_AGENT)?
    Thanks
    Suneel

    Hi Reddy,
    Thank you for your inputs. TO maintain the search attributes first I need to map the filed " old material number  In CRM but  the "old material number " field is not available   in the CRM product master . Our requirement is first to  map the "oldmaterial number " filed from R/3 to CRM product master and then to use the same  in the Product Search View in the IC_AGENT profile.
    Can  you give some inputs to capture this filed in product master of CRM..
    Thanks
    Suneel

  • How to see materials which donot comes under product cost collector

    hello every body,
    can any one help me in finding  materials which donot comes under product cost collector.
    thanks for all the people who are supporting me
    regards,
    Bh.krishna mohan

    Dear Krishna,
    1.Usally the product cost collectors will be maintained for the materials which are executed using a REM scenario.
    2.Check in table MARC for the materials for which REM profile does not exists(means this field should be empty) for a given plant.
    3.After executing download this and if needed pass it to MARA table to get the FERT and HALB materials.
    4.So only those materials for which REM profile is empty ,the product cost collector does not exists.
    Check and revert with your queries.
    Regards
    S Mangalraj

  • How do I add products to an order/invoice and select a product attribute

    Thanks in advance for your assistance!
    In using BC as a CRM, we would like to use it as a way to produce quotes, orders and invoices for potential new customers and repeat customers in the system.
    I cannot seem to add a product to a quote/order/invoice - and select the desired product attribute(s)...
    Is this a fixable issue or "no go" territory?
    Thanks again,
    Lloyd

    Hi Lloyd,
    Unfortunately this is a wishlist request as you cannot select the product attribute item when manually generating an order from the CRM at this stage. 
    The only workaround is to create the order on behalf of the customer on the front-end side of site.  
    I'll pass this feedback to our product team as well. 
    Kind regards,
    -Sidney

  • Delete price on product attributes

    I added 2 attributes to a product and want to know how do I delete the pricing for the attributes, besides using us/00.  When left blank, BC calculates double the price for the singular item.  For example, attribute red + attribute sm = $40.00, while the shirt is $20.00.  any advice helpful.

    Hi Devi,
    I myself had same issue as wrkin for a real estate Client. Below was the reply i got from one Mr. Pavithra G K. I havent tried it as yet. Try it out do lemme know hows systems reacting to it.
    =========================================================
    In order to have new attributes at the Product level and enable their usage in Pricing you could try the following:
    1. Define new attributes and set types (Tcode - COMM_ATTRSET)
    2. In order for these new attributes to be passed to Pricing, you will have to create new fields in the field catalog to fill Pricing communication structure CS_ACS_I_COM.
    IMG Path->Customer Relationship Management->Basic Functions->Pricing->Define Settings for Pricing->Maintain Field Catalog
    3. You can then enhance your Order Item UI using screen sequence control to make your new product attributes available at the Order level.
    4. Implement BAdI 'CRM_COND_COM_BADI' to fill the newly created fields of the field catalog in pricing communication structure CS_ACS_I_COM. This can be done by reading product attributes of the order item structure and assigning them to the newly created fields in the field catalog.
    5. During Order processing, depending on the values of your Product attributes which are part of the Item structure, Pricing would be triggered which would fetch different condition rates.
    Do reward points if helpful.
    Regards,
    Suji
    Suji

  • Product Attributes and Set types Tables

    Hi,
    In which Table does the Product Attributes and Set types stores in CRM?
    Can anybody tell me?
    Thanks

    Hi,
    I am not able to get you can you explain it clearly by taking this example
    I have created the Product Called Monitor
    For that Monitor i have maintained the following attributes like
    Monitor Size like 15 or 17 or 21inchs
    Monitor Type like Flat or LCD Type
    I have created the Set type for that.
    I have assigned those things to Product.
    What are the tables are involved in this process can anybody help me out regarding this?
    Thanks

  • Product Attribute not dispalying before add to cart

    I'm creating an ecommerce website with BC.  I have created a test product.  I added two product attributes.  When I view the product page, the attributes do not show up.  How do I get the product attributes to show up so a customer can select the attribute options before adding to the cart?

    OK I figured it out.  I had to add {tag_attributes} to my Module Template.

  • Is Using the COM API for Integration still valid for UCM 11g?

    Dear All,
    One of our partners is trying to implement integration to UCM by using the COM API (described http://download.oracle.com/docs/cd/E17904_01/doc.1111/e10807/c08_com.htm#i1084682).
    However, they cannot follow the manual, because the environment does not correspond to the written text:
    -     8.2.1 To set up IdcCommandUX, run the IdcCommandUX setup file, which is stored in extras/IdcCommandUX/setup.exe in the media. – no such directory exists (neither extras, nor IdcCommandUX); ‘extras’ used to be in 10g, though
    -     8.2.3 1. Add the IdcCommandUX control to the project . – according to the partner, this is supposed to mean that IdcCommandUX.ocx must exists somewhere – there is no such file to be found
    -     8.4 speaks about “IntradocClient OCX component”, 8.5 speaks about “IdcClientOCX Component” – the system has only IdcClient component, which contains only idcclient.jar
    Could anyone confirm that COM API is still available in 11g? If so, what steps need to be followed to make it running?
    Thanks in advance, Jiri

    For what it's worth, I had no problems migrating an authentication plugin from 4 to 5. This is really good, because otherwise I wouldn't be able to use 5.1.

Maybe you are looking for

  • User Exit/BADI for RFFOEDI1

    Hi SAP Experts, I have a requirement to add the addtional information in the output file  of the  program RFFOEDI1. Can any one help me on this? I need to know which BADI/User Exit can be used? thanks, arsgh

  • Able to use % to query data in Some self service pages but in some pages we

    Able to use % to query data in Some self service pages but in some pages we get error " Search string cannot start with % "

  • Deletion of BP role

    Hi, We are in 4.6c and IS media integarting with PS module. Can anyone tell me how to delete the Business Partner "Role" in IS media module. I found in ECC60, but not in 4.6c. Thanks a lot in advance. Krishna Reddy Edited by: krishna.gujju on May 28,

  • Mapping an iPod; selecting a device type / Norton Antirus quection

    I am a new user to Network Magic.  I had not heard of the program until yesterday. So far all the PC's have connected and confugured OK.  I have two issues / questions: 1) For the iPod, naming it is no problem but what Device Type should I select? 2)

  • Limit Shopping cart not cleared from sourcing.

    Hi All, We have an issue with the Limit shopping carts in sourcing. After the folllow on document [PO] is created successfully through Sourcing, the SC still shows up in the sourcing cockpit. The job BBP_GET_STATUS2 is running properly. In BBP_PD, we