Mulitple items in a text field

Hi all,
I have a text field that I want to print the contents of an array in.
for (int i = 0; i < rain.length; i++) {
            arrayContents.setText(String.valueOf(rain));
I was wondering if someone would tell me how to get all items of the array to print consecutively.  As it stands I can only get one item to print.  I guess because the textField keeps getting replaced with the new index.  How can I print a list in a textField like this.  Also if there is some other object that is better for this type of thing I would really like to know that. 
Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Try one of these....
  for (int i = 0; i < rain.length; i++) arrayContents.append(String.valueOf(rain));
for (int i = 0; i < rain.length; i++) arrayContents.insert(String.valueOf(rain[i]), i);
Or look in the API for what you want.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Search for multiple items in one text field

    Hi all,
    I am new to ApEx, I have a request from one of our users to ask if there is a way we can allow them to enter more than one search items delimited by a comma. For instance, we have a text item field for user to enter some values as emp names, when he key in like PETER,SMITH,ALLEN,WARD, once he submit the page he will see the result as:
    select t.empno, t.ename, t.job, t.mgr, t.hiredate, t.sal
    from scott.emp t
    where t.ename in('PETER','SMITH','ALLEN','WARD')
    Many thanks.
    Message was edited by:
    lcpx

    You can create a multiselect list named P1_REPORT_SEARCH based on a List of Values (LOV) with those employee names and use this code.
    select t.empno, t.ename, t.job, t.mgr, t.hiredate, t.sal
    from emp t
    where
    (instr(':'||:P1_REPORT_SEARCH ||':',':'||ENAME||':') > 0 or :P1_REPORT_SEARCH is null) /**for multiselect**/
    )

  • Sale Order Item Level Text Field which table and field

    Hi,
    Thanks for your prompt reply and best solution.
    Can you please tell me one more thing, in sale order at item level the TEXT Field maintaining by user at transaction level now they want that field in one of the report, so can you please tell what is the table and field where i will get this sale order item level text details.

    Hello,
    is this going to work for item level text as well.
    can you tell how to proceed with this functional module
    or is there any other thing required.Please elaborate to
    understand better way.
    You can check out two table in respect to Sales TEXT i.e. STXH (STXD SAPscript text file header) and STXL(SAPscript text file lines).
    The best approach of tracing out the Text in respect to Sales Order would be to use the Function module READ_TEXT and put this FM in SE37 and execute with the following parameter.
    Client
    Text ID of text to be read
    Language of text to be read
    Name of text to be read
    Object of text to be read
    Archive handle
    Text catalog local
    When you are essentially looking to read item level Text with respect to Sales Order then your Text OBject would be VBBP.
    Regards,
    Sarthak

  • How to hide text field item based on true or false cases in oracle apex

    Hi,
    I have a set of text Field items in oracle apex:
    Order Number
    Revision Number
    When we open the report, revision should be hidden.
    Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
    If he enters duplicate order number, revision number should be hidden.
    Please help.

    Hi 2932464,
    2932464 wrote:
    Hi,
    I have a set of text Field items in oracle apex:
    Order Number
    Revision Number
    When we open the report, revision should be hidden.
    Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
    If he enters duplicate order number, revision number should be hidden.
    Please help.
    Giving you example how to achieve this.
    Step 1. Create three Page Items
        1) P1_ORDER_NO - Text Field
        2) P1_REVISION_NO - Text Field
        3) P1_ENABLE_DISABLE_REVNO  - Hidden,Value Protected - No
    2. Create 3 Dynamic Actions
    1) Disable revision number on page load
        Event - Page Load
        Action - Disable
        Fire When Event Result Is  - True
        Selection Type - Item
        Item - P1_REVISION_NO
      2) Check duplicate order number
        Event - Change
        Selection Type - Item(s)
        Item(s) - P1_ORDER_NO
        Condition - is not null
        Action - Execute PL/SQL Code
        Generate opposite false action - Unchecked
        Fire When Event Result Is  - True
        Fire on page load - Unchecked
        Stop Execution On Error - Checked
        Wait for Result - Checked
        PL/SQL Code -
    declare
    l_count number;
    begin
      select count(*) into l_count
        from emp
       where empno = :P1_ORDER_NO;
    if l_count > 0 then
      :P1_ENABLE_DISABLE_REVNO := 1;
    else
      :P1_ENABLE_DISABLE_REVNO := 0;
    end if;
    end;
    Page Items to Submit = P1_ORDER_NO
    Page Items to Return  = P1_ENABLE_DISABLE_REVNO
    3 ) Enable and Disable Revision Number
        Event - Change
        Selection Type - Item(s)
        Item(s) - P1_ENABLE_DISABLE_REVNO
       condition - greater than or equal to
       value  - 1
       Action - Disable
       Fire on Page Laod - Unchecked
       Generate opposite false action - checked
       Selection Type = Item(s)
       Item(s) - P1_REVISION_NO
    Hope this helps you,
    Regards,
    Jitendra
    DER_NO

  • Line item text field from MIGO are not copied into FI line item text field

    Hi all on SCN, please, I need a help.
    It was created as required by the user a field status group with the text field required.
    This field status group was assigned to some accounts, in order to make my unit tests.
    u2003
    In development envirionment was made some tests directly in FI area, and it works properly.
    u2003
    But the user made a test using MIGO transaction, choosing in this transaction an account that he changed its field status variant to the one created in development environment, that make the text fiels required. So, to start, he donu2019t fill the text item of MIGO, and a message error appear stating that he needs to enter values in this field.
    After fill in the text fiels, he can save his work.
    u2003
    But the FI document generated donu2019t receive the line item text typed in MIGO, but receives the values on Reference document and Document Header text entered in the header of MIGO, what is missing, donu2019t is automatically copied MIGO text line items to FI documents line Items, does there is some additional configuration missing?
    Hope someone help me with this issues.
    Thanks in advanced!

    Hi,
    Material document will get updated in reference field in FI by default.  If for any reason, want to get this updated in text field, you need to define a subsititution in GGB1.
    Best Regards,
    Madhu

  • Need to find table/field behind "Item long text" field in Notes tab in FB70

    Hello,
    To print a custom FI invoice, I need to access the data entered in the "Item long text" field of the Notes tab in FB70. To test, I used 5000 characters in that field to make sure it stood out from the rest of the data. F1 help does nothing on that field, and even running an SQL trace (ST05) doesn't show the text in that field being entered into any table. I tried F1 on a nearby field and got a structure instead of a table, so I investigated the structure through SE11 but found no character field with such a large capacity. How else can I find where that field is stored?

    Thanks! It took a while, but with your help and a few other pages I managed to piece together an answer.
    Vinod helpfully explained that the text name is a concatenation of various fields, but didn't specify how to find the line item ID. If you go to table STXH (as hinted by Brad and confirmed [here|http://fuller.mit.edu/SAPWebDocs/LongComment.html]) and search for texts created today (or whenever you were testing), you'll see the text name ends in '001' after GJAHR, so the line item ID is '001' regardless of how many line items you enter in the invoice.
    Armed with that info, you can call READ_TEXT and loop through the results to concatenate the contents of each TDLINE field. (FB70 automatically breaks the user-entered text into different lines even if the user didn't press Enter, and each line gets its own record in the results.)
    Thanks again,
    Pedro

  • Item level Info record PO text field in Purchase Order Me21n transaction

    Hello All,
    I have to enter some information in the PO info record text field (which is in Item level Texts tab of ME21n transaction ) using an user-exit at the time of creation/change of purchase Order.
    Does anyone knows the user-exit and how to update the text field ?
    Any help is really appreciated
    Thanks
    Ricky

    Check with : Enhancement : MM06E005
    Function module : EXIT_SAPMM06E_017
    This user exit will trigger when you enter the data in item level(Both creation and change)

  • Withholding tax code in line item text field

    Dear All,
    Please suggest me on the below matter,
    When we will pass a vendor invoice through FB60 we will mention the Withholding tax type
    and tax code for withholding tax deduction from vendor . Then withholding tax line item will
    generate automatecally, but there will be nothing in the text field.
    I want that the withholding tax code will come automatecally in the text field after posting the entry.
    Is it possible?
    Regards
    Amitava

    Hi,
    You can define Text for line items in OB56. Just define Text ID and enter your text and tick the check box "Control Display". Now you can define Substitution rule and replace the Text "=XY" in text field (If you have defined Text ID XY in OB56).
    You can also try to maintain user exit with reference to OB56.
    Regards,
    Jigar

  • With Oracle Portal 11g Item Text field there is no limit 32k?

    I have a question to O, then Oracle Portal 11g Item Text field there is no limit 32k? Because the version old is limited to 32k for fieldText Item Text. When i add Item text than 32k have error :
    http://btcportal.btc/portal/pls/portal/PORTAL.wwv_add_wizard.edititem
    400 Bad Request
    Unable to process request. Please check the log file for more details.
    thanks!

    Text items are still limited to 32k in Portal 11g. Check the Portal Online Help section 'Add/Edit Text-Based Item' for documentation of this limitation.
    Thanks,
    Erik Janssen

  • ADD ITEMS TO DROPDOWN BOX FROM A TEXT FIELD(USER ENTERS THE ITEM) AND BOUND VALUE ALSO

    I WANT TO ADD ITEMS  THE DROPDOWN BOX FROM THE TEXT FIELD(ITEM NAME) WHERE USER ENTER'S THE ITEM DESCRIPTION
    AND BOUND VALUE ALSO SHOULD BE ADDED TO THE SAME ITEM.
    SAME WAY REMOVE ITEMS FROM DROPDOWN BOX
    PLEASE GIVE SAMPLE FORM OR JAVASCRIPT FOR THE ABOVE SCENARIO.....
    INDEED HELPFUL FOR MY PROJECT PLEASE SEND ATTACHED PDF FORM

    Hi Praveen,
    Your form is not shared so I have not been able to access it.  But I have updated mine.  There are now two approaches, one that follows on from the above method and updates each drop down list in each row.  The second updates a separate dataset that the drop down list is bound to.  This second approach requires the remerge() method which can cause problems if your code has updates some form properties like a borders color as these will be reset, but the code is simplier and you will only have one list to maintain.  The add button click code is;
    var particulars = xfa.datasets.resolveNode("particulars");
    if (particulars === null)
        particulars = xfa.datasets.createNode("dataGroup","particulars");
        xfa.datasets.nodes.append(particulars);    
    var particular = xfa.datasets.createNode("dataValue","particular");
    particular.value = ItemName.rawValue;
    var boundValue = xfa.datasets.createNode("dataValue","id");
    boundValue.value = BoundValue.rawValue;
    particular.nodes.append(boundValue);
    boundValue.contains = "metaData";
    // find sorted position to insert
    for (var i = 0; i < particulars.nodes.length; i++)
        p = particulars.nodes.item(i);
        if (p.value > particular.value)
          particulars.nodes.insert(particular, p);       
                 break;
    // add to end if greater than all existing items
    if (particular.parent === null)
        particulars.nodes.append(particular);
    // clear source fields
    ItemName.rawValue = null;
    BoundValue.rawValue = null;
    // remerge form data to pick up new item
    xfa.form.remerge();
    And the binding looks like;
    I have updated my sample to include both methods, https://workspaces.acrobat.com/?d=OwysfJa-Q3HhPtFlgRb62g
    Regards
    Bruce

  • Required Text Field for automatically generated line items

    Hi Experts,
    I have noticed that when additional line items is automatically generated by SAP, the line item text field becomes required for those items.  This happens regardless of the configuration made in the field status group....
    For example, when posting cross company code transactions using account assignment model, the balancing entries (automatically generated by SAP) requires an input for text field.  The same scenario happened when I run F-58 in background (BDC), and there are additional line items in my entry.
    Can you please share some insights on SAP's behavior.  And is it possible to turn it off?
    Thank you.
    Regards,
    Reiko
    Edited by: P. Reiko on May 16, 2011 10:25 AM

    Dear:
                  1st check out the configuration for text filed that whether it has been set mandatory in the following FSG
                   1.... Field status groups which we assign to Recon Accounts of customer--OBC4
                   2..... Posting keys---OB41
                  3....... Field status group for Customer account group
                  SPRO>> FA>> AP & AR>> Customer Acct >> Master Data >>Preparations for Creating Customer Master Data              Define Acct Groups with Screen Layout(Customers)
    See if it has been set mandatory there. Revert back in case issue is not resolved.
    Regards

  • How to display HTML formatted text in the field with Item Style: Raw Text

    How can I display HTML formatted text in the field with Item Style: Raw Text.
    Currently the Item Style is Raw Text, but the text is being displayed along with HTML tags without formatting.
    Regards

    Hi,
    Use Item Style formattedText.
    Regards,
    Gyan

  • Substitution rule for gl account text field in line item.

    Hi
    We have intercompany postings made for a no.range of GL accounts ex: 1000-1999.When ever this accounts are getting posted ,i.e the accounting doc,need to make substitution such that what ever the description is given in the offsetting entry(ex: vendor 10000 - Material vendor ) for this GL in the accounting doc should come in the text field .
    I want the description of the vendor account to be inb the text field in the line item of the gl account.Is it possible thru substitution.If so how.
    Please advise.

    Thanks for all your replies.
    I Want the field BSEG- KOBEZ i.e description field in the accounting doc of the offsetting entry to be replaced in the GL account  text field.
    Ex :
    PK    Account        Description                  Amount           Text
    31    100000         Furniture  Vendor             50             Sales
    40    1999             Inter Compy                     50             Furniture Vendor
    I want the description of offsetting entry vendor description i.e Furniture vendor (field BSEG-KOBEZ) to be replaced in GL line item text BSEG-SGTXT.
    I cant find the field BSEG- KOBEZ while i search in the substituion to replace in Text field.
    How do i write in substitution to say that the offsetting entry description should be in text field of GL account.

  • From line item text field in Fi not posted to COPA characteristic field?

    How do you create the link from the Line item Text field in FI to a characteristic field in COPA?
    I tried to create a characteristic field Text. from the domain VBELN in COPA.
    Although I can post from CRM the contract number to the Line itemText field in FI posting,
    I can't get this contract number to post to a characteristic field in COPA.
    Thanks,
    Sony

    program a bdc to tcode fb09
    A.

  • Fill BSEG-LIFNR and LFA1-NAME1 in line item text field of Bank GL line item

    Hi all,
    I need to develop a program to populate the Vendor Number (BSEG-LIFNR) and Vendor Name (LFA1-NAME1) in the line item text field of Bank GL line item.
    The UI design will have the input data as:
       - Company Code
       - Posting Dates (both from and to date)
       - Execute Icon
    Please let me know how to proceed on this.
    Thanks and regards,
    Anishur

    program a bdc to tcode fb09
    A.

Maybe you are looking for

  • Problem with login jsp

    I made a login.jsp with the help of a bean. the bean holds a string[] as a property where it stores user and pass, then those values are checked in my database, and a boolean bean property is set to true. The problem is I want to do an if statement i

  • Importing Mac Pages Documents

    I have some trifold brochures that were created in Mac Pages. They're in landscape format to be folded over and mailed. Importing into the iPad Pages has been pretty much a disaster. First was the font issue (I used fonts that don't exist in iPad. I

  • I have iphoto on my iphone, many albums, these albums will upload to iphoto on my mac ... I can do it?

    I have iphoto on my iphone, many albums, these albums will upload to iphoto on my mac ... I can do it?

  • File transfer status in rxvt-unicode?

    Hello, I had mounted a cifs and had been copying some movies from one of my computers to another through the terminal (mount -t cifs comp1:/share/ ~/somemntpoint) and I realized that I had no idea about the status of the file transfer.  Is there an a

  • When i try to submit my podcast to itunes store i get 11111 error about cookies

    Every time  i try to submit my podcast to the itunes store i get an error that say this we could not complete your itunes store request. an unknown error occurred (11111) there was an error in the itunes store please try again later. so i try again a