Multi line details row

Morning all,
I am trying to build a master detail form and spread each detail line over a couple of rows (to save lots of horizontal scrolling). I have read many discussions on this topic but I have been unable to get it working under Apex 4.2. I have created a Named Column template and using the Row Templates section split each row across two lines. The problem I have found is that when rendering, Apex takes a copy of the row template and sets its style to display:none presumably so that when you hit add row it can use this hidden row to build subsequent rows. However, Apex only hides the first <tr> tag so you end up with part of the row being rendered every time. Can anyone point me in the right direction?
Thanks,
Ben.

Actually, I wouldn't say that addRow needs changing. It's the tabular.init function which is causing the issues.
In short, these are some the things that matter:
<ul>
<li>when the tabular form is rendered, the first row (first tr element) has an id of type "#init_row_"+pRegionId
<li>The tabular form is set to the parent of this element (tabular.gTabForm). This will be the element to which new rows will be appended.
<li>The tabular form background is set to the css property "background-color" of the td elements. This is used nowhere I think.
<li>The init tab row (tabular.gTabFormInitRow) is set to a concatenation of beforeRow + the #init_row + afterRow. These before and afterRow strings are parameters to the init function.
<li>After that the #init_row is removed (page load, region refresh)
<li>A beforesubmit handler is set to also remove this element (not sure when the element would be there at this point, but i suppose it has to be possible?)
</ul>
AddRow actually just takes the constructed gTabFormInitRow element and appends this to gTabForm.
So basically, if the init could be 'fixed' then I believe all should be well. If only you could define the 'initial row' code in a template or something, then this wouldn't be much of an issue. It's not sufficient to call the init yourself, because the looking up of the init_row is hardcoded in it.
I just checked on apex.oracle.com and ran a page with a default tabular form on it. I don't get the "display: none" style, i can't see this happening, and the tabular form init code has no "hiding" in it, only removing. In this case this should mean that of your first "row" with multiple rows in it, the first tr element would get tagged with init_row_ and then be removed, while the other row(s) remain. And "Add Row" will not work as expected.
What is hard however is determining automatically which rows are the 'first' rows. In a regular tabular form the first row is alway the init row, and this is visible when you inspect the gTabFormInitRow too as all ids are "_0000". As far as I see this would be the only way to identify the init rows, except for the first row.
It's probably possible to get this to work with some javascript/jQuery by executing some code before, to catch the init rows properly, and after the tabular form init call, to remove the init rows correctly.
Just as highly customized as the other options probably.

