Entry List - Multithreads - results List

Hi All,
I'm new to threading and I have this problem:
I have a very long entry list that has to be processed and based in an analysis algorithm they will be send to either an accepted or rejected list. We need to process this list in concurrency.
How can I have all these working in concurrency? I mean, what I don't know how to implement is how I could run all those many threads and make them put their results in the same place (the single acepted or rejected lists).
Thnak you...

Herko_ter_Horst wrote:
Just synchronize access to the accepted and rejected lists:List accepted = new ArrayList();
MyResult resultOfProcessing = getResultOfProcessing();
synchronized(accepted) {
accepted.add(resultOfProcessing);
}You can run getResultOfProcessing() on a thread. As long as you synchronize on the list where the results are to be stored, you can have multiple threads use the same list.The Collections utility class even has a few nice methods available that do just that.
kind regards,
Jos

Similar Messages

  • How to change search result list entries?

    Hi together,
    I'd like to fit the TREX search result list to my own requirements. I've edit the Search Result Renderer Settings, Search Result Layout Set, Search Component Set and the Search Option Set. But that's not enough.
    1.) I would like to display the relevant index name, in which the document was found.
    2.) For special indexes (not for all!) I want to change the content link:
    For example: if TREX is finding an xml-File in index "abc_index" I would like to change the content link from
    "https://portalserver/irj/go/km/docs/folder/p76.xml" to
    "https://portalserver/irj/go/km/docs/folder/p76.htm"
    and from
    "https://portalserver/irj/go/km/docs/folder/p76_data.xml" to
    "https://portalserver/irj/go/km/docs/folder/p76.htm"
    3.) I'd like to display a special part of the document as a explanatory text in the result list.
    I think point 1 and 3 are possible with properties and HTML-extractors. But point 2 I'm afraid I have to create my own component.
    But how to manage this? I cannot find any code snippets or tutorials or pattern to copy and develop further.
    Is it possible or advised to write a WebDynpro? Are there other possibilities? I don't know how to start.
    I would be pretty delighted to get any idea...
    Thanks a lot
    Steffi

    Hi Stefanie
    1) If you want to be able to show the name instead, you should write your own property renderer. Heres the link for the documentation: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c739e546-0701-0010-53a9-a370e39a5a20 -> How to Implement Flexible UI
    Components -> Property Renderer
    2) Documentation will be send in a matter of minutes.
    3) I also think the web property extractors only work with the web repository manager, because as far as I know that is the only repository manager, where you can select a web property extractor upon creation. I guess you could open an OSS to SAP and ask if its not possible to extract properties in your scenario just to be sure if its not possible. But my guess is that you either have to develop your own repository manager or publish your files on a web server in order to meet your requirements.
    Best regards,
    Martin

  • How to Enhance search help for product groups. Currently no ability to add multiple lines from result list

    Hi All,
    In CRM Web UI,  there is no multi selection option for product group id f4 help for Custmer event creation or edit screen under  “Product” tab=> Product Group ID field.
    Web UI Component Details -
    UI component : TPMOE
    View : TPMOE/ProductEOL 
    Context: PRODUCT  Attribute : -PRODUCT_GRUOP
    Click on Product Group ID field then below F4 Help screen appears.
    In the product group results list, user can select only one row and Then all the product will be queried for selected product group, transferred to product list tab.
    Current technical design for Product Group F4:
    a) SE11 Data Dictionary search help “CRM_MKTPL_PGRP1”  is used and data is fetched displayed based it( Refer method GET_V_PRODUCT_GROUP of context node class CL_TPMOE_PRODUCTEOL_CN00)
    b) In UI, F4 pop up is handled by UI Framework in SAP generic manner so no multi selection is allowed.
    c) A round trip event is triggered after selection of row from results which reload view with queried product result based group selected.
    Requirement :-
    In the product group F4 results list View, user should be able to select multiple row .As SAP GUI has the option of multiple entry selection from search help window with the help of field called MULTISEL.
    System should query for products  with all selected product group, transferred to product list tab.
    Note: - The multi select options works fine for GUI, but for UI standard SAP code ignores this or never is this structure taken into consideration. Standard class to display F4 help on UI is CL_THTMLB_F4HELP.
    Can we enforce same behavior like DDIC search help in Web UI too  Or suggest how we can achieve this requirement?
    Thanks in advance
    Regards,
    Arjun

    Hello All,
    We have achieved this requirement by Custom development and approach followed as  -
    Define UI object model zprgrp & zprgrpquery and object relationship in table ZCRM_OBJTAB
    Query Strcuture : ZCRMST_PRGRP_SEARCH & Result List structure : ZCRMST_PRGRP_RESULT      
    Created Custom component : ZPRGRP with Search /Result view and with GENIL Class, search logic
    Defined custom ComponentUsage “ProductGroup1SearchHelp” for ZPRGRP in Standard Component TPMOE
    e.  Called F4 application for field product _group with help component usage created in step d.
    Regards,
    Arjun

  • Add Custom fields in Result List

    Hello ,
    We are using CRM2007, where we have asked to update the Service Order Search Result list to accumudate the IBASE no, IBASE component & Product.
    So, I have enhanced the component:BT116S_SRVO/AdvancedSRL , BASE Entity of which is "BTQRSrvOrd ".
    I have append one structure with the required fields into the stucture "CRMST_QUERY_R_SRVO_BTIL " of the base entity.
    For example -
    Field1 -->ZZFIELD1 type IB_IBASE
    Field2-->ZZFIELD2  type IB_INSTANCE.
    In order to configure the component to show in the Result list , entry into CRMC_REPDY for the fields is not completed as
    Selection Field-->ZZFIELD1
    Fld Name in Database-->Append Structure~field name
    Dynamic Access Name --->DYN_?
    Please suggest how to define the above field values & after that populate the contents for these fields.
    Please Help.
    Thanks & Regards
    Deb

    Hello Deb,
    The search criteria needs the procedure you fallowed ,But not the result list.
    In the Context node you can directly add the attributes you required from the BOL.
    1.Enhance the component and View.
    2.In the context Node BTQRSRVORD on attributes Rignt Click and say create
    3 Give the name of the fields.
    4.Say add Model Attribute
    5.BOL entity Come byitself BTQRSrvOrd
    6.In the BOL Attribute go to f4 help and Scroll down and expand relations
    7.find the Ibase relations and add the fields.
    No Coding is required ..All the methods get generated and results get populated .
    The only thing is you have get the proper fields and realations.
    Sree.
    Edited by: Sree on May 20, 2010 6:26 PM

  • Checking for the exististence of entries in the IN list

    DB Version: 10gR2
    create table x
    (col1 varchar2(30));
    insert into x values ('SONY');
    insert into x values ('ALSTHOM');
    insert into x values ('AERO');
    insert into x values ('JAKE');
    insert into x values ('MAINE');
      select col1 from x
        where col1 in
        ('SONY',
         'ALSTHOM',
         'HAITI',
         'MAINE',
         'GHANA'
    COL1
    SONY
    ALSTHOM
    MAINEWhenever an entry in the IN list of the query is absent in the table, how can i get the result like
    COL1
    SONY
    ALSTHOM
    MAINE
    HAITI   -----> NOT PRESENT
    GHANA   -----> NOT PRESENT

    Something like this? All employees, marking those not in the list
    SQL> WITH mylist as (
      2     SELECT 'ANAND' item FROM DUAL UNION ALL
      3     SELECT 'SVEN' FROM DUAL UNION ALL
      4     SELECT 'GORAN' FROM DUAL UNION ALL
      5     SELECT 'CHARLES' FROM DUAL UNION ALL
      6     SELECT 'LEMAR' FROM DUAL UNION ALL
      7     SELECT 'ZIPAJ' FROM DUAL UNION ALL
      8     SELECT 'KRALJIC' FROM DUAL UNION ALL
      9     SELECT 'YING' FROM dual)
    10  SELECT empname, DECODE(item, empname, NULL, 'Not in List')
    11  FROM employees
    12     LEFT JOIN mylist
    13        ON empname = item;
    EMPNAME                        DECODE(ITEM
    ANAND
    CHARLES
    ZIPAJ
    KRALJIC
    YING
    JAKE                           Not in List
    ALSTHOM                        Not in List
    AERO                           Not in List
    KRUPP                          Not in List
    YANEK                          Not in List
    MAINE                          Not in List
    SONY                           Not in ListOr all list marking entries not in employees:
    SQL> WITH mylist as (
      2     SELECT 'ANAND' item FROM DUAL UNION ALL
      3     SELECT 'SVEN' FROM DUAL UNION ALL
      4     SELECT 'GORAN' FROM DUAL UNION ALL
      5     SELECT 'CHARLES' FROM DUAL UNION ALL
      6     SELECT 'LEMAR' FROM DUAL UNION ALL
      7     SELECT 'ZIPAJ' FROM DUAL UNION ALL
      8     SELECT 'KRALJIC' FROM DUAL UNION ALL
      9     SELECT 'YING' FROM dual)
    10  SELECT item, DECODE(empname, item, NULL, 'Not in Table')
    11  FROM mylist
    12     LEFT JOIN employees
    13        ON empname = item;
    ITEM    DECODE(EMPNA
    CHARLES
    YING
    ZIPAJ
    ANAND
    KRALJIC
    GORAN   Not in Table
    SVEN    Not in Table
    LEMAR   Not in TableIf your list is longer, and you are getting it programatically somwhere, it might be worthwhile to populate a global temporary table with the list and use that in place of the sub-query factoring clause.
    John

  • Multiple Selection in Search Result List in PCUI

    Hi,
    Our requirement is to allow creation of new records in list view of the PCUI application CRMM_ACCOUNT. I'm using old floor plan CRM 4.0 to meet this requirement. But this is causing a problem. It's not allowing multi select in the search result list (Event INIT, Screen Element SRMS). If I change the screen element to SRME, it allows multiple selection (thru selection checkboxes) but does not allow creation of new records in list view.
    Also, how to activate the multi-valued search on certain fields. I've already checked the "Multi-Value" check box for the relevant field.
    Any help on this will be much appreciated.
    Regards,
    Vishal

    a®s wrote:
    Hi,
    You can find lot of thread in this for forum for your query.
    example
    a®s
    Thanks ! it's helpful!   But my requirement is a little bit different. (Sorry I didn't make it clear)
    I created a table maintenance (SM30) for a table. The F4 Search help should be applied to a field of the table when a user creates a new entry. I hope it makes clear.
    btw: I have awarded some points! Because it's also good to know some other ways:)

  • Comma character becomes dash character in result list

    Hi,
    Entries in our categorization schemas with comma within its name such as "SMITS, Inc." becomes "SMITS - Inc. " when displayed in the web ui result list.  This seems to affect searching using the standard Category search criterion.  Is there a way to correct this?  Thanks in advance.
    Regards,
    Theresa

    chk this
    http://jobinesh.blogspot.com/2011/02/overriding-control-hints-of-view-object.html

  • Multiple entries in dialer watch-list

    Hi,
    If I have multiple entries in my dialer watch-list:
    dialer watch-list 1 ip 192.168.10.3 255.255.255.255
    dialer watch-list 1 ip 192.168.20.3 255.255.255.255
    And just one of the routes gets removed (for example 192.168.10.3) - will this trigger my router to dial the backup link? OR Do both the routes have to be removed before the router will dial?
    (Just a little background - the host routes I'm watching are loopback interfaces of head-end MPLS routers and I'd only like the remote router with the dialer watch-list to dial if BOTH loopbacks are removed from the routing table)
    Thanks!
    Brad

    Brad
    In my limited experience with dialer watch, I believe that you are going to get the results that you want. Dialer Watch will initiate the backup when all of the specified routes are removed from the routing table.
    HTH
    Rick

  • Problem modifying result list.

    I want to achieve that a rerun teststep in a sequence overwrites the result of the previous execution.
    So I created a SequenceFilePostResultEntry callback which does
    - If there is a step in the resultlist which has the same StepID as the last Step copy the result list entry of the latest step over that step
    -remove result list entry for latest step.
    Unfortunately the statement for copying the result:
    Runstate.Caller.Locals.Resultlist[Locals.Index] = Runstate.Caller.Locals.Resultlist[Locals.LastIndex]
    creates a runtime error saying that subproperty TS being not of same type.
    Indeed the TS structure of Runstate.Caller.Locals.Resultlist[Locals.LastIndex]  is missing the fields
    SequenceFilePostResultListEntry and ProcessmodelPostResultListEntry which are available for any older Resultlist entry.
    Is there a workaround for that ?

    I use an older version of teststand 2.0.1f
    In SequenceFilePostStepFailure
    I have to look at Parameters.Step.TS.StepFCSeqF
    I set Step Fail Causes Seq Fail to false on my calling steps otherwise I always get a fail even retesting the step.
    if !Parameters.Step.TS.StepFCSeqF then :-
    Reduce the result list size by 1, then
    RunState.Caller.RunState.NextStepIndex = RunState.Caller.RunState.StepIndex
    Message Edited by Rupert Hewitt on 07-10-2006 09:13 AM

  • Error while adding a 'Ext No' field to Activities Search Result List on UI

    Hi Experts,
    The requirement is to add a new display field u2018External Nou2019to the activities SEARCH Result list.
    At the moment activities are displayed with start date, end date and category, now the user want to display External No as well.
    The details for that
    Target:
    Component:BT126S_APPT
    View:bt126s_Appt/ApptSR
    Context Node:BTQRACT
    New attribute 'EXTERN_ACT_ID' to be added to the context node.
    Source: component: BT125H_TASK
    View: BT125H_TASK/TaskDetailsOV
    ContextNode:BTACTIVITYH
    Attribute:Struct.Extern_Act_Id
    BOL Relation:
    BOL ENTITY: BTQRAct
    BOL Attribute: BTADVSAct -> BTOrderHeader -> BTHeaderActivityExt/EXTERN_ACT_ID
    When i tried to added the attribute to the context node BTQRACT, it gave me the error 'method CL_BT126S_A_APPTSR_CTXT CREATE_BTQRACT DOES NOT EXIST.
    please give me some inputs.
    Regards
    Krishna

    Hi steve,
    Still my issue was not resolved, could you help me to find the exact error.I have enhanced the component, view and context node, still i couldn't able to add attributes to the context node BTQRACT.I tried to add several fields, but it is giving the same error 'METHOD CL_BT126S_A_APPTSR_CTXT' CREATE_BTQRACT DOES NOT EXIST'. I have checked the OSS messages and found 2 relavant to this component. I have implemented both the Sap Notes 1363752, 1226612. Still after implementing the OSS note, i am getting the same error.My guess is one of the method is missing. Please help me out?
    Regards
    Krishna

  • Result table data to be populated based on selection in the result list

    Hi,
    We have a parent data source "P" containing all the record types. Further we have two child data sources each having filters on exclusive record types(for ex. child1 containing record types X, Y, Z and child2 containing record types A, B).
    In our page we have a result list associated with data source child1(record types X, Y, Z) and result table associated with data source child2(record types A, B). There exists common attributes among the attributes present in result list and in the result table.
    Rest of the containers in the page namely search, breadcrumbs, guided navigation point to the parent data source("P") containing all the record types.
    Whenever we select a value from the guided navigation using the common attributes both the result list and result table are getting filtered.
    What we require is that, whenever an attribute(common attribute) is clicked in the result list, the data in the result table needs to get filtered based on the value of the attribute that is clicked.
    Is this possible? If so, pl. suggest how.

    Take a look at the Studio release notes for EID 2.4 http://docs.oracle.com/cd/E35976_01/studio.240/RELNOTES.txt a lot of little bugs like the one you describe have been resolved. If you haven't already done so you should upgrade to 2.4.

  • How to get latest record on top of the result list

    Hi Gurus,
    How to get latest record on top of the result list when you open the record.
    saved data method in BT120H_CPL of OverView page and result list in ICCMP_INBOX.
    Regards,
    Ravi

    Hi
    Try sort descending by on fileld "changed at ".
    manipulate the sort depends on your requirement
    Regards
    Logu

  • Different Color Text of Topic Titles by Child Project in Search Results List

    Does anyone know how I can change the text color to indicate the source project of a topic as displayed in the Search Results list?
    I have followed Peter Grainge's directions for setting up a parent project that has several child projects, one of which contains outdated version-specific information. Thanks, Peter!
    I would like it to be obvious to the user before they open a topic from the Search Results list that it is from the old legacy project.
    I have found where the font is set, (thanks to the RoboWizard), but I am not a Javascript programmer and am uncertain how to code the "if document is from this project, then use this font" logic.
    I would also like to put a "caption" below the "Search Results per page" line to explain the purpose of the color change.
    I am using RoboHelp HTML 8.0.2. I generate WebHelp output which is then FTP'd to our server.
    Thanks in advance!

    Hi Leon,
         Let me make sure that I understand your suggestion - I should change the title of each topic in the "legacy" knowledge base so that they each include a short identifier, such as "First Topic - Legacy"? If so, I suppose that would work, but I'd have to change 1,000 topics. The topic titles would no longer match the filenames (I'm trying to freeze changes to the old knowledge base to which there are many links from our user forum), which I suppose is not a big concern at this point.  I'll run some tests.
         That has also raised another question in my mind, but I'll post that separately. It's about the way Robohelp selects the text that is shown immediately after the title of the topic in the Search Results list.
         Thanks for taking the time to help!

  • IBase search result list not showing in Account Identification

    Hi Gurus,
    I'm new to CRM and we have an upgrade issue. We just migrated to EHP3 for SAP CRM 7.0. After the migration, the installed Base result list is not showing in the Account Identification screen. We have the requirement to show the installed base on the right side of the confirmed account and also the result list in case the customer have multiple equipments. The first part is working correct and it shows the data if there is only one equipment with the customer. But in cases where there are more than 1, the installed base view shows blank and also the result list does not show. Instead the Interaction History is displayed. I have checked all the forums and the config and it all looks correct. Here is the list of config that we have
    1) I have the Account Identification Profile created and assigned the Object Component 'ICCMP_IBASE'  to it with Auto Search checked ON. This I believe is for the IBase Details which is working fine for single equipments.
    2) Function Profile 'BPIDENT' with value of the Account Identification Profile has been assigned to the Business Profile.
    3) The Installed Base Profile 'DEFAULT_TREE' has been updated to UNCHECK 'Display Tree' as we want the result list.
    4) Function Profile 'IBASE' with value 'DEFAULT_TREE' has been assigned to the Business Profile.
    Am I missing something? The exact same config works perfectly in a box that has not yet been upgraded. Any help would be appreciated...

    Hi,
    I tested this issue and I can reproduce it in my environment. However, as far as I know, this behavior won't affect the usage of the address book.
    I searched the internal resource but I cannot find a bug report regarding this issue. If you have any suggestion about this issue, you can submit a feedback via:
    http://office.microsoft.com/en-US/suggestions.aspx
    Best Regards, 
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • URGENT : How to save multiple entries in a T list at one go

    If I have a T list that contains the colours availiable at a paint shop (just an example), e.g. white, green, red. I want to save the multiple entries in the t-list at any moment to the database column at one go. how can i do it.
    Also the table doesn't contain a column for the colour_code, but instead it has the shop_id and the colour_id corresponding to that shop_id. So i need to insert into the database the colour_id for a particular colour_code as the t-list is just a control item in the data block.
    Please help.
    Abhishek.

    if you use multi-selection Tlist item or create your own Tlist looking form, then you may loop thru these multi-selections and add your logic into this loop.

