Dynamically change the attributes of HTML form elements

I have a form region that contains the elements, some attributes of the HTML Form readonly = 'true '.

It is possible to dynamically set these so I can enable / disable read only to the level element is based on a function PL/SQL (or other method).


Thanks in advance.

A bit of Javascript can do for you.

Put this function JS in the header HTML of the page


And then define a process of "after a footer" which returns the items to read only according to the conditions you decide

if pl_sql_function_to_determine_RO ('') then
   htp.script('setReadOnly(""');
end if;
....... repeat for other items

Tags: Database

Similar Questions

  • Dynamically change the attribute "display as"?

    There is a form where some fields should only be edited by connections with certain roles.
    The layout changes often, so I prefer to keep only a single shape.
    Is there a way to dynamically assign a value to the attribute "display as" (on Application Builder > Page definition > elements on the Page) for example

    If the login is admin role, Display_as = "text field.
    else Display_as = "view only".

    If the connection is the role of Manager, Display_as = "Radiogroup".
    else Display_as = "view only".

    Thank you in advance.

    Wolfram,

    Each element has a 'Read Only' condition that can apply to it. It is used exactly as conditional display. The read-only attribute can be found after the conditional display.

    See you soon,.

    Janet Tyson

  • How to dynamically change the language of a form?

    Hello

    I have a form that will be used in several countries. I needed to give the user to choose the language in a list (at least two languages, but if it can be more, that would be great )

    The only way I have found so far is to have two sets of labels text boxes and to hide with the exception of the selected language, but I still have a problem with ToolTips on the fields, that the user must type...

    Acrobat has its built-in function for do such things or JavaScript is my only hope?

    I fear my form will receive 'a bit' messy if I do with 5 set of fields of the label: s

    What is - that you want to change, exactly? I can think of: button

    legends, drop-down and eventually the defaults options and ToolTips for

    text fields... If it's too much work for the script, which, then you should

    consider just creating different copies of the file, one for each language.

  • Attributes of HTML form elements

    Hello

    Is there anywhere I can get a list of the different actions that do not exist for me to process on the different points of the apex page onKeyUp, onChange, etc.. I tried Googleing but without success. I wish especially to the associated actions of LOV

    Thank you

    Chris

    Chris,

    If you mean you want a list of events, here's a good reference http://www.w3schools.com/tags/html5_ref_eventattributes.asp. There is more info on HTML and JS, not created Apex of events. So all you need to do is look something like "HTML elemets events..."

    Thank you

    Sam
    Please reward the right answers by marking correct or helpful!

    Published by: Sam06 on September 23, 2009 08:38

  • How to programmatically change the attribute of af:message.for?

    < p >
    I would like to know how, if possible, dynamically change the attribute 'for' of the af: message in the code for the validator in my grain of support. In my example below, I would like to change the af: message for the 'txtReportNumber' attribute 'txtCaratWeight '.

    I have included an excerpt from the next page
    & lt; AF:panelGroup binding = "#{backing_ReportVerificationCriteria4.panelGroup2} '"
    ID = "panelGroup2" layout = "vertical".
    styleClass = "body_text15" & gt;
    < /p >
    < p >
    & lt; < color = "#ff0000" > af:message < / police > binding = "#{backing_ReportVerificationCriteria4.message1} '"
    ID = "message1", color = "#ff0000" > for = "txtReportNumber".
    < / police > inlineStyle = "font family: Gil without, Verdana, Arial, Helvetica, without serif;" do-size: 15px; color: #FFFF00; make-weight: bold; left margin: 0px; Max-width: 300px; line-height: 5px; < br / >
    messageType = "none" / & gt; < br / >
    & lt; AF:objectSpacer width = "10" height = "10" < br / >
    Binding = "#{backing_ReportVerificationCriteria4.objectSpacer1}" < br / >
    ID = "objectSpacer1" / & gt; < br / >
    & lt; / af:panelGroup & gt; < br / >
    & lt; AF:panelGroup binding = "#{backing_ReportVerificationCriteria4.panelGroup3}" < br / >
    ID = "panelGroup3" layout = "horizontal" < br / >
    inlineStyle = "font family: Gil without, Verdana, Arial, Helvetica, without serif;" do-size: 11px; color: #052149; margin left: 15px; line-height: 14px; "& gt; < br / >
    & lt; AF:outputLabel value = "number of statement:" < br / >
    Binding = "#{backing_ReportVerificationCriteria4.outputLabel5}" < br / >
    ID = "outputLabel5" < br / >
    inlineStyle = "do-family: Gil without Verdana Arial Helvetica without serif;" font-size: 11.0px; Color:RGB (5,33,73); line-height: 14.0px; "/ & gt; < br / >
    & lt; AF:inputText label = "number of statement:" < br / >
    Binding = "#{backing_ReportVerificationCriteria4.txtReportNumber}" < br / >
    < color = "#ff0000" > id = "" txtReportNumber < / police > ' columns = "20" simple = "true" < br / > "
    inlineStyle = "do-family: Gil without Verdana Arial Helvetica without serif;" font-size: 11.0px; Color:RGB (5,33,73); line-height: 14.0px; "< br / >
    showRequired = 'false' immediate = "false" < br / >
    Validator = "#{backing_ReportVerificationCriteria4.txtReportNumber_validator}" < br / >
    requiredMessageDetail = 'Both report number and Carat weights are necessary.' < br / >
    required = "true" / & gt; < br / >
    & lt; / af:panelGroup & gt; < br / >
    & lt; AF:panelGroup binding = "#{backing_ReportVerificationCriteria4.panelGroup4}" < br / >
    ID = "panelGroup4" < br / >
    inlineStyle = "font family: Gil without, Verdana, Arial, Helvetica, without serif;" do-size: 11px; color: #052149; margin left: 15px; line-height: 14px; "< br / >
    page = "horizontal" & gt; < br / >
    & lt; AF:outputLabel value = "Carat weight: ' < br / >" "
    Binding = "#{backing_ReportVerificationCriteria4.outputLabel6}" < br / >
    ID = "outputLabel6" < br / >
    inlineStyle = "do-family: Gil without Verdana Arial Helvetica without serif;" font-size: 11.0px; Color:RGB (5,33,73); line-height: 14.0px; "/ & gt; < br / >
    & lt; AF:inputText label = "Carat weight:" < br / >
    Binding = "#{backing_ReportVerificationCriteria4.txtCaratWeight}" < br / >
    < color = "#ff0000" > id = "" txtCaratWeight < / police > ' columns = "20" simple = "true" < br / > "
    inlineStyle = "do-family: Gil without Verdana Arial Helvetica without serif;" font-size: 11.0px; Color:RGB (5,33,73); line-height: 14.0px; margin-left: 7.0pt; "< br / >
    Validator = "#{backing_ReportVerificationCriteria4.txtCaratWeight_validator}" / & gt; "" < br / >
    & lt; / af:panelGroup & gt; < br / >
    < /p >

    Hello

    the field 'for' supports the El. So you can use a reference of bean managed to replace the value

    Frank

  • ID attribute in the attribute of the html form element of: p1_item

    Hello
    How can I place id = 'demo' in the attribute of the html form element of: p1_item. It does not. There error Throughing attributes, •size and ID do not have to be specified. (Go to the error)




    Thanks and greetings
    CORINE

    I just tried the thing above with dynamic Action and its works for me

    If possible for you, please try dynamic action "during the click on the button" with "execute Javascript Code.

    and write it in the code

     $(".demo").css("background-color","yellow"); 
    

    and it will work.

    Kind regards
    Tauceef

  • The HTML Form element attributes: Onchange

    Hello
    I get an error when I have two "Onchange =" for an Items element. Its shape and I want to be able to click the Previous and Next button to scroll through the records, but one already has an Onchange when the other Onchange is added I get an error:
    The form Creation Wizard of paging uses
    the JavaScript onChange event to alert users
    When they are about to leave a page without
    save their changes. Remove the onChange
    event from any article with a database source
    Column, restart the wizard.
    Is it possible to have two Onchange =... to an article 'Attributes of the HTML Form element'?

    You are welcome!

    Concerning

    Andy

  • Disable the Textfield object when you change the HTML form element

    How to disable a texfield if you change the HTML form element? It must be activated at the creation of the new entry form / record.

    Yogesh

    Select 'Read only type of condition' as a value of the element in Expression1 is NOT NULL and in Expression1 put your key primary name of the option to for example P1_EMP_ID

    Kind regards
    Hari

  • the html form element attributes

    Hey guys,.

    Have a question about the attributes of the html form element
    For a P1_Code element, I have an onchange = attribute "f_TestOnDemand (this.value)" "
    Now if I want to add another attribute to the same P1_Code element, how to combine the two

    the two attributes that I want to include for the same item are:

    OnChange = hilitebtn (this.value)
    OnChange = "f_TestOnDemand (this.value)" "

    Thank you guys
    Appreciate your help
    Jesh

    Jesh salvation,

    You must specify JavaScript functions in a defined mode of semcolon. In your example it will be as follows.

    onChange = "hilitebtn (this.value); f_TestOnDemand (this.value)" "

    Thank you best regards &,.
    Vikas

    You can reward this answer by marking as being useful or correct ;-)

  • How to change the color of a page element, which is a static source

    I have a page element that is not a label, but the source of the element is always static. It will show always INCOMING in this source. ENTERING is coded under Source in the Source value or expression hard. The customer wants the INCOMING to be bolded Word. I added the code ccss to "BOLD" in value, but it is important where I put the value will not be in bold.

    Thank you
    Patti Spycher

    Put the following in the HTML form elements attributes of your

    style="font-weight:bold;color:darkblue;font-family:Courier"
    

    See this example:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:68

    by choosing employees of list selection and running "search".

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Dynamically change the order of the components

    Can I dynamically change the order of the components (input text entry LOV, etc.)  inside the layout of the Panel form?

    Currently in 11.1.1.7 but may be considered if necessary upgrade

    Yes, you can.

    See the example attached to this bug: https://java.net/jira/browse/JAVASERVERFACES-2390

    Dario

  • How do I dynamically change the the number of vCPU and amount of a virtual computer memory?

    Hi all

    My first question is how do I dynamically change the number of vCPU and amount of a computer virtual memory when the virtual machine is running? If so, this may be achieved by writing a few scrpits to inform the hypervisor?

    My second question is, I can start a virtual machine in KVM with the number of vCPUs and amount of memory configured in the startup script. I don't know if this is supported in vmware ESXi?

    I couldn't find the answer in the ESXi 5.0 user guide.

    Your suggestion will be highly appreciated.

    Cheng Wang

    http://sparrowangelstechnology.blogspot.com/2012/11/hot-add-of-CPU-and-memory-to-virtual.html

    You can change the ram and the CPU, but it must be enabled.

    by default, only it isn't.

    See this link to change the settings of vm via powercli

    http://ICT-freak.nl/2010/05/07/PowerCLI-script-to-schedule-memory-and-or-vCPU-updowngrade/

  • Dynamically change the cursor?

    Hello

    I want to be able to change the cursor that appears when I rollover text. Basically, I have text/button that can only be clicked when another action has been performed, I wish that this button at the start have the default cursor, and then change the cursor/pointer when the user has run this other action.

    Is it possible to dynamically change the cursor through the code?

    Thanks for your help!

    $("button").css({'cursor':'default'});)

    More information: cursor CSS property and HTML DOM Style cursor property

  • is it possible to dynamically change the industrial action.

    Hi friends,

    I have a scheduler job to call the shell script. Is it possible to dynamically change the industrial action (IE change the name of the shell script based on requirement).

    My basic idea is to have a scheduler job to call different shell scripts based on requirement.

    Thanks in advance
    Jeeva.

    You can try using DBMS_SCHEDULER. SET_SCHEDULER_ATTRIBUTE with:

    attribute => 'JOB_ACTION'
    
  • dynamically change the selection table of

    is it possible to dynamically change the table used in a select statement for an interactive report 3.2 on 11g database? I have a series of similar tables, one for each month of the year. I want to click a month on one page and to set up a table for this month report. I want to use a page for this report and have all the links from the link to the previous page on the same page, just different results based on what month has been clicked.
    I know I could just install 12 different reports and conditionally display each region based on a value passed to the page, but I prefer to create only a single page and a report on this page.

    Thanks for ideas or solutions.

    Hello:

    Because the tables involved are fixed for a given month, you can try something like

    select * from tab_1
    where :p_mth=1
    UNION
    select * from tab_2
    where :p_mth=2
    UNION
    ....
    select * from tab_12
    where :p_mth=12
    

    only the query for the IR. "P_MTH" is the page element has the value entered by the user for the months for which data should be retieved.

    CITY

Maybe you are looking for