HTMLD_ITEM. DATE_POPUP - disable the text AND Datepicker field.

Hi all

Need help with the following.
I use APEX 3.2.100.12 (it is in production and will not be updated soon).
I have a report, which dynamically creates a date_popups.
My query goes like this:

Select
case
When trunc (ddc_delivery_date) < = trunc (sysdate) then HTMLDB_ITEM. HIDDEN(3,PTD_PA_MONTH_ID) | HTMLDB_ITEM. HIDDEN (4, to_char (SYSDATE, 'DD-MON-RRRR')) | HTMLDB_ITEM. DATE_POPUP (2, ptd_pa_month_id, ", 'ME-dd-yyyy', 10, 11, 'DISABLED')
of other HTMLDB_ITEM. HIDDEN(3,PTD_PA_MONTH_ID) | HTMLDB_ITEM. HIDDEN (4, to_char (SYSDATE, 'DD-MON-RRRR')) | HTMLDB_ITEM. DATE_POPUP (2, ptd_pa_month_id, ","JJ-ME-yyyy", 10, 11, ' onBlur =" validate (' |) ") rownum. ");" onChange = "setFocusItself (' |)" rownum |') ; » ')
end as 'example '.
table;

Suppose that all of these names it work as it is.
The first "when trunc...» "should show the date_popup element, but should be displayed for the disabled; What happens quite, but only on the text field; I also need the datepicker empty or something, and no popup be allowed to appear, something like: "("_IP_CLOSED_DATE').parentNode.nextSibling.firstChild.href = "javascript:void (0)", which allows to not allow a pop-up window will be displayed. "
The thing is, I tried to add another parameter (as I've seen it's possible), including words like disabled, Sub, 0, etc. and none of them work. So I would like to know if someone had the same problem and was able to solve it.
What I need, is not only the text must be disabled, but also the popup.
Thank you very much!!

Jorgelina

Just noticed that you're on apex 3.2 and JS code is based on JQuery (builtin Apex 4.0)

So we'll try a different approach and it does not use any JS

The query for your report, I see this column you should be read only when trunc (ddc_delivery_date) < = trunc (sysdate). In this case, you want columns of these lines to be a readonly text field. If we use a different API in these cases there, IE APEX_ITEM. TEXT instead of APEX_ITEM. DATE_POPUP

select
    case
    when trunc(ddc_delivery_date) <= trunc(sysdate) then
        HTMLDB_ITEM.HIDDEN(3,PTD_PA_MONTH_ID) || HTMLDB_ITEM.HIDDEN(4, to_char(SYSDATE, 'DD-MON-RRRR')) || HTMLDB_ITEM.TEXT(2, TO_CHAR(,'dd-MON-yyyy', 10, 11 ,'read_only="read_only"')
    else
       HTMLDB_ITEM.HIDDEN(3,PTD_PA_MONTH_ID) || HTMLDB_ITEM.HIDDEN(4, to_char(SYSDATE, 'DD-MON-RRRR')) || HTMLDB_ITEM.DATE_POPUP(2,ptd_pa_month_id,'','dd-MON-yyyy', 10, 11, 'onBlur="valiDate(' || rownum || ');"onChange="setFocusItself(' || rownum ||');"')
    end as "Example"
from ;

Note: Change the name of the column whose value has sound

For the columns in row date readonly, you would see a text only, without a date picker field

Tags: Database

Similar Questions

  • Is it possible to expand the text and icons in Windows Explorer without changing its framework or my screen resolution?

    I started meeting with eyestrain from prolonged use of the computer.  Of course, I must simply reduce screen time, but may not reduce significantly again. During this time, I set it on a few minor visual adjustments that might be more favorable to the eye to me.  A change would be to increase the size of the text and folder icons in my field of Windows Explorer. I tried to achieve this expansion by increasing my overall screen resolution, but that change has become cumbersome and actually greater stress perspective.  Is it possible that I can change the size of text and icon from the Windows Explorer, without giving up its current location (details) and without affecting the size of anything else (for example, my office)?

    I know that my investigation is not in the urgent category, but I would be grateful for all the advice. (Well, almost everything...?)

    Thank you now also.

    -BJJ

    No do not trust them - it's a widespread scam underway.  They want to ask you to install support software (usually decent software, like Team Viewer, that legitimate companies use to provide assistance), but then they use it to implant viruses. Or, more often, they open an arbitrary log file, claim this means that you have a virus, and they will help you conveniently 'fix' for a fair cost.

    No one will ever 'cold call' offer to help you with your PC.

  • I've created a form that uses the value field text to fill the text of another field.  Does not take into account changes

    I've created a form that uses the value field text to fill the text of another field.  However, if I need to change the text, the second field does not update this change.  Instead of reset the form each time, is the Javascript code to update the fields if they have been modified?

    For example I Text1 and Text2.

    When I type in Hello in Text1 I see Hello in Text2.

    Later, if I decide to change to Goodbye Text1, Text2 remains Hello.

    The shape of the hoe can recognize this change?

    Thank you

    Edit: I think I have misunderstood the situation.

    If you want to both fields have the same value, just to give them the same name.

  • How to get a subset of the text in a field of varchar2

    Hello.  I'm trying to select a subset of the text in a field of varchar2.  It is the view dba_audit_trail login information.  Here is an example of the field (dba_audit_trail comment_text):

    Authenticated by: Word of PAST DIRECTORY; EXTERNAL NAME: cn = orcladmin, cn = Users, dc is idacorp, dc = local; Customer's address: (ADDRESS = (PROTOCOL = tcp (PORT = 99999))(HOST=555.555.555.555))

    I'm trying to simply select the text of 'sleep' - i.e. everything after the first ' = 'up to the first"

    I can get everything after the first '=' with this:

    Select substr (comment_text, instr (comment_text, '=') + 1) of dba_audit_trail

    ... but I don't know how to stop at the first «,»

    Any help would be greatly appreciated.

    Thank you!

    Post edited by: DRC

    Hello

    Here's a way to do it:

    WITH got_pos AS

    (

    SELECT comment_text - and whatever the other columns you need

    INSTR (cooment_text, "=") AS equal_pos

    INSTR (cooment_text, ",") AS comma_pos

    OF dba_auit_trail

    WHERE--no filtering is going here

    )

    SELECT SUBSTR (comment_text

    equal_pos + 1

    , comma_pos - (equal_pos + 1)

    ) AS first_cn

    OF got_pos

    ;

    You could do it without a subquery; you would just do the exact same INSTR 2 times, I used equal_pos 2 times.

    You can also get the results desired using regular expressions, such as:

    SELECT REGEXP_SUBSTR (comment_text

    , '=([^,]*),'

    1

    1

    NULL

    1

    ) AS first_cn

    OF dba_audit_trail

    ;

    Although this uses less code, it is slower than with a SUBSTR and INSTR.

  • Disable the days and months to Date Pciker

    APEX 4.0
    30%

    Hello, I have a question. How to disable the months and days in the datePicker to apex? I want the year only because Im creating a school year. So, I want only one year in the date picker. How do I do that? Thank you

    You can create a dynamic LOV for use in a select list that generates values in a number of ways, depending on the requirements.

    For example, a way to get a projection of the next decade of this year with the help of a sequence of integer generator:

    select
              y l, y v
    from
              (select
                        extract(year from sysdate) + rownum - 1 y
              from
                        dual connect by rownum <= 10)
    order by
              v
    
    L                      V
    ---------------------- ----------------------
    2010                   2010
    2011                   2011
    2012                   2012
    2013                   2013
    2014                   2014
    2015                   2015
    2016                   2016
    2017                   2017
    2018                   2018
    2019                   2019                   
    

    Or another, to get a this year ± 5 years interval using the model clause:

    select
              y l, y v
    from
              (select
                        y
              from
                        dual
              model
                        return updated rows
                        dimension by (
                          0 n)
                        measures (
                          extract(year from sysdate) - 5 y)
                        rules
                          iterate (10) (
                            y[iteration_number] = y[0] + iteration_number))
    order by
              v
    
    L                      V
    ---------------------- ----------------------
    2006                   2006
    2007                   2007
    2008                   2008
    2009                   2009
    2010                   2010
    2011                   2011
    2012                   2012
    2013                   2013
    2014                   2014
    2015                   2015
    

    You might generate complex results using the clause type games. A pipeline function would be another option.

    Generate values from scratch as this is useful if your system does not have existing tables of reference/dimension of the described type of Jeff.

  • Setting the text of a field with values from the list

    Hello

    I created a list with three properties and three values. I also three fields when the user types in
    simple text characters in the fields (fieldA, fieldB and fieldC), a button and a field empty that I created.

    In the list, I put = the text in each field property values. When I click on my button, I want to display
    ONLY the values of each property in the same field (for example: "Geils"). I can display a value of a property,
    but I need to display all the values of three properties. For example, if text fieldA =, text of fieldB = B and fieldC text = C.
    then when I hit the button, I would like to than "Geils' to read 'ABC '.
    Here's the jargon I've attached to my button (see the commented lines in the script for more info)

    global partNumber
    partNumber = [#prop1: the text of the field 'fieldA', #prop2: the text of the field "fieldB", #prop3: "fieldC" text]

    -the following line works to the value of #prop1 in "Geils".
    put getaProp (partNumber, #prop1) in the text of the "Geils" field

    -When I try the jargon to the next line, I get "[#prop1: 'A', #prop2: 'B', #prop3: 'B']" in the "Geils".
    Put the PartNumber in "Geils".

    I don't want the properties, only the values of all three in the field "Geils".
    I'm simplifying the explanation for ease of understanding. The application and the user input is to generate
    a reference number of a standard product offering that has several options for Assembly of products.
    Is this possible? I'm not that great at lingo and any help would be appreciated.

    Thank you very much
    Chris kotlinski ([email protected])

    Put PartNumber [#prop1] & [#prop2] PartNumber or PartNumber [#prop3] in
    Member "Geils".

  • pictures page Firefox does not only show the text and links

    New office (not this one) with windows 8.1 Pro, 29 of Firefox, Norton Internet security. When I go to a lot of these images of pages of Firefox are not displayed, only the text and links. This is true for the addons page of 'get '. I can search for Add-ons, but when I try to install one, the installation fails. Will there be a security setting in windows or NIS blocking facilities as well as images of Firefox? Installing Firefox went well without error. Other sites do not have this problem.

    Another user has reported that this was due to a problem of time system. In particular, the date and time is correct, but day was set a day earlier. You can see that?

    Cannot open the view youtube. The plug-in module did open in simplified display only some images. Why?

  • I need to transfer my history of the text and images from my old iPhone to my new iPhone, but have already moved all other data to my new phone via iTunes and spent time to organize.  How do I reset this transfer without any?

    I need to transfer my history of the text and images from my old iPhone to my new iPhone, but have already moved all other data to my new phone via iTunes and spent time to organize.  How do I reset this transfer without any?  I transfer a 5s to itself.

    For your photos, try importing them to your computer and their synchronization then back to the SE.

    Import photos and videos from your iPhone, iPad or iPod touch - Apple Support

    For your texts, they moved with the backup restore?

  • Sometimes I don't get and the vibrations or sounds for the text and incoming calls

    Hello

    I have phone 6

    Sometimes I'm not vibrations and sounds for the text and incoming calls

    I went to all the sound settings

    Thank you

    Is there a moon icon in the top right?

  • How the SUM cells including the text and the number?

    Hello world

    Someone can tell me how the SUM cells include the text and the number?

    1 Bob 20

    2 30 Jane

    3 50 Jame

    Total 100

    Thank you

    Hi Jordan,.

    If the numbers are not always two digits, FIND the position of the space between the number and name:

    Formula in B2 (fill down)

    = FIND("",A2)

    Then use the LEFT function to get the number in the column C:

    Formula in C2 (fill down)

    = LEFT (A2, B2)

    This will give a text string (Tip: left-aligned).

    Convert to a numeric value in the D column with the VALUE function:

    Formula in D2 (fill down)

    VALUE = (C2)

    (Tip: propped right)

    Table 1 has a header row and footer of the line, and the SUM is easy. Formula to the D8 footer line:

    = SUM (D)

    Kind regards

    Ian.

    Edit: You can hide columns B and C

    Ian.

  • icons not showing in the notification area. a disable the UnP and SSD without result. on the Properties tab to hide the icons inactive icon is grayed out

    My icons in the notification area continued to show. I disabled the UnP and SSDP nothing helps. The box to Hide inactive icons on the Properties tab is grayed out so I can't hide the first icon.  Any ideas?

    first of all, what is the brand and model of the pc?

    current antivirus?

    Operating system and service pack?

    Make sure that your system is clean:

    Download, install, update and scan with these full free malware detection programs:

    Malwarebytes (MMFA): http://www.malwarebytes.org/products/malwarebytes_free

    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

    http://WindowsXP.MVPs.org/TrayNotify.htm

    Read more top

    Finally, after back with the results of the analyses and the answers to the above questions, please.

  • Photo Story 3 blurs the text and format of appropriate background music

    I had a lot of trouble with a blurry text on Photo Story 3. It seems perfectly fine to start, and then whenever I saw it, it's blurred beyond belief. In addition, I don't know the type of music format for the background music. What can I do to fix the text, and what file format do I for the background music?

    Many different audio formats would work but the best
    choice is always WMA or WAV. Sometimes, it can
    having problems when you save a project as a result of the use of certain
    audio formats.

    As for your photos... If nothing else... to enlarge a
    size at least equal to your screen resolution.

    That will probably not improve the appearance of the
    photos, but it will improve the text (fuzzy) pixelated
    problem.

    First of all, lets you know what is the resolution of your screen. Right
    Click your desktop, then choose Properties / Settings tab...
    Watch the screen resolution slider to see your current
    Resolution of the screen. For this tutorial, let's say your screen
    The resolution is 1024 x 768.

    If you download and install the free Win XP ImageResizer
    PowerToy it will add a 'Resize' option to the right click
    menu.

    Can resize the following free PowerToy for Windows XP
    lots of photos very quickly:

    Click on the following link and on the left, click PowerToys...

    Windows XP downloads
    http://Windows.Microsoft.com/en-us/Windows/downloads/Windows-XP

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Download and install: ImageResizer.exe
    (Filename: ImageResizerPowertoySetup.exe)
    (does not work on Vista)

    Now you can open any folder containing images and
    you will have an option to resize. Just right-click the selected
    (highlighted) image files and choose resize images of
    the menu. You can select a picture or an entire group.

    The program puts in the folder with resized copies
    your originals.

    (Tip: * never * crush your originals... especially if you were)
    resizing of the originals to a smaller size)

    Resized copies will the custom word added to the
    file name so that they will not be easy to find when you are ready to add
    paste them into your photo story project.

    To ensure that images in the orientation to portrait and landscape
    are resized to the same size... go to... Advanced... and
    tick... Customize... Enter the largest number in these two areas.

    IOW... in this tutorial assuming that the screen resolution 1024 x 768...
    Enter 1024 in these two areas.

    The maximum number of Photo Story 3 photos can just a Council...
    handle is 300 and if you use a lot of movement and Transitions a
    smallest of the numbers is recommended.

    Well, the next gift can change the duration of the photos
    in an existing one. WP3 project... it can also delete... Motion and
    Transitions and also randomize the slides.

    TweakPS
    http://www.windowsphotostory.com/TweakPS

    More info on the following sites:

    WindowsPhotoStory.com
    http://www.windowsphotostory.com/

    PapaJohn
    http://Papajohn.org/
    See Photo Story 3 in the left column

    See you soon...

  • When I type text in my mobile e-mail, word, Excel etc the cursor goes up or down or in the middle of the text and delete the texts.

    When I type text in my mobile e-mail, word, Excel etc the cursor goes up or down or in the middle of the text and delete the texts. some time remove all the texts. I'm fed up with it. How to solve it? Can someone help me?

    I use vipre antivirus software. But after deep analysis it shows no any malware or spy ware seen.

    Help, please...

    Original title: malware or Trojan horse?

    Cover the touchpad with a piece of cardboard, the next time you use * as you type something long *...

    What do have?

  • Sort the listBox that contains the text and numbers

    Is there a script to sort a listBox control that contains the text and numbers using a button?

    I would have preferred that he sort 1, 2, 10, 20, 100, not 1, 10, 100, 2, 20

    Examples are part numbers: HP1457100-9, 011-2025-479, 85216, etc.

    You may need to change this line:
    oTarget = this,

    It refers to the object to display the results.

  • I have a button with the icon text. Is it possible to increase the space between the text and icon?

    Mr President.

    I have a button with the icon text. Is it possible to increase the space between the text and icon?

    adf button text image space.png

    adf button text image space.jpg

    Concerning

    Have you tried it as directed by the other thread?

    
    

    See you soon

    AJ

Maybe you are looking for