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.

Similar Messages

  • HOW TO MAKE TABLE CONTROL NON EDITABLE

    hi all
    how to make table control non editable
    Thanks & Regards
    harsha

    Hi,
    Try this code in the PBO inside the module in the LOOP...ENDLOOP.
       IF SY-TCODE EQ 'ZEMPLDISPLAY'.
        LOOP AT SCREEN.
         if screen-name eq 'column1' or screen-name eq 'column2'.  "Give the names of the columns in the table control
          SCREEN-INPUT = '0'.
          MODIFY SCREEN.
        endif.
        ENDLOOP.
      ENDIF.
    Or you can go the Layout of the table control in Change mode and for every column's attributes, make it 'Output' only field. Check  'Output only' field.

  • How to make report output non editable

    Hi can any body give me sample code on how to make the report output non editable.
    thanks in advance
    kp

    Hi
    What are you meaning?
    U don't want to allow to change the data in the selection-screen?
    If it's so:
    AT SELECTION-SCREEN OUTPUT.
       LOOP AT SCREEN.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
      ENDLOOP.
    If you need to change only certain fields:
    PARAMETERS: P1 ......,
                P2 ...... MODIF ID AAA.
    SELECT-OPTIONS: SO_1 FOR .....,
                    SO_2 FOR ..... MODIF ID AAA.
    AT SELECTION-SCREEN OUTPUT.
       LOOP AT SCREEN.
          CHECK SCREEN-GROUP1 = 'AAA'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
      ENDLOOP.
    Max

  • How to make a field non-Editable in Web UI

    Hello Experts,
    I am new to Web UI CRM 7.2. Could anyone pls guide me in making a field non-editable on Web UI.I have the field in one of the custom assignment block. Could you pls guide me with some sample code how to achieve this ?
    Thanks in advance.

    Hi experts,
    For the component 'ICCMP_EMP_SRCH' there is a view 'BUPAEMPSEARCH' , which has 2 context nodes 'CUSTOMER' AND 'SEARCHEMPLOYEE' , i need to add the field 'NICKNAME' which is part of the 'CUSTOMER' context node on the search screen. Currrently all the fields on the screen screen are from the 'SEARCHEMPLOYEE' context node. when i did the configuration , the 'NICKNAME' field is greyed out . I have already generated the Getter ,Setter , GET_I, GET_M methods for the 'NICKNAME' field and the context node and controller class and context class are all active .
    on debugging the GET_I method, i see that rv_disabled = 'TRUE' and the current = collection_wrapper->get_current( ) is returning empty value .
    for this rv_disabled to be set false , the code below is not triggered since there is no value in current.
    IF current->is_property_readonly(
    'NICKNAME' ) = abap_false. "#EC NOTEXT
    rv_disabled = 'FALSE'.
    ENDIF.
    when i check for other search fields of context node 'SEARCHEMPLOYEE' , all the fields are set to rv_disabled = 'FALSE'.
    can anyone suggest how to approch this. iam i missing any binding between context nodes or any activations ?
    The field properties are set as Input field and the display checkbox is not checked.

  • How to display the rows number of times by giving the column values?

    Hi All,
    I want to display the rows number of times as the value exists in num column in the below query
    with t AS
       ( SELECT 'venkatesh' NAME, 'hyd' LOC, 2 NUM FROM DUAL
         UNION ALL
         SELECT 'prasad' NAME, 'hyd' LOC, 3 NUM FROM DUAL
         UNION ALL
         SELECT 'krishna' NAME,     'hyd' LOC, 1 NUM FROM DUAL )
      SELECT T.* FROM T
      CONNECT BY ROWNUM <= NUM
    Expected output:
             venkatesh            hyd      2
             venkatesh            hyd        2
             prasad                 hyd        3
             prasad                   hyd      3
             prasad                   hyd      3
             krishna           hyd       1Edited by: Nag Aswadhati on Nov 1, 2012 12:34 AM

    Nag Aswadhati wrote:
    Hi All,
    I want to display the rows number of times as the value exists in num column in the below query
    Expected output:
    venkatesh            hyd      2
    venkatesh            hyd        2
    prasad                 hyd        3
    prasad                   hyd      3
    prasad                   hyd      3
    krishna           hyd       1Using Connect By:-
    with t AS
       ( SELECT 'venkatesh' NAME, 'hyd' LOC, 2 NUM FROM DUAL
         UNION ALL
         SELECT 'prasad' NAME, 'hyd' LOC, 3 NUM FROM DUAL
         UNION ALL
         select 'krishna' name,     'hyd' loc, 1 num from dual )
      select t.name, t.loc
      from t
      connect by level <= num
             and name = prior name
             and (prior sys_guid() is not null);
    NAME      LOC
    krishna   hyd
    prasad    hyd
    prasad    hyd
    prasad    hyd
    venkatesh hyd
    venkatesh hyd
    6 rows selected

  • Needed to make baseline date non-editable

    Hi Gurus,
    My requirement is to make baseline date non editable for miro.Please help how to proceed for this.

    Hi,
      In txn. SHDO create a screen Variant for the tcode MIRO  (prog. SAPLFDCB, Screen 0020).
    Then click on Create icon from top
    It will open the MIRO screen, then click on payment tab, maintain entries in baseline date then clik enter it will popup one screen, there you need to flag under "output Only" for Baseline date, then save.
    this setting will make non editable field.
    Regards
    GK.
    Edited by: Gnana Kumar on Oct 28, 2010 2:34 PM

  • How to create a secure & non editable PDF? So that it cannot be modified by any of the secondary too

    How to create a secure & non editable PDF? So that it cannot be modified by any of the secondary tools available online for security breaks and editing of PDF document
    I put all the security options but still there are tools to break the security (even password) leading to editing of document
    Need to avoid any such situation

    If the document is important, and there is something to be gained by modifying it - then someone will just make a new copy of it (e.g. print and scan, screen capture), and make a new document, then change it.
    If protecting the integrity of the document - proving it is unchanged - is the thing, look at digital signatures. Forget security, the signed file can be freely edited, but the signature will always show it is changed.

  • How to make a particular field editable in a Form/Empty View

    Hi All,
    I want make a particular field editable in a Form View. Means i have 5 fields in the Form View and out of 5 fields i want to make one field editable or input field. Can you plz tell me how to do that?
    thanks & regards
    Madhusudan

    Hi,
    You can achieve the same by two methords.
    1) Goto configuration of the view in which you want to make fields editable/ non editable. Click on your field. Click on field properties. On the menu you can click on Display only. It will make your field non editable. If you remove the check, it will be editable.
    2) Goto Get_I_fieldname methord of your field. There write code rv_disable= 'FALSE'. Field will become editable. rv_disable= 'TRUE' will make field non editable.
    Best regards
    Pankaj Kumar

  • How do I save a non editable version of a form

    I want to make a form non-editable after I have filled in the fields. How do I do this?

    With Reader your options are very limited. Basically the only thing you can do is to digitally sign the document, which can lock the fields and prevent them from being edited while the signature is still valid.

  • Making some rows non-editable in ALV grid

    hi
    I am using reuse_alv _grid _display to display the output. I want to make some of the rows non-editable based on some conditions. please help.

    Hi Vijay / Manisha / Murugan
    Is this question answered? The link is presently not working.
    I have a same requirement. I am using reuse_alv _grid _display to display the output. After click on 'Add row'
    button, the alv should add a row in edit mode and remaining all other rows in display mode. Is that possible using reuse_alv _grid _display?
    Any kind of inputs regarding this will be damn damn helpful. Thanks.

  • 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

  • I want to make a textfield non editable with blinking cursor,and the text is input from a custom keypad

    I want to make a textfield non editable with blinking cursor,and the text is input from a custom keypad....
    Please Help me.
    I want to make a numpad of my own from which i can set the text but i want the user to tap in between the text..

    You seem to stop the while loop to run the following code, then the program ends. Are you running this using the "continuous run" button????
    You need one big while loop containing the acquisition, then you build up the history data in a shift register. Clicking "save" will save the data, but not stop the loop.
    Why did you place a time-control in the FOR loop??? This is just post-processing so it should just do it without any delays. I don't understand the logic in the FOR loop. You are appending arrays, but then you delete the first element at each iteraction constantly trimming data from the beginning of the appended array. Then you autoindex at the output tunnel heavily duplicating all data. Ths make s no sense!
    Can you explain how you want you data saved?
    Message Edited by altenbach on 12-16-2005 11:20 AM
    LabVIEW Champion . Do more with less code and in less time .

  • Make 1 field non-editable while using transaction VA02.

    Hi,
    I want make a field non-editable under tab 'shipping' for transaction VA02. I know one way of doing it by adding code to  MV45AFZZ -> USEREXIT_FIELD_MODIFICATION. is there any other way ( other user-exit / BADI) to achieve the same.

    Hi,
    Please go through this link... It tells you the step to follow....
    http://www.sap-basis-abap.com/sapbs010.htm
    Also please refer these posts..
    Re: Transaction Variants & Variant Transactions
    Re: Transaction Variants

  • How to make Mvt allowed indicator editable in CJ20N transection ?

    Dear Experts,
    How to make Mvt allowed indicator editable in CJ20N transaction ,I want to control material issue by reservations,waiting for your suggestions.
    Thanks

    What is the object status? if the status is Started, you might have problems becouse that status does not permit cost assignments.
    As the previous reply, at the moment of the release, you will have this field editable.
    Best Regards.

  • How to set the field non-editable in the classical report..

    Hi..
              How to set the field non-editable in the classical report..

    Hi experts,
    For the component 'ICCMP_EMP_SRCH' there is a view 'BUPAEMPSEARCH' , which has 2 context nodes 'CUSTOMER' AND 'SEARCHEMPLOYEE' , i need to add the field 'NICKNAME' which is part of the 'CUSTOMER' context node on the search screen. Currrently all the fields on the screen screen are from the 'SEARCHEMPLOYEE' context node. when i did the configuration , the 'NICKNAME' field is greyed out . I have already generated the Getter ,Setter , GET_I, GET_M methods for the 'NICKNAME' field and the context node and controller class and context class are all active .
    on debugging the GET_I method, i see that rv_disabled = 'TRUE' and the current = collection_wrapper->get_current( ) is returning empty value .
    for this rv_disabled to be set false , the code below is not triggered since there is no value in current.
    IF current->is_property_readonly(
    'NICKNAME' ) = abap_false. "#EC NOTEXT
    rv_disabled = 'FALSE'.
    ENDIF.
    when i check for other search fields of context node 'SEARCHEMPLOYEE' , all the fields are set to rv_disabled = 'FALSE'.
    can anyone suggest how to approch this. iam i missing any binding between context nodes or any activations ?
    The field properties are set as Input field and the display checkbox is not checked.

Maybe you are looking for