Similar Messages

  • Multi-line tableview row?

    Hello all,
    Does anyone know if it's possible to have a multi-line tableview row?  My situation is that there is a lot of information to show in my tableview row, and I'd like to split up the information in to to lines...but I want the two lines with the same color (I'm utilizing the alternating now), and want just one checkbox.
    Here's and example ( __ used to show spacing):
    []__material___description__price____quantity____total price  -->start of material 1
    ___plant______g/l account__del date
    []__material___description__price____quantity____total price  -->start of material 2
    ___plant______g/l account__del date
    Is there a way to do this?
    Thanks in advance,
    Lisa

    Hi Lisa,
    yes you can do what you want outside the MVC programming model.
    Firstly, your current code inserts two <input> tags in each table row that look like this.
    Input 1<input name="text" id="text" title="inputfield" value="value"><BR>
    Input 2<input name="text" id="text" title="inputfield" value="value"><BR>
    When the form is submitted back to the server the input fields are passed as name value pairs. Therefore you need to ensure the name and/or id of each input tag is unique. It is also important that you include the rowid of the table row in the name of the tag so you know to which row it refers.
    So your RENDER_CELL_START method might look more like this...
          DATA: input_id_1 TYPE string,
                input_id_2 TYPE string,
                text       TYPE string,
                bee_html   TYPE REF TO cl_bsp_bee_html.
          text = 'value'.
          input_id_1 = input_id_2 = p_row_index.
          CONCATENATE:
            'input_' input_id_1 '_1' INTO input_id_1,
            'input_' input_id_2 '_2' INTO input_id_2.
          CONDENSE input_id_1 NO-GAPS.
          CONDENSE input_id_2 NO-GAPS.
          CONCATENATE:
            '<input name="' input_id_1 '" id="' input_id_1 '" value="' text '">' INTO input_id_1,
            '<input name="' input_id_2 '" id="' input_id_2 '" value="' text '">' INTO input_id_2.
          CREATE OBJECT bee_html.
          bee_html->add(
                html1 = 'Input 1'
                html2 = input_id_1
                html3 = '<br/ >Input 2'
                html4 = input_id_2 ).
          p_replacement_bee ?= bee_html.
    This code inserts <input> tags that look like this...
    Input 1<input name="input_xx_1" id="input_xx_1" value="value"><br/ >
    Input 2<input name="input_xx_2" id="input_xx_2" value="value">
    ...where 'xx' is the row index.
    Now we need to be able to read these name value pairs when the form is submitted. You can most easily do this in the onInputProcessing event of the page like this...
      DATA: ffields TYPE TIHTTPNVP.
      request->get_form_fields( CHANGING fields = ffields ).
    Now the ffields itab contains the name value pairs - you just need to parse them to obtain the rowid for each value.
    Enjoy!
    Cheers
    Graham Robbo

  • HGrid line detail is returning empty rows

    Hi All,
    I am working with HGrid component. I have followed OAF Developer Guide information as follows.
    1. Created 2 VOs like PoHeaderVO, POLineVO
    2. Created VL with HEADER_ID as source attribute and dest attribute
    3. Added a HGrid component
    4. Added a Tree component as Child to Hgrid
    5. Set ViewInstnace and ViewAttribute to nodeDef1
    6. Set ancestor name and view link instance name to childNode1
    I am able to run the page. It is showing all header detail. When i expand the header details, it showing the respective number of empty rows for line details.
    Anybody can suggest me, what is missed?
    Thanks in Advance.
    Purushoth...

    Hi..
    Any input for this issue...
    Thanks in advance..
    Regards,
    Purushoth

  • Multi line issue in Table Cell Editor

    Hi,
    I am developing an occasionally connected application for handheld devices using NetWeaver Mobile 7.1. In one of the view, I have a table which display items information from the data source. In one of the column I need to display item description so I used TextEdit in the Cell Editor to display the information in multi line format and also wrapping is enabled.
    But during testing of the application the TextEdit control does not wraps the text and as well as only first line of TextEdit control is visible inside the table and rest of the rows are not visible because of table's row height is not adjusted to the TextEdit control. I couldn't find any option to vary the size of the row height of the table.
    Please suggest a solution to bring multi line display with in the table.
    Also, check out my other issue posted here.
    [Issue in wrapping of text in TextEdit control|Issue in wrapping of text in TextEdit control]
    Thanks in advance.
    Regards,
    DVR.
    Edited by: Vinodh Raj D on May 28, 2009 8:18 AM

    Hi Vinodh,
                   Mutliline text in a text view/edit control inside a table cell is not supported.
    You can view multiline text in a text view/edit as a seperate control inside a view. I think in case you want to see the whole address you can create a detail(s) view which can be navigated from the list (table) view.
    Regards,
    Nipun

  • 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

  • Multi-line report

    hi,
    I need to develop multi-line break reports like the following:
    category 1)
    ===========
    total completed
    calls recd calls
    line1) # of calls #
    line2) % of calls %
    line 3)
    category 2)
    ===========
    Dev. environment is Oracle DS 92i, W2k.
    Thanks for any help

    May I should have elaborated further.
    Hers is what we want. We want to tabulate a report with a total # of calls recd(in a support center). And then further break it into the calls in the order of response like responded less than an hour, upto 2 hour etc for each category of customers. So ideally we want the report to look like the following: The first line is a count and the next line is percentages of a total call recd. I have simplified only to 2 rows per category. Typically it runs to 5 lines (like in category3)for each category with more details. I have seperated each column by ',' since i can't post the formated output.
    ===================
    colheading,total calls recd,< 1 hour,upto 2 hours,>2hours
    category1,1000,420,300,280
    category1,83.33%,42%,30%,28%
    category2,200,125,50,25
    category2,62.5%,25%,12.5%
    category3:
    line1
    line2
    line3
    line4
    line5
    =================
    In the above format i repeated category name in each heading which is not necessary. I just put it so that it doesn't confuse
    Hope it is clear
    Thanks for your help

  • Multi Line Text Custom Field

    Multi line text custom field is not coming in ms project Professional

    Pradeep,
    You cannot access Multiline text fields from Project Professional and in Project Server Views. These fields are for use in Project Details pages and with workflow for demand management in Project Server. Please refer to the article shared in earlier post.
    I would recommend you to create a Excel/SSRS report if you would like to show data available in this fields to end users.
    Hope this helps.
    ===================================================
    Thank you,
    Kiran K.
    If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful

  • Problem: trying to update all detail rows on pre-commit (MASTER DETAIL FORM

    Hi:
    I got a MASTER DETAIL form... and I need to update every detail row of this form (if the master was updated) before commiting the changes. the problem is that i cannot do that for instance in PRE-COMMIT or ON-COMMIT... it's an "illegal operation". I achieved part of it by coding KEY-COMMIT... but that did not solve the all problem. first take a look of the kind of code i want execute before commiting.
    form trigger key-commit code is is somehow like this:
    DECLARE
    tot_line NUMBER (3);
    line NUMBER (3);
    begin
    IF NAME_IN ('system.form_status') = 'CHANGED'
    THEN
    GO_BLOCK ('DETAIL');
    LAST_RECORD;
    tot_line := GET_BLOCK_PROPERTY ('DETAIL', current_record);
    FIRST_RECORD;
    line:= 1;
    LOOP
    :detail.quant := :detail.quant + 1;
    EXIT WHEN line= tot_line;
    next_record;
    line:= line+ 1;
    END LOOP;
    FIRST_RECORD;
    GO_BLOCK ('MASTER');
    END IF;
    COMMIT;
    end;
    The problem is for instance when the users close form in the "X" button (right top, near minimize form) ... If they do that Forms ask "Do you want to save changes?" ... and with this i do not execute the update of the detail rows...
    But there are other situations when this happens... for instance if EXECUTE_QUERY when i change a record...
    Anyone help?
    Joao Oliveira

    Use PRE-UPDATE trigger (Master block).
    begin
    update <detail_table>
    set quant + 1
    where <detail_table>.<relaition_column1> = :<Master_block>.<relaition_item1>
    and <detail_table>.<relaition_columnN> = :<Master_block>.<relaition_itemN>
    and <detail_block_WHERE>;
    EXCEPTION WHEN OTHERS THEN NULL;
    end;

  • Append table with multi-line cells to word report

    Hi,
    I am using LabView 7.0. I need to append table to word report and I am using Append Table to Report VI. My VI works fine as long as the table cells do not have multiple lines. For multiple lines, each line is put is a seperate cell in the word report.
    Is there a way to append multi-line cells to Word Report??? If not, any suggestions on how I can copy the multi-line table to Word report???
    Please kindly help!!
    Please see the attached document for details on the problem.
    Thanks,
    Mim
    Attachments:
    Table with multiple line cells.doc ‏33 KB

    Hi Mim,
    Yes I understood the multiple-lines part. I think the doc is the report you want. Correct ?
    The doc is generated with your VI without any modifications.
    I am using XP, Office 2002 SP3 and LV7.1
    Attachments:
    Verification Report.doc ‏39 KB

  • How can i show item schedule line details in Tableview for each line item

    Hai all,
      I need to display schedule line details  in Tableview for each line item.for example in each row i need to put one column along with button , if i click on this table that row  should be expand vertically and must show all schedule line details in that.if i click my button again the visible expanded row should disappear...
    if anybody works on this previously plz send some sample code...
    leoiz....

    To modify rows the best way is with the Iterator (do a search in the weblogs for "Iterator")
    However for what you want to do I've only seen this really work successfully with a standard HTML table not using the tableView.

  • Multi line values in mail forms to send emails

    Hi All,
    Ours is CRM 2007 application, as part of new capability adding to the system, we need to send email to customer with few details once service tickets saved in the system. we decided to use mail forms to create the template and send email to the customer with details. as part of this we need to send multi line values as well in the mail form - email as shown below. example field here is for working hours of the customer office.
    Saturday - Sunday 10am - 4pm
    Saturday - Sunday 10am - 4pm
    (excluding public holidays)
    Can some body tell me how to send the multiline values using mail forms - emails to customers. right now we receive the last line. I dont see any help in mail form documetation as well on this.
    I appreciate any help in this if you already have some solution.
    Regards,
    Srinivas

    Hi,
    Are you using below any FM to send mail ?
    1. CRM_IM_EMAIL_CREATE_SEND_40 2. CRM_IM_EMAIL_CREATE_SEND_51
    if so, then inside this FM there will be call to BADI CRM_IM_ADD_DATA_BADI . This badi will get the data for custom/additional attribute values. Basically it will get one value ( last value ).
    What u might need to do is after this badi call u need to loop ur values and set it . For doing that u might need to make this FM tocustomer name space or look for implicit enhancements.
    We have done similarly for sending mail duringcampaign execution. That was done in different place.
    hope it might help you to analyse more.
    Regards
    Sandeep

  • Sdo_util.polygontoline on polygon with hole - multi line?

    If I run sdo_util.polygontoline on a polygon with hole I would expect it to return a multi line with gtype=2006.
    Is that right?
    It doesn't in this case:
    jot_test@johnot> SELECT * FROM v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    5 rows selected.
    jot_test@johnot>
    jot_test@johnot> CREATE TABLE polygon_test (
      2  what varchar2(100),
      3  geometry sdo_geometry);
    Table created.
    jot_test@johnot>
    jot_test@johnot> INSERT INTO polygon_test (what, geometry) VALUES ('polygon with 3 holes',
      2  MDSYS.SDO_GEOMETRY(2003, 2157, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1,41,2003,1,51,2003,1,61,2003,1), MDSYS.SDO_ORDINATE_ARRAY(644507.868,753517.124,
      3  644631.7897, 753533.6922, 644611.409, 753534.591, 644610.6025, 753545.5654, 644533.3319, 753588.8677, 644508.545, 753574.04, 644489.2124, 753613.5921,
      4  644454.5051, 753632.781, 644448.097, 753629.818, 644443.393, 753638.8542, 644410.0624, 753657.0707, 644396.379, 753651.217, 644392.824, 753655.998,
      5  644403.559, 753660.6251, 644390.1554, 753667.9506, 644385.891, 753666.108, 644363.783, 753682.497, 644430.984, 753599.479, 644490.526, 753515.738,
      6  644507.868, 753517.124, 644422.11, 753642.465, 644407.545, 753636.233, 644403.653, 753641.432, 644422.426, 753649.114, 644422.11, 753642.465,
      7  644417.5533, 753621.438, 644432.735, 753628.312, 644435.627, 753622.475, 644420.7838, 753615.5539, 644417.5533, 753621.438, 644453.003, 753576.579,
      8  644436.343, 753599.448, 644471.478, 753620.606, 644518.412, 753525.872, 644493.611, 753520.131, 644453.003, 753576.579)));
    1 row created.
    jot_test@johnot>
    jot_test@johnot> SELECT sdo_geom.validate_geometry_with_context(geometry, 0.0005) FROM polygon_test;
    SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(GEOMETRY,0.0005)
    TRUE
    1 row selected.
    jot_test@johnot>
    jot_test@johnot> SELECT sdo_util.polygontoline(geometry) FROM polygon_test;
    SDO_UTIL.POLYGONTOLINE(GEOMETRY)(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    SDO_GEOMETRY(2002, 2157, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1, 41, 2, 1, 51, 2, 1, 61, 2, 1), SDO_ORDINATE_ARRAY(644507.868, 753517.124, 644631.79, 753533.692,
    644611.409, 753534.591, 644610.603, 753545.565, 644533.332, 753588.868, 644508.545, 753574.04, 644489.212, 753613.592, 644454.505, 753632.781, 644448.097, 753629.818,
    644443.393, 753638.854, 644410.062, 753657.071, 644396.379, 753651.217, 644392.824, 753655.998, 644403.559, 753660.625, 644390.155, 753667.951, 644385.891, 753666.108,
    644363.783, 753682.497, 644430.984, 753599.479, 644490.526, 753515.738, 644507.868, 753517.124, 644422.11, 753642.465, 644407.545, 753636.233, 644403.653, 753641.432,
    644422.426, 753649.114, 644422.11, 753642.465, 644417.553, 753621.438, 644432.735, 753628.312, 644435.627, 753622.475, 644420.784, 753615.554, 644417.553, 753621.438,
    644453.003, 753576.579, 644436.343, 753599.448, 644471.478, 753620.606, 644518.412, 753525.872, 644493.611, 753520.131, 644453.003, 753576.579))
    1 row selected.I was expecting that to return gtype=2006 and I think that's causing me some problems which I now need to investigate further.
    If someone can confirm that it should be returning gtype=2006 then I'll get open a tar on metalink.
    Thanks,
    John

    sdo_aggr_union seems to know to make it a multiline...
    jot_test@johnot> SELECT sdo_aggr_union(sdoaggrtype(sdo_util.polygontoline(geometry),0.0005)) FROM polygon_test;
    SDO_AGGR_UNION(SDOAGGRTYPE(SDO_UTIL.POLYGONTOLINE(GEOMETRY),0.0005))(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    SDO_GEOMETRY(2006, 2157, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1, 41, 2, 1, 53, 2, 1, 63, 2, 1), SDO_ORDINATE_ARRAY(644631.79, 753533.692, 644507.868, 753517.124,
    644490.526,753515.738, 644430.984, 753599.479, 644363.783, 753682.497, 644385.891, 753666.108, 644390.155, 753667.951, 644403.559, 753660.625, 644392.824, 753655.998,
    644396.379, 753651.217, 644410.062, 753657.071, 644443.393, 753638.854, 644448.097, 753629.818, 644454.505, 753632.781, 644489.212, 753613.592, 644508.545, 753574.04,
    644533.332, 753588.868, 644610.603, 753545.565, 644611.409, 753534.591, 644631.79, 753533.692, 644518.412, 753525.872, 644471.478, 753620.606, 644436.343, 753599.448,
    644453.003, 753576.579, 644493.611, 753520.131, 644518.412, 753525.872, 644435.627, 753622.475, 644420.784, 753615.554, 644417.553, 753621.438, 644432.735, 753628.312,
    644435.627, 753622.475, 644422.426, 753649.114, 644403.653, 753641.432, 644407.545, 753636.233, 644422.11, 753642.465, 644422.426, 753649.114))

  • Multi line column JTable

    Hi,
    I am working on JTable and I am using DefaultTableModel.
    I have a requirement that in one of the cells I need to show a multi line text which may contain 10 to 50 lines of text.I need to show all the text even on resizing the table.
    Can anyone give me suggessions regarding this.
    Thanks,
    Bussa.

    Hi,
    Write your custom JTableCellEditor and Renderer to install a JTextArea on the cell you want.
    You can set the size of the larger row separately via
    JTable.setRowHeight(int row, int value); To display the full text you should set
    JTextArea.setLineWrap(true);
    JTextArea.setWrapStyleWord(true);and set the width of the JTextArea static.
    after this calculate the height of the JTextArea and set it to the table.
    Olek

  • Multi-line Address With Blank Line

    Using the multiline address and the input conforms to the guidelines.
    1.     [Name]  [Department]
    2.     Firm   [Department]
    3.     [Dual_Address]   [Secondary_Address]
    4.     Primary_Address   [Secondary_Address]
    5.     CITY    STATE  ZIP  [ZIP+4]  [COUNTRY]
    6.     [ZIP]   [ZIP+4]    [COUNTRY]
    However, when passing address lines 1-5 to ACE where address line 1 is the name, address line 2 is 'C/O' information, address line 3 is the primary address, suite # is address line 4, and city/state/zip is address line 5, ACE is concatenating the primary address and suite and placing it in the address line 4. Thus, whenever the address prints on the bill I'm getting a blank line printing between my C/O line and my address information. I thought that the multi-line kept the data together as a complete address? Is this not correct? If not how would I then get rid of the blank that is being generated?

    Greetings Angela,
    I would suggest that you check the settings in the Multiline Style block for Address Standardization style. There are settings available here for combining address data. Verfiy which ones you have enabled. Also in this same block is a setting for Swap Address Line, which controls where blank lines will be moved for output.
    If you require more detailed information regarding this, I would recommend that you log an incident via the SAP Service Marketplace (service.sap.com), so that support can provide assistance with researching this issue.
    You will need your S-User login information in order to log an incident.
    When creating the incident, make sure to enter the component BOJ-EIM-COR so that your question is directed to the correct support team for << product name>>.  
    Rob Siegele
    Forum Moderator
    Technical Support Engineer 
    AGS Primary Support, Business User
    SAP America

  • 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.?

Maybe you are looking for