How to Process a Multi-Line Form

Hi:
I've created a pl/sql portlet that displays a multi-line html form. The desired functionality is: user enters data into one or more lines, clicks a button, and all lines get inserted. Currently, to perform the insert I have a Javascript function that cycles through each line of the html form then uses the window.open function to call a url (that is a pl/sql procedure). The window is opened once for each inserted record.
Does anyone know of a better way of doing this? I'd like to run the procedure without opening a window, but I don't know how.
Thanks for any suggestions.

hi Christ,
let me understand what you are trying to do first. it appears to me that you may be trying to do one of the following two things:
1. you may have more than one field and the user may enter one or all of those fields. and then press the submit button to enter/ insert the data in some table.
2. or you have more just one field with a data value which is large enough to span over several lines. in that case you have one field with larger data value. and when a user enters a value for such a field and press submit then you want it to be entered into the table.
a. in any case, it would be much simpler if you develop a portal form based on procedure. there you will need to create just a regular form based on a procedure in which you should put just insert statement for the data to be entered into that certain table.
b. you can still do it with you customized form where you may create a form from an embedded html in the pl/sql. if you really wanna do it then there is a simple way to do that too but not simpler than the portal form technique.
now this is all if i understood your little description correctly. let me know if your problem is different. please be specific in your description, if you choose so.
syed

