BlackBerry.System.Model return undefined

Hello

I have an application based on sencha touch 2.1 and I add the webworks inside lib.

When I try to get the device model using blackberry.system.model returning undefined.

But other api such as blackberry.system.softwareVersion, blackberry.system.name, blackberry.connection.type works fine.

Thank you & best regards

Arun

What operating system you test on? The model property is not supported in BlackBerry 10:

https://developer.BlackBerry.com/HTML5/APIs/BlackBerry.System.html#.model

However, we have an API community for this here:

https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10/deviceInfo

Tags: BlackBerry Developers

Similar Questions

  • problem or bug with blackberry.system.hasPermission ('location.maps')

    Hey all.  Can someone help me understand why this feature (see code below) does not work as it should?

    Copy the following code returns false on my 9900... Even if the card is activated (I have the icon on my home screen) and applications like foursquare and Poynt can use / make calls to BB Maps.  I can even call BBMaps within my own app if I ignore the result of this function

    function checkIfBBMaps(){
    
        var rslt = blackberry.system.hasPermission('location.maps'); 
    
        console.error("checkIfBBMaps:  rslt is:"+ rslt);
    
        if(rslt === true){
            return true;
        } else {
            console.error("checkIfBBMaps:  WE DONT HAVE MAPS");
            return false;
        }
    
    }
    

    Thoughts?

    I'm a * beep *!

    hasPermission()! = hasCapability().

    Oh wow.

    Time for me to get more coffee, I think!

    Edit: really?  the word'd i t i 0' is censored!  Wow.

  • Lenovo G560 INVALID INVALID, Lenovo SN system model

    Hello

    I have lenevo model G560

    When I check ystem information it shows invalid model system and also the SN system as being not valid

    The LENOVO system manufacturer
    INVALID system model
    System Type X 86-based PC
    Processor Intel (r) Core i3 CPU M 380 @ 2.53 GHz, 2533 Mhz, 2 Lossnay, 4 logical processors
    BIOS Version/Date LENOVO 29CN38WW (V2.15), 28/01/2011
    SMBIOS Version 2.6

    You will need to contact the Lenovo Support again and have them update the computer with this information.

  • Whenever my computer installs the Microsoft/Windows updates I get Internet and restoring the system to return.

    Whenever my computer installs the Microsoft/Windows updates I get Internet and restoring the system to return.

    Cite your version of IE and the full version of Windows (for example, WinXP SP3;) Vista 64 - bit SP2; Win7 RC. Win7) during the validation in an IE specific forum or a newsgroup. Please do it in your next reply.

    By "The Internet began" do you mean that you encounter errors Page can not be displayed ?

    Updates have you installed just before this problem started? Have you installed an update of the third-party driver that is offered by Windows Update?

    TIP: Never, EVER to use system restore to 'Cancel' an update, Service Pack, or upgrade of IE!  Instead, uninstall the update, Service Pack, or the IE patch & reboot.  If that does not resolve the problem, then try System Restore. ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Convert the function of transfer system model

    It is a practice "IF convert to transfer function of CDT.vi" in the system identification toolkit, but is a VI to go the other way? I used the id of system tools to estimate the TF from my system, but I want to compare it to the base of the first order response of the system to my real stimulus data.

    I can build a first TF command using the 'create order 1 model.vi CD' but I don't know how do to then turn this into a model of continuous system in which I can plug my real data.

    I am able to build a model system using 'IF create system model.vi' but it is a polynomial model, if there is a way to cajole this in the form of an order of 1st exponential base, it would be a great solution as well.

    (I'm experienced with LV, but my theory of control is rusty and I am totally new to CD modules and IF - then I apologize if this is a silly question)

    Hello

    You can use IF partially known continuous transfer (1st order) .vi model function and IF partially assess continuous known model transfer function (1st order SISO) .vi to estimate a 1st order TF, in which the parameters are defined as in CD create 1st order Model.vi

  • Cannot install windows update, error: updates have not been configured correctly. The system then returns

    Original title: Windows updates fail to configure.

    I wonder to install Windows updates. I do and I am told they have installed.  When I have to restart my computer, I get a message that the updates have not been configured correctly. The system then returns. Next time I turn on the computer I get a message saying that updates have not been successful.  This has happened for months. I think that my computer is very slow because of it. I also think that my computer is a little short on memory. It is an Inspiron 530 with 1 GB memory

    Hello

    I suggest you try the steps from the link below and check if it helps.

    Error: Failed to setup of the Windows updates. Restoration of the changes. Do not turn off your computer when you try to install Windows updates: http://support.microsoft.com/kb/949358

    I hope this information is useful.

  • blackberry.system.hasPermission () in WebWorks 2.0?

    Hello

    I use Webworks 2.0 and I need to check if my application has permission to access shared files, 1.0 blackberry.system.hasPermission ('access_shared'), but this feature has been removed from 2.0.

    Is there a function to replace this check? I can't find it.

    The native API is only checked if you had given a function-specific URL access.

    IE: If you put the following in your config file:

    https://somedomain.com" subdomains="true">
      
      
    
    

    It's not a way to verify permissions on the way to code. You must catch the error and respond within your application.

  • blackberry.system.hasDataCoverage () - for help after getting out of the widget?

    My widget is a form that my users will initiate and complete when they are offline.

    I know to use the blackberry.system.hasDataCoverage function to check for network connection and if there isn't one, to save the entry from user to localstorage.

    I want to make the process as transparent as possible for them. If they fill out the form (and the data is saved to the localstorage), and exit the widget, is there a way to take advantage of the hasDataCoverge when they find connectivity?

    Hi, MMC,

    You can use the onCoverageChange event to see if something has changed http://www.blackberry.com/developers/docs/webworks/api/blackberry.system.event.html#.onCoverageChang...

  • Function return undefined values

    My function returns undefined values. It seems that the return of the function statement is executed before the database is queried and values are assigned to variables. If I do an alert within the loop for () I get the correct values from the database, but these values are not affected before excecuting the return statement function. How can I do this differently?

    function getColumnNames(table){
        var rs1, rs2, rs3, rs4, rs5;
        db.transaction(function (tx) {
            tx.executeSql("SELECT * FROM schema WHERE table_name=?",[table], function(ax, results){
                var size = results.rows.length, i;
                var item;
                for (i = 0; i < size; i++){
                    item = results.rows.item(i);
                    rs1 = item.col1;
                    rs2 = item.col2;
                    rs3 = item.col3;
                    rs4 = item.col4;
                    rs5 = item.col5;
                                    alert(rs1); //correct value is returned here
                }
            });
        });
        return [rs1, rs2, rs3, rs4, rs5];
    }
    

    Hey Fabian,.

    You are quite correct that the return statement is executed before the database returns the results. There are ongoing asynchronous calls. You can set breakpoints in JavaScript code to see what is happening. You can correct the problem by using function callbacks. I edited your code below to use the callback functions - there might be a few typos, but the general approach should be wooded.

    function getColumnNames(table, callback){
        var rs1, rs2, rs3, rs4, rs5;
        db.transaction(function (tx) {
            tx.executeSql("SELECT * FROM schema WHERE table_name=?",[table], function(ax, results){
                var size = results.rows.length, i;
                var item;
                for (i = 0; i < size; i++){
                    item = results.rows.item(i);
                    rs1 = item.col1;
                    rs2 = item.col2;
                    rs3 = item.col3;
                    rs4 = item.col4;
                    rs5 = item.col5;
                        alert(rs5); //correct values are being returned
                    callback([rs1, rs2, rs3, rs4, rs5]);
                }
            });
        });
    }
    
    // example of how to call getColumnNames with callback
    getColumnNames('importantTable', function (result)
    {
        console.log(result);
    });
    
    // alternative version
    function onCallback(result)
    {
        console.log(result);
    }
    
    getColumnNames('importantTable', onCallback);
    

    I hope this helps.

    See you soon,.

    James

  • (blackberry.system.event.KEY_BACK, handleBack): question in BB5.0

    Hi all

    Please take a look at my code. This code used for adding menuitem in Blackberry 5.0 ias

    try {}
    blackberry.system.event.onHardwareKey (blackberry.system.event.KEY_BACK, handleBack);
    function handleBack() {}
    Alert ("handle back button");
    }
    If (blackberry.ui.menu.getMenuItems () .length > 0) {}
    blackberry.ui.menu.clearMenuItems ();
    }
    var point = new blackberry.ui.menu.MenuItem (false, 1, "Exit", OnClickExitButton);
    blackberry.ui.menu.addMenuItem (item);
    } catch (e) {}
    Alert ('exception (addMenus): "+ e.name +"; ") + try ());
    }

    I am compiling my code in WW SDK 2.3. When running the application in BB 5.0 it gives "error refrence: handleBack is not defined,.»

    Same feature is added to the configuration file:


     
     

    Please let me know the solution. I'm stuck here, not able to add menuitem in my application.

    Define function handleBack() outside your try block and outside any function of the try block is in.

  • Cisco UCS blades ¦ smbiosDump command returns "undefined, but can be defined.

    Hello community.

    I installed ESXi on a series B UCS blade but were unable to enumerate the UUID (set via Service profile) with the... smbiosDump, more than command.

    All other fields back properly for the serial number, etc... but no UUID. UUID returns: "undefined, but can be defined.    Is this a problem of ESXi and UCS?

    (NOTE, with ESX classic, dmidecoe ¦ more command lists the UUID perfectly.)

    Thoughts, comments, suggestions, input welcome.

    Best of all,

    Jason

    of cpaggen: esxcfg-info | grep UUID

  • RW-50011: error:-the availability of utility systems test returned the error 1

    Dear Experts,

    Please note that we receive the below error. Please notify.


    These utilities must be available on your system in order to perform administrative tasks.

    command: /StageR12.1_linux/startCD/Disk1/rapidwiz/bin/adchkutl.sh

    Check to make... found - / usr/bin/make
    Verification of the ld... found - / usr/bin/ld
    Checking the gcc...
    Cannot find 'gcc' utility on the way
    Control of g ++...
    Could not find ' g ++ ' utility on the way
    Control of the ar... found - / usr/bin/ar
    Could not locate all of the utilities with a system path.
    Path = /usr/bin:/StageR12.1_linux/startCD/Disk1/rapidwiz/unzip/Linux_x64:/usr/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
    who: no gcc in (/ usr/bin:/StageR12.1_linux/startCD/Disk1/rapidwiz/unzip/Linux_x64:/usr/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    who: no g ++ in (/ usr/bin:/StageR12.1_linux/startCD/Disk1/rapidwiz/unzip/Linux_x64:/usr/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)


    RW-50011: error:-the availability of utility systems test returned an error: 1


    concerning
    Mohammed Abdul Muqiit

    Cannot find 'gcc' utility on the way

    Make sure that gcc is installed in accordance with the following documentation.

    Installation of Oracle E-Business Suite and 12 (12.1.1) for Linux x 86 version upgrade Notes [ID 761564.1]
    Oracle E-Business Suite installation and upgrade version Notes 12 (12.1.1) for Linux x 86-64 [ID 761566.1]

    Thank you
    Hussein

  • dc5800 sff computer of office: purchase recovery disc for dc5800 sff system, model KA404UT #ABA

    I am the 2nd owner of computer and appears as former owner had installed a Dell on this HP operating system. would be OK but drive hard contains of disk errors that Windows cannot fix. Leading to intermittent shutdowns and all kinds of fluctuations to get a Win 7 upgrade disk to restart Windows. HP does not sell the RRD more. I'd be willing to pay for the discs, if someone has a set of left.

    Hello:

    Most of the dc5800 comes with Windows Vista Business or Vista Business downgraded to XP Pro, like yours, so HP has never had recovery disc for the dc5800 W7.

    https://h10057.www1.HP.com/ecomcat/hpcatalog/specs/provisioner/05/KA404UT.htm

    You call this number (USA/Canada) to see if HP recovery Vista Business left discs?

    Demand for 64-bit because otherwise you will get 32 bits.

    1-800-334-5144

    If they do not, you can still get a set of this provider not HP - looks like only 32-bit however.

    You can call and ask if they have Vista Business 64-bit games.

    http://www.computersurgeons.com/p-18420-Windows-Vista-business-recovery-kit-gx022av-for-hpcompaq-model-number-dc5800-small-form-factor-PC.aspx

  • HP Compaq dc7800p small form f: the upgrade of system model HP Compaq dc7800p Small Form Factor

    Right, I'm wanting to upgrade my ram and graphics card, but I am struggling to understand what I put in and what I can't. I also wouldn't mind research in a new soul who currently use a vpro intel Intel (r) Core (TM) 2 Duo CPU E6750 @ 2.66 GHz, 2660 Mhz. I just want to eventually play some games, but nothing heavy and do some light video editing again once nothing to heavy. Any help would be amazing.

    Here is the complete information of the system:

    Name of the Microsoft® Windows Vista™ operating system business
    Version 6.0.6002 Service Pack 2 Build 6002
    Another Description of the OS is not available
    Manufacturer of operating system Microsoft Corporation
    USER-computer name
    System manufacturer Hewlett-Packard
    Model HP Compaq dc7800p Small Form Factor system
    System Type X 86-based PC
    Processor Intel (r) Core (TM) 2 Duo CPU E6750 @ 2.66 GHz, 2660 Mhz, 2 Lossnay, 2 logical processors
    BIOS Version/Date Hewlett-Packard 786F1 v01.27, 11/04/2008

    I would also like to pass well ten Windows. Thank you

    Hello:

    For a video card, I recommend the AMD Radeon HD 6450 half-height card, which works perfectly with the 240W power supply in your PC.

    Make sure that you get one that includes low profile brackets in the area.

    Memory... you can install a maximum of 4 x 2 GB memory PC2-6400 for your model if you are running a 64-bit operating system.

    I have used this brand in my dc7800 CMT.  I bought 2 games and maxed out.

    http://www.Newegg.com/product/product.aspx?item=N82E16820231207

    Processors... Mine came with the E8300, so I didn't change that.

    Here is the link to the quickspecs for your PC.  You can find taken processors supported on page 9.

    http://WWW8.HP.com/h20195/v2/GetPDF.aspx/c04287277.PDF

  • Screw system configuration return a code error-2147220608 in LV2013 but not in LV2012 on my system sbRIO

    I worked to deploy a minor correction to an existing system that has worked. Part of this upgrade was to move to LV2013. The configuration of the system live that I used successfully in LV2012 to change the comment and the host name of the error code return now target sbRIO-2147220608 in 2013 when I try to save the changes. By looking at the detailed of the Save Changes (System) .vi result output, I get the message "the IP address and the gateway must be on the same subnet." The problem is twice 1) I'm not change the IP address or gateway on the system and 2) IP address and the gateway are preconfigured by MAX OR 10.0.1.155 and 10.0.0.3 with a subnet mask of 255.255.0.0. Based on my understanding and conversations with my COMPUTER service is a valid combination.

    Help?

    Warrior of wire

    Hello

    R & D work on implementing a fix for this bug. In the meantime, here is a workaround:

    If you write the correct IP address and write the host name and the comment, then your backup will be successful. We realize that this is not a very pretty or intuitive solution, but it should work until a fix is implemented.

Maybe you are looking for