NULL values for some elements of the XML reading tree

I am confirming that I interpret correctly all the elements of a custom data XML structure defined by my application (the schema is completely under my control).  Some of the elements in my XML tree are read as NULL values, even if similar items are readind as expected.  I have checked some obvious things like misspelling the names of keys, but have not yet find the problem.  Anyone who has debugged similar questions - what else could cause this?

Example XML:


    1.0.0.0
    1000
    MyAppsName
    
        
            1000
            userDefined
            StructName
        
    

And extracted C++ w/comments at the end of each line about what I see (DataManager is my class of CRUD operations):

In DataManager.hpp:

QVariant mCustomDataStructsTopLevel;
QVariantMap mCustomDataStructsTopLevelMap;

In DataManager.cpp:

mCustomDataStructsTopLevel = mXda.load(Utils::dataFilePath(customDataStructsFileName));  // XmlDataAccess; verified loading w/no errors
mCustomDataStructsTopLevelMap = mCustomDataStructsTopLevel.toMap();

qDebug() << "appName element value: " << mCustomDataStructsTopLevelMap["appName"]; // Outputs "MyAppsName" as expected
qDebug() << "lastId element value: " << mCustomDataStructsTopLevelMap["lastId"]; // Outputs null (specifically: QVariant(, ) ) - this is NOT expected
qDebug() << "appVersion element value: " << mCustomDataStructsTopLevelMap["appVersion"]; // Outputs null (specifically: QVariant(QString, "") )  - this is NOT expected

OK, I got the feeling (and actually hoped) it was a silly mistake of face-palm on my part (compared to a problem of BB10 who had little chance of getting fixed).

The problem is that I copy the structure of custom data from Starter to my Active dir to my data directory to first install but do not crush him on subsequent launches, as the copy in the data directory is what the user changes and relies on.  I was not a delete and reinstall on each of my iterations, so I wasn't really loading the modified versions of my XML I wanted--just, I was getting a day old stale version which was actually for the items I didn't expect NULL values for nulls.  DOH!

Tags: BlackBerry Developers