Similar Messages

  • How to make fields required in an updateble multi line form?

    How to make fields required in an updateble multi line form?

    You need to create a validation item that is triggered when the user clicks the submit button.
    Set the validation type to "Function Returning Error Text".
    Then add your validation into the "Validation Expression 1" field. Something like:
    BEGIN
    FOR I IN 1.. HTMLDB_APPLICATION.G_F02.COUNT LOOP
    IF HTMLDB_APPLICATION.G_F02(I) IS NULL THEN
    RETURN 'Please enter in a value for xxxxx on line ' || TO_CHAR(I,'0');
    END IF;
    END LOOP;
    RETURN NULL;
    END;
    As long as the function returns a string, an error is generated - as there is no single field where this error can be displayed, it will need to be displayed "On Error Page".
    If the return value is NULL, then the fields are valid and the submit process can continue.
    Andy

  • Need to create a multi line form

    Hi All,
    I have to create a Multi line form for which I have used the following:
    1. Created an EO
    2. Created a VO based on EO.
    3. Created a Page that has two regions:
    a. Main Region
    b. Table Region
    This Table region is of style Table. But when I run the page it shows that No Data has found. Even its not a search page.
    Kindly suggest me that how can I make this page and this page should have 10 rows at a time available to insert.
    Thanks in Advance.
    Thanks,
    Sandy

    Hi Gaurav,
    I have done in the same way as suggested by you but not got success. I am not getting why it shows always 'No Search Conducted' even its not a search page. I have created this page for insert data.
    Following I have added in CO for processrequest:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OATableBean table =
    (OATableBean)webBean.findIndexedChildRecursive("SupTable");
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("createSupEntry");
    String buttonLabel =
    pageContext.getMessage("AK", "FWK_TBX_T_ADD_ANOTHER_ITEM", null);
    OAAddTableRowBean addRow = (OAAddTableRowBean)table.getColumnFooter();
    addRow.setText("Add 10 Rows");
    I have added the following code in AM:
    public void createSupEntry()
    SuppVOImpl vo = getSuppVO1();
    System.out.println("AM Inside AM:: ");
    // We need to do this on a VO that has not been queried before we insert
    // our first row. We don't want to do it for subsequent inserts.
    if (!vo.isPreparedForExecution())
    // Complies with the view object initialization guidelines for a detail
    // view object in a master-detail relationship.
    vo.executeQuery();
    System.out.println("AM Not prepared for execution:: ");
    for(int j=0;j<10;j++)
    Row row = vo.createRow();
    System.out.println("AM Creating Row:: ");
    vo.insertRowAtRangeIndex(vo.getCurrentRowIndex()+1,row);
    // Required per OA Framework Model Coding Standard M69
    row.setNewRowState(Row.STATUS_INITIALIZED);
    } // end createSupEntry()
    Thanks,
    Sandy

  • How to create a multi-line table/column comment

    Can someone tell me how to create a multi-line table or column comment?
    Apparently, the concatenate operator (||) does not work with the COMMENT statement.
    I've searched the Oracle manuals and couldn't find an answer.
    COMMENT ON TABLE sometbl IS 'i would like to break up this comment into several lines in order to improve readability'; Effectively, this is what I'd like to do (but it doesn't work):
    COMMENT ON TABLE sometbl IS
      'i would like to break up ' || CHAR(10) ||
      'this comment into several lines ' || CHAR(10) ||
      'in order to improve readability' || CHAR(10); Oracle version is 10.2.0.4

    Why not just
    SQL> create table t (a int)
    Createtable successfully completed.
    SQL> comment on table t is 'i would like to break up 
    this comment into several lines 
    in order to improve readability'
    Commenton successfully completed.
    SQL> select * from user_tab_comments where table_name = 'T'
    TABLE_NAME           TABLE_TYPE  COMMENTS                               
    T                    TABLE       i would like to break up               
                                     this comment into several lines        
                                     in order to improve readability        
    1 row selected.?

  • How do you display multi line text

    Hi
    How does one display multi line text? I would like to display address information on the screen so that the user can select it and copy/paste it into another application (ms word).
    I have the address information as separate columns (address1, address2, city, province, postal code) so I've changed the query on my view object to add it as address1 || chr(10) || address2 || chr(10) || city ....
    If I display it on the page as an output text, it all displays as one line (okay, the chr(10) thing did not work but that's beside the point).
    In general, is there a way to display multi line text? What component is suitable for this, if there is one?
    Thanks

    You can use normal outputText components in a panelGroupLayout (vertical layout) and add each attribute to it. The remove the labels or set the components to simple. You can then mark the data in the browser and use normal copy&paste to transfer the data.
    If you want to output longer text with line breaks you can use an outputText with escape=false and use the br html tag to generate a line break;
    <af:outputText escape="false"
    value="+++++++long<br>test<br> this is a long text in multiple lines" id="ot10" truncateAt="#{viewScope.ToggleBean.truncateLength}"/>Timo

  • Combo Box Edits in acrobat Forms, how to do a multi-line combo box?

    Could only create a one-liners for this editable combo box, is there a way to create a multi-line like the other fields?

    Nope. But you can set up a multiline text field that gets populated with the complete text you want when an item is selected from a combo box.The combo box items might be abbreviated or coded versions of the complete text you want to display.

  • Item multi-line FORM 10g

    Hi,
    I have a Text Item multi-line.
    With Form10g, the spacing in the text is bigger (with Form 6i the spacing were perfect !)
    I don't find any parameter in formsweb.cfg ......
    Have you a solution ?
    Thank

    Simon,
    no, I mean
    <PARAM NAME = "mapFonts" VALUE = "yes" >
    in the HTML file, where you define the applet configuration
    (default is <oracle_home>/forms/server/basejinit.html or basejpi.html
    or as defined by the baseHTMLjinitiator variable in your formsweb.cfg)
    see also page 4-13 in the Oracle® Application Server Forms Services
    Deployment Guide 10g Release 2 (10.1.2) B14032-03 February 2006
    regards,
    Volker

  • How do I set multi-line tabs?

    ''locking as a dupe - http://support.mozilla.com/en-US/questions/763250''
    Please tell me how to set multi-line tabs. Having one looong line of open tabs is a serious waste of time, so certainly it must be possible in Firefox to stack 'em up . . . Right?

    http://support.mozilla.com/en-US/questions/763250

  • Need idea on how to replicate muti/multi choice form

    I am working on trying to "computerize" a set of NCR forms we use for Home inspections.
    So far, so good.  I have check boxes, radio buttons, and more....
    BUT...
    I have a lot of lines that are multiple/multiple choice entries that work fine on paper, but I can't figure out how to present them on a electronic form...
    Example:
    Oven/Cooktop
    [ ] Deterioration/Damage/Not Functional/Unsafe/Near End of Lifespan*
    [ ] Not Inspected (power/gas off) [ ] Upper/lower Element-burner - not functional [ ] Heavy Corrosion/Wear
    [ ] Recommend anti-tipping device (2) [ ] Gas shutoff valve not visible / none (2)(4)
    On paper, I could select (check) the initial box, then circle "Damage " and  "Near end of Lifespan"
    Without creating a checkbox for EVER option, does anyone have an idea about how to present these type multi-option options.
    I have 16 pages PACKED with choices like this.  Pull downs don't help me much, as then the user can't see all the options.
    We will use Pull downs for some of the canned comments, and other field type for simple (short) lists...
    PS...thanks to this forum I figured out how to have text fields appear & disappear based on check boxes. Anytime there is a *,2 or 4 I need a comment to appear on the summary page...now if only I can figure out how to make the summary page look nice with missing fields....

    One possible option is to use a button that trigger a pop-up menu to open,
    where the user sees all the options at once and can select one of them.
    This would require a bit of scripting, though, and the only advantage over
    a drop-down menu is that all the options are visible in a single window, as
    opposed to a scrollable list.

  • How to enter a multi-line comment in the Info editor?

    When entering comments for a song (in Command-I Info), is there an easy way to break the comment into multiple lines?
    I realize that I can copy-and-paste from a text editor, but (a) it's cumbersome (b) the line breaks don't show in the Comments column, so it's pretty ugly.
    Any suggestions?

    hi,
    hope it helps.
    create a fieldcatalogue.
    and give output length as 100 characters for the field in which u have multiline data.
    plz reward if useful.
    regards,
    srishti

  • How to populate a multi row form in Apex

    Hi
    I have a form in Application Express built using "Tabular Form" option while creating the page. The table being filled by the form is as follows
    Cell_ID(varchar) reading_date(date) Value1(num) Value2(num) Location(varchar2)
    Now I need to do the following
    1. I want the page to display 200 rows for data entry on page load itself instead of user clicking Add Row button 200 times. ( For every location 200 entries need to be made for 200 diff Cell_IDs at the same date )
    2. I want each row to take value for the Date column from the single date picker item displayed on top of page instead of entering the same date 200 times by user.
    3. The cell_IDs are automatically populated with values loc1_001 loc1_002 .......... loc1_200 on selection of Location from another Item (select list) placed on top of the page.
    Please Help anyone. Looking forward to a response.
    Regards
    Saurabh

    <h3>Please help any one guys.</h3>

  • Is it possible to make a multi-line form that text flows through?

    When a line is full, I'm looking for a way for it to jump to the next line down, flowing the text to the next line. is there a way to do this?

    There are no really seamless ways to implement this, unfortunately.

  • How to allow for Multi-line selection in a jdbtable

    Hello, I have a JDBTABLE connected to qryEmployee. There is another tab le called enrollment. I would like to give the user the ability to select multiple rows in the employee table so I can add it to the enrollment table (dataset). Can this be done?
    TIA

    table.getSelectionModel().setSelectionMode(...);

  • Cell.text with multi line content

    Hello anybody.
    Here is my code .
    story_title = [[NSMutableArray alloc] init];
    scripture_location = [[NSMutableArray alloc] init];
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    cell.text = [story_title objectAtIndex:indexPath.row];
    cell.lineBreakMode = UILineBreakModeWordWrap;
    cell.text = [scripture_location objectAtIndex:indexPath.row];
    return cell;
    How can i make multi line in single cell . My code is diplayed last array list content. The line break is not working.
    Please help me with example
    Nalan.

    Double click on the text box and look in properties. There are many different options there including text wrap.
    (of course I'm referring to a form field and not a bunch of text that was included in the original document)

  • Multi Line Text In javaFx

    How can i create multi Line Text In javaFx.
    There is any Method or something else.
    thanx in advance

    Use a TextArea control? Or does this not meet your needs?

Maybe you are looking for

  • Tcode KEFC and message:"Plan version is not supported"

    Hello all, Please is someone aware of solution for this situation: - I upload with tcode KEFC forecast datas from excel file in CO-PA - receiver records are created with errors - when I check for the errors system tells me that "Plan version is not s

  • This Version of Lenovo ThinkVantage Toolbox is not licensed to run on this system (**bleep**)?

    I have a 3 week old W510, Windows 7 64-bit, i7 Thinkpad. Over the Chritmas holidays I was able to start exploring the software that came loaded on the machine. One of these was the ThinkVantage Toolbox which I accessed at least 2 or 3 times to explor

  • QLLC to LAN convertion

    Hello Forum we are trying to establish a connection between 2 PUs and the M/F. The two PUs are actually two controllers inside an IBM 400. The IBM 400 is connected to a cisco with an x25 line. The M/F is connected to the ethernet side of the cisco. S

  • Photos will not delete. No longer visible in iphoto library

    I've been organizing my photos by year. I realized that I had some photos in the wrong year, so I exported them as originals and imported in the new library. I tried to delete the orignals from the old library. Wouldn't work. So I went into iPhoto an

  • Data base was broken now its fixed

    When I installed 2.0 I upgraded my broken data Base because I never thought I would find the broken part anyway. Well "knock on wood" after playing with it for a little while I restarted aperture to rebuild the data base expecting to find errors all