multiline text box

Hi experts,
I have a multiline text box. user will enter some empno in there and I have to deal with them individually could you please suggest how can I take individual text in the text box.

For example, in the multi-line text box, it will be lokk like
123
2345
567
8765

and I have to do a string like 123,2345,567,8765. After that, I will separate each token.

Could you please give me an idea how I can make this chain.

Concerning
Rajat

Hello

Create the following function in your module program Uint:

FUNCTION Split
(
   PC$Chaine IN VARCHAR2,         -- input string
   PN$Pos IN PLS_INTEGER,         -- token number
   PC$Sep IN VARCHAR2 DEFAULT ',' -- separator character
)
RETURN VARCHAR2
IS
  LC$Chaine VARCHAR2(32767) := PC$Sep || PC$Chaine ;
  LI$I      PLS_INTEGER ;
  LI$I2     PLS_INTEGER ;
BEGIN
  LI$I := INSTR( LC$Chaine, PC$Sep, 1, PN$Pos ) ;
  IF LI$I > 0 THEN
    LI$I2 := INSTR( LC$Chaine, PC$Sep, 1, PN$Pos + 1) ;
    IF LI$I2 = 0 THEN LI$I2 := LENGTH( LC$Chaine ) + 1 ; END IF ;
    RETURN( SUBSTR( LC$Chaine, LI$I+1, LI$I2 - LI$I-1 ) ) ;
  ELSE
    RETURN NULL ;
  END IF ;
END;

Then get any what token of your text box - say: blk.ti like this:

Declare
     lc$value  Varchar2(256);
     indice    pls_integer := 1 ;
Begin
     loop
           lc$Value := split( :BL.TI, indice, CHR(10) );
           exit when lc$value is null;
           message('value:' || lc$value);
           indice := indice + 1 ;
     end loop;
End;     

François

Tags: Oracle Development

