APEX_ITEM. DATE_POPUP returns NULL Version 4.2.6

I apologize in advance if I'm misunderstanding here, but should not return the following query a few HTML, etc. ?

SELECT APEX_ITEM. DATE_POPUP (1, rowNum, to_date(sysdate,'DD-mm-YYYY'), 'DD-mm-YYYY') date_html

OF the double

I am confirming my queries through SQL Developer first and then plan to add to a report of the APEX for a manual form.  APEX_ITEM. TEXT Returns HTML can be used in SQL Developer, but I can't understand why APEX_ITEM. DATE_POPUP returns NULL regardless of any parameter combinations I try.  Thanks in advance for the answers.

user10730448 wrote:

Please update your forum profile with a recognizable username instead of "user10730448": Video tutorial how to change username available

I apologize in advance if I'm misunderstanding here, but should not return the following query a few HTML, etc. ?

SELECT APEX_ITEM. DATE_POPUP (1, rowNum, to_date(sysdate,'DD-mm-YYYY'), 'DD-mm-YYYY') date_html

OF the double

Do not apply to_date conversion sysdate . It's already a DATE value.

I am confirming my queries through SQL Developer first and then plan to add to a report of the APEX for a manual form.  APEX_ITEM. TEXT Returns HTML can be used in SQL Developer, but I can't understand why APEX_ITEM. DATE_POPUP returns NULL regardless of any parameter combinations I try.

It is the expected behavior. Some API calls can be used successfully since in a valid session of APEX. You can validate apex_item.date_popup query in the APEX SQL Workshop. Note that apex_item.date_popup2 is the recommended method because it shows a more modern jQuery calendar.

Tags: Database

