Read-only or hidden point when page loading (onload)

I read some thread
Re: Disable the entry on the loading of the page according to the level of page element
Re: Hide the controls of the Page on the Page with JavaScript loading
and now I have simple codes below. My intention here is to make a 'readonly' text box and a button 'hidden' when the page is loaded. (I like to use the technique of script instead of directly to put code in 'Form HTML Attr Element').
But somehow, it won't work. I need a few assists. Thank you.

HEADER HTML
< script type = "text/javascript" >
function setDisabled (PageItem) {}
document.getElementById (PageItem).style.visibility = "hidden".
$x (PageItem) .readonly = true;
}
< /script >

PAGE FOOTER TEXT
< script type = "text/javascript" >
setDisabled ('P4102_ORDER_DOCNUM');
< /script >

Gamez

Hello gamez,.

Replace this in your page footer text:


EDIT:
Also change the HTML header for:


Greetings,
Rutger

http://rutgerderuiter.blogspot.com/
http://www.bloggingaboutoracle.org/
http://www.Logica.com/

Published by: [email protected] on October 13, 2008 04:47

Tags: Database

Similar Questions

  • Read only fields become unlocked when PDF is open again

    I created a quote that is has several buttons on it.  The buttons perform many actions such as the Add/Remove lines, add or remove columns, etc.  There is a "Finalize" button at the bottom of the form that locks all the text fields and hides all buttons so that they cannot be changed by the customer when the quote is sent to them.

    The problem occurs when the form is completed, saved, and then reopened.  All the buttons become visible again and the text field becomes editable when the PDF file is reopened.  Is there a way to keep the hidden buttons and text read-only fields?

    Thank you.

    The "State" of the form is not saved automatically. Under the form of file/properties/Defaults make the checkbox 'Keep changes to the scripts to form when registering' is set on automatically.

    Paul

  • How to set default, or set no.: of lines to display on the table on the page loading...

    Hello

    I use JDEV 11.1.2.0.0 and the scenario as follows. I use DeptVO as a read-only table. On the page load needed to display only 5 records and during the click on a navigation button need to display the next set of 5 collection. Please suggest if no default property is available which helps to get the same thing.

    Note:

    1 used autoHeightRows property but the table is reduced in height to 5 and there is a vertical scroll bar that scrolls to see the next set of lines.
    2 rangeSize to 5 no still no change.

    Kind regards
    Olivier G

    Hello
    Check this box
    http://andrejusb.blogspot.in/2011/05/Oracle-ADF-11g-custom-table-pagination.html
    http://smconsultants.in/2011/02/pagination-in-ADF.html

    ~ Abhijit

  • inputtext empty when the loading of the page

    Hi am in jeveloper 11.1.1.9.0, I created my programaticaly seen with no query now in my interface user experiences empty inputtext it show only inputtext label when the page load but when I delete #{bindings.usrd.inputValue}
    I can see the inputtext when page load

    Refer to:

    https://blogs.Oracle.com/aramamoo/entry/an_epic_question_how_to

    so if your page is part of the workflow, use weight first

    1 method call activity as default activity in Taskflow:


    In this case, drop CreateInsert of data control to be default activity, which then leads to your page

    If is not part of the FO, use the second option

    2. with the help of invokeAction executable:


    In this case, set PrepareModeland RefreshCondition to be refresh property

    #{! requestContext.postback and bindings.exceptionList empty}

  • align my screen to be Center when the page load

    Hi How can align my page, I have what to do with the small button and the screen must be centerd when page load, I also that the textinput to be of small size, I have what it takes to increase the size of the pane

    I always did it with a formula:

    using the Toolbox to get the size of the display window: (display image width width) / 2 for x and (image height) / 2 for y

  • Turn off the lines in the region of the table when the page loads in standard page using the CO Extension

    Hi all

    I have a requirement in standard page OAF, When page load I need to disable a region advanced table standard page column and if we add the new line this column must be activate.

    Please help an emergency.

    Kind regards

    Manoj Kumar belaid.

    Maury,

    You will have to go with SPEL. Create an extra in your VO and default attribute set to true.

    Use as the SPEL for the disabled/ReadOnly property of the column.

    Reference: advice of Oracle of Johny: OAF: Spel liaison

    See you soon

    AJ

  • Make Custom page read only according to

    Hi all

    Is anyway make a personalized page for some users readyonly? I know that we can define the rendering to false for each region, but I wonder if we have a property for the entire page.

    Thank you
    KK

    Hi KK,.
    What is a 11i or R12

    If it is R12, it is easy just by passing the region where you want to make read-only or to the entire page, pass the region of high level.

    If it's 11i, you have to copy paste the code example and call it from your application process once you've done the verification of the user.
    BTW, instead of the user check, create liability and assign this responsibility to the users, and check that the responsibility to avoid all hardcode next to user list.

    Check this thread and if you are not able to do, please update the question you face.

    How to make OA framework page Viewonly
    Single page ready
    or
    http://www.applikast.NET/technical/OA-FWK/Misc/making-an-OA-framework-page-ReadOnly

    Thank you

    With respect,
    Kali.
    OSSi.

  • How to keep the background to the point when shooting indoor basketball on a 18-135 mm t5i

    I'm new on this and so far I love my camera. However these shooting games is sometimes difficult.  How can I keep the background blur. Sometimes using autofocus, he catches someone has arms that more than the topic and I miss the shot. How to avoid that. Your help is appreciated.  Thank you

    When you look through the viewfinder, you will see 9 boxes arranged in a pattern.  These are the areas of focus.  When you use all the points the camera checks all the points and see if there is something that he can focus on at this time.  Then, he decides what is the topic and focus on that.  Sometimes it will jump back between something in the foreground and background.  But since the subject is usually at the forefront the camera will usually choose which background noise.  In your case, something happens in the foreground and the camera which is selected as the update since it is the closest.  Best way to remove is to be aware of all the AF points when shooting.  If things are too dynamic to keep all 9 free points from anyway, then move to a single point AF:

    If you want a specific choice of the update then change to read only the central point.  There should be a button in the upper right corner that allow this.  If you half press the shutter button, the camera will focus on what is at the center point.  You can then recompose (if you want) and take the picture.

  • Change of external hard drive read only to read & write

    Windows 7 64 bit - I have a drive external hard usb with a normal status of reading & writing. However, he has now suddenly become read-only. I don't know what I did to make it. Can someone tell me how I can reverse this situation back to read & write?

    It does not explain how he got in this State, but you must use Diskpart to remove or set state single reading on a drive.

    This process used to clear read only status on a disc. Commands typed are in bold:

    Microsoft DiskPart version 6.0.6002
    Copyright (C) 1999-2007 Microsoft Corporation.
    On the computer: DELL755

    DISKPART > list disk

    Disc # status size free Dyn Gpt
    --------  ----------  -------  -------  ---  ---
    Disk 0 online 233 GB 0 B
    Online disc 1 112 GB 0 B

    DISKPART > select disk 1

    Disc 1 is now the selected disk.

    DISKPART > list volume

    Volume # Ltr Label Fs Type size status Info
    ----------  ---  -----------  -----  ----------  -------  ---------  --------
    Volume 0 D DVD - ROM 0 B no media
    Volume 1 C NTFS Partition system healthy 233 GB
    Volume 2 E 112 GB of Partition FAT32 healthy Untitled

    DISKPART > select volume 2

    Volume 2 is the selected volume.

    DISKPART > detail disk

    Maxtor OneTouch III USB Device
    Disc ID: BA52D44C
    Type: USB
    Bus: 0
    Target: 0
    LUN ID: 0
    Read-only: Yes
    Boot disk: No.
    Disk swap file: No.
    Disk hibernation file: No.
    Crash dump disk: No.

    Volume # Ltr Label Fs Type size status Info
    ----------  ---  -----------  -----  ----------  -------  ---------  --------
    * Volume 2 E 112 GB of Partition FAT32 healthy Untitled

    DISKPART > detail volume

    Disc # status size free Dyn Gpt
    --------  ----------  -------  -------  ---  ---
    * Disk 1 online 112 GB 0 B

    Read-only: Yes
    Hidden: No.
    No default drive letter: No.
    Shadow copy: No.
    Disassembled: No.
    BitLocker encrypted: No.

    Volume capacity: 112 GB
    Free volume space: 75 GB

    DISKPART > attr disk clear readonly

    Attributes of the disk successfully cleared.

    DISKPART > attr volume clear readonly

    Attributes volume successfully cleared.

    DISKPART > detail disk

    Maxtor OneTouch III USB Device
    Disc ID: BA52D44C
    Type: USB
    Bus: 0
    Target: 0
    LUN ID: 0
    Read-only: No.
    Boot disk: No.
    Disk swap file: No.
    Disk hibernation file: No.
    Crash dump disk: No.

    Volume # Ltr Label Fs Type size status Info
    ----------  ---  -----------  -----  ----------  -------  ---------  --------
    * Volume 2 E 112 GB of Partition FAT32 healthy Untitled

    DISKPART > detail volume

    Disc # status size free Dyn Gpt
    --------  ----------  -------  -------  ---  ---
    * Disk 1 online 112 GB 0 B

    Read-only: No.
    Hidden: No.
    No default drive letter: No.
    Shadow copy: No.
    Disassembled: No.
    BitLocker encrypted: No.

    Volume capacity: 112 GB
    Free volume space: 75 GB

    DISKPART >

    You will need to remove the read-only disk State before you can remove the read only status of volume

  • How to access read only properties of a relationship?

    Oracle.dbtools.crest.model.design.logical.Relation in datamodeler/xmlmetadata/doc/details.html documentation specifies properties and read only properties.

    When I call the getter method isIdentifying it works fine, but if I call the isPrimaryForeignKey method only reading, I get an error (could not find method). This is the example:

    relations = model.getRelationSet().toArray();
    for (var r = 0; r < relations.length; r++) {
      relation = relations[r];
      relation_name = relation.getName();
      suffix = "_FK";
      if (relation.isIdentifying())
        suffix = "_PFK";
      if (relation.isPrimaryForeignKey())
        suffix = "_PFK";
    }
    

    What's not here?

    The isPrimaryForeignKey getter is not available, but the attribute itself is available: primaryForeignKey

  • Error: unable to copy to the output directory, destination is read-only

    Hello...

    Help, please...

    I have a project that I just check in the files + files to harvest. After I deleted all the elements I have just check-in, I again opens the project in Jdeveloper, but when I recompile and run I hit this error:

    Error: unable to copy to the output directory, destination is read-only

    Help, please... I can't do anything on this subject as it is to show read-only... When I try to compile the java files even case:

    Error writing class java.io.IOException: cannot create output file


    Help, please...

    Hello

    In Jdeveloper, right-click on the project and go to the project properties menu

    In the content of the project, you can see the output directory path field,

    go to the path and give all the permissions in the folder

    I'm not sure what harvest is, but check if this helps you

    Concerning
    Ravi

  • When I load Illustrator CC 2015 the page says Initialising... and then the program freezes and will not open. I can only successfully open Illustrator once in each tent 4 or 5.

    When I load Illustrator CC 2015 the page says Initialising... and then the program freezes and will not open. I can only successfully open Illustrator once in each tent 4 or 5.

    This drives me crazy, is anyone else having this problem or know a way to fix it?

    Thank you

    Liam

    Hi Liam,

    Please try following steps:

    1. close the AI.

    2. navigate to C:\Users\your username\AppData (hidden folder) \Roaming\Adobe\ Rename 'Adobe Illustrator 19 settings' folder 'old Adobe Illustrator 19 parameters.

    3 re launch HAVE and check.

    Thank you

    OM

  • When firefox load it also load another tab for the search engine. How can I remove this where it will load only my start page?

    When firefox load it also load another tab for the search engine. How can I remove this where it will load only my start page?

    You can check the setting of the home page and make sure that it doesn't have a leak ' |'.

    Firefox supports several home pages separated by ' |' symbol.

  • Validation of required field only when the page loads (HR test case!) included

    Hi experts,


    Here you have a simple test for Jdev 12.1.3 HR case: https://dl.dropboxusercontent.com/u/18609389/TestHR.zip

    The main.jspx is just a button which CreateInsert a record dept displayed in another page:

    Screen Shot 10-16-14 at 07.04 PM.PNG

    My problem is the following page (test.jspx) has this code to run when the page loads:

    <af:serverListener type="onloadEvent" method="#{backingBeanScope.backinBean.onPageLoad}"/>
                <af:clientListener method="onLoadClient" type="load"/>
                <af:resource type="javascript">
                  function onLoadClient(event) {
                      AdfCustomEvent.queue(event.getSource(), "onloadEvent", 
                      {
                      },
    false);
                      return true;
                  }
                </af:resource>
    

    The code is simply this (now):

        public void onPageLoad(ClientEvent clientEvent) {
            logger.severe("HR TEST.....");
        }
    

    And that's the problem, required validation is performed.

    Screen Shot 10-16-14 at 07.06 PM.PNG

    Can you tell me why?

    Thank you

    Jose.

    Don't know what is my mistake, but the code is of the actionListener button is not called. :-(

    Well, you combined two different ways to do this (from my first answer).

    If you are still reading this, you will notice "or" before the second suggestion

    Thus,.

    1. keep your clientListener under af:document tag

    2. based on javascript, you find key (use: alert ("button");)  to see if you have referenced correctly your button in findComponentById())

    And then:

    approach 1:

    Use AdfActionEvent.queue (button, true);  queue event on your action button and implement your logic in function attached to the properties of your 'actionListener' or 'action' button (if you don't need listener server in this case)

    approach 2:

    Use AdfCustomEvent.queue (button, "onloadEvent", {}, false);  the queue onloadEvent on your button (in this case you need listener server attached to your button)

    Dario

  • Entry point behaves as an output element when read-only.

    Jdev 11.1.1.3.0

    When I change the property of some entry point in a JSF form read-only, then the appearance of the elements of entry Exchange because there one point of exit.

    In addition, if there is no value in the element (especially in the case of a horizontal provision), it is difficult to tell the difference between two elements in the same line. This results in a very clumsy screen. Is there a way out to prevent this change or at least to keep the layout of the screen that will be easier to use.

    Help, please.


    Sanjay Chatterji

    Instead of using the property readOnly set to true, set the disabled property to true. This will make as a gray field.

    CM.

Maybe you are looking for

  • LPX &amp; Elcapitan

    Since the upgrade to OSX 10.11.5. LPX blocks indefinitely when trying to load a project, so I have to force quit. My work around has sometimes worked by looking for the file in user-music-logic and clicking on it to launch. When this work of doesn´t,

  • Drivers and software hp

    I have a Pavilion a324x 5years on that old OS is updated Automatic for Windows XP is and work I had to do a recovery of the system in October because work was'nt automatic updates.  I went today, drivers and software HP site and used product detectio

  • Advanced registry optimizer reports many errors after Microsoft updates

    I recently downloaded 22 this so-called upgrades and installed on a computer with zero (0) errors before downloads.  After the download and installation of my Registry Optimizer program advanced recorded 266 errors as follows.  Active X and com = 16

  • Cannot remove a folder on my c drive

    I can't delete a folder on my c drive, even though I am the administrator and I checked my permissions and have full control on the c drive.  the folder is a subfolder of a folder called backup.  the folder is a backup date and contains a copy of the

  • issue of the listener status

    HelloI am migrating the database of a domain to another controller and when I try to start the listener on the node migrated, I get the message below.He said that the listener is started but its unable to authentcate the user. Is this a problem?LSNRC