1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    7
    Vote Rating
    0
    ssadiq19 is on a distinguished road

      0  

    Default Unanswered: Remote Database access in BB native App

    Unanswered: Remote Database access in BB native App


    Dear all,

    I am getting problem in accessing remote database contents in blackberry native application.

    Application works fine in chrome but when i compile with webworks as native app it failed to load data and no exception just wait for long and white screen.

    I also tried kitchensink and geocongress which works fine in emulator, chrome but failed when running in simulator.

    I am using BB OS7 Webworks 2.3

    I hope someone definately has a soultion for this. It is creating stress for me.

    Any working code sample will be highly appreciated.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,107
    Vote Rating
    453
    Answers
    3157
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Quote Originally Posted by ssadiq19 View Post
    I am getting problem in accessing remote database contents in blackberry native application.
    What database and how are you accessing?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    7
    Vote Rating
    0
    ssadiq19 is on a distinguished road

      0  

    Default


    I am using sql server and accessing data through Handler.ashx file. where Handler.ashx returns result as json string

    ([{"Id":1,"name":"n1","Quantity":"30"},{"Id":2,"name":"n2","Quantity":"80"},{"Id":3,"name":"n3","Quantity":"90"},{"Id":4,"name":"n4","Quantity":"100"},{"Id":5,"name":"n5","Quantity":"25"}])
    Ext.define('MyApp.store.MyStore', {
    extend: 'Ext.data.Store',


    config: {
    pageSize: 5,
    storeId: 'MyStore',
    proxy: {
    type: 'jsonp',
    extraParams: {
    p: '1'
    },
    limitParam: 'rpp',
    url: "http://myURL/DB/Handler.ashx",
    reader: {
    type: 'json',
    rootProperty: 'results'
    }
    },
    fields: [
    {
    name: 'name'
    },
    {
    name: 'Quantity'
    }
    ]
    }
    });

    it works fine in chrome brower. but does not display anything when compiled as native app in webworks

    here is config.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <widget xmlns="http://www.w3.org/ns/widgets"
    xmlns:rim="http://www.blackberry.com/ns/widgets"
    version="1.0" rim:header="WebWorks Sample">

    <name>My App</name>
    <access subdomains="true" uri="*"/>
    <description>MyApp.</description>
    </widget>

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Posts
    7
    Vote Rating
    0
    ssadiq19 is on a distinguished road

      0  

    Default


    i am using *.ashx file which is fetching info from sql server DB and converting result into JSON format