Similar Questions

  • Get the last value of a multiline text box

    Hello

    I have a form of acro with a TextBox multiline, a few radio buttons and text fields.

    When the user clicks on the radio button, the value of the multiline text box is displayed in another text box.

    This is the script for the option:


    The target field
    var t = this.getField ("programme of Action");

    Field value

    var g = this.getField("Agenda_Item").value;

    t.Valeur += g + "\n";

    What the script does, is show ALL values of the multiline "to the point" text box in the other text field 'Programme of Action '.

    I need the script to extract the last line or entry of the multi-line text box and put this value in the other field of text.  There could be any number of lines from one line to two, three, four lines etc.

    Can any advise please how the script can be modified to get the value of the last row in the multi-line text box?

    Any help will be most appreciated.

    You can split the string that is returned to carriage returns:

    var a = getField ("the order of the day Item").valueAsString.split(/\r/ ");

    You must then move backward from the end of the table until you meet an element of array not empty and use it.

    for (var i =. Length - 1; i >-1; i--) {}

    If (a [i]) break;

    }

    If (typeof a [i] = 'undefined') [i] = "";

    t.Valeur += [i] + "\r";

  • Count the number of transport returns in a multiline text box

    Hello

    I have a script to count the number of feedback from cart at the end of each line of text in a multiline text box.

    After you run the script in the console, the result keeps showing 0.

    Please can someone tell how the script can be revised to count the number of carriage returns?

    var number = 0;
    for (var i = 0;  I < this.getField; i ++)
    {
    var f = this.getField ("ActionAgenda");
    If (f.value == '\u000d') count ++
    }
    Console.println ("there is a total of" + count + "of carriage returns.");

    Any help will be most appreciated.

    Try this:

    var number = 0;

    var s = getField("ActionAgenda").valueAsString;

    for (var i = 0; i)< s.length;="" i++)="">
    If (s [i] = '\r') count += 1;
    }

    Console.println ("there is a total of" + count + "of carriage returns.");

  • How can I add a multiline text box to my playbook application

    Hello

    I am trying to add a multiline text entry field to my playbook application, but I don't know who supports multiline.
    So please can you me, how can I add a multiline input field.

    Thanks in advance

    There is a text box control in the library that you can use or be used as the basis for something else.

  • The cursor position is centered vertically in the multiline text box

    When I insert a text field, resize the height so that it can accommodate several lines of text and select "Allow multiple lines", the cursor is always left-aligned, centered vertically in the text box when opened in Acrobat.

    Is there a way to force the cursor to appear in the upper left corner, enter text to display from the top of the text, rather than in the middle box?

    Hello

    You can set the alignment of the text (vertical and horizontal) in the font/palette tab.

    If you do not see in your workspace, you can select it from the Windows menu in designer LC or SHIFT + F5.

    Good luck

    Niall

    PS note that you can change the appearance of the legend and the value of the object, together or separately. This applies to the style of the police as well as paragraph settings.

  • Multiline text box - how to start at the top?

    I have created a form that has several multi-line text entry fields.  How can I configure the text field so that data entry starts at the top of the domain of integration rather than in the Middle?

    Thanks in advance for any helpo you can provide.

    Highlight the field and in the fonts Palette, you can choose a justification. It is probably set to left midfield. Change it up.

    Paul

  • To find the number of characters left in the text box

    Hi all

    Oracle 6i version.

    In my form, I used a multiline text box that uses the user can enter the words up to 4000 characters. My requirement is when the user on the box type then a text message tells the user about the character left.

    Suppose that the user typed 150 characters then the message will be like this " 3850 characters left . The trigger must be fire when the user typing on the text box.

    Please someone help me... it is that it is urgent...

    https://sites.Google.com/site/craigsoraclestuff/Oracle-Forms---how-to-s/multiline-text-counter

  • Can someone help me with the properties of the multiline text field?

    Adobe is not my first or second language. I have been responsible for making a form to fill out and were able to understand a little after reading the Adobe Acrobat Bible, most, however, I just can't understand this little thing that's driving me crazy! I created a large default text field (so the person filling out the form to the management a little) this field is also defined as a multiline and also make field scroll long text. The problem is that the default text is highlighted not crept to crush then tab through the various areas of creation. He puts just the cursor at the end of the text by default so using back or manually select and delete text. I looked at how to set up the rest of the fields and the only thing different, I selected the multiline text box in the Properties menu. I need to be multiline text. If this is not the case, only the first words of the default paragraph I entered couple is visible. Any suggestions or ideas would be a step ahead of where I am now. Thanks in advance.

    Yesterday, we discussed a similar situation and the solution should work for you too: http://forums.adobe.com/thread/756410?tstart=0

    What you do is create a Format script that displays the text that you want, when the field is empty, but this text is not the value of the field. The modified script below prevents printing explanatory text if the field is empty.

  • Values in a dialog box application answering the multi-line text box field

    Hello

    When the user clicks on a radio button in my form a response request dialog box is displayed for the user to enter data.

    The value of the response dialog box is then added to a multiline text box.

    The script is on the mouse to the top of the radio button action and works fine the first time you click on the radio button.

    If the radio button is checked once again, the value of the response dialog box replaces the existing value in the multiline text box.

    What I need to do, is to have the response values show on a new line in the text box whenever you click on the option button.

    Can any advise please how to revise my script to work?

    Target for the field multiline text box

    var t = this.getField ("ActionAgenda");

    Response from dialog when the user clicks on the radio button

    var cResponse = app.response({)

    cQuestion: "enter your Action Agenda Item."

    ({CTitre: 'Action program'});

    Alert if you cancel

    If (cResponse == null) {}

    App.Alert ("Action point not will be not entered");

    Place the data in the dialog box in the target domain

    } else {}

    t.Valeur = cResponse;

    }

    Any help will be greatly appreciated.

    Thank you

    Change this line:
    t.Valeur = cResponse;

    To do this:
    t.Valeur += "\n" + cResponse;

  • Multiline areas drop-down list or list box bound to the text box

    Hello

    I hope someone can help me, I am creating a form in adobe acrobat 9 STD and I am eager to have a list of names followed by their relevant details.

    To explain my situation, I have a form that is sent (by mail) to our entrepreneurs, what I would do is to select a name of entrepreneurs from a list and then the coordinates (address, for example) automatically entered into the allocated space 'to '. I am under the impression that combo boxes cannot produce multiple lines if it is true I thought that perhaps a way around would be to create a drop-down list with the names of the contractors, and once a name is selected an automatic text box would generate details of the desired address. My JavaScript skills are rather absent and I wonder 1. If this is possible and 2. How?

    Thanks in advance!

    See post #8 in the following discussion: own-selection http://acrobatusers.com/forum/forms-acrobat/how-create-multi-lined-text-field-based-drop-d

  • Drop-down list that generates text in a separate text box

    Hello world.

    First of all, I don't know if this is even possible, but if someone can think of a way to make it work, please let me know.

    So, that's what I'm trying to achieve:

    1. Form with several drop-down menus.
    2. A user is working through the choice of subjects of drop-down menus
    3. Each topic has an export value which is a line of text
    4. (now, that's where I get lost) The value of exports is then combined in a long single line of text and put on the same pdf in its own text box.

    The objective is that the user can select each relevant topic and line of text is created, and then the user can copy it for their use.

    Is this possible? If so, does anyone have an idea how to do something like that?

    Thank you

    Michael

    Of course, and it's actually pretty easy. Let's say you set up all the values in the export of all items in your boxes (call them Checkbox1, Checkbox2, etc.), and that you have put in place a multiline text field. You can then use this code as the custom of this text field calculation script:

    Event.Value = this.getField("Checkbox1").value + "\n" + this.getField("Checkbox2").value + "\n" + this.getField("Checkbox3").value + "\n" + this.getField("Checkbox4").value;

    And that's all. The value will be updated automatically when a selection is made in one of these boxes.

  • How do you multiline text in a continuous form between the lines without scaling of the text?

    Help. How do you multiline text in a continuous form between the lines without scaling of the text?

    I tried to put each line of the form for amounts of specificity so that it ends at some point and does not change the text size to fit on the line but different key characters have different widths, so you do not get a length of the same line.

    I tried to remove the long text scrolling, but it changed nothing.

    I can create a text box great to fill out and have this scrolling of additional lines, but then I get too much information from people and I would need to clarify the lines behind the answer multi line text, or delete the lines...

    Is there a better solution?

    I usually just remove the lines and set the field "Does not scroll long text" so that all the text is visible. Including the lines is really only useful if the form may be printed and completed by hand, in which case you can use scripts as in this example is: http://acroscript.net/pdf/demos/multiLine_Demo1.pdf

    It works as expected in Acrobat/Reader, but not in Chrome and other PDF viewers who have little or no support for JavaScript. It uses scripts customized to validate on Focus and blur.

  • Text box question

    Can someone tell me please how to insert a multi-line text box so that the words wrap automatically?

    Thank you

    Shannon

    Set the multiline field and the size of the font of everything except the car, and it should work like that...

  • Why can't I add a text box and type from the top of the box down. It always starts in the Middle

    I created forms and need a large text box for people to enter information over there. It allows me to draw a text box, but when I got to type enter you in the text box in the Middle instead of the top of the text box.

    You must define a multiline field.

    Tuesday, October 20, 2015-17:56, hollyh3271626 [email protected]>

  • Masking printed lines in a multiline text field?

    I am designing a form using Adobe Acrobat XI. This form is designed to be multi use. It can be printed and completed by hand or it can be filled electronically.

    When the user chooses to complete the form electronically, entering into a multiline text field, I want to hide the printed lines. After leaving the field, I want the lines will still be hidden if any text has been entered in the field. I know that this can be accomplished by using a script in the Action of the box text field properties window, but I can't find the correct script and triggers. Any help is very appreciated.

    Here is the solution:

    In the onFocus event, you add this line of code:

    event.target.fillColor = color.white;

    and in the onBlur event, you add this line of code:

    If (event.value.toString () .length< 1)="">

    event.target.fillColor = color.transparent;

    }

    The script of the onBlur event is required to set back field transparent background when you tab through an empty field; When you tab through a field, the Format event will not occur.

Maybe you are looking for

  • CPU fan speak aloud

    Hello I have HP Pavilion DV5-1060ee and the cpu fan speak aloud nonstop I'm trying to clean up, but it did not help what I need to change and hp it will fix for me where can I find it online Thanks in advance

  • Need help in activating the copy of Windows

    Original title: G ' Day, Ref. - Activation. G ' Day,. REF - Activation. Recently, my office computer is turned off for a few days.When started again, a pop-up window has advised that the computer should beactivated within 3 days, because a significan

  • I noticed that my user name in the C drive has disappeared and is displayed under the desk

    original title: save files on the net / backup of the files in the C drive These 20 to 30 days, I noticed that my user name in the C drive has disappeared and is displayed under the desk. In addition, whenever I try to save a file on the net on my la

  • Update of InDesign CC (U44M1l216)

    For quite a long time, I get this note when you try to update InDesign CC.Someone had an idea what to do for the updates?Thank you.

  • User persistent between sessions variables

    I have read in a long thread and instructive to 4 and a half years ago that even if "resume data" or "data to suspend" was sent to the LMS between sessions (to keep my Captivate user variables), if my user variables are either set to an initial value