Read only date picker in an updatable query

Dear all,
There is a date picker component in my application. I need to disable data entry or any changes in a known condition. However when I create a dynamic action it only make the text field readonly.
__Please be advised that the date picker is in an up-datable query__ .
It also would be practical if I would be able to hide the javascript date picker button.
regards

Solved my problem by adding the following codes into the datepicker javascript:
if (document.getElementById(dateFieldName).readOnly)
return false;

Similar Messages

  • Editable and Read-Only Date Picker have different display formats -- Bug?

    Hi all,
    This is a follow on to a previous posting about getting a Date Picker field to display read-only (Date Picker and Read-Only Condition works on LAST state of element
    Now past that hurdle, I have noticed something about the date picker field when it is displays read-only. Namely, the date format is not the format selected, nor does the read-only date format comply with the format mask in the source section.
    I've modified my small test app to work as intended in order to demonstrate this feature. I also opened it up so everyone can see it <blush>. You can find it here: http://htmldb.oracle.com/pls/otn/f?p=42513: Please navigate to the Update Project tab.
    When a project in Program One through Four is selected (which has a Spec Committed date), the date is displayed DD-MON-YY format. When a project the other Programs (which do not have Spec Committed dates at the time of this writing) are selected, and a date value selected with the date picker, the date is displayed in the anticipated DD-MON-YYYY format.
    Anyone else notice this, or have I just missed something obvious?
    Thanks,
    Petie

    I'm not sure why this happens but to work around it I added this before header process code to the page:
    execute immediate 'alter session set nls_date_format = ''DD-MON-YYYY''';
    Scott

  • Tabular Form Read Only Date Picker

    Hello,
    I have two or three Items with date pickers and do not want to implement
    this code because it will be too many buttons on my form. I need to clear one item
    at a time when the datepicker is readonly but, in a tabular form.
    function f_clear_items()
        {$x('P1_ITEMA').value = ''};
        {$x('P1_ITEMB').value = ''};
        }Then once I create a url button and pass this function I can clear the datepicker's. But, I
    was wondering is there a cleaner way to this.
    I have other items on the page that are named the same but, in different tables. I only want
    to clear each date picker item at a time. This code works fine for a regular form.
    -Element Post Element Text for the Item to Clear
    a href="javascript:setValue('P1_ITEMA','');">Clear Date</aThere is a thread named 'How to clear a read only page Item...?' that states how this code works but, does not
    work for a tabular form in a Master Detail page. There is a link on side the Date Picker to clear item specified but, in a tabular form Item, there is no Element tab, any ideas on how to clear a readonly date picker item using a tabular form
    and not using a button for each item, thanks in advance. I am using Application Express 3.2.0.00.27.

    Dan,
    I totally understand your point of view. So, this tabular form aspect was not tested once the Clear Date link was discovered to clear a Read Only date field. Yes, using a button to clear a date is great but, I do not want to clear every date or specified item with the click of one button for this application. It is very useful but, not for my needs at the moment.
    Basically, if a date is selected and it needs to be cleared out you can just delete the value. But, if the date is readonly you can not clear/delete the date value unless you have the Clearing functionality for a particular item using the datepicker. It may not be worth the trouble Dan like you state by adding this extra code to the calender. If an invalid date is entered an error will appear anyway.
    Thanks alot Dan for expanding my mind and showing me some JQuery and providing me with this link to do some further research if needed, thanks again.

  • Using cache for read only data

    In my application I have to display some read only data (in number of drop down present on several portlets)
    this data might be driven from the database or from some XML/property file.Not decided yet.
    for example : Country /state/City/Zip code etc..
    Kindly let me know how can I implement the same in Weblogic Portal 10.0.
    Do I have to use some third party caching mechanism like Hibernate cache for this
    or
    Weblogic portal do support caching ??
    Please suggest the all possible soultions to implement this.

    Cache cache = CacheFactory.getCache("yourCache"); //any name can be passed, and you can create as many as you want , perhaps by functionality, perhaps by size etc. If you want to configure statically you must use this name in the xml file. If you define it in the xml file , you can administer the cache from Portal Admin
    cache.put("key","value");
    cache.get("key");
    There are other advanced things you can do like Time To live / flushing / auto reload the cache which is all described in the javadoc
    regards
    deepak

  • Access denied to a READ-ONLY data source

    Post Author: covey9257
    CA Forum: Data Connectivity and SQL
    I'm using Crystal 10 sevice pack 6.  My report is using an ODBC connection to a PSql 9.5 stored procedure.  The stored procedure creates a temp table and inserts records from 3 different ticket tables.  It has one parameter in it that selects which location to load the table with.  My report works fine as long as I don't try to put any of the fields from the temp table on the report.  If I do, then I get the following error.
    Failed to open a rowset. Details: 42000:&#91;Pervasive&#93;&#91;ODBC Client Interface&#93;&#91;LNA&#93;&#91;Pervasive&#93;&#91;ODBC Engine Interface&#93;&#91;Data Record Manager&#93;&#91;SPEng&#93;&#91;Pervasive&#93;&#91;ODBC Engine Interface&#93;Access denied to a READ-ONLY data source.
    I found that this was an issue in Crystal 9.0, but nothing with cr 10.
    Does anyone know of a work around or fix for this scenario??
    Thanks - Cathy

    Thanks for the quick reply Don.
    If you have the option that Pervasive uses to not use the exclusive lock on the DB try adding it to the SQLExpression function in CR.
    I am not sure how to accomplish this.  I've done some quick searching but cannot come up with SQL that indicates locking unless I am using some kind of language like VB or C#.
    Here is my Command Object statement
    INSERT INTO RASAPSign
    (sVendNo, sChqNo, dtDateSigned)
    VALUES
    ('{?VendNum}', '{?ChqNum}', CURDATE());
    SELECT sVendNo, sChqNo, dtDateSigned
    FROM RASAPSign
    WHERE sVendNo = '{?VendNum}' and sChqNo = '{?ChqNum}'
    Can you give me an idea of what to change?  Or at least what terminology to search for?
    I tried this option with BEGIN and END
    BEGIN
    INSERT INTO RASAPSign
    (sVendNo, sChqNo, dtDateSigned)
    VALUES
    ('{?VendNum}', '{?ChqNum}', CURDATE());
    END
    SELECT sVendNo, sChqNo, dtDateSigned
    FROM RASAPSign
    WHERE sVendNo = '{?VendNum}' and sChqNo = '{?ChqNum}'
    But I get a syntax error.
    Thanks, rasinc
    Edited by: rasinc on Apr 14, 2011 3:28 PM
    To show code with Begin and End

  • Virt-install hangs at "Write protecting the kernel read-only data",

    I am trying to Install Oracle Linux 5.4 as a Paravirtualized Machine on an Oracle VM Server (2.2.1).
    Following are the steps that I followed:
    I have the dvd iso file on /OVS/iso_pool
    1. mkdir -p /el/EL5-x86
    2. mount -t iso9660 -o ro,loop /OVS/iso_pool/Enterprise-R5-U4-Server-x86_64-dvd.iso /el/EL5-x86
    3. service portmap start
    4. service nfs start
    5. exportfs *:/el/EL5-x86
    6. mkdir /OVS/running_pool/vm01
    7. virt-install
    and gave the following details
    Name of the virtual machine: vm01
    RAM:7168
    disk path: /OVS/running_pool/vm01/system.img
    disk space: 80GB
    graphics support: yes
    install location- nfs:OVM server ipaddress:/el/EL5-x86
    It starts the install, but hangs at
    XENBUS: Device with no driver: device/vbd/51713
    XENBUS: Device with no driver: device/vbd/51714
    XENBUS: Device with no driver: device/vif/0
    XENBUS: Device with no driver: device/console/0
    Initalizing network drop monitor service
    Write protecting the kernel read-only data: 483k
    Can you please help
    Thanks,
    Radhika

    Yes I am able to connect to the guest vnc console, and proceed with the install.
    I did, Choose a language, choose a keyboard, configure TCP/IP, Manual TCP/IP configuration, after this I am getting a message "That directory could not be mounted from the server"
    I tried giving the IPAdress of the OVM Server where the directory was mounted, nothing is working. I cannot proceed any further.

  • Email syncs now say "Updated Mar 30", the day I upgraded to Lollipop 5.0.  The notification should read the date and time you updated email receiving.  Does anyone elsehave this problem?

    Email syncs now say "Updated Mar 30", the day I upgraded to Lollipop 5.0.  Two days later it is still saying Mar 30.  The notification should read the date and time you updated email receiving.  Does anyone else have this problem?  Is there a solution to this?

    We want to make sure your phone is in working order Mb_in_NC. I know it can be difficult when you see different times. What is your make/model of your device? When did it start? Do you have a different time on any other applications?
    AmberF_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Date Picker Result Used in Query for Flash Chart

    Hello,
    I'm creating a flash chart using an SQL Query. The query uses two date pickers for the beginning and ending date of the data the query returns. For some reason the substitution string for the data pickers do not work and do not return any data. If I hard wire the start and end date to something like '12/01/2008' and '01/31/2009' the query and the flash chart work just fine. When use the string representing the data pickers (:P65_BEGIN_DATE and :P65_END_DATE) the query does not return any data. Is there some problem using substitution strings in queries for flash charts??
    For what it's worth here is the query. (Look near the bottom to see where I reference the data pickers):
    SELECT 'Link',
    to_char(Day, 'Mon DD'),
    ((Count("Item Number")-Sum("Devaition"))/Count("Item Number"))*100 as "Precentage"
    from
    (SELECT
    to_date(concat(substr(F4140.PICSDJ, 1, length(F4140.PICSDJ)-3)+1900,
    substr(F4140.PICSDJ, length(F4140.PICSDJ)-2,3)), 'yyyyddd') as Day,
    F4141.PJLITM AS "Item Number",
    sum(F4141.PJTQOH) AS "Sum Qty On Hand",
    sum(F4141.PJTQCT) AS "Sum Qty Counted",
    (decode(sum(F4141.PJTQOH)-sum(F4141.PJTQCT), 0, 0, 1)) as "Devaition"
    FROM F4140 INNER JOIN F4141 ON F4140.PICYNO = F4141.PJCYNO
    WHERE (((F4140.PICYCS) In ('40','50')) AND ((F4141.PJCCCD)='1'))
    GROUP BY to_date(concat(substr(F4140.PICSDJ, 1, length(F4140.PICSDJ)-3)+1900,
    substr(F4140.PICSDJ, length(F4140.PICSDJ)-2,3)), 'yyyyddd'), F4141.PJLITM
    HAVING to_date(concat(substr(F4140.PICSDJ, 1, length(F4140.PICSDJ)-3)+1900,
    substr(F4140.PICSDJ, length(F4140.PICSDJ)-2,3)), 'yyyyddd')
    between to_date(:P65_BEGIN_DATE, 'DD-Mon-YYYY') and to_date(:P65_END_DATE, 'DD-Mon-YYYY') )
    group by Day

    I look at the debug output without changing anything and I am not really sure where the two date pickers are being populated. However I do have defaults set up for each datepicker of:
    P65_BEGIN_DATE: to_char(sysdate - 30, 'DD-MON-YYYY')
    P65_END_DATE: to_char(sysdate, 'DD-MON-YYYY')
    and the dates I would expect show up in the date picker.
    Also I created a Computation of Before Header type with the following PL/SQL expression:
    to_char(sysdate-180, 'DD-MON-YYYY')
    and I see the following output when in debug mode:
    0.05: Computation point: BEFORE_HEADER
    0.05: ...Perform computation of item: P65_BEGIN_DATE, type=PLSQL_EXPRESSION
    0.05: ...Session State: Save "P65_BEGIN_DATE" - saving same value: "03-AUG-2008"
    0.05: Processing point: BEFORE_HEADER
    So I think the datapickers are being populated but the flash chart is still not working.

  • Caching read-only data in a weblogic cluster: Need Help

    Hello,
    I'm working on the development of a web site that will be based on a weblogic cluster spread across several weblogic instances running on several unix boxes.
    To avoid frequent hits to the database, I would like hold a huge amount of data in the application's in-memory cache. The idea is to query the database at startup and store the results in memory for the life of the JVM.
    I have three questions around this:
    1. Is it advisable to store this data in the form of read-only entity beans?
    2. If not, what other options do I have?
    3. In some rare cases, a back-end script might change (and commit) data contained in one or two of these 64000 records. What is the best way of propagating these data changes across the cluster?
    Any help in this regard would be greatly appreciated.
    Regards,
    Dipak Jha

    Could somebody please guide me on this?
    Dipak Jha

  • Read-Only data fields/parameters

    Hi
    How can I make a data-field (parameter) Read-Only?
    For instance : let's say, someone (an Admin) has filled in data into a user form, and saved it. Someone else (who does not have similar Admin status) signs in, and views the form.
    I want the second person to be able to view as well as Edit the form. But, not ALL the fields. Some fields should be uneditable (i.e., read only). He can see the data in those fields. But, he is not allowed to modify them.
    How is this done?
    Thanks.

    example how this field is non-editable on condition basis, you can use your condition
    <Field>
      <Display class='Text'>
        <Property name='value' value='Solanki'/>
        <Property name='title' value='Last Name'/>
        <Property name='disabled'>
          <cond>
            <eq>
              <i>10</i>
              <i>10</i>
            </eq>
            <s>true</s>
            <s>false</s>
          </cond>
        </Property>
      </Display>
    </Field>

  • Read-only data objects

    What is the best way to ensure that data in the cache is not modified after it is placed in the cache? Is there a way to specify that objects are "read-only"?
    My cache clients should have the capability to read and write from/to the cache, but should not be able to modify (or overwrite) exisiting entries. They should just be able to read exisiting entries or add unique new entries.
    Thanks!

    Hello,
    You should be able to extend WrapperNamedCacheto achieve the behavior you want.
    An example close to what you want to do is ReadonlyNamedCache
    Thanks,
    -Dave
    Edited by: dcarrano on Dec 1, 2009 4:05 PM

  • Read only data DVD

    A photographer has burned me a dvd with photos in NEF format. I can view them with "Quick View", but i can't copy them to my computer. I get an error code -8060 or -35. Under permissions of dvd properties it is "read only". Is it still possible to copy them or I shoold ask photographer to deliver photos to me in some other way?

    My MacBook accepts DVDs/CDs and reads/plays them but sends me an error message every time I try to burn. This is totally unacceptable. Does anyone else have this problem?

  • How to monitor performance in Read Only data base

    Hi,
    We have a read only database that is using us to run reports against it.
    1. How can i monitor performance in this read Only database ?
    If i cant run statspack , how can i know what happened last hour for example
    in the database ?
    2. I use the glance utility to monitor the OS.
    I see that the Disk Utilization is 100% and the swap is 80%.
    Any suggestion what to do ?
    Thanks

    Hi,
    Since the database is read only its cant be done:
    clone SYS@pcrm > @spcreate.sql
    ... Installing Required Packages
    create or replace package dbms_shared_pool is
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-16000: database open for read-only access
    Thanks.

  • How to protect read-only data in Swing app from tampering?

    First off I am new to cryptography and trying to find the best approach for a problem.
    We have a Swing application that uses xml-based template files to display complex forms and validate data entry. Based on the size and complexity of the forms it was deemed better to have a distributed stand-alone application instead of a web-based solution. However, we want to ensure users do not tamper with the template rules in order to pass the validation checks. All of the xml-based template files are distributed within a single jar file.
    The first thought was to build a list of check-sums of the template files and to compare the template to the approariate check-sum from within the list before loading a template. This would prevent the more casual user from tampering with the file but not someone knowledgeable in check-sum who could recalculate the CRC and update the list after making changes.
    Another thought was to use a private key to encrypt the CRC list before distribution and a public key to decrypt it during execution with the keys maintained in a keystore. However, once again, an adventurous user could weed through the obfuscated code to determine the password to the keystore, create a new keystore with the same password and use its private key to regenerate the CRC list from altered templates.
    I feel like there must be a simpler approach that will provide a bullet prove implementation. Any suggestions?

    I think you have to re-think your design.
    Whether you use Java, C#,C or C++ a hacker can look through the binary (class file, exe file etc) and after working out what is happening he can modify your code.
    It is my opinion that your best bet is to use client/server but even with that you cannot keep any private data or code on the client.
    You will still have to think about 'man-in-the-middle' and 'spoof site' attacks.

  • JDBC or Entity Beans for Read-Only Data?

    Entity beans are way to slow on pulling the amount of data I need. What are the cons of just using JDBC? Is this bad programming?
    One query pulls about 700 rows from 6 different tables taking up to 20 seconds. The same call using JDBC takes 2 seconds. What is the proper thing to do?

    One query pulls about 700 rows from 6 different
    tables taking up to 20 seconds. The same call using
    JDBC takes 2 seconds. What is the proper thing to do?JDBC. Entity beans are not really suited for data across multiple tables. This can be best done with plain SQL +JDBC.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • I CAN NO LONGER EDIT REPEATING EVENTS (BIRTHDAYS) CREATED IN iCAL

    I have many repeating events (birthdays) created in iCal. Recently, whenever I call up these events for editing, and when I save them, I get the message (for example) "Access to "Mom's birthday" in "Birthdays" in account "[username]@me.com" is not pe

  • Completing jsp using web pages from outside war

    I have a .jsp called Welcome Page. On it, I wish to include the content of another web page that is located outside of the context root. I know the file's location on the server and I know the real URL of the file (it's an html file). Before I go thr

  • Windows 8.1 skype no sound thru headpnones

    after upgrading to windows 8.1, sound in my headphones when using skype calling is not working ( when making phone calls thru skype) I hear the voice in my laptop speakers but not in my headset. can you help, anyone with similar problem? my system is

  • Default Develop Settings

    I have none ticked in Lightroom. But when images come in, I have 50+ on the brightness. Why, is this? Alex

  • New-Object order

    Hello, I am using the Out-GridView command from a data collected with the New-Object command. However, the order of the output heading is not in the same order as the one defined in the New-Object command. Could you please advice. Thank you in advanc