How to make a tabular form readonly based on an item value

Hi everyone,
I am getting there, but I need to make a tabular form read-only based on an item value.
I've copied this from somewhere (thanks) and changed it for my needs and it works great to set the second column of my form
to read only.
    var els = jQuery('#Entry_Form input[name="f02"]');
    /*var r = confirm("els is " + els);*/
    els = els.filter(function(index){
      return jQuery(this).val() != "";
    });Just need to set the jQuery selector to jQuery("td[headers='PRODUCT_NAME']"), cos that's my column name.
also need to give a static id of Entry Form to the form.
I'll try to understand what this code means exactly one of these days, but now I need to make
the whole tabular form read only based on a text item, :P5_CONTROL.
Grateful for any help on this, in the above format if possible. Greek to me but compact and it works.
Regards.
Leckraj

Hi,
actually, there is no code, just one dynamic action. You may have to change the event which triggers it.
Event: Change
Selection Type:     Items(s)
Item(s): P1_ED     
Condition: equal to     
Value: D
True Action 1
Action: Disable
Fire On Page Load: yes
Selection Type: jQuery Selector
jQuery Selector: input[id^="f"]
True Action 2
Action: Disable
Fire On Page Load: yes
Selection Type: jQuery Selector
jQuery Selector: input[id="check-all-rows"]
False Action 1
Action: Enable
Fire On Page Load: yes
Selection Type: jQuery Selector
jQuery Selector: input[id^="f"]
False Action 2
Action: Enable
Fire On Page Load: yes
Selection Type: jQuery Selector
jQuery Selector: input[id="check-all-rows"]
Regards, Garry