Similar Questions

  • Type a table defined clusters to hold configuration data - definition of default values for each element of the array

    Hello

    I was wondering if I could get some information and opinions on the use of an array of type defined clusters to store configuration data.  I am creating a program to test several EHR and wanted to have a control of type defined for each HAD with the information needed to create the DAQmx tasks for all signals for it must HAVE.  I am eager to do so that the data are encoded in hard and not in a file that the user might spoil.

    Controls of type def are then put into a Subvi who chooses as appropriate, one based on the enumeration of Type DUT connected to a case structure.

    I have problems with the control of the defined type.  I see issues when you try to save a configuration unique to each element of the array in the array of clusters.  Somehow, it worked at first, but now by clicking on "Operations on the data--> default font of the current value ' on individual elements of the cluster or the entire cluster (array element) does not save data when I re - open the command def.  What I am doing wrong?  I'm trying to do something with the berries of the clusters that I shouldn't do?

    I enclose one of the defined reference type controls.  I tried to change it bare to see if that helped, but no luck.

    To reproduce, change the resource string for the element 0 of the array and do the new value by default.  Then close the def of type, and then reopen it.  The old value is always present in this element.  The VI is saved in LabVIEW 2012.

    The values of a typedef are not proprigated to the instances of the control. They get if created WHEN data values have changed. They will be not updated with the changes to come. You must create a VI specifically to hardcode your values or to implement a file based initialization. The base file would be much better and more flexible. If you don't want users to change the data simply encryption. There is a wedding blowfish library that you can download.

  • How can I change the value of an element in an XML file?

    Looks like I could be overloading the things.  I created a vi that can read a xml file that I created manually but also need to modify the element values.

    For example, I want to change the 'Count' of 4 to 5 element in the xml file:


       
          02/03/2015
          4
          984
       

    Help or direction is appreciated (in addition to be referred to as W3Schools which was my first station)

    Thank you

    Jeremy

    I really think you need to check the W3Schools for XPath info, makes life easier:

  • Move the 2 values to 2 elements in the interactive report via a url

    Hello

    I have it here's the url to pass the 2 values to 2 elements in the interactive report via a url

    apex_util.prepare_url ('f? p = & APP_ID.:0 00 :'||: APP_SESSION |':000:P000_STATUS, P000_DATE :'|| ccodes.code, '1 year') in the form of url

    The second value is not passed in, P000_DATE the interactive report item.  "1 year" is the option in the selection list on . I also tried below and a combination of IREQ_, etc., but no worked


    apex_util.prepare_url ('f? p = & APP_ID.:0 00 :'||: APP_SESSION |':000:P000_STATUS, P000_DATE :'|| ccodes.code,'| 1 year "")


    Some advice on this one?

    Thank you

    Alexander

    The code doesn't seem right for me

    apex_util.prepare_url ('f? p = & APP_ID.: 0 00 :'||: APP_SESSION |':000:P000_STATUS, P000_DATE :'|| ccodes.code, '1 year') in the form of url

    Ilyalieude modifierlereglement like this.


    apex_util.prepare_url ('f? p = & APP_ID.: 0 00:' |: APP_SESSION |) ": 000:P000_STATUS, P000_DATE:' |" ccodes.code | 1 year") in the form of url


    Kind regards

  • Null values for DB2 are causing problems

    Hello
    I have another problem with the link to the database to DB2 on IBM iSeries Access for Linux 64-bit OEL5 with gateway database Oracle and unixODBC 2.2.14.
    DB link works. However, null values for DB2 are causing problems. "The columns Date null on db2 return a date ' 30.11.0002 ', and the columns of characters that are null return an error ORA-28528: heterogeneous Services data type conversion error.
    isql returns the correct results.

    How can I fix? May set some parameters for the conversion of the data on the entry door?

    Thank you.

    If the driver is not fully ODBC level 3 compliant and functions of the spleen, we are lost. But sometimes drivers ODBC level 3 compliant, but lack the correct implementation of 64-bit. In these cases, we can tell the gateway to use the 32-bit ODBC 3 standard adjustment level in the gateway init file:
    HS_FDS_SQLLEN_INTERPRETATION = 32

  • Can I programmatically change the default property to create for all elements of the front panel?

    Can I programmatically change the default property to create for all elements of the front panel?

    I need to make the logout button, when click on, takes care of all the default values of my fron Panel.

    There is no way to programmatically call the functionality of an editor 'Use default' or 'Load Default'. To do it yourself, you will need to write your default values for each control explicitly in the diagram, when the user press the logout button.

  • Why some elements of the taskbar are grayed out?

    original title: Vista 64 bit Home Premium got updated yesterday. Why some elements of the taskbar are grayed out?

    Hello.

    Yesterday, I downloaded the updates from Microsoft Update. I use Vista 64 bit Home Premium on a Toshiba laptop.

    I don't see the network icon in the taskbar.

    When I right click on the taskbar, go to properties, Notification area tab: I see that Volume, network and power are grayed out. I can't select them. The only I can change is the clock to turn on or off.

    Is there something I can do? No one else has used the laptop. Thank you.

    It works again. Sometimes this happens and I don't know why.

    I used my computer. I turned it off and now the missing things are back.

    Thanks for the info, I didn't have to do it well.

  • Scheduler - schedule for some weekends of the month

    Hello world

    I have a small question on the Scheduler.  There have been a few times I want to plan things for some weekend... for example, planning a reboot every third Sunday of the month.  I don't know if it's possible with the planner of the way it is currently set up, but maybe I'm just completely overlooking something.  It seems to me that I have to manually enter these dates.

    I would like to know if anyone has any ideas.

    Thank you!

    Hey goody,.

    I only use the Scheduler (in the left pane) if I want to program to fix times, for example once a week, each time nd so on.

    For all other purposes, I use auto programming workflow. This means a workflow that is itself on common language runtime scheduling.

    Just call your workflow in itself as a regular workflow. Before calling calc planning date with your algorithm (for example every 3rd Sunday).

    After this date, you will get the scheduleTask. Here you can also set the Boolean value for a restart in the past.

    Under the Goody3335 of workflow in the form of schema:

    Annex Calc might look like this for all the 3rd Sunday

    workflowScheduleDate = new Date(); //this is now
    if (workflowScheduleDate.getMonth() < 11) {workflowScheduleDate.setMonth(workflowScheduleDate.getMonth() + 1);}
    else {workflowScheduleDate.setMonth(0);}
    workflowScheduleDate.setHours(12);
    workflowScheduleDate.setMinutes(0);
    workflowScheduleDate.setSeconds(0);
    workflowScheduleDate.setDate(1);
    if (workflowScheduleDate.getDay() > 0) {workflowScheduleDate.setDate(22 - workflowScheduleDate.getDay());}
    else {workflowScheduleDate.setDate(15);}
    

    You can run this workflow to start whenever you want. He will then see next month by adding a month or go back to 0.

    setDate sets the calendar on the first day in this new month (now the date is the 1st of the new month and the time is set to vCO, 12:00 local time = GMT + Offset)

    From there we can calc the 3rd Sunday: 22-DayOfWeek is the 3rd Sunday, except months begins on Sunday, is 15.

    In the end scheduleDate ist 3rd Sunday at month 12:00

    Kind regards, Andreas

  • How to create a validation "not null" unique for all elements in a page?

    Hello world

    How to create a validation "not null" unique for all elements in a page? I love textfields. Rather than create "not null" validation for each article, I would like to create a single validation control that will be used

    Thanks and greetings
    Umer

    Nice1 wrote:
    Bob, like u said I did the following:

    (1) less to create a button, there are 9 elements, and for each item, I put in the light of 'yes '.
    (2) under the button Delete, there is 1 point and have in light of the 'Yes' for the item
    (3) validation of the page defined for the 9 items under 'create a button' and put it to fire when 'create' button clicked
    (4) the page validation set for 1 number under 'remove' button and put it on fire when "delete" button clicked

    now, when I click on the 'create' button it shows same for the item under the "Delete" button that's a required element

    Sorry, I do not see this note. The required model will not work, there is no way to attach it to the button.

    The best solution is that the answer only a few answers to the top

    Create 2 validations page type as a PL/SQL with code

    1st validation
    
    :P1_ITEM1 IS NOT NULL and :P1_ITEM2 IS NOT NULL ...... and :P1_ITEM9 IS NOT NULL  include all 9 items
    
    Set the When Button Pressed to the CREATE button
    
    2nd validation
    
    :P1_ITEM10 IS NOT NULL
    
    Set the When Button Pressed to the DELETE button
    

    I think that this will be the best way to do it.

    Published by: Bob37 on April 27, 2012 12:02

  • Some element of the third level drop-down Menu is invisible

    APEX 4.2

    Oracle 11i

    area type: list

    list template: drop-down menu

    Requirement: I created the menu list with level 3 model, but found that some element of the third level is invisible, sometimes, someone has experienced this problem?

    How can I show the whole issue?

    Better compliance

    Yong Huang wrote:

    Thank you very much, you are right, it worked when I changed the target type of URL without a target.

    But the new problem is that cannot save changes implemented which target URL, it was recovered on the page target type in the application to the next time. How do I do? Like a menu, I have to put the page number to the target.

    and why target page type the application cannot show normally?

    This is because (at least in the example you provided) to two factors:

    • A 'feature' the theme 21 Pull Down Menu model list, which seems to be so designed as not to display a link to the current page. The current definition of model sublist will render an image of separator rather than the list entry/link:

    • Your entries of the list all link to the same page.

    So to determine which model of list item to apply using the list input parameter current that current page is the target by default, APEX motor sees all of the entries in the form of links to the current page and presents them by using the current model sublist list item template as a separator.

    All of your entries of the list really related to the same page? If so, why is this? What you trying to do? There may be other ways to address the issue that you have not considered.

    If you really must use a dropdown menu with multiple links to the same page here, then there are two options:

    • Continue to use the list template Pull Down Menu provided, but put in place a framework of Expression PL/SQL or SQL query to determine the current list entry.
    • Create a copy of the Pull Down Menu model list and change the current model sublist definition so that the list entry appears in fact.
  • I'm trying to upload my site using ftp, but for some strange reason, the ftp server box becomes red, even if the name is correct. everyone knows about this problem?

    I'm trying to upload my site using ftp, but for some strange reason, the ftp server box becomes red, even if the name is correct. everyone knows about this problem?

    Hello

    I would ask to share with you the screenshot of the box which becomes red.

    Concerning

    Vivek

  • How to disable a page based on the value of another element on the Page element?

    Hello

    How can I turn a page element using javascript based on the value of another element on the page?

    Eg: P1_TEXT want to be disabled if the value in P1_LCOK = "LOCK".

    How can I do this using javascript. I want this implemt on loading the page.

    Kind regards
    Benz

    Put this function in the page header:

    
    

    and call it in the footer:

    f_disable_item;
    

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

  • the XML reader - need assistance to change the script, please help

    Hi all, I don't know if this is the right place for this question but I want to change a xml flash drive so that it creates the playlist with the name I want and not the default. Some can tell me please how to change this so that when the player has found songs in the "my_mp3s" folder it creates a named xml playlist

    'mymusic.xml ' instead of the default "audioplaylist.xml".  I tried to edit the script of the player's actions and overwrite changes but it still does not work, here is the code please help. I found this script online.

    Thank you

    Stop();

    / * ALL BUTTONS BELOW ARE MARKED FOR EDITABLE AND DON'T CHANGE, BUT IF YOU KNOW WHAT YOU ARE DOING
    THEN YOU CAN ACTUALLY CHANGE WHAT YOU WANT BUT FOR THIS APP WORKS CORRECTLY ONLY CHANGE IF NECESSARY
    ENTRIES... ONCE YOU HAVE MADE YOUR CHANGES, COPY AND PASTE THIS ENTIRE SCRIPT PAGE IN
    THE FIRST IMAGE OF THE SCENARIO THAT HE RIGHT THE SCRIPT THATS ALREADY THERE.
    The button labels for the XML READER text * /.
    SIDE MENU BUTTONS\\\
    Btn1.buttText.ButtonText.text = "DOWNLOAD FILES"; DO NOT CHANGE
    btn2.buttText.ButtonText.text = "SYSTEM VOLUME"; DO NOT CHANGE
    btn3.buttText.ButtonText.text = 'EDIT PLAYLIST XML'; DO NOT CHANGE
    btn4.buttText.ButtonText.text = "BURN CD"; DO NOT CHANGE
    btn5.buttText.ButtonText.text = "CREATE a FOLDER"; DO NOT CHANGE
    btn6.buttText.ButtonText.text = 'DELETE FILE'; DO NOT CHANGE
    btn7.buttText.ButtonText.text = "CDROM OPEN"; DO NOT CHANGE
    btn8.buttText.ButtonText.text = 'OPEN DVD'; DO NOT CHANGE
    btn9.buttText.ButtonText.text = "FTP CLIENT"; DO NOT CHANGE
    btn14.buttText.ButtonText.text = "VIEW PLAYLIST"; DO NOT CHANGE
    btn23.buttText.ButtonText.text = "INFO"; DO NOT CHANGE
    btn25.buttText.ButtonText.text = 'HELP '; DO NOT EDIT
    btn26.buttText.ButtonText.text = 'HELP MDM'; DO NOT CHANGE
    LOW BTNS
    btn19.buttText.ButtonText.text = "OPEN TRAY"; DO NOT CHANGE
    btn20.buttText.ButtonText.text = 'CLOSE CD TRAY'; DO NOT CHANGE
    btn21.buttText.ButtonText.text = "OPEN DVD TRAY"; DO NOT CHANGE
    btn22.buttText.ButtonText.text = "CLOSE DVD TRAY"; DO NOT CHANGE

    Here ARE the FUNCTIONS THAT CAN BE CHANGED, BUT THAT THOSE BRAND 'YOU CAN CHANGE this PATH' are sure to change
    MY DOWNLOAD FILES
    Btn1.onRelease = function() {}
    MDM. Dialogs.BrowseFile.filterList = "MP3 files | * .mp3 ';
    MDM System.exec ("E:\\My Music\\").    Path to the download of the file //YOU CAN CHANGE THIS path
    }
    SYSTEM VOLUME / / / DO NOT CHANGE
    btn2.onRelease = function() {}
    MDM. System.exec("sndvol32.exe");    System volume .exe
    }
    EDITING XML PLAYLIST / / / DO NOT CHANGE
    btn3.onRelease = function() {}
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\audiolist2.xml");    XML list
    }
    BURN CD / / YOU CAN CHANGE THIS PATH
    btn4.onRelease = function() {add your way here to your burning nero for example software
    MDM. System.exec (MDM. System.Paths.programFiles+"Nero\\nero.exe");
    }
    CREATE FOLDER / / / DO NOT CHANGE
    btn5.onRelease = function() {}
    MDM FileSystem.makeFolderUnicode ("C:\\Program Files\\Mgamerz\\Burn").    Creates a working folder for burning mp3s
    }
    DELETE FOLDER / / / DO NOT CHANGE
    btn6.onRelease = function() {///Deletes working folder if you want to remove it
    MDM. FileSystem.deleteFolder ("C:\\Program Files\\Mgamerz\\Burn", "ask", "Are you sure");
    }
    OPEN CDROM / / YOU CAN CHANGE THIS PATH
    btn7.onRelease = function() {///Opens change of cdrom drive letter to match your pc
    MDM System.exec("I:\\."); "
    }
    OPEN DVDROM / / YOU CAN CHANGE THIS PATH
    btn8.onRelease = function() {///Opens changing the letter to match your pc dvdrom drives
    MDM System.exec("I:\\."); "
    }
    FTP CLIENT / / YOU CAN CHANGE THIS PATH
    btn9.onRelease = function() {///File path to your ftp software (I use here the cover page)}


    MDM. System.exec (MDM. System.Paths.programFiles + "Microsoft FrontPage Bar\\Office\\Microsoft Office\\Office10\\Shortcut"); "
    }
    Buttons in the header at the top

    DRIVE C: / / / DO NOT EDIT
    btn10.onRelease = function() {///Opens to the top of drive c: for navigation
    MDM. System.exec (MDM. System.Paths.programFiles+"\\");
    }
    * btn11.onRelease = function() {///Opens to the top of the unit for navigation
    MDM System.exec("D:\\."); "    YOU CAN CHANGE THIS PATH
    }*/
    MY DOCUMENTS / / / NOT EDIT
    btn12.onRelease = function() {///Opens my documents for navigation}
    MDM. Dialogs.BrowseFile.filterList = "MP3 files | * .mp3 ';
    MDM. Dialogs.BrowseFile.show ("my Documents\\");
    }
    MP3 FILE / / / DO NOT CHANGE THE
    btn13.onRelease = function() {//main directory for mp3 files
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\my_mp3s\\");
    }
    VIEW PLAYLIST / / / DO NOT CHANGE
    btn14.onRelease = function() {///View playlist as a text file
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\my_mp3s\\mp3.t xt");
    }
    UPDATE XML FILE / / / DO NOT CHANGE
    btn15.onRelease = function() {///Creates xml playlist once new mp3s have been added
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\audiolist2.xml");
    }
    MINIMIZE BUTTON
    * btn16.onRelease = function() {//Minimizes application
    MDM. Application.Minimize (///DO) NOT EDIT
    }*/
    CLOSE BUTTON
    * btn17.onRelease = function() {///Closes application
    MDM. Application.Exit ('ask', ' are you sure you want to go out to? ") DO NOT EDIT
    }*/
    SCREEN CAPTURE DEVICE / / / DO NOT CHANGE
    btn18.onRelease = function() {///Screen capture sofdtware
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\apps\\Capture screen Studio\\css.exe");
    }
    OPEN CDROM TRAY / / YOU CAN CHANGE THIS PATH
    btn19.onRelease = function() {}
    MDM System.openCDTray ("I").
    }
    CDROM TRAY CLOSE / / YOU CAN CHANGE THIS PATH
    btn20.onRelease = function() {//Closes cdrom tray
    MDM System.closeCDTray ("I").
    }
    OPEN DVDROM PLATEAU / / YOU CAN CHANGE THIS PATH
    btn21.onRelease = function() {//Opens dvdrom
    MDM System.openCDTray ("H").
    }
    CLOSE TRAY DVDROM / / YOU CAN CHANGE THIS PATH
    btn22.onRelease = function() {//Closes dvdrom plateau
    MDM System.closeCDTray ("H").
    }

    * btn23.onRelease = function() {//DO NOT EDIT
    nextFrame();
    }*/
    HELP / / DO NOT EDIT
    btn25.onRelease = function() {//Closes dvdrom plateau
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\help.exe");
    }
    HELP OF MDM / / DO NOT EDIT
    btn26.onRelease = function() {//Closes dvdrom plateau
    MDM. System.exec (MDM. System.Paths.programFiles + "MDM helps 2.5 file\\MDM 2.5 UserManual.chm"); "
    }

    use:

    / * ALL BUTTONS BELOW ARE MARKED FOR EDITABLE AND DON'T CHANGE, BUT IF YOU KNOW WHAT YOU ARE DOING
    THEN YOU CAN ACTUALLY CHANGE WHAT YOU WANT BUT FOR THIS APP WORKS CORRECTLY ONLY CHANGE IF NECESSARY
    ENTRIES... ONCE YOU HAVE MADE YOUR CHANGES, COPY AND PASTE THIS ENTIRE SCRIPT PAGE IN
    THE FIRST IMAGE OF THE SCENARIO THAT HE RIGHT THE SCRIPT THATS ALREADY THERE.
    The button labels for the XML READER text * /.
    SIDE MENU BUTTONS\\\
    Btn1.buttText.ButtonText.text = "DOWNLOAD FILES"; DO NOT CHANGE
    btn2.buttText.ButtonText.text = "SYSTEM VOLUME"; DO NOT CHANGE
    btn3.buttText.ButtonText.text = 'EDIT PLAYLIST XML'; DO NOT CHANGE
    btn4.buttText.ButtonText.text = "BURN CD"; DO NOT CHANGE
    btn5.buttText.ButtonText.text = "CREATE a FOLDER"; DO NOT CHANGE
    btn6.buttText.ButtonText.text = 'DELETE FILE'; DO NOT CHANGE
    btn7.buttText.ButtonText.text = "CDROM OPEN"; DO NOT CHANGE
    btn8.buttText.ButtonText.text = 'OPEN DVD'; DO NOT CHANGE
    btn9.buttText.ButtonText.text = "FTP CLIENT"; DO NOT CHANGE
    btn14.buttText.ButtonText.text = "VIEW PLAYLIST"; DO NOT CHANGE
    btn23.buttText.ButtonText.text = "INFO"; DO NOT CHANGE


    btn25.buttText.ButtonText.text = 'HELP '; DO NOT EDIT
    btn26.buttText.ButtonText.text = 'HELP MDM'; DO NOT CHANGE
    LOW BTNS
    btn19.buttText.ButtonText.text = "OPEN TRAY"; DO NOT CHANGE
    btn20.buttText.ButtonText.text = 'CLOSE CD TRAY'; DO NOT CHANGE
    btn21.buttText.ButtonText.text = "OPEN DVD TRAY"; DO NOT CHANGE
    btn22.buttText.ButtonText.text = "CLOSE DVD TRAY"; DO NOT CHANGE

    Here ARE the FUNCTIONS THAT CAN BE CHANGED, BUT THAT THOSE BRAND 'YOU CAN CHANGE this PATH' are sure to change
    MY DOWNLOAD FILES
    Btn1.onRelease = function() {}
    MDM. Dialogs.BrowseFile.filterList = "MP3 files | * .mp3 ';
    MDM System.exec ("E:\\My Music\\").    Path to the download of the file //YOU CAN CHANGE THIS path
    }
    SYSTEM VOLUME / / / DO NOT CHANGE
    btn2.onRelease = function() {}
    MDM. System.exec("sndvol32.exe");    System volume .exe
    }
    EDITING XML PLAYLIST / / / DO NOT CHANGE
    btn3.onRelease = function() {}
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\audiolist2.xml");    XML list
    }
    BURN CD / / YOU CAN CHANGE THIS PATH
    btn4.onRelease = function() {add your way here to your burning nero for example software
    MDM. System.exec (MDM. System.Paths.programFiles+"Nero\\nero.exe");
    }
    CREATE FOLDER / / / DO NOT CHANGE
    btn5.onRelease = function() {}
    MDM FileSystem.makeFolderUnicode ("C:\\Program Files\\Mgamerz\\Burn").    Creates a working folder for burning mp3s
    }
    DELETE FOLDER / / / DO NOT CHANGE
    btn6.onRelease = function() {///Deletes working folder if you want to remove it
    MDM. FileSystem.deleteFolder ("C:\\Program Files\\Mgamerz\\Burn", "ask", "Are you sure");
    }
    OPEN CDROM / / YOU CAN CHANGE THIS PATH
    btn7.onRelease = function() {///Opens change of cdrom drive letter to match your pc
    MDM System.exec("I:\\."); "
    }
    OPEN DVDROM / / YOU CAN CHANGE THIS PATH
    btn8.onRelease = function() {///Opens changing the letter to match your pc dvdrom drives
    MDM System.exec("I:\\."); "
    }
    FTP CLIENT / / YOU CAN CHANGE THIS PATH
    btn9.onRelease = function() {///File path to your ftp software (I use here the cover page)}
    MDM. System.exec (MDM. System.Paths.programFiles + "Microsoft FrontPage Bar\\Office\\Microsoft Office\\Office10\\Shortcut"); "
    }
    Buttons in the header at the top

    DRIVE C: / / / DO NOT EDIT
    btn10.onRelease = function() {///Opens to the top of drive c: for navigation
    MDM. System.exec (MDM. System.Paths.programFiles+"\\");
    }
    * btn11.onRelease = function() {///Opens to the top of the unit for navigation
    MDM System.exec("D:\\."); "    YOU CAN CHANGE THIS PATH
    }*/
    MY DOCUMENTS / / / NOT EDIT
    btn12.onRelease = function() {///Opens my documents for navigation}
    MDM. Dialogs.BrowseFile.filterList = "MP3 files | * .mp3 ';
    MDM. Dialogs.BrowseFile.show ("my Documents\\");
    }
    MP3 FILE / / / DO NOT CHANGE THE
    btn13.onRelease = function() {//main directory for mp3 files
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\my_mp3s\\");
    }
    VIEW PLAYLIST / / / DO NOT CHANGE
    btn14.onRelease = function() {///View playlist as a text file
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\my_mp3s\\mp3.t xt");
    }
    UPDATE XML FILE / / / DO NOT CHANGE
    btn15.onRelease = function() {///Creates xml playlist once new mp3s have been added
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\mymusic.xml");
    }
    MINIMIZE BUTTON
    * btn16.onRelease = function() {//Minimizes application
    MDM. Application.Minimize (///DO) NOT EDIT
    }*/
    CLOSE BUTTON
    * btn17.onRelease = function() {///Closes application
    MDM. Application.Exit ('ask', ' are you sure you want to go out to? ") DO NOT EDIT
    }*/
    SCREEN CAPTURE DEVICE / / / DO NOT CHANGE
    btn18.onRelease = function() {///Screen capture sofdtware
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\apps\\Capture screen Studio\\css.exe");
    }
    OPEN CDROM TRAY / / YOU CAN CHANGE THIS PATH
    btn19.onRelease = function() {}
    MDM System.openCDTray ("I").
    }
    CDROM TRAY CLOSE / / YOU CAN CHANGE THIS PATH
    btn20.onRelease = function() {//Closes cdrom tray
    MDM System.closeCDTray ("I").
    }
    OPEN DVDROM PLATEAU / / YOU CAN CHANGE THIS PATH
    btn21.onRelease = function() {//Opens dvdrom
    MDM System.openCDTray ("H").
    }
    CLOSE TRAY DVDROM / / YOU CAN CHANGE THIS PATH
    btn22.onRelease = function() {//Closes dvdrom plateau
    MDM System.closeCDTray ("H").
    }

    * btn23.onRelease = function() {//DO NOT EDIT
    nextFrame();
    }*/
    HELP / / DO NOT EDIT
    btn25.onRelease = function() {//Closes dvdrom plateau
    MDM. System.exec (MDM. System.Paths.programFiles+"Mgamerz\\help.exe");
    }
    HELP OF MDM / / DO NOT EDIT
    btn26.onRelease = function() {//Closes dvdrom plateau
    MDM. System.exec (MDM. System.Paths.programFiles + "MDM helps 2.5 file\\MDM 2.5 UserManual.chm"); "
    }

  • Problem of null values for the Variable

    I work with APEX 4.0.  I have a menu page that has a list item widget types to select.  I then a navigation list that calls a report page and sets a widget-type element with the value of the widget on the page called - type element.

    Problem is that type widget on the page called article does not meet.  The report depends directly on this issue being filled.  The url indicates the element in the form of Pxxx_WIDGET_TYPE, but the value for parameter & Pxxx_WIDGET_TYPE. is set to null.  I am also an element of Pxxx_CALLED_FROM filling, which fill, and the url shows the value of & APP_PAGE_ID.

    What's wrong?  How to fill the element of widget_type?

    How do you define value for Pxxx_WIDGET_TYPE? And is there a value in the session state for this item?

    Kind regards

    Vincent

  • null value for the parameter in quesry

    Please help on this problem:

    I have a query like

    Select colA, colB
    from tableA
    where cola =: parameter;

    If: parameter has a value, then the request is ok for my pupposes,
    but when: parameter is null, then I have to choose only 3 values of colA. (ColA has more than 3 distinct values)

    I can't use nvl because there are 3 arguments and no 1.

    I tried:

    Select colA, colB
    from tableA
    where (: parameter is not null and colA =: parameter) or (: parameter is null and colA (1,2,3))

    but this isn't the solution.

    Can someone help me on this simple query?

    Your version must have worked as long as you have no other filter criteria in the where condition.
    Need you some parentheses around the OR condition. So I don't know what was the problem with your solution.
    BTW: There is a ') ' missing at the end, but I guess that it's just a typo while copying the code on the forum.

    The following alternative works:

    select colA, colB
    from tableA
    where colA in (nvl(:parameter,1) ,
                 nvl(:parameter,2) ,
                 nvl(:parameter,3)
                 ) ;
    

    Advantage: Can be faster in the case of null, because it can always use an index on the column of cola.

    Published by: Sven w. on April 13, 2010 15:26

Maybe you are looking for