Advanced table Items Read Only

Hi All
How to make Message Choice and Message Check Box items in Advanced Table Read Only through code?
OATableBean oatablebean = (OATableBean)oawebbean.findIndexedChildRecursive("ItemsTable");
oatablebean.findIndexedChildRecursive("Type").setDisabled(true);
is causing compilation error.
setRendered works. How to set Required, Read Only properties through code?
Thanks
Kumar

Reetesh
I found the below code in the url . Here setEditableAttr is a custom method. Not sure what code does it contain?
try
OAViewObject pVO = (OAViewObject)getSupplierVO1();
System.out.println("Rows: "+pVO.getFetchedRowCount());
Row poRow[] = pVO.getAllRowsInRange();
for (int i=0;i
SupplierVORowImpl rowi =(SupplierVORowImpl)poRow;
rowi.setEditableAttr(Boolean.TRUE);
System.out.println("Count: "+poRow[0].getAttribute(27));
System.out.println("Ritesh");
Thanks
kumar

Similar Messages

  • Making Detail Items Read Only

    I used the following to make detail items read only. The problem is one of the fields is a date with date picker. I cannot enter the date but if I use the date picker it allows the field to be updated.
    <script>
    if($v("P20_STATUS")=="SIGNED")
         arr = document.forms[0].f04;
         arr1 = document.forms[0].f05;
         arr2 = document.forms[0].f06;
         arr3 = document.forms[0].f07;
         for (i=0;i<arr.length;i++)
              arr.readOnly=true;
              arr1[i].readOnly=true;
              arr2[i].readOnly=true;
              arr3[i].readOnly=true;
    </script>

    I don't see a field named _IMG on my detail block. Here are the date fields for both records. I am trying to set the datepicker popup to read only but do not see how to do that.
    <td headers="WORK_DATE" class="t13data">
    <fieldset class="datepicker" id="f05_0000_fieldset">
    <table summary="" border="0" cellspacing="0" cellpadding="0" class="datepicker" id="f05_0000_holder">
    <tr>
    <td class="datepicker"><input type="text" name="f05" size="10" maxlength="2000" value="" id="f05_0000" /></td>
    <td><a href="javascript:void($p_DatePicker('f05_0000','0','MM/DD/YYYY','#666666','','','','','2011','en-us','Y','30034','7259688222750517497','01','210'));">
    <img src="/i/asfdcldr.gif" alt="Calendar" align="absmiddle" /></a>
    </td></tr></table>
    </fieldset>
    </td>
    <td headers="WORK_DATE" class="t13data">
    <fieldset class="datepicker" id="f05_0001_fieldset">
    <table summary="" border="0" cellspacing="0" cellpadding="0" class="datepicker" id="f05_0001_holder">
    <tr>
    <td class="datepicker"><input type="text" name="f05" size="10" maxlength="2000" value="12/30/2010" id="f05_0001" /></td>
    <td><a href="javascript:void($p_DatePicker('f05_0001','0','MM/DD/YYYY','#666666','','','','','2010','en-us','Y','30034','7259688222750517497','12','210'));">
    <img src="/i/asfdcldr.gif" alt="Calendar" align="absmiddle" /></a>
    </td></tr></table>
    </fieldset>
    </td>
    I don't see how to do this from the link you gave me.
    form1.IMAGENAME.style.display="none";

  • How to set a line of table as read only during runtime?

    How to set a line (or a cell) of table as read only during runtime?

    hi wei
          when you create a table keep the readonly property of table as false
    you create the columns of table as inputfield.you bind the readonly property of
    the inputfield to two context variables
    say one for all the columnfields you to want always have as readonly and let this contextattribute of type boolean and let this be attr1
    and another for all the columnfields you donot want to be readonly and let this contextattribute of type boolean and let this be attr2
    initially set the context attributes attr1 and attr2 as true so the entire table is readonly.
    based on the condition you want to check change the attr2 to be false.
    if(your condition)
    wdcontext.currentcontextelement.setattr2(false);
    hope this helps.
    regards
    saravana

  • How to make a column in Table popin read only

    Hi Everyone
    Could anyone let me know how to make a column in table popin read only.
    Regards

    if you ar eusing an ALV table
    try this
      DATA: lr_salv_wd_table TYPE REF TO iwci_salv_wd_table,
            r_table TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
    * get reference to ALV component interface
      lr_salv_wd_table = wd_this->wd_cpifc_alvmain( ).
    * get ConfigurationModel from ALV Component
      wd_this->r_table = lr_salv_wd_table->get_model( ).
    * init ColumnSettings
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
            lr_col_header TYPE REF TO cl_salv_wd_column_header.
      lr_column_settings ?= wd_this->r_table.
    * get table of column settings - each line one column
      DATA: lt_columns TYPE salv_wd_t_column_ref.
      lt_columns = lr_column_settings->get_columns( ).
    * loop over table - in each loop another column can be modified
      DATA: ls_column TYPE salv_wd_s_column_ref.
    * define visible columns (fields) by naming them,
    * exclude others by setting visibility to none
      DATA: ls_tooltip TYPE string.
      LOOP AT lt_columns INTO ls_column.
        " get header of column
        lr_col_header = ls_column-r_column->get_header( ).
        " do settings here
    ENDLOOP.
    Or see this document for more tips.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a0918b4">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a0918b4</a>
    regards,
    Joris

  • Tables in read only mode

    Hi friends.
    In my job we insert data in some tables, in the end of the month we do some operations with this data and for the next month we use other tables.
    How do I change my tables for read only mode, because is so dangerous that for error erase the old tables?

    Hi,
    You can revoke all privs like insert, update, delete... from all other users for these tables. Then only the owner can do some damage.
    If the database user is used by many different people and you rather don't trust them, copy the 'old' tables to another schema and don't spread the password.
    And most important: Have backups in place!

  • Input table becomes Read-Only

    Hi all,
    I'm trying to implement input table but the table shows as read-only.
    1. Node cardinality = 0...n
    2. Selection = 0...1
    3. Singleton = true
    All fields are input field.
    After i deploy and run the application, the read-only table shows up.
    Please advise me on this. Thanks in advance.
    Peerasit

    Hello Jomsri,
    The table is coming as read only because you havenot added any element to the nodes and by default there will be no element in the node as you are selecting a cardinality of 0...n. If you change it to 1..n then you can see one row will have input fields enabled.
    Best way to implement this is add a button in the layout, name it as add a new row and in the action of this button add the following code:-
             IPrivateTestingCompView.I<nodename>Element a = wdContext.node<nodename>().create<nodename>Element();
             wdContext.node<nodename>().addElement(a);
    this will add a new row to the table each time you press the push button.
    Hope this will solve the problem
    Regards,
    Sarbjeet

  • NULL values are inserted into interface table for read only columns

    Hi, I developed a custom Integrator where some of the columns has to be displayed as read only in the layout. I am using SQL content to populate the data. When I upload the data NULL values are inserted into table interface? Is there any work around for this?
    Thanks
    Edited by: user593879 on Jan 12, 2010 7:21 PM

    Doesn't WebADI drive you insane at times?
    I must say, when it's all working it looks great and it is very user friendly (end-user that is, NOT for developers!) but before you get to that stage… please please Oracle invest some time making Web ADI a bit more logical an coherent, get the obvious bugs out, please let us not have to update BNE tables anymore to get things done.
    Anyway, I sorted this one out by setting the Width to zero (0) in the Layout. HTH.

  • Make item read-only after Approved using SPD Workflow

    Hi All - Is it possible to create a workflow in SPD 2013 which can make approved items readonly for the creator of the item. 
    Regards,
    Khushi
    Khushi

    Hi,
           There are item-level permissions that can be set, so you can Provide list-level permissions on an item-by-item basis as read only. Adding this functionality into your existing workflow probably helps.
    You Can check the article mentioned in the below link.
    http://spdactivities.codeplex.com/wikipage?title=Grant%20Permission%20on%20Item&referringTitle=Home
    Once you have a workflow action for setting an item's permission level, simply add a step to your existing workflow to set
    Read permission.
    Regards,
    MS

  • Lifecycle issue with table binding + read-only attributes: ADF BUG

    Hello all,
    I have found what I believe to be an easily reproducible bug in ADF that reproduces in 10.1.3.x, but not in 11g (at least not in drop 6). The best way to describe the bug would be to walk through a simple set of steps to reproduce the bug:
    1). Create a new application (ADF BC + ADF Faces).
    2). In the model project, create a new Entity Object from the Employee table in the default HR schema. Allow JDev to create an updatable view object and an AM as well.
    3). Put a validation rule on the first name attribute of the EO (can be anything, really - I made mine so that the first name cannot be "foo").
    4). Test everything using the BC tester if you like.
    5). In the UI project, create a new JSPX page.
    6). Drag the updatable VO on to your page as an updatable af:table.
    7). Put an af:commandButton on the page. Bind its Action or ActionListener to a method in a new backing bean. Put some simple code (I used System.out.println) in the backing bean method.
    8). Run the jspx page.
    9). Put some invalid data in (e.g. "foo" in the first name field) and click the af:commandButton. Verify that you get an error message and that the Action/ActionListener method DOES NOT fire. So far, so good.
    10). Now, to demonstrate the problem. First, look at the page definition for the jspx file. Identify the first attribute that is mentioned (in my case, it was the employee id).
    11). Go to the updatable view object and make the attribute from #10 read-only or updatable when new only.
    12. Now, repeat step 9 - you should see the error message AND also see that the Action/ActionListener method was executed. You will also see in the messages window that ADF attempted to set the value of the read-only attribute, and thus got a ReadOnlyAttrException.
    This issue only happens if the first attribute mentioned in the table binding is read-only. A workaround would simply be to re-order the attributes in the table binding of the pagedef so that the first attribute isn't read-only.
    Don't ask how I figured this out ;)
    Best,
    John

    Hi Frank,
    Yes, I simply scripted it out this way to contrast the behaviour if the first attribute was read-only vs not read-only. I found the issue on a page in our app that was simply drag-and-drop the VO from the data control on the page.
    It's quite annoying, because our particular use case that hit this error is a "save" button on the page. If the commit operation doesn't return any errors (and it doesn't in this use case!), we add a JSF message saying "save successful" - then the attribute errors are further added later in the page lifecycle, so we get 3 messages: "Save successful" and "Fix this error" and "Tried to set read-only attribute" - quite confusing to the end-user when the only message they should see is "fix this error."
    At any rate, the fix is to simply re-order the attributes in the page definition - that doesn't affect the UI at all, other than to fix this issue.
    John

  • Table became read-only

    I have an Access interface to an Oracle 10g database so that our analyst can enter data in from spreadsheets. Recently, one of the tables that she's working with became read-only when she deleted the existing table in Access, and re-imported it from Oracle. She's done the same to other tables, and is still able to write to them. I went in and checked her rights in the OEM, and she has the same rights across all objects. I'm trying to log in under her userid in SQL*Plus, but when I try querying from any of the user tables that she uses, its telling me that the tables/views don't exist. But if I select table_name from all_tables, it does show the system tables and other tables as well - just none of the user tables. Is there anything else I can try to figure out what's going on here?

    Access will only allow read-only on Oracle tables unless the primary key is identified in Access. 'Edit' the table and identify the primary key.

  • Menu Bar items read-only in 10.5.2

    After 10.5.2 upgrade, I'm unable to use a lot of drop-down menus for Menu Bar items such as Bluetooth, Airport, Date&Time, International etc.
    Spotlight and third-party menus (Little Snitch, MiniBatteryLogger) are OK, but system ones became all-gray (in case of Bluetooth and Airport) or just read-only ( selection of menu item doesn't do anything).
    I have to do System Preferences->Network to switch between WiFi networks.
    Is anyone experiencing similar issue? Any idea how to fix it?

    Well, looks like an issue came from SIMBL Plugins, such as WiFind.
    Just move the "WiFind.bundle" from the "/Library/Application Support/SIMBL/Plugins/"
    Somehow, if automatic login is set you are not getting "System UI Error, plugin disabled" and stuck with read-only menus.
    I've created another user account, logged in as another user and immediately got "System UI Error".
    After removing WiFind.bundle and reboot everything came back as suppose to be.

  • Best way to make all the items read-only in many pages for a resposibility?

    Hi,
    We have the following requirement:
    We need to make all the fields read-only in 5 standard self-service pages for a particular responsibility. One way is to personalize these pages at responsibility level. Is there any other quick/better way to do it?
    Highly appreciate your suggestions on this.
    thanks,
    Hem

    Hem,
    Personalisation is easiest and fastest way of doing this. The same requirement can be acheieved by extensions of CO by setting the bean properties rr by SPEL binding by extending VO.
    But when I can get something done without coding at all that approach is best, I am sure u agree :)!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Making region items read only.

    I have a default single column that corresponds to a VO that uses a single select statement in my page. This page is used for inserting into table. When user enter the details and press continue button, i need to use forwardImmediatelyToCurrentPage(), and make the default single column region items readonly. so that the same page will become a review page. How can i make the region items readonly at runtime?
    Thanks
    Eldho

    Hi,
    Please put a parameter with a value 'Y' before you set forward the navigation to the same page. This code has to be triggerred in the processForm Request.
    In the processRequest read for the parameter value and make the fields as readonly if the value of the parameter is the same that has been sent from the PFR.
    This is a simple approach. Another Approach could be to use Partial Page Rendering and set the attribute values as ReadOnly true. But I wd say the first approach is easier.
    Regards
    Sumit

  • Defaulting Values and Read-Only Items?

    Hi All,
    Brand new to APEX and trying to think of ways to get a few things working for me hoping you might have some suggestions.
    1. Want to have a few items default upon the creation of a record.
    - Created Date - have a column/page item that I would like to default/auto populate with the current date
    - Create by - would like to have column/page item default with the login id of the user
    2. Dynamically make page/items read-only.
    - Once a record is created I would like to ensure that the only person able to edit the record would be the creator. I assume I can use the Read Only feature at the item level but am unsure of the syntax to use to make the item read-only for only the user who created/or is creating the record. Since I would like to be defaulting the "Create by" (see question 1) column to the login id of the user this should be plausible just not sure of the syntax to reference the current user id.
    3. Passing a value to to bind variable.
    - I have build a basic page with an Interactive Report and have made one of the columns in the Interactive report 'linkable' which launches a BI Publisher report by calling a Report Query. Currently in my report query I have hard coded a value in the SQL statements where clause to prove the theory works what I am struggling with is a declarative way to pass the value that I am clicking to a bind variable in my SQL statements where clause in the query.
    Thanks in advance for any suggestions and appreciate your patience with an APEX newbie .. about 2 days old at this juncture. The more specific you can be on what to do and where to go is greatly appreciated.
    For those interested in have greater control with your report layout BI Publisher looks to be a great options. I was able to getting by reviewing [how to document:|http://www.oracle.com/technology/products/database/application_express/howtos/howto_master_detail_pdf.html] on OTN. My challenge some in the fact that rather then simply being on the exact row that I want reported on I would like to simply click on a link in a list and pass that value as the bind variable.
    JES

    Hi -
    "1. Want to have a few items default upon the creation of a record."
    This is typically done in a trigger at the db level.
    CREATE OR REPLACE TRIGGER mytrigger
    BEFORE INSERT OR UPDATE
    ON mytable
    REFERENCING NEW AS new OLD AS old
    FOR EACH ROW
    BEGIN
      if (:new.CREATED_DATE is null)
        then
          :new.CREATED_DATE := sysdate;
        end if;
      if (:new.CREATED_USER is null)
        then
          :new.CREATED_USER := nvl(v('APP_USER'),user);
        end if;
      :new.UPDATED_DATE := sysdate;
      :new.UPDATED_USER := nvl(v('APP_USER'),user);
    END CREATE OR REPLACE TRIGGER mytrigger;"2. Dynamically make page/items read-only."
    See 'APP_USER' in the Apex docs...
    "3. Passing a value to to bind variable."
    This is done in the report configuration in the Apex UI...
    Session State Include application and session information.
    You might want to consider reviewing some of the Apex docs and tutorials, I recommend this:
    [http://download.oracle.com/docs/cd/E14373_01/appdev.32/e13367/toc.htm]
    Good luck.

  • Read Only table

    Sir, I am Rashed From bangladesh. Here, i want to know that if a table as a read only then what i will do and what i will not do like 1)insert 2)update 3)delete 4)Drop 5)all??? which answer is correct and why??? Plz replay me as soon as possible.
    sincerely yours
    rashed

    First of all, let me make you calear that you can't put table in read only mode until unless its tablespace made into read only mode.
    the other way you can call as this table is owned by other user and he just gave you read only permission, i.e. select permission.
    If you put tablespace into read only mode, then, there are no inserts,deletes,updates,truncate take place. Only you can drop the table.
    SJH
    OCP DBA

Maybe you are looking for

  • What's a developer/tester to do?

    I'm not going to waste know-how and study for WP 8.0; it's just not worth it.  With Windows Phone 8.1 facing the delay, delay, delay, there's not real incentive to write/test apps.  When an enterprise looks for a mobile platform, I guess it MUST be A

  • Urgent - Automatic Payment program

    < MODERATOR:  Message locked.  Please read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting next time. > Hello, The automatic payment program picks up the documents that have been clea

  • Ad-54

    (5800) I have a problem with remote control AD-54 does not operate its function with the exception of answering calls

  • Getting java.lang.Exception: Exception in sending Request :: null  Error

    Hi, I am using Oracle 10.2.0.1.0. My intention is to create a new database instance. Here are the steps I have taken, 1. Using DBCA, I created a new database instance, oracle sid = MYORCL0318 2. I created the tablespaces for this instance. then, I we

  • Cant play DRM encrypted content with Win 7 - 64 bits and IE9 - 64 bits

    Hi, I have a problem that I need to resolve... Everything runs fine with Firefox, Chrome, IE7, IE8, Safari on Windows XP 32 bits as well as 64 bits, except on Windows 7 64 bits with IE9 64 bits and Flash 11.3. 64 bits. Furthermore, it's work with Win