Maybe you are looking for

  • Email -Save as- New Folder- buggy -no copy/paste

    Email -Save as- New Folder- buggy. I can't paste text into a new folder field whether from a file/save as path or save attachments as- new folder.  That new folder dialog box does not allow copy or paste, only direct typing.   I've tried on three mac

  • Cust master-tax indicator

    HI, in Customer master -billing tab we give tax indicator for tax ctypes we have CTYPE FOR CST -XXX VAT -XXX LST - XXX for which tax indicator is given say liable for tax /2 % cst/4% vat/not liable etc. for all customers now recently 1 more ctype was

  • Apps purchased on iphone not transferring

    Please bear with me on this one as it's not quite as simple as the subject title suggests... My wife and I share one computer (a Macbook running 10.5.8) using 2 separate user accounts. We have different iTunes accounts but share a library. The iTunes

  • Exception from BAPI_PTMGRATTABS_MNGCREATION

    Hi, We are using BAPI - BAPI_PTMGRATTABS_MNGCREATION it is working fine but at times it is giving exception from Class - CL_HRPA_INFOTYPE_FACTORY and method - SET_CONTEXT ( cx_hrpa_violated_precondition) and giving dump.. When it raise exception vari

  • Computer stalls on restart after ONYX

    My friend has a 24" 2.4g iMac running 10.5.8 I recommend Onyx to him and he downloaded, installed and says he ran maintenance. Then went to restart. computer chimes, apple logo, exactly 3 revolutions of the gear and then freezes. Apparently there is