Similar Questions

  • Apex_Item.Date_Popup APEX 4-> bug?

    The Apex_Item.Date_Popup which comes with Oracle APEX 4 version has a bug.
    The date picker will always write the return value in the first row, independent for which line you open the date picker.

    Is possible?
    Any idea?


    Lorenzo

    If you use APEX_ITEM. DATE_POPUP in a multirow scenario, you need TO specify the p_item_id parameter.

    Use #ROWNUM # as

     APEX_ITEM.DATE_POPUP(n,null,col1,null,....,'f01_#ROWNUM#')
    

    I did this back sometimes. I you can't always run with the p_item_id let me know, I will dig the code I used

    Kind regards

  • apex_item.date_popup formtting question

    This is my selection:

    SELECT apex_item.hidden(11,col.c001).
    apex_item.date_popup
    (4, NULL
    col.c004
    'DD-MM-RRRR', 10, 10
    ,' title = 'YYYY-MM-DD' ' |
    "onChange =" updateTabularForm (this, "SCOPESESS",'|)
    Col.seq_id |', 4.18,' |
    Decode (mod(rowNum,:P31_ROWCOUNT),
    0,: P31_ROWCOUNT, mod(rownum,:P31_ROWCOUNT)) |') ; » »
    ) start_date
    apex_item.date_popup
    (5, NULL
    col.c005
    'DD-MM-RRRR', 10, 10
    ,' title = 'YYYY-MM-DD' ' |
    "onChange =" updateTabularForm (this, "SCOPESESS",'|)
    Col.seq_id |', 5.18,' |
    Decode (mod(rowNum,:P31_ROWCOUNT),
    0,: P31_ROWCOUNT, mod(rownum,:P31_ROWCOUNT)) |') ; » »
    ) end_date
    THE NECK of the apex_collections
    WHERE col.collection_name = 'TEST '.

    The problem I have is that if the user inserts the date manually - IE 02/02/10 - it is stored in the database as February 2, 10.

    Is there something obvious that I'm missing? The original mask was AAAA so we chnaged RRRR, but it has no effect.

    Any help would be appreciated.

    See you soon

    Published by: Lisa from Aus 11/03/2010 17:16

    3 test cases, just do:

    1 insert into date_test values (to_date (February 2, 2002 ',' dd/mm/yyyy "")).

    Select * from date_test

    MY_DATE
    02/02/2002

    2 insert into date_test values (to_date (2 February 02 ',' dd/mm/yyyy ""))

    Select * from date_test

    MY_DATE
    02/02/02

    3 insert into date_test values (to_date (2 February 02 ', ' dd/mm/rrrr'))

    Select * from date_test

    MY_DATE
    02/02/2002

    --

    The apex element you create dynamically obviously know the format you want to appear in the date, but the insert statement does not work. So the best thing to do in your insert statement would be to specify the date format (because a collection is just a series of varchar columns).

    that is, of the VALUES (: P31_IMPLEMENTATION_ID)
    r_rec.session_name
    , to_date (r_rec.start_date, ' dd/mm/rrrr')
    , to_date (r_rec.end_date, ' dd/mm/rrrr')
    );

    But of course, this still doesn't answer if users he entered in a different format. that is, what happens if they decide to enter in the format: YYMMDD or mm/dd/yy etc.

    Van
    Trent

  • PersistentObject.getContents () returns null after app update

    Hello

    I'm trying to track down a bug with PersistentStore.
    Usually when I update the app I get the getContents() stored content.
    However, something in the code has changed from one version to the other and now getContents() returns null.

    I made sure the id has never changed for PersistentStore.getPersistentObject (id);
    I made sure that we use the same basic sdk (4.3.0)
    I made sure that there are the data stored in the stored hash table

    Currently, it's a hash table - no subclass (even though I know that I should change it to a subclass when it's fixed);

    I wonder if there are any suggestions on what might cause the getContents() return null - or which could result in the PersistentStore have cleared.

    What information is needed, please let me know and I'll paste.

    I found the problem after.

    Classes have begun to obscure differently. If the hash table was still readable, but because he could not read the content of the hash table, he would return null.

    It was unexpected, because if you have a custom class persisted and you try to read it, you will get the content, but you can't cast. But with the hash table, it does not return the content (uncastable) and it throws no exceptions...

    I hope this helps someone else who has a similar problem.

  • LocationProvider.getInstance always returns null

    I'm trying to run a slightly modified version of the application on a BlackBerry 7250 GPSDemo. As my device software is version 4.1, I use the BlackBerry JDE 4.1. No matter what are the parameters for the criteria, I pass in LocationProvider.GetInstance, I always return null. I can run google maps on this unit and get my location, so I'm assuming that the GPS is supported in this regard. Did anyone see any problem with code and/or information on the devices below?

    Wireless blackBerry 7250 (CDMA)

    v4.1.0.353 (Platfor 2.2.0.159)

    The kernel v3.8.3.7 encryption

    The microedition configuration: CLDC-1. 1

    Microedition profile: MIDP-2. 0

    Microedition JTWI Version: 1.0

    Microedition Media Version: 1.1

    Microedition PIM Version: 1.0

    Try
    {
    GpsReceiverCriteria criteria = new Criteria();
    gpsReceiverCriteria.setHorizontalAccuracy (Criteria.NO_REQUIREMENT);
    gpsReceiverCriteria.setVerticalAccuracy (Criteria.NO_REQUIREMENT);
    gpsReceiverCriteria.setCostAllowed (true);
    gpsReceiverCriteria.setPreferredPowerConsumption (Criteria.POWER_USAGE_LOW);
    gpsReceiverCriteria.setAddressInfoRequired (false);

    _locationProvider = LocationProvider.getInstance (gpsReceiverCriteria);
               
    If (_locationProvider is nothing)
    {
    Runnable ShowGpsLocationProviderNull1Dialog = new Runnable()
    {
    public void run()
    {
    Dialog.Alert ("Provider is null - HA: NR VA: NR CA:T PC:L");
    }
    };
    invokeLater (showGpsLocationProviderNull1Dialog);  Ask the event dispatcher thread to display the dialog box as soon as POSSIBLE
    }
       
    gpsReceiverCriteria.setHorizontalAccuracy (Criteria.NO_REQUIREMENT);
    gpsReceiverCriteria.setVerticalAccuracy (Criteria.NO_REQUIREMENT);
    gpsReceiverCriteria.setCostAllowed (false);
    gpsReceiverCriteria.setPreferredPowerConsumption (Criteria.POWER_USAGE_LOW);
    gpsReceiverCriteria.setAddressInfoRequired (false);

    _locationProvider = LocationProvider.getInstance (gpsReceiverCriteria);
               
    If (_locationProvider is nothing)
    {
    Runnable ShowGpsLocationProviderNull2Dialog = new Runnable()
    {
    public void run()
    {
    Dialog.Alert ("Provider is null - HA: NR VA: NR CA:F PC:L");
    }
    };
    invokeLater (showGpsLocationProviderNull2Dialog);  Ask the event dispatcher thread to display the dialog box as soon as POSSIBLE
    }

    _locationProvider = LocationProvider.getInstance (null);
               
    If (_locationProvider is nothing)
    {
    We would like to display a dialog box indicating that the GPS is not supported, but because that
    the event dispatcher thread has not been started yet, modal screens cannot be pushed on
    the battery in the display.  So delay the operation until the event dispatcher thread runs
    asking him to call the executable object following as soon as possible.
    Runnable showGpsUnsupportedDialog = new Runnable() {}
    public void run() {}
    Dialog.Alert ("No receiver GPS on this unit is available, exit...");
    System.Exit (1);
    }
    };
    invokeLater (showGpsUnsupportedDialog);  Ask the event dispatcher thread to display the dialog box as soon as POSSIBLE
    }
    on the other
    {
    only a single listener can be associated with a provider and point it comes to the same
    call, but with the value null, so, no need to cache the listener instance
    request an update every second
    _locationProvider.setLocationListener (new LocationListenerImpl(), _interval, 1, 1);
    retval = true;
    }
    } catch (LocationException) {}
    System.Err.println ("Failed to instantiate the object LocationProvider, exit...");
    System.Err.println (the);
    System.Exit (0);
    }

    Oops... sory. My dyslexia again out of in

    I think that the 7250 has no GPS function at all.

    Yet again, Google it didn't need because they have their own turn cells DB and web services to retrieve the "approximate" location

  • Java 7 u45 System.getProperty returns null

    After the upgrade to u45, our web launch application has stopped working. He failed System.getProperty ("myproperty").

    "myproperty" is defined as an

    < resources >

    < j2se version = "+ 1.6" initial-heap-size = "64 m" max-heap-size = "256 m" / >

    < jar href = "nms_wsclient.jar" Download = hand "impatient" = "true" / > "

    < href = tΘlΘchargement jar "commons - httpclient.jar" = "forward" / >

    < href = tΘlΘchargement jar "commons - codec.jar" = "forward" / >

    < href = tΘlΘchargement jar "commons - logging.jar" = "forward" / >

    < jar href = "log4j.jar" Download = "forward" / > "

    "< property name ="myproperty"" value = "http://138.120.128.94:8085 /" / > ""

    < / resource >

    with old java version, System.getProperty ("myproperty") works very well to return the value, but with u45 it returns null.

    Does anyone have the same problem? no idea how to fix or work around it?

    Thank you

    Zhongyao

    7u45 made a change that is not documented in the release notes. You must precede the properties with jnlp.myproperty in your JNLP file, unless your jnlp file is signed.

    But like me, since you can have different values in multiple deployments, signing the JNLP is impossible.

    I tried to submit a bug on this issue report, but their bug report process works as well as 7u45...

  • C# ExtensionManager return null

    I am trying to record an extension of Server Manager, and it returns null? Why

    FF

    Try the browser MOB, check if you can navigate to Config > extension manager?

    What is the version of the api? I think that v2.0.0 is not supported - vi-plugin tab is not there in viclient v2

  • detection of apex_item in javascript null value

    Request Express 3.2.0.00.27

    I have the javascript code that is called from a trigger of js on charge.
    I have a manually created form tablur here is the code for the form region:
    SELECT APEX_ITEM.POPUP_FROM_LOV(15,c001,'AUTH_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f15_' || '#ROWNUM#') authid,
      apex_item.hidden(16, c002, NULL,'f16_'|| '#ROWNUM#') empid,
    --  apex_item.display_and_save(16,c002,'f16_'|| '#ROWNUM#') empid,
      apex_item.date_popup(17, rownum, c003, 'DD-MON-YYYY',20,2000,NULL,'f17_' || '#ROWNUM#')deldate,
      apex_item.textarea(18,c004,5,40,NULL,'f18_'|| '#ROWNUM#') "Delegation scope",
      apex_item.textarea(19,c005,5,40,NULL,'f19_'|| '#ROWNUM#')"Delegation limits",
      apex_item.select_list_from_lov(20,c006,'YESNO_LOV',NULL,'NO','N','%','f20_'|| '#ROWNUM#')"ORA Signed",
      apex_item.date_popup(21, rownum, c007, 'DD-MON-YYYY', 20,2000,NULL,'f21_' || '#ROWNUM#') "Del expiry",
      apex_item.date_popup(22, rownum, c008, 'DD-MON-YYYY', 20,2000,NULL,'f22_' || '#ROWNUM#') "Date removed",
      apex_item.textarea(23,c009,5,40,NULL,'f23_'|| '#ROWNUM#') "Delegation comments",
      apex_item.POPUP_FROM_LOV(24,c010,'DELEGATION_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f24_' || '#ROWNUM#') "Delegator",
      apex_item.display_and_save(25,c011,'f25_'|| '#ROWNUM#') status,
    --  apex_item.display_and_save(26,seq_id,'f26_'|| '#ROWNUM#') seq_id,
      apex_item.hidden(26, seq_id,NULL,'f26_'|| '#ROWNUM#') ||
      apex_item.checkbox(27, seq_id,NULL,NULL,':','f27_'|| '#ROWNUM#') chkbx
        
     FROM apex_collections
    WHERE collection_name = 'DELEG_COLL'
      AND c011 IN ('O','N','U','D')
    --order by c001
    If the column that is passed to in ('f15') is not null I want to change the display type to hidden and the t20data class. This I hope that this makes it visible, but not updateble.
    Otherwise when rendering I want to render with default values of the api apex_item for a LOV.

    I check a null like this:
    function changeProp(pCol) {
       var elms = document.getElementsByName(pCol);
       for (i=0; i< elms.length; i++) {
     /*       elms.style.backgroundColor = 'yellow'; */
    if $v_IsEmpty(elms[i].value) {
    alert('The value is' + elms[i].value);
    }
    }
    }

    function changeProp(pCol) {
    var elms = document.getElementsByName(pCol);
    for (i=0; i< elms.length; i++) {
    /* elms[i].style.backgroundColor = 'yellow'; */
    if (elms[i].value == null or elms[i].value == '%null%') {
    alert('The value is' + elms[i].value);
    }
    }
    }
    The alert (  alert('The value is' + elms.value); is only used to verify I am readying the value correctly. WHen executed outside of the if clause it does show the correct value.

    However the code above is not execting when a new row is created and hence f15 should be null. In the code above you can see I have tried to check for a null value in two different ways with no success.

    Once it detects the null I would want to change the class to t20data and the type to hidden.

    I could do this in the report query, instead of using JavaScript, but nvl, nvl2and coalesce are better than decode for the treatment of NULL values:

    nvl2(
      c001,
      apex_item.display_and_save(15,c001,'f15_'|| '#ROWNUM#'),
      apex_item.popup_from_lov(15, c001, 'AUTH_LOV', null, null, 0, null, null, null, 'YES', 'f15_' || '#ROWNUM#')) authid,
    

    The error message is due to the use of page focus of the cursor attribute, or some custom JavaScript that attempts to set the focus of cursor in an element that cannot be entered. If the focus of the cursor is set to 'First element on the page', try replacing it "do not focus cursor. (If this corrects the problem, but you want to focus on the first entrable element at the entrance to the page that you need to write some custom JS to do this).

  • FND_PROFILE. VALUE('ORG_ID') returns null

    Hello world.
    FND_PROFILE . VALUE ('ORG_ID') always returns Null when I select double as follows

    SELECT FND_PROFILE. VALUE('ORG_ID')
    FROM DUAL;

    OR if I'm doing assignment as follows

    *: V_ORG_ID: = FND_PROFILE. VALUE ('ORG_ID'); *

    What is causing the problem, it's a configuration problem or what?

    What is your version of the application?

    Please see these documents.

    After the Patch 8222387 why Fnd_profile. Value('Org_id') return no value [ID 784279.1]
    Conc programs using the Fnd_profile parameter. Value (Org_id) Get Apps-Fnd-01436 [ID 784489.1]
    FND_PROFILE. VALUE('ORG_ID') returns-1 [1235274.1 ID]
    Package Fnd_Global - Fnd_Global.Resp_Id, Fnd_Global.Form_Id, Resp_Id, $form_id, Form_Appl_Id are equal to-1 [960111.1 ID]
    An incorrect value in the block: field $ $ $Profiles: Org_id [876402.1 ID]

    Thank you
    Hussein

  • 10 g XE GET_WKT() and GET_WKB() return NULL;

    All,

    Select sdo_geometry ('POINT (37-79)', 4326). GET_WKT() FROM DUAL;

    Returns NULL in my 10g XE edition. I read in some places that XE does not come with this feature inside landmark because of a problem JVM version. Is this true? Can I convert between WKT and WKB or get the WKB of a SDO_GEOMETRY with XE?

    THX in advance.

    XE has no JVM, so spatial functionality that depends on the JVM are not available in the XE.
    I guess the only option is to write your own function to generate the WKT XE.

    Siva

  • PL/SQL V() function returns null

    Hello

    I just updated one of my instance of APEX of 3.0 to 3.2.1 version. After update I can't read session values using the function v (VARIABLE_NAME) of pl/sql. Always returns null (I tried v('session'), v ('app_id'), v ('app_user')).

    : Reference VARIABLE works fine, but I can't use it in my own packages.

    No idea how to solve this problem?

    Kind regards
    Przemek

    Hello

    Are you by chance using old drop-in replacement for Patrick Wolf for the function of V?

    http://www.inside-Oracle-apex.com/attention-are-you-using-drop-in-replacement-for-v-and-NV-function-2/

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.sumneva.com (formerly http://www.apex-evangelists.com)
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

  • ConnectionFactory.getConnection () returns null.

    ConnectionFactory connFact = new ConnectionFactory();
            ConnectionDescriptor connDesc = null;
            connDesc = connFact.getConnection(----here goes my url String----);
    

    Hi all

    In the code posted above, number In Line 3, reason for which the null value is returned by the statement "connFact.getConnection (- this is my String url-);"   and he is assigned to the variable 'connDesc '.  Although I was able to login successfully before 2 to 3 hours. but it is now return null...

    Could you please help me?

    Best regards,

    Hi Sir,

    After going through the link provided by you (and a few other sup on internet links), I was able to resolve the issue for now... I write the code for other users help here...

    Thank you for your support...

    Best regards.

    // make a list of transport types ordered according to preference (they will be tried in succession)
    int[] preferredTransportTypes = {TransportInfo.TRANSPORT_MDS, TransportInfo.TRANSPORT_WAP2};
    
    // Create ConnectionFactory
    ConnectionFactory factory = new ConnectionFactory();
    
    // Configure the factory
    factory.setPreferredTransportTypes( preferredTransportTypes );
    
    // use the factory to get a connection
    ConnectionDescriptor conDescriptor = factory.getConnection("http://www.blackberry.com");
    
    if ( conDescriptor != null ) {
    
       // connection suceeded
       int transportUsed = conDescriptor.getTransportDescriptor().getTransportType();
    
       // using the connection
       HttpConnection  httpCon = (HttpConnection) conDescriptor.getConnection();
       ...
    }
    
  • The body of the message to return null on os 4.5.0.18. When you use getBodyText()

    Hi all

    Today, when I debug my application on 4.5.0.18 device 8130.

    I implements FolderListener, when new messages coming,.

    I grap message object and want to analyze the body of the message to check if the message is what application you are looking for.

    Hoever, when I call Message.getBodyText (). It returns null.

    In fact, there a lot of message in the body of the message.

    is there any sweet experiencing this problem?

    What is work around?

    Thank you.

    getBodyText() will work on 4.5 If the body is 'plain text '. Otherwise, you will need to get the HTML content of the message and extract the text elements.

    See this article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800698/How_To _...

  • Hash table returns null

    It's the stumping me. I add a key and a value in a hash table, pass in the key and retrieve the value. Basic enough, but when I go to retrieve the value a second time (after the restart of the application), it returns null.

    If it isn't exactly the code that would be the basic scheme:

    class A
    {
         private static Hashtable table = new Hashtable();
    
         public static Object getObject(Class clazz)
         }
              return A.table.get(clazz);
         }
    
         public static void setObject(Class clazz, Object obj)
         }
              A.table.put(clazz, obj);
         }
    
         //Code stuff...
    }
    
    class B
    {
         public static void main(String[] args)
         {
              A.setObject(C.class, new C());
              Object obj = A.getObject(C.class); //This works
         }
    
         //Code stuff...
    }
    
    class C
    {
         //Code stuff...
    }
    

    What happens on the 9550 Simulator and is fixed after restarting the Simulator but work always and only the first time through. If the app is closed, then reopened, then it returns null, even if the hash table was always the same items.

    Ah. When you run the application a second time, he rebuilt serializers to persistent store. Unfortunately, your objects of the class are new instances, so that they cannot be used as persistent hash keys. I suggest you use class names as keys rather than objects of class themselves.

  • Need help with ics. SQL return null

    Hi experts WCS.

    I have this ics. SQL statement that returns an IList as null and nothing in the errStr in debugging print.

    IList rsATypes is ics. SQL (, sqlATypes, listName, limit, bCache errStr);

    The code is in one of my jsp. He ran very well in my local JSK (HyperSQL Db), but returns NULL in the case of Test (Oracle DB, if this is another).

    I got the sql statement println during execution and run it directly in Oracle DB (same instance) it returns the expected result set.

    The code snippet:

      System.out.println("## ics.GetSSVar(\"pubid\")          : " + ics.GetSSVar("pubid"));
    
        // Get Attribute Types
        String sqlATypes = "SELECT DISTINCT assetpublication.assettype "
                         + "FROM assetpublication "
                         + "LEFT JOIN approvedassets "
                         + "    ON assetpublication.assetid = approvedassets.assetid "
                         + "WHERE pubid = '" + ics.GetSSVar("pubid") + "' "
                         + "AND (tstate is null OR tstate <> 'A') "
                         + "AND (voided is null OR voided <> 'T') "
                         + "ORDER BY assettype; ";
        System.out.println("##0126 sqlATypes : " + sqlATypes);
        String from = "AssetPublication, ApprovedAssets";
        // String listName = null;
        String listName = "ATypesList";
        int limit = -1;
        // boolean bCache = true;
        boolean bCache = false;
        StringBuffer errStr = new StringBuffer("");
        ics.ClearErrno();
        IList rsATypes = ics.SQL(from, sqlATypes, listName, limit, bCache, errStr);
    
        System.out.println("## rsATypes : " + rsATypes);
        if (rsATypes == null) {
            System.out.println("## NO DATA in rsATypes! errStr : " + errStr.toString());
    

    }

    The journal:

    ## ics.GetSSVar("pubid")          : 1374097570685
    ## sqlATypes : SELECT DISTINCT assetpublication.assettype FROM assetpublication LEFT JOIN approvedassets     ON assetpublication.assetid = approvedassets.assetid WHERE pubid = '1374097570685' AND (tstate is null OR tstate <> 'A') AND (voided is null OR voided <> 'T') ORDER BY assettype;
    ## rsATypes : null
    ## NO DATA in rsATypes! errStr :
    


    I got enclosing try catch block, who did not take any exception.


    The funny thing is, in the same piece of code, an ics. Casea used already worked (which I noticed outside because there was not enough for what I want to do):

            StringBuffer errSB = new StringBuffer("");
            ics.SetVar("assetid", id);
            IList approvedAsset = ics.SelectTo("ApprovedAssets", "state,voided,tstate,locked,reason,treason", "assetid", null, -1, null, true, errSB);
    

    Any help/ideas from anyone would be really appreciated.

    Thanks Guddu1223, I discovered why.

    The SQL statement cannot end with a semicolon (see line 11 of my original above codes). Delete who had back all the records provided for in my resultset in the IList.

    The reason why it works in my local, but not stable instance that I guess is my local JSK + HyperSQL, in WCS + Oracle DB instance trying...

Maybe you are looking for