Make a subform a read only

Hi all,
I'm new to scripting, a sample code will help.
I have a form with three subforms in it. One subform (subform1) contains radio buttons, radiobutton1 & radiobutton2. When radiobutton1 is selected, I need to disable subform 2 and all its elements. Same thing when selected radiobutton2, subform3 and all its elements are disabled.
How do I do this?
Any response is helpful.
Thanks.
J.

The radio buttons will be part of a RadioButton group. On the change event of that group you will add your code there. If you query the group object it wil return the value of the button that is selected. So if you have one button for Yes and one button for  No (and you have set them up to return those values, then you can use code something like this:
if (this.rawValue == "Yes"){
   subform2.presence = "hidden";
} else {
   subform2.presence = "visible";
You can also set the presence to invisible and the subform space will still be there (blank of course). Hidden will exclude the subform from the layout and if the form is created properly will reflow so there is no blank space. Make sure to save your form as a dynamic form.
Paul

Similar Messages

  • How to make few DFF fields read only in Forms

    Hello.....
    I am having an Issue in forms customization through custom.pll
    I need to make few DFF fields read only in HRMS enter and maintain form through custom.pll
    I tried with fnd_descr_flex.update_definition but in vain
    So please help me how to rectify this issue.
    Edited by: user.nazeer25 on Jul 9, 2010 5:27 AM

    Hello,
    Wrong forum.
    Ask this kind of question in the E-Business Suite forum ;-)
    Francois

  • How to make specific cell(s) read-only in a data-grid

    Hi there!
    Is there a way to make an specific cell read-only in a data-grid?
    Best regards,
    Ciro

    Hi !
    After some months... here is the solution:
    Private WithEvents _gridTaste As DataGrid
    Private Sub MyScreen_Created()
    AddHandler FindControl("GridTaste").ControlAvailable,
    Sub(s, e)
    _gridTaste = CType(e.Control, DataGrid)
    End Sub
    End Sub
    Private Sub _gridTaste_BeginningEdit(sender As Object, e As DataGridBeginningEditEventArgs) Handles _gridTaste.BeginningEdit
    ' I want do set the cell (2,0) as read only:
    If e.Row.GetIndex = 2 AndAlso e.Column.DisplayIndex = 0 Then
    e.Cancel = True
    End If
    End Sub
    I hope this post help you too!
    Best regards,
    Ciro

  • Make a volume mount read-only

    Rather than dig for my Mac OS X Server DVD, I find it easier to clone the disc onto a small partition on a hard drive.
    However, the volume always mounts read-write, and I always get warnings about low disk space because of it. (I made the partition as small as possible.) Plus, I don't want to have anything mess with my Mac OS X Server "DVD".
    I noticed that Mac OS X doesn't use fstab for mounting volumes… is there a way to make a disc mount read-only all of the time? (chmod -R a-w * doesn't cut it for me.)

    I don't mean having it mount read-only when booting from it. I mean, while the server is running normally (not booted from the "disc").
    For peace of mind, I'd like to have my "disc" always be read-only, just to make sure that it isn't modified unless I explicitly allow it.
    On Linux, I could add "ro" to the mount options. Since Mac OS X doesn't use fstab, is there some plist that determines how volumes are mounted? I'd rather not edit the /etc/rc.* files unless absolutely necessary.

  • How to make a cell/column read only

    HI All,
    Is there any way to make a specific cell read only with in a specific data form?
    Similarly is there any way to make whole column read only inside a specific data form?
    I don't want to make changes in my dimension member (e.g Dynamic Calc), i want to make these changes at data form level because, these cell/column are read only at one form but on some other data form they are editable/enterable

    If you want to make a column read only then have a look at asymettric columns in the planning admin doc, if you use them then you can make one of the columns read only.
    If you want a make one cell read only then one method could be to use javascript, you could add an extra member which is dynamic calc and point to the original member with a formula but it doesn't sound like you want to do that.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to make a DFF in read only mode

    Hi All
    There is a requirement to male an descriptive flexfield (in Puchasing PO Headers) i read only mode for all the users.
    So that user must not select any values, Is any way to do this. Any workaround is possible ?
    Regards

    Hi;
    Please follow below and see its helpful:
    [Solved] How to make a DFF segment 'Read-Only' using Form Personalization?
    Also check:
    http://download-west.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/ogenff03.htm
    Regard
    Helios

  • How to make a column as read only for update integrator.

    Hi All,
    i came across one issue while creating integrator.
    for update integrator i have column rowid.rowid is a parameter. by using this(rowid) i'am updating.i want to make rowid column as read only .
    if i enable read only for rowid,then it is passing null as parameter and inserting new row instead of updating the row.
    If any one came across this problem you can help me in fixing this issue.

    Hi Sanket,
    Thanks for reply.
    i have created a dummy column and passed the value of the orginal column values to dummy cloumn. and hided the orginal column.
    in this process i have come across same issue. it is not passing the value as parameter and instead of updating the row it is inserting an new row.
    Any alternate for this scenario.
    Thanks in advance.

  • How to make a DFF as Read only field

    How to make a DFF as Read only field

    Hi,
    You can add the read only token ($RO$) to any of the segments in the list. For example:
    segmentlist = "Context1|Segment1($RO$)|Segment2..."
    Thanks,
    Kumar

  • How to make a checkbox as read-only ?

    Hi,
      My current requirement is to make a checkbox as read-only. Previously, the checkbox has been declared as
    PARAMETERS: cb_gr AS CHECKBOX DEFAULT 'X'.
    Now am required to make this as read-only. There are <b>no screens</b> defined in the report containing this checkbox and so am not knowing where to give the statement
    LOOP AT SCREEN.
    **Make the checkbox as disabled**
    ENDSCREEN.
    It is known that this statement has to be given in the PBO of a screen. So kindly guide me at the earliest on how to resolve this issue.

    Hi aISWARYA  ,
    Here is the Example for  making the report  parameter as  Read only  using the Report  Event  ,   Dont need and  screen Number for it , becuase  your selections itself is an Defualt 1000 screen which as   PAI & PBO , in which it maintains this Report Events in it  .
    "Change the Input Fields Dynamically in a Screen
    'The following example may help you:
    SELECTION-SCREEN BEGIN OF BLOCK 001.
    PARAMETERS: P_MRU  RADIOBUTTON GROUP SEL DEFAULT 'X' USER-COMMAND AC,
                P_PART RADIOBUTTON GROUP SEL.
        SELECT-OPTIONS P1 FOR <field> MODIF ID PRT.
        SELECT-OPTIONS G1 FOR <field>  MODIF ID MRU.
    SELECTION-SCREEN END OF BLOCK 001.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF P_MRU = 'X'.
          IF SCREEN-GROUP1 = 'PRT'.
            SCREEN-INPUT = '0'.
          ENDIF.
          IF SCREEN-GROUP1 = 'MRU'.
            SCREEN-INPUT = '1'.
          ENDIF.
      ELSEIF P_PART = 'X'.
         IF SCREEN-GROUP1 = 'MRU'.
           SCREEN-INPUT = '0'.
         ENDIF.
         IF SCREEN-GROUP1 = 'PRT'.
           SCREEN-INPUT = '1'.
         ENDIF.
      ENDIF.
      MODIFY SCREEN.
    ENDLOOP.
    Reward points  if it is usefull .......
    Girish

  • How to make a schema really READ ONLY

    Our legacy database is on 11.2.0.1/Redhat. Last week, one developer by accident changed the legacy schema by executing drop/creat/alter table commands. This causes big problem. Now we want to make the legacy schema absolutely read only. Thus nobody can change the schemas object and data.
    There were posts talked about make the tablespace toe read only. That stopped inserting/deleting but one can still change the schema objecs with create, drop and alter, e.g.11:31:41 SQL> create table DUMMY(dummy int);
    Table created.
    11:32:06 SQL> alter table dummy add ( address varchar(20));
    Table altered.
    11:24:14 SQL> drop table DUMMY ;
    Table dropped.How can I stop this type of changes to the schema?

    Revoked most privileges from user LCCH (this is the one I want its schema READ ONLY), only leftselect distinct privilege,admin_option from (
    select r.role,user,r.privilege,r.admin_option from role_sys_PRIVS r
    union
    select 'sys',p.* from user_sys_PRIVS p order by 1,2,3
    PRIVILEGE                                ADM
    CREATE SESSION                           NO
    SELECT ANY DICTIONARY                    NO
    SELECT ANY TABLE                         NONow user LCCH can still create table in its own schema13:08:49 SQL> show user
    USER is "LCCH"
    13:08:56 SQL> create table lcch.DUMMY(dummy int);
    Table created.
    13:09:33 SQL> drop table dummy purge;
    Table dropped.I double checked the privileges granted and confirm that schema has not role granted, no object privileges granted and only the above 3 system privileges granted.

  • How i can make text item as read only

    hi
    im trying to make a text item as read only so no one can write on it i tried to make it as display item but i neeed also to call lov when i double click on the text item in display item case u can not double click
    so please how i can make text item as read only
    and another thing
    how i can change an item properties by code i mean when i click in one button the text item become visibile how i can change its property by code
    thank u

    You can set a text item's property to be non-updateable
    You can change this programmatically with set_item_property()
    :)

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I would make the signature field read only until something is entered in the mandatory fields.

    I would make the signature field read only until something is entered in the mandatory fields.

    Mina,
    You can use LiveCycle Designer's Action Builder to easily achieve this.
    Please go through online documentation for the specific version of LiveCycle Designer that you are using.
    It is intuitive and very easy to use Action Builder (You will find this option under Tools Menu item of Designer).
    --Santosh

  • Server 2003: make user template with read-only access for shared folders

    I have need to make a type of user (like Administrator, Power User, Mobile User, User, etc.) that has read-only acess to shared folders. So when I make a new user and assign the "read-only user" template I wish to have, the user can open files
    in the shared folders on the server, but not edit, save or delete files. Other users can and should remain able to edit, save & delete.
    Before I dig in, is this even possible?

    You could create a Group called ReadOnly, and set that to have Read on the ACLs of the relevant files or folders.
    Make that template user a member of that group.
    As long as they are not also a member of another group that gives them higher permissions, this would work.
    Otherwise set the ReadOnly group to deny Write, which would over ride any other permission set.
    So,
    Folder A
    ACL:
    ReadOnly : R
    Users: Read/Write
    If a user is a member of Users & ReadOnly, they would get read/write to Folder A. As permissions are cumulative.
    If you did the following:
    Folder A
    ACL:
    ReadOnly : R
    ReadOnly: Deny Write
    Users: Read/Write
    The users in ReadOnly would be denied write, as it overrides the cumulative permissions.
    Robert Pearman SBS MVP
    itauthority.co.uk |
    Title(Required)
    Facebook |
    Twitter |
    Linked in |
    Google+

  • To make table cell as read-only based on some condition

    Hello ABAPers,
    I have a requirement to make the cell in the table of a Web Dynpro component read-only. There are 4 fields in the Table of a view which is mapped to the Context attribute, i.e. function, Number, Description etc. When the value of the Field 'Function' is
    '0000016', I have to make the Number field as READ-ONLY(non-editable).
    As suggested in SDN forums, I have created the sub-node to the main node in Context and added an attribute 'READ_ONLY'. I have made the cardinality as 1:1. I have also created the Supply Function Method(ZREADONLY) for sub-node that I have created and also set the context binding to the Read only property of the field 'Number' in the View Layout.
    PFB the coding I have done in supply function method for setting the read-only attribute for the number field, but it is not working. Could anyone let me know what is the change I have to make this work?
    DATA ls_parent_attributes TYPE wd_this->element_partner_h.
    DATA l_partner LIKE ls_parent_attributes-partner _fct
    Constants c_parent LIKE ls_parent_attributes-partner_fct VALUE '000016'.
    DATA ls_zread_only TYPE wd_this->element_zreadonly
    parent_element->get_static_attributes(
       IMPORTING
              static_attributes = ls_parent_attributes).
    CLEAR l_partner.
    l_partner = ls_parent_attributes-partner_fct.
    IF l_partner = c_partner.
        ls_zread_only-readonly = abap_true.
         node->bind_structure(
         new_item = ls_zread_only
         set_initial_elements = abap_true ).
    ELSE.
        CLEAR ls_zread_only-readonly.
        ls_zread_only-readonly = abap_false.
        node->bind_structure(
         new_item = ls_zread_only
         set_initial_elements = abap_false ).
    ENDIF.
    Thanks for your time!
    Regards,
    M M Jaffer

    Hi,
    the solution is quite simple.
    Bind the property reaonly in the layout editor to the property readonly of the context-attribute.
    Therfore you have to click at the binding button of the celleditor of the property read-only.
    Then you select the  radiobutton in front of Bind to the property of the selected Attribute and choose Property R.
    In you coding you have to fo the following in case you do that after binding the itab to the context:
    node->bind_table( .... ).
    data lt_elements type wdr_context_element_set.
    lt_elements = node->get_elements( ).
    LOOP at lt_elements into element.
    element->get_attribute(
          exporting
            name = 'PARTNERFCT'
          importing
            value = lv_partnerfct
      if lv_partnerfct eq c_partner.
        call method lo_el_position->set_attribute_property
          exporting
            attribute_name = 'PARTNERFCT'
            property       = element->e_property-required
            value            = 'X'.
      else.
        call method lo_el_position->set_attribute_property
          exporting
            attribute_name = 'PARTNERFCT'
            property       = element->e_property-read_only
            value            = ''.
      endif.
    endloop.
    Of corse you have to modify the coding and i didn´t checked the syntax, baut this should help.
    Best regards, Matthias

Maybe you are looking for

  • Photoshop CS2 Quits unexpectaly

    I have an iMac running 10.4.10 and about a week ago I reinstalled tiger. I also fixed permissions and repaired the disk. Then 3 days later I go to open adobe photoshop CS2 and i t loads... then quits! I have had this problem with many applications si

  • Local Kerberos realm while bound to AD

    I installed 10.5.7 on a year old Xserve (on a freshly initialized disk) and set it up as a stand alone server. Following Bombich's guide, I then bound it to our local AD domain and made sure AD accounts could log in. This went just fine. I then promo

  • Shopping basket / checkout

    I have designed and produced my website in iWeb and need to add a shopping basket and checkout. Can anyone help me or aim me to where I need to go to get guidance / assistance.

  • Adobe elements 13 won't get past sign in after installer is done ...without sign in, no completion of installation

    Download of elements 13 --unable to complete installation as sign in with Adobe app manager just hangs up and won't connect to Adobe

  • Conditional required

    I have not been able to find an easy way to conditionally set a component required or not required. I've always ended up using hidden fields, javascript, and custom validators. It's really a pain and is hard for other people (including myself) to fol