After Trex Query the "areaAttributes" of items are NULL

Hi, I wrote a simple code to search items by Trex functions.
This is the code:
IQueryStatement queryStmt = theCatalog.getCatalog().createQueryStatement();
IFilter filter = cff.createAttrFuzzyValue("MY_CUSTOM_ATTR", myCustomAttr);
queryStmt.setStatement(filter, null, null);
IQuery query = theCatalog.getCatalog().createQuery(queryStmt);
WebCatItemList itemList = new WebCatItemList(theCatalog, query, true, true);
The items are found, but the relative areaAttributes is empty.
If I try this code:
ArrayList listItemsToTry = itemList.getItems();
Iterator myListIterator = listItemsToTry .iterator();
while (myListIterator .hasNext())
WebCatItem item = (WebCatItem) myListIterator .next();
The call item.getAreaAttributes() is NULL.
The attributes are correctly replicated, and the "catalog" object  contains name, description and value of all attributes.
Anyone have some solutions about this issue? I need Trex query, but I need also the areaAttributes of item!
Thanks a lot in advance
Ennio

Hi,
i wrote the new code:
String prdName = "12345";               
          WebCatItemList itemList = null;
          // create the query to search for products
          CatalogFilterFactory fact = CatalogFilterFactory.getInstance();
          IFilter productFilter =     fact.createAttrEqualValue("OBJECT_ID", prdName);
          IFilter filter = productFilter;
          IQuery query = null;
          try {
               IQueryStatement queryStmt =     catalog.getCatalog().createQueryStatement();
               queryStmt.setStatement(filter, null, null);
               // attributes, sort order?
               query = catalog.getCatalog().createQuery(queryStmt);
               itemList = new WebCatItemList(catalog, query, true);
               ArrayList listItemsToTry = itemList.getItems();
               Iterator myListIterator = listItemsToTry.iterator();
               while (myListIterator.hasNext())
                  WebCatItem item = (WebCatItem) myListIterator.next();
                  if (item.getCatalogItem() != null && item.getCatalogItem().getParent() != null)
                         WebCatAreaAttributes areaAttrib = new WebCatAreaAttributes(item.getCatalogItem().getParent());
                         Iterator iteratorC = item.getCatalogItemAttributes();
                         while (iteratorC.hasNext())
                              CatalogAttributeValue aCatValue = (CatalogAttributeValue) iteratorC.next();
                              out.println("GUID: " + aCatValue.getAttributeGuid() + " DESCRIPTION: " + areaAttrib.getDescription(aCatValue.getAttributeGuid(), aCatValue.getAsString()) + "<br>");
          } catch (CatalogException e) {
               out.println("CATALOG ERROR");
This is the result:
GUID: OBJECT_DESCRIPTION DESCRIPTION: null
GUID: TEXT_0001 DESCRIPTION: null
GUID: TEXT_Z001 DESCRIPTION: null
GUID: MYCUSTOMATTR DESCRIPTION: null
The solution proposed don't works!
Where i wrong?
Thanks,
Ennio

Similar Messages

  • Values for the automatic posting items are invalid

    Hi,
    I'm doing two kinds of consolidations, both using its own Special Versions. IFRS and Local Accounting system (Portugal)
    In IFRS the system it is working fine.
    Although when I try to consolidate in Local Accounting, I have errors.
    The customizing of the two special versions only differ in the consolidation of investments. In Local Accounting I have a different account in Net Income Prior to First Consolidation(Appropriation of retained earnings) and in Net Income Item of Statistical Net Income (Selected Items).
    After doing this customizing, I tried the Consolidation of investments, and after executing the measure I have the following error "Values for the automatic posting items are invalid".
    I can see the document that system is trying to post and everything seems fine. I only noticed that the statistical items are apeearing, which is not normal.
    Do you what I'm missing or doing wrong?
    I'm new to BCS.
    Thanks in advance.
    João Arvanas

    The message is most likely regarding the posting to the Retained Earnings item defined in Selected Items. I've seen this before and do not recall the specific solution but it entailed using a different item for this.
    It may be that the COI setting for displaying the statistical items in the log is version-dependent. If so it may be turned off. I think this is in location of values.

  • How to trash using empty securely...It wont emty the trash after i clicked the remove all items?

    How to empty trash using emtpty securely, it wont empty the trash after i clicked the remove all items? Using iMac 2011

    If all else fails use Utilities> Terminal.
    If there are several locked files in the Trash, you can unlock them all at the same time at the command line. Follow these steps:
    Open Terminal. It's located in /Applications/Utilities.
    Type:
    chflags -R nouchg  
    Type one space (not pictured) after nouchg in the line above, so that it ends in "nouchg ". Do not press Return yet.
    Type:chflags -R nouchg  Type one space (not pictured) after nouchg in the line above, so that it ends in "nouchg ". Do not press Return yet.
    Double-click the Trash icon in the Dock to reveal the contents of the Trash. If necessary, arrange the Finder window so that a portion of the Terminal window is still visible.
    Press the Command-A key combination to select all files in the Trash.
    Drag the files from the Trash to the Terminal window.
    Note: This automatically enters the pathname for each file. This eliminates the need to individually empty multiple Trash directories, particularly when multiple disks or volumes are present.
    Press Return. No special text message will be shown indicating that the command was successful.
    Empty the Trash.
    If the Trash does not empty or if you see a message in Terminal that says "usage: chflags [-R [-H | -L | -P]] flags file..." you most likely did not type the text in step 2 as indicated or did not leave a space. Repeat the steps if this happens.

  • How to draw horizontal line in smartform after end of the all line items

    Hi Friends,
    I am working on the smartform. I have created TABLE node in Main window.
    i want to draw a horizontal line after end of the main window table node. i mean after printing all the line items of the table, I need to print one horizontal line.
    Could you please help me how to resolve this issue.
    FYI: I tried with the below two options. But no use.
    1. desinged footer area in the table node of the main window.
    2. tried with uline and system symbols.
    please correct me if i am wrong. please explain in detail how to draw horizontal line after end of the main window table.
    this is very urgent.
    Thanks in advance
    Regards
    Raghu

    Hello Valter Oliveira,
    Thanks for your answer. But I need some more detail about blank line text. i.e thrid point.
    Could you please tell me how to insert blank line text.
    1 - in your table, create a line type with only one column, with the same width of the table
    2 - in table painter, create a line under the line type
    3 - insert a blank line text in the footer section with the line type you have created.

  • After loading FF4 the back/forth buttons are visible but not functional. Have tried to reset tool bar etc. no luck. fix please

    After upgrading to the new version everything seems to work well except my back/forth button on the browser are visible but grayed out and not functional. I have tried all of the suggestions in help and am unable to bring them to life. Very frustrating to use a browser with out these functions. I run 4 websites and it is maddening to have to keep reloading the sites just for simple work.
    I have to have these working or will be forced to use another browser. I liked the old FF much better. I can not tolerate this much longer.

    I notice from your system specs that you're running a very old version of Flash. Could you try updating to the latest one which is 10.2.159.1 It also contains a patch to fix a recently discovered [http://www.h-online.com/security/news/item/Adobe-releases-security-update-for-Flash-Player-1228930.html Zero Day exploit]. You can get it from here: http://get.adobe.com/flashplayer/
    Have you experienced any unusual events watching Flash videos lately? It's possible that you may have been a victim of just such an attack. It might be worth doing a malware scan using this well-known scanner from http://www.malwarebytes.org/ The free version is more than adequate to eliminate any current threats.

  • Query to know wich item are to a specific price list

    Hello Experts,
    In order to be able to delete a price list, I need to find out wich items are linked to this price list. Which query I need to run ?
    I tried in the OSPP table but no data are recorded in.
    Thanks in advance for your answer.
    Best regards
    Sébastien TABORE

    Hi Sebastien,
    Try this
    SELECT ItemCode,ListName,Price FROM ITM1 INNER JOIN OPLN ON ITM1.PriceList=OPLN.ListNum
    Best Regards,
    Hendry Wijaya

  • After a clone, the boot camp driver are not reconized

    Dear All,
    I installed a Imac 24'' with a boot camp. On the boot camp partition , I installed xp and the boot camp driver.
    I cloned the OS X partition with Carbone Copy Cloner (CCC) and I cloned the XP partition with Winclone, on 4 iMac 21''
    Now I juts cloned a imac 24'' and when I boot on XP, I got serveral windows stating that the driver a not found
    However, on the master, it boot very well on the XP partition
    Here a some of friver missing
    SM BUS
    Coprocessor
    Ethernet Controller
    Someone know why, I could installed 4 time and it does not work now?
    Thanks

    Hi pierrot10,
    I assume with the '21" iMac' you refer to the new Öate 2009 21.5" iMac, right ?
    Most likely the reason for this are missing Windows drivers, due to newer hardware in the 21.5" and newer BootCamp Windows driver on the OSX DVD that came with the 21.5" iMacs.
    While in Windows on the 21.5" insert the Snow Leopard OSX DVD that *came with this iMac*.
    The Setup should start automatically and should give you the possibility for a 'Repair Driver'.
    Cloning a Windows system from one computer to another is not that easy due to different hardware components.
    Regards
    Stefan

  • After updating with the IOS8 my photos are no longer in an album or photo stream.  Any idea how to correct this issue.  Hate this new feature.

    When I updated my iphone and ipad with the new update IOS 8 my photos are no longer in an album or photo stream.  They are in different files with all the dates that they were taken.  I hate this feature.  Is there any way I can get the photo stream and album back.  Why do they make these changes when they just undo all the good things.  Any help would be appreciated.  Thank you in advance for anyone that can help me.  It is impossible to reach apple when your device is an older model.

    Hey there Trishna51,
    It sounds like you are seeing your photos grouped together by date, rather than the view you are used to seeing. From what you are describing, it seems like you are seeing either the Moments, or Collections view in the photos app. You can switch to the Camera Roll view in Albums located at the bottom of the Photos window:
    From: iOS 8 User Guide
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • I'm a computer dummy and, after installing firefox, the follow-up instructions are all halved and what they say will happen next is not happening

    I'm a new player on zynga poker on facebook. When i signed in this morning I was asked to download firefox to make things easier. After waiting the full 13minutes download time, 3 stages of steps to complete appeared. They were all physically cut in half- i.e.: imagine a line being drawn through these words and then everything below the line isn't there. Also I don't know how to copy and paste or "drag to applications etc.

    We're sorry.
    We can't find the article you're looking for.
    Please return to the Apple Support homepage.
    Sigh.

  • After Crash - All the Standard Radio Stations are gone

    Hard Disk crashed, got my music back but tonight looking for a radio station I see all the choices are gone from my iTunes Radio folder. Is there a way to reset those?

    do you have a previous backup from that morning or the day before? If so try using those backup files and see if it makes any difference.

  • If I enter into a 2 year contract, after I pay the initial $199/299, are there any additional monthly fees added to account?

    I currently have 2 smart phones and 1 dumb phone on my account, the smartphones were bought in 2011 & 2012, the dumb phone is even older than that, so they are all off contract. I'm looking to upgrade 1 (or both) of the smart phones. I'm currently paying $40 access fee on each smart phone, and am on the More Unlimited Talk/Text/3GB $60 plan.
    I was wondering, If I enter a new 2 year contract for a new phone, and pay the initial $199/299, is there any additional charges added to the monthly bill? Or will it remain the same as now?
    Also, If were to instead go for the edge program, would there be any additional fees added to monthly other than the ~$33 edge fee?
    Thanks!

    You are overpaying now by $10 on each smartphone. There is an off contract month to month discount on smartphones on More Everything plan.
    If you upgrade, you are no longer eligible for the discount, so you price will be the same you are paying now $40 for each smartphone.

  • 2LIS_02_ITM - Deleted items are not in the ODS 0PUR_O01

    Hello,
    We activated 2LIS_02_ITM extractor. We noticed that the deleted order items are not available in the ODS 0PUR_O01. SAP Note 578471 (Deleted positions in BW and statistics) explains that deleted items are not "statistical" relevant. However, this is an issue for us. Does anybody know if it's possible to change the behaviour of the extractor to keep deleted order items in the ODS ?
    Many thanks.
    François.

    Yes this is a known behavior in case of deltas.
    For Deleted line items Rocancel field will have an entry with R.
    To handle this you need to map ROCANCEL field in Technical group of transformation (Between Datasource to DSO) with 0Recordmode.
    Once you will do that then after activating the data in DSO it will nullify the records and deleted order or item will not appear.
    Regards,
    AL

  • Few line items are not coming at the time of creation of delivery

    Dear Experts,
    When the user creating the delivery few line items are not picking in the delivery document
    the following checks i verified,
    Stock is available
    shpping condition is differ from sold to party and sales document
    Plants are same for all the line items
    why the few line items are not coming in the delivery document creation,
    please help me to sort out this issue
    Thanks and Best Regards,
    Muralidharan S

    Hi,
    Check below points.
    Point 1:
    When you create a delivery document, you create it for a Shipping Point.
    So whatever the line that came in to one delivery has determined same shipping point that you entered in VL01N screen.
    Others got a different shipping point and that's why it didn't come to the same delivery document.
    Shipping point determined based on below criteria
    - Shipping Condition - From customer master
    - Loading Group - Material
    - Plant  - Delivery Plant of the sales order line item
    You assign a proffered shipping point for above combination in configuration.
    If that combination is not find, those line items are not going in to the delivery.
    You can check the log of the delivery document for more information as well.
    Point 2:
    Check the line item Requested delivery date and the "Selection Date" you entered in the VL01N screen.
    Al  Requested delivery dates has to be on or before the  "Selection Date" you entered in the VL01N screen.
    Those line items which has a date more than that will dropped in the delivery.
    Best regards,
    Anupa

  • What are the parameters for the processes menu items

    Is there anywhere that lists out what the exact parameters of the process menu items are. i.e "Make Louder, Normalize, Hard Limit, Equalize Volume Levels",
    For instance when you use "Make Louder" you see the dialog box title change from "Analyzing peeks" to "Applying Hard Limit". What exactly is happening when these processes are being applied? I realize that the Hard limiter is being applied, but with what paramaters and what does "Analyzing peeks" really mean and is there a way to do that by its self and if so what can be learned by the results.
    I would also like to know the paramaters for the others as well. It would be helpfull to know, so one could dial up or down the paramaters to achieve a similar result, but with slightly more or less effect.
    Regards,
    Don T

    Nothin?

  • Htmldb_item(s) are null but return query values

    Hi,
    I have used the following query to create a region (I've done many like this).
    When I access the htmldb_application items in insert statements it works fine.
    But, when I try to do an update statement the htmldb_application items are null;
    even after returning & displaying the values on screen. Hope this makes sense.
    Region:
    Select x.establishment_name,
    x.hsd_insurance_policy_number,
    x.hsd_insurance_group,
    x.del
    from
    (Select
    htmldb_item.text(11,establishment_name,20) establishment_name,
    htmldb_item.text(12,hsd_insurance_policy_number) hsd_insurance_policy_number,
    htmldb_item.text(13,hsd_insurance_group) hsd_insurance_group,
    htmldb_item.hidden(14,hsd_person_insurance_id) hsd_person_insurance_id,
    htmldb_item.hidden(15,gen_establishment_id) gen_establishment_id,
    htmldb_item.hidden(16,gen_adr_id) gen_adr_id,
    htmldb_item.checkbox(20,gen_person_id) del
    from hsd_insurance_v
    where gen_person_id = :HSD_Per_Identifier
    union all
    Select
    htmldb_item.text(11,null),
    htmldb_item.text(12,null),
    htmldb_item.text(13,null),
    htmldb_item.hidden(14,null),
    htmldb_item.hidden(15,null),
    htmldb_item.hidden(16,null),
    htmldb_item.checkbox(20,null) del
    from all_objects where rownum < nvl(:P4300_ROWS3,2)) x
    Update Statement:
    Begin
    for i in 1..htmldb_application.g_f11.count
    loop
    If htmldb_application.g_f11(i) is not null Then
    Update HSD_PERSON_INSURANCE
    Set
    HSD_INSURANCE_POLICY_NUMBER = htmldb_application.g_f12(i),
    HSD_INSURANCE_GROUP = htmldb_application.g_f13(i),
    LAST_UPDATE_BY = :P4300_Updated_By,
    LAST_UPDATE_DATE = to_date(:P4300_Updated_Date,'DD/MM/YYYY')
    where
    hsd_person_insurance_id = htmldb_application.g_f14(i);
    Update Gen_Establishment_Entity
    Set
    ESTABLISHMENT_NAME = htmldb_application.g_f11(i),
    LAST_UPDATE_BY = :P4300_Updated_By,
    LAST_UPDATE_DATE = to_date(:P4300_Updated_Date,'DD/MM/YYYY')
    where gen_establishment_id = htmldb_application.g_f15(i);
    end if;
    end loop;
    end;

    Susan,
    In 1.5, htmldb_item.select_list_from_query didn't support "display extra values" behavior. Now it does and a tenth parameter (p_show_extra in varchar2 default 'YES') allows you to disable it with 'NO'.
    In your example, the query selects only non-null commisions, but setting p_show_null=>'YES' gives you the first null row and the default setting p_show_extra=>'YES' gives you the last null row, which is the "selected" option for rows where the comm column is null.
    Add ,NULL,NULL,'NO' to the function call to eliminate the unwanted row.
    Scott

Maybe you are looking for

  • Recover data from iphone after upgrade to 6.0 causes recovery mode

    When I upgraded my iPhone 4 to iOS 6.0, unfortunately it put my phone into Recovery Mode, meaning as I understand it that I had lost all my data!! My back-up on my computer was over 14 months old, and my iCloud backup was incomplete. I used the compu

  • Hierarchy Viewer difference in behaviour between ADF 11.1.1.5 & 11.1.1.6

    Hi All, We are having some problems with the Hierarchy Viewer and we were hoping that someone might be able to shed some light on this issue. In ADF 11.1.1.5 we have used the attribute displayLevelsChildren which shows how many levels of children wou

  • I can't sign in to my old Apple ID

    I have read the ways to get apps downloaded with an Apple ID that no longer exists, but I can't do it for some reason. I deleted my first id and did new one after I stopped using the first email account. The old password didn't need cap letters or nu

  • Hosting for pdf files online

    I'd like to be able to take the files I have converted in my adobe program and post them on my website so that they can be downloaded. Is there a good service for this? Does adobe provide this service? Thanks!

  • My phone gets too hot Everytime I use it, why? I don't know what to do!

    Everytime I use my iPhone 5s it gets too hot. I've done everything. Even while charging it gets too hot. It's been like this for 2 days straight and I am compeltely baffled. I barely have any apps on my phone so I dont understand as to what the probl