Similar Messages

  • How To Make A Tabular Form Field Conditionally Readonly

    Hello.
    I am using Apex 4.0.1. I've created a tabular form on the EMP table and have made the ENAME column a select list that is being sourced from a simple SELECT query like:
    select distince ename d, ename r from emp order by 1
    When a user selects "KING" as the value, I would like this ENAME field on this specific row in the tabular form to become readonly. If some other value is chosen from the ENAME drop down, then this ENAME field should remain "changeable".
    If the user clicks the "Add New Row" button on the form, a new row should be added to the bottom of the form with this ENAME field as "changeable". Only if the user selects the "KING" value from this ENAME drop down should this filed become readonly.
    Does anyone know how to go about doing this kind of conditional readonly on a tabular form field?
    Thank you for any help.
    Elie

    Hi Little Foot (I do like that name).
    Here's the link to my thread: "How to conditionally make a specific row in a tabular form readonly":
      Re: How To Conditionally Make A Specific Row In A Tabular Form Read Only.Hope this helps you as much as it does me.
    Elie

  • How to make a Tabular Form display NO rows until queried

    I have a Tabular Form designed to displays rows according to user selections made in Page Items.
    The Page for this Tabular Form is accessible from 2 origins.
    1. Passes values into the Page Items. (I want all rows to display according to the values passed in)
    2. A tab (Not the Standard Tab Set which allows selection of a values to pass to the page)
    I can accomplish number (1) above,
    But
    Number (2) is the problem.
    In the case of number (2) I don't want any rows displayed until the user selects the "Search" button.
    Can someone help?

    Hi,
    You can make the report region conditional.
    Display the region when
    1) Seach box is not empty
    or
    2) Request = XYZ
    when uses passes the value to page item , make sure it also passes REQUEST as XYZ..
    Regards,
    Shijesh

  • How to make the Tabular Form for Inserting records only?

    Hello Experts
    I need to create a Tabular form page to use it to insert records only. I do not want to update or delete records. I want the user to fill some fields and then validate it and submit. Also, I need to add a field that shows the sum of a specific field of the added records.
    Thanks a lot for all your help.

    UPDATE_LTD
    For Maintain subset of data (Update selected data)
    SHOW_LTD
    Display subset (Display Selected Data)
    TVIMV-VARIANT
    Variant name. Use variant (only with UPDATE_LTD, SHOW_LTD and TRANSP_LTD)
    For more information refer the below link
    [Maintain parameter transaction code|http://help.sap.com/saphelp_webas630/helpdata/en/a7/5134f9407a11d1893b0000e8323c4f/content.htm]
    Hope this helps.
    Thanks.,
    Balaji

  • How to make a SELECT LIST READONLY

    Hi,
    I have a form to update the existing values in a table. Primary column is based on a Select List.
    So when user goto update screen they SHOULD NOT BE ABLE TO CHANGE the primary filed(means the value display in the Select List).
    SO to make this one I have make that select list read only. But not like other items even when we make select list read only it still allow user to change the value. So basically read only property not working for select text.
    There are many post in this regading same issue. Some of them recomended to make it disabled. But when we make a item disabled then when user POST that form, Apex not POST any disabled item values. Basically disabled items values not passing next form. So making item dissable also not a solution.
    I have read almost 20 post in here regarrding this and didnt get any solution for this. So please let me know if anyone knows how to make a select list read only (which is working same as read only text boxes, means that value pass when user POST the form).
    Thanks in advance...
    mc

    You define a function(this is based aorund jQuery selectors) in the page header like
    <script>
      var makereadonly = function(selector, makeReadonly) {
          $(selector).filter("select").each(function(i){
              var select = $(this);
              //remove any existing readonly handler
              if(this.readonlyFn) select.unbind("change", this.readonlyFn);
              if(this.readonlyIndex) this.readonlyIndex = null;
              if(makeReadonly) {
                  this.readonlyIndex = this.selectedIndex;
                  $(this).css('background-color','#CDCDCD'); //Adds a background colour to readonly item
                  this.readonlyFn = function(){
                      this.selectedIndex = this.readonlyIndex;
                  select.bind("change", this.readonlyFn);
          //For input items
          $(selector).filter("input,textarea").attr('readOnly','readOnly');
          $(selector).filter("input,textarea").css('background-color','#CDCDCD');
    </script>and apply it using a jQuery selector (call it in the "execute on page load" or any other JS code)
      makereadonly('#ITEMNAME1,#ITEMNAME2,#ITEMNAME3',true);Not that all of these methods(that act at the client side) will only prevent the user from modifying it 'normally', they could manipulate these readonly items using Javascript(or using firebug or any tool like that). So its better to make sure that your don't use the item value(from the page) for processing.

  • How to make a PDF form with expanding tabel or expanding fields, like in Word.

    How to make a PDF form with expanding tabel or expanding fields, like in Word.

    This is currently not possible in Formscentral. It is something we are working on for the future. Please stay tuned.
    Andrew Yarborough

  • How to make the oracle forms 10g applet or runtime the size of 1024x768?

    Hi,
    Can anyone tell me
    How to make the oracle forms 10g applet or runtime the size of 1024x768?
    Thanks in advans..

    Please post your question in Forms Topic
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • How to make a ADOBE FORM as interactive??

    Hi experts,
                       Please anybody share how to make a ADOBE FORM interactive ? It means the content of the form ( text field etc.,) can be varied ( selected dynamically ) and also the form should be freeze later , so that it cannot be edited again ,.
                    Thanks in advance!!

    Hi shukla,
    Thanks for u r response.
    Here my problem is i created webdynpro component view with interactive element .And i set the all required properties also like checking enable checkbox ,pdfsourcr,formname allthe requird things i did and i developed one adobeform using sfp tcode. In that form they are some input fields are their. and i activated every thing sucessfully.
       while executing webdynpro app i am getting pdf also.But in that pdf i cant able to fill the input fields..i checked with javascript code , and different layouts also but still it will be not editable in pdf..
    I need the solution for this........ Pls help me, I stucked with thispoint ,and its urgent...
    Regards,
    Venkat.

  • How to make a contact form script

    i need help in how to make a contact form script, and how to
    insert it into dreamweaver ugent

    Does your host support PHP? If so -
    http://sourtea.com/articles.php?ref=30
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    COMING SOON - Infooki [unboxed]:
    http://infooki.sourtea.com/
    Web Dev Articles, photography, and more:
    http://sourtea.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "alagie82" <[email protected]> wrote in
    message
    news:em6gmt$q2n$[email protected]..
    >i need help in how to make a contact form script, and how
    to insert it into
    >dreamweaver ugent

  • How to Make a Registration form

    Hi
    Can any one please tell me how to make a registartion form in Oracle9iAS Portal
    for e.g
    Login Id..
    Password..
    First Name..
    etc
    i want to insert data and then login with that user name and password actually in which table should i insert the data .....
    Any other suggestions which can solve the purpose would be of great help
    Please Help!!
    Regards
    Pooja

    In the PDK-Java is Subscriber Registration Portlet (see: http://portalstudio.oracle.com/servlet/page?_pageid=414&_dad=ops&_schema=OPSTUDIO&_mode=3)
    Please, check that one first.
    Regards,
    Jari
    null

  • How can I make invoice when down payment is bigger than item value ?

    Dear all,
    please, I need make invoice with bigger down payment than the item value.
    How can I make invoice when down payment clearing value is bigger than the item value ?
    When I do Release To Accounting, I have got a massage:
    "Total of down payment to be billed too high. See billing document item XXXXX"
    Please, how can I solve this problem?
    Thank you
    Peter

    Hello,
      I would like to underline that this is not a problem, but a standard, and in my opinion rightful behaviour of SAP: in a dowpayment process, when you create the invoice document, you should deduct only an amount less or equal to the invoice amount. And in the following invoices you will deduct the remaining downpayment amounts still open.
    Also under al legal and fiscal point of view, I guess how would you print the invoice? With a minus value?
    Best regards,
    Andrea

  • How to find bpel instance in 11g based on the index values

    We have 10g BPEL process where we define 4 index values for all the instances. Whenever support request comes, we ask index values and based on that we search the process instance.
    We have migrated this 10g bpel process to 11g now. How to find bpel instance in 11g based on the index values ???

    I have multiple bpel in my composite. I checked in ci_indexes table and it shows the instance number of the bpel process. But the em console is showing only the composite instance number. when I opened composite instance, I could see all the bpel process with instance number in the audit trail. How can I find the the actual composite instance number that I should search for in the em console ???

  • How to make a custom form, buttons etc... please...

    I mean, how to make a form (for example, JFrame) with arbitrary form (geometry, for ex, round, oval, star like etc). I think you understand what i mean.
    Of course, i think i can use winApi, but it's only for windows. It doesn't suit for Java in this problem solution.
    That question also about cusomizing form of buttons, fields.. etc..
    i think, everything.
    What can java allows to cusomize and what not.
    Thanx!!

    I am just a learner and so i can just suggest you a strategy to implement Customized forms in JAVA. However i am sure that in practice it will work as far as Windows OS are concerned. Here is it:-
    The basic IDEA is to declare a native function in JAVA that makes JNI calls which will be further processed by Win32API and processed output will result into an elliptic or any polygonal shaped forms.
    To achieve declare some function as follows:
    public native void createEllipticalForm(formName formRefrance);
    create a Win32 Compiled DLL that manages this function as follows:
    (Mindwell, i havent stated what you call as pure-code but just a pseudo-code to the actual implementation)
    public native void createEllipticalForm(formName formRefrance)
    /* Search for the below stated Functions in Win32 API and work on
    them. I see a ray of success if you work with these functions properly.
    Further-more I assume that you are aware with concept of HANDLES */
    createEllipticRegion(); //WINDOWS.H
    showWindow(handleToTheForm); //WINDOWS.H
    Search for "createEllipticRegion() or showWindow()" on the GOOGLE to get the pure win32 API Code for Creating Customized Forms.
    Reply me in case any of you people get a solution based on my idea.
    [by VISH]

  • How to make a search form with required items?

    Hi
    I am using JDeveloper 11.1.1.2 and JHeadstart 11.1.1.2.29
    I want to make a Search-form for Searching Employees. I want to search for Last Name OR First Name OR Maximum Salary OR ( Combination ManagerID and DepartmentID). One of these is required.
    On the view object for Employees, I defined a view criteria for the search.
    In JHeadstart, I disable Quick Search and set Advanced Search to model-samePage and Advanced Search View Criteria to the view criteria I just defined.
    But now, I can also personalize the Advanced Search. How can I disable this?
    And is this the right way to create such a Search-form or do you have other suggestions?
    Regards,

    The model-based search is standard ADF functionality.
    Jheadstart simply generate the search component on the page. There are a lot of addiitonal properties on af:query that you can set that we do not expose through the Jheadstart application definition editor.
    You can create a custom template to set those additional properties.
    See the af:query tag doc for more info:
    http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_query.html
    Steven Davelaar,
    Jheadstart Team.

  • How to build a tabular form with a by the user insertable primary key

    I have build a build a tabular form with the wizzard. Wat should I do to make the primary key insertable by the user.
    When I change the PK from 'hidden' to 'text field', I get a checksum error when i am trying to insert.

    Fred: When you use the tabular form wizard, notice the help text on the right hand side of each page. The help page where you define the type of primary key (Existing trigger, PL/SQL function, existing sequence) clearly states
    Tabular forms do not support user entered primary key values
    Makes sense when you think about it. The MRU process needs to determine whether to update a record or insert a new record. It does that by comparing the checksums (and/or) pk values from when the page was first rendered and then when you make changes and submit it. Newly inserted rows will have a blank PK/checksum.
    If you allow user to change the PK, how will the system know which rows are new and which ones are old?
    For example, lets say you have
    create table t
    pk int primary key,
    data varchar2(10)
    )You have 2 rows
    1 red
    2 yellow
    If the PK were to be editable, user could go in and change the above to
    2 red
    1 yellow
    Now what? Would you like the system to create a new row with 1/yellow or change the existing pk=1 row to yellow? Same with the other row.
    Bottom line: The built-in processes dont support this. You can always write your own manual tabular form and implement whatever you logic you wish in your After Submit processes.
    Hope this helps.

Maybe you are looking for