Custom name for Timer thread?

Thread has the usefull setName() method to set a custom name for a Thread. Timer doesn't have such a method but a Timer is itself a Thread. How can I set a custom name for a Timer thread?

Yes, very usefull for debugging, e.g. when running mutliple threads in an IDE, you can easily identify the thread to continue to inspect without inspecting the threads content/attributes.
But also for logging: for a multithreaded server application having a log file, each thread can log messages to the log file (standard Java logging API). To be able to assign the messages to each thread, the thread name can be used as the message prefix.

Similar Messages

  • How to display custom names for attributes in JSP pages

    I would like to use custom names for my attributes in Struts JSP table headers.
    For example, if the database table named "Country" has a column CNT_ID and BC4J wizard mapped it into an Entity Object's attribute "CntId" I would like to display it as "Country ID" in my JSP table header.
    Now, I suppose the place to try this is probably in DataEditComponent.jsp, DataQueryComponent.jsp etc., and probably has smthg to do with jbo:AttributeIterate, but I still can't figure how to achieve this...
    I use JDev 9.0.3

    Kresimir,
    It's not clear from your posting whether you've worked out how to do what you want with control hints, so just in case, here's how:
    - In the navigator, select your entity object or your view object
    - In the structure pane, double-click the attribute you want to edit (CntId)
    - In the attribute editor, select the control hints page
    - In the Label Text field, type the text you want to use for your label (Country). Click OK.
    Hope this helps
    Blaise

  • Customized name for report instances under publication (BOXI 3.1)

    Hi All,
    Is a there any way to have custom name for the report instances under publication history (default enterprise location). I can see we can customize report instance names using placeholders if destination is email or local drive or enterprise inbox, but doesn't have similar option under publication history.
    Basically we have a Agency Report which has to be distributed to individual agencies through email while another copies will be maintained under publication history. But unfortunately there is no way (as it seems to me) to find out which report instance is for which agency (unless one manually opens and checks the report).
    So my query to you is that, is there any work around to customize report instances name under publication history.
    Thanks in advance.
    Regards,
    Mukesh

    Hi,
    My client has exactly the same requirement; for instances/documents to be published to default location with custom instance and document names.
    I'm really struggling to find any built in capability to do this however I hope I'm wrong on this!
    At the moment I'm writing a publication extension to do this but again I hope this isn't necessary!
    Does anyone know if this is possible?

  • Hierarchy issue:Customer name for xyz  is blank

    Hi Guys
    I have added 1 new A/C code in the customer hierarchy thru RSH1.Description is not shown.Customer name for xyz  is Blank.So plz tell hw to check??
    Regards
    Bunty.

    Hi,
    Is there description maintained for the customer in infobject?
    Thanks
    Srikanth

  • SAP Mobile MTS Enhancement - Customer Picklist for Time sheet

    Hey all,
    I am working on mobile timesheet enhancements. I have to create a customer picklist for salesorder position (key: catsdb-pernr + catsdb-rkdauf + catsdb-rkdpos). And the implemented customer picklist doesn't work as it should. I'm just a java and MTS-beginner. Perhaps one of you can help me.
    1) If I choose a line in the picklist, the fields rkdauf and rkdpos in the timesheet should be filled. But only the field rkdauf is filled. How must I create the java-enhancement?
    2) When I choose a line in the picklist not only the picklist keys should be delivered to the timesheet. Additionally the timesheet fields catsdb-awart, catsdb-ZZ_MANDANT and catsdb-ZZ_DIENSTLEIST should be filled from the picklist. How must I create the java-enhancement?
    Can anyone send me a solution for my problem?
    [email protected]
    Thanks and Regards
    Jörg
    Following repository-files:
    ci_tables.xml:

    Hello Markus,
    Good for you that I am the one who implemented this feature!
    You will find in the WEB-INF folder a file named picklist.config:
    This file contains the mapping of the
    picklist UI to the table and record
    #FieldName, TableTypeName, RecordTypeName
    AWART, PICKLIST_AWART, PICKLIST_REC_AWART
    Take AWART here as an example.
    The first type is the Field Name for which the picklist will be displayed.
    The second is the Table that will be used to provide the records to the picklist.
    The last one is the record type that will be used to restrain the field from the picklist table.
    So if your picklist table has 28 fields, but you really want to display only AWART, STARTDATE, ENDDATE. Then you provide PICKLIST_REC_AWART that will contain only those 3 fields and only those will be displayed in the picklist page.
    All those types must be defined in the MTT repository to work.
    Hope this helps,
    Julien.

  • Is It possible to give custom name for output files in Bursting

    Hi ,
    I am using bursting for mailing the output and PDF files are coming with names such as xdo1_null.pdf can the name be changed to invoice.pdf ..etc
    Thanks in advance
    Best Regards,
    Mahesh

    sample file, you can use any name and append the xml data elements too...
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type ="bursting">
    <xapi:request select="/MODULE1/LIST_G_EMPNO/G_EMPNO">
    <xapi:delivery>
    <xapi:email id ="123" server="[email protected]" port="25"
    from="[email protected]" reply-to="[email protected]">
    <xapi:message id="123" to="[email protected]" cc="" attachment="true"
    content-type="text/html" subject="Purchase Order Number: ${EMPNO}">Please
    see attached Purchase Order File: ${EMPNO}</xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="PO_${EMPNO}" output-type="pdf" delivery="123">
    <xapi:template type="rtf" location="xdo://CUS.TEST_BURST_1.en.US/?getSource=true"
    filter=""></xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    Edited by: Sattti on Nov 2, 2008 8:26 PM

  • Custom names for each browser window

    I usually have at least 4 Safari windows open at once.  Each has at least 5 tabs.  Each window represents a different category of work or research I'm doing.  I do a 4 finger swipe down to view all open Safari windows, since I'm constantly flipping between these windows.  Is there some way to give each of these windows a name when I do  a 4 finger swipe down?  This would let me know what is going on with each window.  Right now, there really isn't a way tell and it turns into trial and error.
    Or, is there some better method for managing these windows?

    I have the same need. Is this a feature now 3 years later? If so, where do you access it? If not, can I add my vote to make it a feature?
    thx

  • Custom Fast formula for Time Entry Rule in OTL

    Hi,
    i have created custom validation for time entry rules. I need to validate where Project and task fields are null or not? If Yes, it has to fire the custom message that i have mentioned in function. Please check the below code and help me whether i am on right path:
    CREATE OR REPLACE FUNCTION NON_pto_against_projects (
    p_time_category_id NUMBER,
    p_person_id NUMBER
    RETURN VARCHAR2
    IS
    --Variables used for retrieving timecard id and ovn
    l_db_pre_period_start DATE;
    l_db_pre_period_stop DATE;
    l_time_building_block_id hxc_time_building_blocks.time_building_block_id%TYPE;
    l_object_version_number hxc_time_building_blocks.object_version_number%TYPE;
    --Variables used for loading timecard tables
    l_time_building_blocks hxc_self_service_time_deposit.timecard_info;
    l_time_app_attributes hxc_self_service_time_deposit.app_attributes_info;
    l_attributes hxc_self_service_time_deposit.building_block_attribute_info;
    --Variables used for getting exploded time details
    v_blocks_tab hxc_block_table_type;
    v_attr_tab hxc_attribute_table_type;
    l_messages_tab hxc_message_table_type;
    l_detail_blocks hxc_self_service_time_deposit.timecard_info;
    l_detail_messages hxc_self_service_time_deposit.message_table;
    CURSOR csr_category_elements (p_category_id NUMBER)
    IS
    SELECT 'ELEMENT - ' || TO_CHAR (value_id) element_type_string
    FROM hxc_time_category_comps_v
    WHERE time_category_id = p_category_id;
    l_cat_elements_string VARCHAR2 (2000);
    l_temp VARCHAR2 (1000); --Trace message
    l_success_flag CHAR (1); --Return values
    BEGIN
    --Initialize variables
    l_success_flag := 'S';
    l_time_building_blocks := hxc_self_service_time_deposit.get_building_blocks;
    l_attributes := hxc_self_service_time_deposit.get_block_attributes;
    v_blocks_tab :=
    hxc_deposit_wrapper_utilities.blocks_to_array (l_time_building_blocks);
    v_attr_tab :=
    hxc_deposit_wrapper_utilities.attributes_to_array (l_attributes);
    IF v_blocks_tab.FIRST IS NOT NULL
    THEN
    Take each ELEMENT type attribute, and search whether PROJECTS type attribute exists for the SAME BLOCK-START
    FOR index1 IN v_attr_tab.FIRST .. v_attr_tab.LAST
    LOOP
    IF v_attr_tab (index1).attribute_category = 'ELEMENT - %'
    THEN --Element attr
    FOR element_rec IN csr_category_elements (p_time_category_id)
    LOOP
    If Element Attribute matches any of the NON-TOP elements in the Time Category-START
    IF v_attr_tab (index1).attribute_category =
    element_rec.element_type_string
    THEN
    Check PROJECTS Attributes project and task belonging to ELEMENT attribute's owner block-START
    l_success_flag := 'E';
    FOR index2 IN v_attr_tab.FIRST .. v_attr_tab.LAST
    LOOP
    IF v_attr_tab (index2).attribute_category LIKE
    'PROJECT - %'
    AND v_attr_tab (index2).building_block_id =
    v_attr_tab (index1).building_block_id
    AND v_attr_tab (index2).attribute1 IS NOT NULL
    AND v_attr_tab (index2).attribute2 IS NOT NULL
    THEN
    l_success_flag := 'S';
    EXIT;
    END IF;
    END LOOP;
    IF l_success_flag = 'E'
    THEN
    RETURN 'E';
    END IF;
    Check PROJECTS Attributes project and task belonging to ELEMENT attribute's owner block-END
    END IF;
    If Element Attribute matches any of the NON-TOP elements in the Time Category-END
    END LOOP;
    END IF; --Element attr
    END LOOP;
    Take each ELEMENT type attribute, and search whether PROJECTS type attribute exists for the SAME BLOCK-END
    END IF;
    RETURN l_success_flag;
    EXCEPTION
    WHEN OTHERS
    THEN
    RAISE;
    END NON_pto_against_projects;

    INPUTS ARE resource_id (number)
    , submission_date (text)these inputs are passed in PLSQL Code and some of them in formula context
    2. While we define a new context for a time entry rule. How is the data that we enter in the time entry rule passed to the fast formula?See the time Rule entry screen and you will find the parameters window there.

  • Custom Filename for PDF Report

    Hi,
    I have a requirement to download pdf for a report. I provided the download action as a column link on the report. Clicking the link I direct to the URL for the custom report I created (f?p=&APP_ID.:0:&SESSION.:PRINT_REPORT= MyReport). Pdf gets downloaded with the name MyReport.pdf. But I need to provide a custom name for the downloaded pdf, it should be based on the Id value of the report column something like this Emp123.pdf where 123 is the employee Id (selected row's employee id value in my report).
    I searched in the forums and came across this thread APEX 3 PDF Report Export Custom Filename? but here its mentioned that
    " In this case there's no separate attribute for the file name. And we don't do substitutions on the report query name, so setting the name dynamically as you described in your sample, won't be possible. "
    Since the thread is a old one so posting a new one. Any pointers is highly appreciated.
    Thanks,
    Rakesh

    1. Call the report with utl_http.
    2. Store the output as a BLOB. Either local variable or store it in a table.
    3. Print the blob.
    Here is how you can print the blob and read the package spec for utl_http.
    Re: display a blob on webpage using mod-plsql

  • How to display the Customer Name in the Sales invoice form

    Hi All!
    May I know the table from which I select the customer name for a certain customer number?
    Thanks in advance!

    Hi,
    Kna1 is the customer master table there you can find the name1 filed
    Thanks,
    NN.

  • Suggestion to improve post messages for new threads

    Hi all,
    Is possible to add some 'banner' in the top of the screen of 'Post Message: New Thread' to help and improve new posts? Example:
    Please, take care of:
    1. You must place a descriptive name for the thread. Avoid ambiguous names (like: "Help me") or imperative names (like: "Help me now!!, i'am in a hurry")
    2. You must put enough information to prevent the initial first response is asking for more information
    general:
         - database version
    table issues:
         -full description of table (column names, datatypes,...). Scripts of creation for tables.
    performance issues:
         - execution plan.
    data issues:
    - post some example data. Scripts of insertion of some minimal data.
    3. You must put formatted code using 'code' tags, enclosed by '{' and '}'; start tag and end tag are the same,you don't need to put '/' in
    the close tag.
    Note: I know there a FAQ Section (very good) but a lot of people don't follow it. Maybe, a solution could be some minimal recomedations on page 'Post Message: New Thread'.
    Regards,
    Edited by: Walter Fernández on Nov 1, 2008 12:06 PM

    I agree that if the title of a post was done last instead of first, that we would perhaps see an increase in titles that actually make sense. However, I wonder how many would remember to tab (or click) to the Subject window to type in the title and just close the thread because they are done typing their problem. And I somehow doubt it would deter those that put "PLEASE HELP!" and "URGENT-MUST HAVE ANSWER NOW!" from continuing to do so.
    And lastly, I don't think Jive allows that much customization of their software. Alas, we must live with those that "don't get it," and simply choose whether we will answer any particular post or not.
    It is hard to educate the masses. Sigh.

  • Custom Title for Webclip

    I was wondering if there is any way to create a custom name for the Weblcip (other than the title of you web page).
    Currently I have the following code in my page:
    <head>
    <title>--- My Page Title is very long ---</title>
    <link rel="apple-touch-icon" href="apple-touch-icon.png"/>
    </head>
    If I bookmark this page on an iPhone, I get the correct icon, but the title underneath is "--- My Page Title is very long ---". Is there any way to specify a shorter default title to be used?

    When you save a bookmark on iPhone, you have the option to change the name of the bookmark. This is also true when adding a clip to the Home Screen. There is no need to change your html coding on the page itself.
    This article explains more:
    http://support.apple.com/kb/HT1673

  • Add customer name to sgtxt through RGGBS000

    I got a requirement which says sgtxt should populate with customer name for RV type document. where can I add the coding for that.
    The requiremnt says, create z version of the program and add the logic, which form I can add the logic?
    Please advice

    Hi Thomas,
    If you want to just populate the Customer Name in SGTXT, then your objective can be achived through usage of substitutes. Below is the process:
    GO to : GGB1
    Create New Substitute in Call up point Line Item
    Substitue:
    Select the feild : BSEG-SGTXT
    Select the radio button  - Feild to feild assignment
    Prerequisit : BKPF-BLART = 'RV'
    Substitution : TEXT Field = BSEG-KUNNR.
    Now Goto GGB4 and activate the subsittute for relevant company code.
    Hope that will full fill your requirement.
    Thanks & Regards
    Krishna Chaitanya

  • Fbl1n and fbl5n display at time line item wise name for vendor and customer

    Hi
    Could you tell me how can I include Customer or Vendor names for each line items in transaction FBL5N and FBL1N, please? Customer Accounts are displayed well, but in several cases we also need the name of the certain Customer or Vendor account names. This would be important for consolidation of customer accounts of the same customers.
    It is possible to include in these reports the u201EName1u201D, but they are empty in all cases. Could you tell me how it is possible to correct this problem, please?
    ysr

    hi YSR,
    See if you want to have the Vendor/ Customer name or number to be displayed when you execute it. I mean on the Vendor/Customer Line Item Display.
    THEN follow the below steps........
    After executing the FBL1N or FBL5N Click CTRL+F8 or Change Layout.  From the Pop screen select the Vendor from the Right side of the screen and then drag to the Left side of the screen, then click on Copy as.
    Then Save the Layout or CTRL F12, save the layout with the new name that you want.
    When you want this Layout as the default each and every time then u have to do 1 more step....
    After executing the same layout go the
    MENU> Settings>Layout-->Administration...
    there you select the layout that u have created and then set that layout as the Default settings Check mark on DS.
    So that each and every time when u execute it the same layout will be displayed with the fields that u have selected....
    Hope this will solve ur issue......
    Kumar........

  • BADi or exit for customer name change

    Hi all,
    i want to retrieve the customer details based on the name entered in the selection screen.
    but the customer name is stored in the Database like combination of CAPITAL letters and small letters and Numbers and some special characters like -(Hyphen), .(DOT), etc.
    Assume name is stored in the database like: RAJA RAM.
    but the selection-screen , if the i enter raja ram, or Raja Ram, it should fetch from the database.
    what i am thinking that at the time of customer creation , i want conver the customer name into either CAPITALS or Small letters.
    for this is there any BADI or Exit is available.?
    Thanks
    Vimala.

    In what table are these customers stored? In tabel BUT000 for example, you have two columns in which the names are always stored in capitals to avoid these situations. And these columns are part of the secondary index as well. So no need to convert.
    If you do want to convert, despite the above argument, you will have to tell what transaction you are using to create / change customers to find the exit / badi.

Maybe you are looking for

  • How do I restore my utility app on iPhone?

    How can I restore the utility app on my iPhone 4, I deleted it by accident?

  • All my designs shift when the web browser is minimized - Help

    Hello and thanks for looking! I have been building a PC repair website based off a template. I have tried all sorts of things to fix an issue I have with my site. I am having a problem with my Draw Ap Div's overlaping other content on my site when th

  • Iwork not opening correctly

    i have just downloaded the iWork 09 and i have tried opening the  templates to create pages and it opens as a terminal not the page how do i overcome this to get it to open in the correct format.?

  • Pro Tools and FCP

    Hi All Anyone doing the roundtrip from FCP to Pro Tools and back again regularly? Is it as easy as an exported OMF to PT and then an exported final audio track in the desired format back to FCP to be synched with the video? My organization is changin

  • I went to update CC desktop this morning and it crashed.

    My CC desktop craned after trying to install an update this morning and now will not install . Gets part way then crashes again and asks me to reinstall .