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);

Similar Messages

  • 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;

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

  • 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

  • Compression fails with Characteristic attribute exists twice

    Guys,
    I ran a compression on cube 0PP_C03 that failed with "Characteristic
    attribute exists twice"
    I see that "Note 859320 - Multiple reference points in InfoCubes with non-cumulative v" tells me to run that program to clear up any dups in the E Fact table.
    I currently have 4,060,118 rows in the E Fact table.
    I ran rsrv program "Multiple Entries in Dimensions of a (Basis) InfoCube" and there are NO dups in the F Fact table.
    Running "Note 859320 - Multiple reference points in InfoCubes with non-cumulative v" indicates that I have 42,627 dups. The note talks about running RSCDS_MERGE_DUPL_REF_POINTS and I ran it using no reference points in simulation mode. Maybe I need to specify some selection conditions?
    I'd like to make sure I am executing the correct procedure prior to running this pgm live. Additionally, all of a sudden I have this same condition on cubes 0PM_C03, 0SD_C03, and ZSM_C001 as well. This is the first time I have seen this ocurrence.
    Has anyone any experienve running this or having this compression error condition?
    Mike

    As I remember I got the error message:
    Characteristic attribute exists twice with DBMAN 231
    So I ran se38 pgm:
    RSCDS_MERGE_DUPL_REF_POINTS, putting in the cube like 0PM_C03 and pkg size 100
    and it fixed the problem.
    Hope that helps. I just saw this and we don't have BW anymore. We have moved to HANA and shutdown BW.
    Mike

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

  • Labview 6.0, rtdx com api, and ti dsp

    According to the ti code composer studio tutorial (ti document spru301c.pdf
    http://focus.ti.com/lit/ug/spru301c/spru301c.pdf, pg 1-13), one should be able
    to communicate between labview and a dsp using the rtdx com api. I know that NI offers
    the DSP Integration Kit, but it looks like some rtdx functionality can be accomplished
    without this by using this com api. I haven't been able to find any examples of doing this. TI
    did not seem to have any examples, I'm wondering if National Instruments has an example
    or can suggest a method of doing this.
    Thanks.
    regards,
    llp2

    Ame G.,
    Thanks for your suggestions. i tried the TI DSP Test example(Audio_dsk6711_bios_ccs2.20), but the example could not work correctly.
    The RTDX just transmitted the data from TI DSP C6711 DSK to Labview slowly. The data-rate is about 1 Hz. And i use the RTDX example in
    TI DSP tutorial to try again. I got the same result. I just received the data( 8 integrals) from TI DSP C6711 in 1 Hz. I want to use Labview
    to receive the data( 8 integral) in about 30 or 20 Hz. what is my problem? RTDX mode(continuous mode or non-continuous mode)? interrupt? or others?
    i provide my problem. Thank you very much and I am looking forward to hearing from you.
    regards,
    Danial 
    2005/10/20
    Attachments:
    less_1.zip ‏79 KB
    s1l1.c ‏3 KB
    RTDX.vi ‏97 KB

  • Mapping between products in a BOM and var. config. characteristic attribute

    Hi,
    probably this is a "beginner's" question but we would need to know which tables are used to link products in a BOM material and the according VC characteristic attributes.
    We have the following scenario:
    - The user enters a configurable material in a sales quotation and starts the configuration. When saving the quotation the BOM explosion will be triggered.
    --> Question: Is this based on a 1-1 relationship or based on complicated determination rules and/or dependencies?
    What we would like to know is the other way round - from the product to the characteristic attribute.
    Thanks a lot for any hint!
    Regards,
    Wolfhard

    Closed as of now a we found a link between BOM item position and selection dependency.

  • Rollup Error - Characteristic attribute exists twice

    BELOW IS THE ERROR DURING ROLLUP step in a process chain .
    enqueue set: 100014
    compond index checked on table: /BIC/E100014
    request statistics calculated for p-dimid 14454
    enqueue released: 100014
    Characteristic attribute exists twice--status red
    please help
    Edited by: kartikeyan on Dec 16, 2008 4:08 PM

    Hi,
       We are facing similar rollup issue - "Characteristic attribute exists twice".  Pls share the solution if you have got one.
    Thanks,
    Suresh

  • Compression Error - Characteristic attribute exists twice

    Hi,
    We are compressing some top listed productive  cubes with process chain every week. But from past 3 iterations one of the cube is failing to do so. It is triggering an error
    " *Characteristic attribute exists twice *". We even tried to compress the cube manually..but the same result.
    Can any one suggest how to proceed to make the compression upto the mark.
    Thanks,
    Vidyasagar

    Hi,
       We are facing similar rollup issue - "Characteristic attribute exists twice".  Pls share the solution if you have got one.
    Thanks,
    Suresh

  • Doubt on com api?

    Hi I am planning to buy a USB wireless data card to send SMS. So in some document I have read that when I connect the USB modem to a PC windows assigns a COM port to it. So can I send and read SMS with this USB data card(This card supports SMS and voice calls) using rxtx com api?
    Edited by: Muralidhar on Mar 16, 2013 7:19 PM
    Edited by: Muralidhar on Mar 16, 2013 7:31 PM

    RxTx is only a low level way of sending and receiving data over a serial port. You'd still need to know how to 'talk' to this device of yours. So unless you have some sort of manual describing the protocol of the device or you have an SDK that defines the protocol for you, its not going to happen.

  • ITunes COM API for Windows - iTunes 7.7 broken!

    I use the iTunes COM API for Windows to control iTunes as part of a program which helps users create audiobooks.
    Version 7.7.0.43 of iTunes breaks this software. So far as I can determine, the iTunes.ConvertTracks2 and iTunes.ConvertFiles2 routines are now broken, in that they no longer return a reference to the converted tracks.
    Is this a bug on Apple's part, or is it a fundamental change? The COM API documentation describes the earlier behavior, which makes sense.

    I'm seeing the exact same behaviour in my application calling the COM API from Perl. No track reference can be obtained after ConvertTracks2 completes.
    What's going on?
    Edward

  • Calling a COM API from Java

    Hi,
    is it possible to call methods on a COM API that is written in VB on a windows machine from Java? I'd rather not have to take the route of using JNI and keep this 100% Java. Ideally, I'm looking for a Java solution that would allow me to call methods in the COM API from different platforms (Win / Linux / Mac).
    Thanks,
    Shane

    I've used Jacob. You can get it at:
    http://danadler.com/jacob/
    Don't understand your Linux/Mac angle though. I've heard COM was ported to other platforms but haven't heard of it being used. Jacob is Win 32 only.
    Dom.

  • MDM COM API Installation

    Hi All,
    How can we install MDM COM API on the server. I mean what are the requirements.
    I have to run MDM UOM manager for which it is required.
    Thanks
    Devinderpal Yadav

    Hi,
    first of all you should consider installing the COM API and the UOM Manager on a client machine as it is a client software.
    1. Download COM API from service marketplace
    2. Copy the installer to the according server / desktop pc
    3. Start installation
    Prerequsite:
    Runs only on windows platforms (as a matter of course due to the fact that it is a COM lib).
    Regards
      Andreas

Maybe you are looking for

  • How to check whether a batch input session is completed in ABAP program

    I have created a ABAP program to create a batch input session (reference to RSBDCSUB). After the creation of the batch input session, I kick it to start and read the execution log. However, sometimes I cannot read anything from the execution log as t

  • About the Reader 9.5.2 Update

    Hi Everybody: Yesterday, Adobe Reader successfully updated to 9.5.2 - CPSID_83708 as correctly shown on my "Add or remove programs" feature. However, the app still shows version 9.5.1 in the Help > About Adobe Reader 9... page, same as half of the pl

  • Is it possible to change the country in the podcast app?

    I was wondering if it's at all possible to browse podcasts from other countries? For example, I'm learning Swedish and would like to listen to native podcasts, but if you search the word 'swedish' all you get is How to learn ones in English....Any id

  • Message types for ALE distribution

    Hi, I am working on SRM 7.0. I need to copy the org structure from one client to another. For that I am using the ALE distribution model. Can anyone please let me know all the message types reqired for transferring the org structure. Thanks, Bhakti

  • Pulse Counter

    Hello, I need a idea in how to do a Pulse Counter. I have to use a Pulse Counter, to measure wind speed. Determining how many pulses I have in a determined interval, I will convert this to wind speed (mph). I already have the sensor for this, but hav