How to make a row editable in a click to edit table programatically?

I have a table in my page in which I can do inline addition as well as select and add addition (which will programatically add multiple rows). And my table is click to edit (there are few editable columns in the table).
So, suppose if I add a row say R1 by inline addition, then this row is coming as highlighted as well as selected (i.e editable). But now suppose I add another row R2 through Select and Add (which will open a popup table from where I can select multiple rows, and clicking on OK, I will add those rows programatically in the table VO), it is coming as highlighted but it is not coming as selected i.e now R1 is selected and editable but R2 is highlighted. (I have done setCurrentRow programatically but that is only making the row highlighted and not editable. Is there any way to make the row editable also programatically?

try setEditingMode method. See if it helps.
http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10684/oracle/adf/view/rich/component/rich/data/RichTable.html#setEditingMode_java_lang_String_

Similar Messages

  • Adobe pro 8: how to make an existing secure encrptyed form unfillable after editing

    Hello,
    as the discussion topic says.
    adobe pro 8: how to make an existing secure encrptyed form unfillable after editing?  Is it even possible to do in adobe pro 8?
    For work there's a secure and encrptyed form.  I want to write in the form and save it so it will be unfillable / uneditable.
    this form is not created by myself, and already secure and encrypted.
    I am aware that in other recent adobe pro versions on how to do this, since they have a " save as a copy" function in the file menu. (adobe 8 doesnt have)
    I've also tried printing as a PDF, but due to encryption of the form, that doesn't come out great.
    Upgrading to a recent version of adobe pro is not an option.
    I've also tried exporting as a picture files and then recombinding them to a pdf.  I dont like this method and find it time consuming.
    If possible please inform me of a way to solve this problem , step by step with adobe pro 8's features.
    or
    show me the equivalent method to how recent versions "save a copy" of a secure encrypted form on adobe pro 8.
    Thanks in advance for reading this thread and helping.

    Well after you use save a copy, and the security is disabled, you could then re enable security features and disable editing of the form.
    EDIT: I just tested , with a PDF is in secure mode, even using a "save a copy" feature wouldn't work.
    Would finding a program to desecure the pdf be a possible option?
    Or is there a way to copy the form (with all it's editable fields) and paste it as an unsecure pdf?
    You would then be able to make new security features.
    thanks for replying and viewing this problem.

  • How to make the row as a hyperlink in Crystal 2008

    Hi,
    Could you give me advise on how to make the row as a hyperlink and call another report.
    Thank you in advance.
    Rose

    Hi Sastry,
    I was able to create the subreport and its working.
    Thank you so much.
    Regards.
    Rose

  • How to make first row as selected in af:table

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF-BC in my application.
    In all the pages across my application we have multi select enabled for the table[af:table].
    But when the pages are displayed,the first row is not selected by default.
    My requirement is to display first row as selected across all the tables in my app.
    I have the selectionListenerset as for example selectionListener="#{bindings.RSCMapVO2.collectionModel.makeCurrent}" in all the pages.
    Please suggest on how to make first row as selected.
    Regards,
    Praveen

    Hi
    Put these codes in your selection listner method(You have to define a selectionListner method in your backing bean and put this code segment
    (Special thanks go to Franks how posted this code segment. threadID=1089583)
    RichTable yourTable = (RichTable) selectionEvent.getSource();
    //the Collection Model is the object that provides the structured data
    //for the table to render
    CollectionModel yourTableModel = (CollectionModel) yourTable.getValue();
    //the ADF object that implements the CollectionModel is JUCtrlHierBinding. It
    //is wrapped by the CollectionModel API
    JUCtrlHierBinding yourTableBinding = (JUCtrlHierBinding) yourTableModel.getWrappedData();
    //Acess the ADF iterator binding that is used with ADF table binding
    DCIteratorBinding yourTableIteratorBinding = yourTableeBinding.getDCIteratorBinding();
    //the role of this method is to synchronize the table component selection
    //with the selection in the ADF model
    Object _selectedRowData = yourTable.getSelectedRowData();
    //cast to JUCtrlHierNodeBinding, which is the ADF object that represents
    //a row
    JUCtrlHierNodeBinding nodeBinding = (JUCtrlHierNodeBinding) selectedRowData;
    //get the row key from the node binding and set it as the current row in the
    //iterator
    Key rwKey = nodeBinding.getRowKey();
    tableIteratorBinding.setCurrentRowWithKey(rwKey.toStringFormat(true));
    Thanks
    Padma

  • How to make a magnifying glass link to a look up table ?

    Dear Friends,
    Hello. I am developing the accounting application of journal entry. In journal line, I use the image "magnifying glass" next to each chart field. When we click on the magnifying glass, it's supposed to come up a look up table( a chart and name mapping table), and we select the proper chart to input into the chart field.
    I understand to create another record and page for the look up table. But I don't understand how to make a magnifying glass link to a look up table. Can anybody tell me how to do that ? Thanks.
    Lucy

    This is how it works,
    Table A (which stores chart fields). You have used fields from table A on a page so that users can input data.
    You don't need to put a magnifying glass image or create a new page to achieve look up page.
    all you need to do is create another table say Table B which should have the chart field and corresponding description you want to show on lookup page. Then open record-field property of the chart field on Table A and mention Table B as prompt table.

  • How to make a category highlighted after it clicked

    Hi there! Just want to know how to make a category highlighted after user click on it, so he will able to track on which category he is currently on?
    I've already created 3 categories (links) through creating library elements, I already have the hover effect  I made through CSS external stylesheet, everything works, but the category is not highlighted when I browse within it.
    Here is my HTML code of these 3 links:
    <td bgcolor="#663300"><!-- #BeginLibraryItem "/Library/Top_links.lbi" -->
    <div align="right" class="link"><a href="index.html">Home</a>     <a href="Accessories.html">Accessories</a>    <a href="Contact Us.html">Contact Us</a>    </div>
    <!-- #EndLibraryItem --></td>
    And here is my CSS code for these links:
    .link, .link a:link, .link a:visited, .link a:active {
        font-family: "Times New Roman", Times, serif;
        font-size: 18px;
        font-weight: normal;
        color: #FFFF33;
        text-decoration: none;
        padding: 5px;
        #home: color:#00FFFF;
    .link a:hover {
        font-family: "Times New Roman", Times, serif;
        font-size: 18px;
        font-weight: normal;
        color:#FF0000;
        text-decoration: none;
    So how to make the active link highlighted when browsing within it??
    Thank you

    My pages are offline in developing stage, can't give you an URL.
    Here is my HTML code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>untitled</title>
    <link href="css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    </style>
    </head>
    <body class="home">
    <table width="450" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
    <td bgcolor="#663709"><!-- #BeginLibraryItem "/Library/Top_links.lbi" -->
    <div align="right" class="link"><a class="home" href="index.html">Home</a>    <a href="Accessories.html">Accessories</a>    <a href="Contact Us.html">Contact Us</a>    </div>
    <!-- #EndLibraryItem --></td>
      </tr>
    And here is my CSS:
    body {
        background-image: none;
        background-color: #2d2625;
    body,td,th {
    .link, .link a:link, .link a:visited, .link a:active {
        font-family: "Times New Roman", Times, serif;
        font-size: 18px;
        font-weight: normal;
        color: #FFFF33;
        text-decoration: none;
        padding: 5px;
        #home: color:#00FFFF;
    .link a:hover {
        font-family: "Times New Roman", Times, serif;
        font-size: 18px;
        font-weight: normal;
        color:#FF0000;
        text-decoration: none;
    What should I modify?

  • How to make a row non-editable depending on a db column value

    HI,
    I've an editable report region and the requirement is to make the row non-editable according to the value in one of the column. Like if the value for that column is null the row should be editable else non-editable. Any option to do this in Oracle APEX.
    Regards,
    Prasanth

    I assume you are using a tabular form. In that case, you would have to run a loop in Javascript to read all the rows in the Form. The example is given below. You can use Firebug in Firefox to identify your field names and replace f02, f03 and f04 with your field names.
    <script language="JavaScript" type="text/javascript">
    function f_readonly_items(){
    for (i=0;i<document.wwv_flow.length;i++)
    if (document.wwv_flow.f02.value) != Null
    document.wwv_flow.f02[i].readOnly = true;
    document.wwv_flow.f03[i].readOnly = true;
    document.wwv_flow.f04[i].readOnly = true;
    </script>
    Hope this helps.

  • How to make a row as selected in output internal table in oops ALV

    Hi All,
    I have ALV grid output using oops ALV concept, in my output i have a checkbox as first column when i select this checkbox and press a push button 'Print' which is there above ALV grid that particular line in output table should get selected and i need to code some logic for printing selected row.
    how to make the particluar row in the output internal table to be selected and where to write the logic for print once it is pressed?
    Thanks in advance
    Srilakshmi.

    but the checkbox is not getting set in internal table when i select some checkboxes.
    can anybody explain y the checkbox in internal table not set?
    Hi Srilakshmi,
    As explained by Uwe, when we change a field ( say check box ) in ALV grid, the view (frontend) changes (showing the tick mark) but the changed data ( normally ) is not transfered to the backend.
    We can initiate this data transfer by just registering the cl_gui_alv_grid=>mc_evt_modified  edit event
      go_grid->set_table_for_first_display( CHANGING  it_fieldcatalog      = pt_fieldcat
                                                      it_outtab            = pt_outtab ).
      go_grid->set_ready_for_input( 1 ).
      go_grid->register_edit_event( EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified ). " This does the trick
    Now as soon as we check a checkbox, the data_changed event is triggered.
    This initiates data transfer to the backend and the checkbox field in internal table is updated.
    check the below code for example.
    DATA: go_cont            TYPE REF TO cl_gui_custom_container,
          go_grid            TYPE REF TO cl_gui_alv_grid,
          gt_fieldcat        TYPE lvc_t_fcat,
          gv_language        TYPE spras VALUE 'E',
          gt_outtab          TYPE TABLE OF bus_loca_demo WITH HEADER LINE.
    START-OF-SELECTION.
      CALL SCREEN 100.
    *       MODULE PBO OUTPUT                                             *
    MODULE pbo OUTPUT.
      SET PF-STATUS 'BASIC'.
      SET TITLEBAR  '001'.
      PERFORM create_and_init_alv CHANGING gt_outtab[]
                                           gt_fieldcat.
    ENDMODULE.                    "pbo OUTPUT
    *       MODULE PAI INPUT                                              *
    MODULE pai INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'PRINT'.
          BREAK-POINT.
      ENDCASE.
    ENDMODULE.                    "pai INPUT
    FORM create_and_init_alv CHANGING pt_outtab LIKE gt_outtab[]
                                      pt_fieldcat TYPE lvc_t_fcat.
      CHECK go_cont IS NOT BOUND.
      CREATE OBJECT go_cont
        EXPORTING
          container_name = 'CUSTOM'.
      CREATE OBJECT go_grid
        EXPORTING
          i_parent = go_cont.
      PERFORM build_display_table.
      PERFORM build_fieldcat CHANGING pt_fieldcat.
      go_grid->set_table_for_first_display( CHANGING  it_fieldcatalog      = pt_fieldcat
                                                      it_outtab            = pt_outtab ).
      go_grid->set_ready_for_input( 1 ).
      go_grid->register_edit_event( EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified ). " This does the trick
    ENDFORM.                               "CREATE_AND_INIT_ALV
    FORM build_display_table.
      FREE gt_outtab.
      DO 10 TIMES.
        gt_outtab-creation_partner = sy-index.
        gt_outtab-date_field       = sy-datum.
        APPEND gt_outtab.
      ENDDO.
    ENDFORM.                               "build_display_table
    FORM build_fieldcat CHANGING pt_fieldcat TYPE lvc_t_fcat.
      DATA ls_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'BUS_LOCA_DEMO'
        CHANGING
          ct_fieldcat      = pt_fieldcat.
      LOOP AT pt_fieldcat INTO ls_fcat.
        CASE ls_fcat-fieldname.
          WHEN 'CHECKBOX'.
            ls_fcat-checkbox = 'X'.
            ls_fcat-edit     = abap_true.
            MODIFY pt_fieldcat FROM ls_fcat.
          WHEN 'ENTER_FIELD' OR 'DBLCLICK_FIELD'.
            ls_fcat-no_out  = abap_true.
            MODIFY pt_fieldcat FROM ls_fcat.
        ENDCASE.
      ENDLOOP.
    ENDFORM.                               "build_fieldcat
    Cheers,
    Jose.

  • How to make numbered rows in Numbers

    How do I make numbered rows in Numbers?

    Hi Carol,
    It depends on whether you want the numbers to move with the rows if and when you sort, or if you always want the rows numbered top to bottom.
    There's a function that returns the row number: ROW(). Placing that in a cell always displays the number of the row. If you want to number once and then let the numnbers follow the data around, you can Fill with a sequence by typing "1" in the first row and "2" in the second row. Then select both cells and drag the Fill handle down the table to extend the series. The fill handle is the little open circle in the lower right corner of the selection.
    Jerry

  • How to  make JTextArea rows and colums auto-increase?

    My test program is attached as below.
    The JTextArea can not enlarge itself when the text in a line is too long that some characters are hidden.When rows grows too many will also see the problem.
    How can I make the rows and columns auto-increase to meet the width or height of my text?
    -----My Test Demo----
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.color.*;
    import javax.swing.*;
    public class Test{
    public static void main(String[] args){
    JFrame f = new JFrame("My Editor");
    Container ct = f.getContentPane();
    JPanel jp = new JPanel();
    JTextArea ta = new JTextArea("My software.",10,30);
    JTextArea ta2 = new JTextArea("Hello,World!",10,30);
    jp.setPreferredSize(new Dimension(400,400));
    jp.setBackground(Color.green);
    jp.setLayout(null);
    jp.add(ta);
    ta.setBounds(100,100,150,200);
    ta.setOpaque(false);
    ta.setBorder(null);
    jp.add(ta2);
    ta2.setBounds(100,120,150,200);
    ta2.setOpaque(false);
    ta2.setBorder(null);
    // jp.addMouseListener(new MyMouseListener());
    ct.setLayout(new BorderLayout());
    ct.add(jp,BorderLayout.CENTER);
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent evt) {
    System.exit(0);
    f.setVisible(true);
    f.pack();

    This link to the Java Swing tutorial will show you how to add the JTextArea to a JScrollPane:
    http://java.sun.com/docs/books/tutorial/uiswing/components/simpletext.html#textarea
    It appears to me that you are new to Swing so you should read the entire tutorial "Creating a GUI using JFC/Swing" before asking any more question. The tutorial can be read online or downloaded from:
    http://java.sun.com/docs/books/tutorial/
    The download link for all tutorials on this page is near the bottom.

  • How to make some rows not selectable in AdvancedDataGrid

    Hi there,
    I have an advanced data grid which allows to select multiple rows. I need to make certain rows not selectable dependent on the row data. How can this be done?
    Help is greatly appreciated. Thanks in advance.
    --Charmaine

    Hi, You can view same demo here
    Thanks and Best regards,
    Pallavi Joshi | [email protected] | www.infocepts.com

  • How to make Single row of an entire collumn of table control- Changeable

    Hi ,
        In Module Pool , in table control , I've all the rows in a specific column as "read only". However, with a specific "if statement" I want one row of that column as editable.
    For example ,
                       if  itab-name1 = 'PRITHVI'.
                    Make that row, editable.
                    Keep the rest of the column unaffected.
    I used the following code in my program in PBO:
    module STATUS_0005 output.
    Loop AT SCREEN .
      if screen-name = '%#AUTOTEXT009'
       AND I_MARKLIST-STUDENT_NAME1 = 'SUNIL SHARMA'.
        SCREEN-INPUT = '1'.
        MODIFY SCREEN.
        ENDIF.
        ENDLOOP.
    endmodule.
    I've tried this, but in vain .. ! Please give me suitable solutions ASAP.

    Hi,
    try like this..
    in the PBO of screen flow logic..
    loop at I_MARKLIST with control tc.
      MODULE CHANGE.
    endloop.
    IN THAT CHANGE MODULE WRITE...
    IF I_MARKLIST-STUDENT_NAME1 = 'SUNIL SHARMA'.
    LOOP AT SCREEN.
      IF SCREEN-NAME = '%#AUTOTEXT009'.
       SCREEN-INPUT = 1.
      ELSE.
       SCREEN-INPUT = 0.
       MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    ELSE.
    LOOP AT SCREEN.
      SCREE-INPUT = 0.
      MODIFY SCREEN.
    ENDLOOP.
    ENDIF.

  • How to make a row enabled for lead selection and make other Rows disabled?

    Hi,
    What I require is:
    In a webdynpro table , which can have multiple rows, I want to make the rows which are retrieved fom backend as disabled for selection.
    And when I add a new row (using an ADD functionality) , this newly added row should only be enabled for lead selection.
    The Table property "enabled" can be assigned a context , and can be used to control the disabling of whole table.But then if I add the new row to this table, even this will be disabled.
    I can set lead selection to a the new row, but if the whole table is disabled, this won't work.
    Please suggest a solution for this.
    Thanks,
    Richa

    Do not set the enabled flag to the whole table but to the editors of each column. Bind the enabled property to a calculated boolean flag in the data source node. In the get method of this flag add a code that will make the editor enabled only if it belongs to the lead selection element.
    Now do not allow the selection of rows in the table (there is a property for this, perhaps is named rows selection I don't remember well now), but change the lead selection of the data source node to the desired element when you add the element programatically.
    Hope it helps.

  • How to make single rows in tables readonly

    Hi All,
    We have a table that is populated with data from a database read. One of columns in the read acts as a flag. If it is found that particular row is suppose to be readonly. During the read a check is done and if it is is found we call a simple javascript function that should make that row readonly.
    The Code looks like this:
    Code:
    function disableRow (rowIndex) {
      var table = document.all.mainTable;
      var rowAttend = eval("document.all['" + idAttendRow + eval(rowIndex) + " ']");
      var rowVolume = eval("document.all['" + idVolumeRow + eval(rowIndex) + " ']");
      if (table) {
        for (var c=0; c < rowAttend.cells.length; c++) {
          //rowAttend.cells[c].style.backgroundColor = "#1AA047";
          //rowAttend.cells[c].disabled = true;
          rowAttend.cells[c].readOnly = true;
        for (var c=0; c < rowVolume.cells.length; c++) {
          //rowVolume.cells[c].style.backgroundColor = "#1AA047";
          //rowAttend.cells[c].disabled = true;
          rowAttend.cells[c].readOnly = true;
    The colour and disable functions work fine but I can't make the readOnly work. Any help would be great. The cells are a combination of dropdowns and input fields.
    Cheers

    Hi Luke,
    You can't set readonly attribute for cells, because there's no such attribute for cells (tag <td>) in HTML DOM. It will not raise any javascript error, because javascript and HTML DOM allow you to add your customized attribute. In your case "readOnly" will treated as customized attribute.
    In HTML DOM, cells was treated as a container inside row (tag <tr>), it's not an input, that's why it doesn't have readonly property.
    However you can disable all DOM inside cells by set its disabled attribute into true, and that's what your previous code do. But becarefull, if you do this, you can't get all value inside that cell when you submit the Form.
    Usually if I'm facing this problem, I will update the disabled attribute into false, just before submit the form.
    Hope this help
    Regards
    David
    ps:
    1. If you want to disable all cells in one row, just disable the row, it will automatically disable all cells inside it, it will improve your javascript performance.
    2. Your javascript will only work for IE, if you want it to work with other browser, change "document.all[]" with "document.getElementById()"

  • How to make front row remember playback position of avi files?

    Hi,
    Is there a way to make front row remember the last playback position of an avi file?
    It can be frustrating having to forward to the last platback position when resuming viewing a media file.
    nj

    If you load the file into iTunes then Front Row will then remember its last playback position.
    Not ideal I know, but it appears to be the only workaround currently.

Maybe you are looking for

  • FB 4 crashed to blue screen on windows - what to do?

    issue: when i am installing flash builder 4 to system - at step of installation where it calculates required time before placing files - it crashes to blue screen of OS. version of flash builder 4 trial downloaded today from Adobe. system configurati

  • How I can go back to former version of firefox, because the new one is unacceptable bad.

    How I can go back to former version of firefox, because the new one is unacceptable bad. I am just a computer and internet user, if you can't imagine what that's means, then I need to use and promote other web browsers. I am really mad about the upda

  • Code for 'screen refresh' in webDynpro for ABAP

    Hi all, can I get some sample code for refreshing the screen in webDynpro for ABAP?? Its urgent, awaiting for your early helpful replies. thanks, Hema. Edited by: Hema Sundar Munagapati on Jan 19, 2008 4:00 PM

  • Why is it taking SO long to export?

    I have trying to export a project for a week now. This is footage that I got from my Canon HDV camera. It is something that I got off of my DVR. Quality looks fine on my computer but by the time that I get it to a DVD it looks awful. First thing I tr

  • Bdc_tablecontrol_line items

    HiAll, I would be a great help in solving the below problem. I am facing a problem in writing BDC program ( Tcode MR21), where i have to enter line items in table control. How to decide how many lines are visible on the screen. As the no of visible l