WebView ListView data Page

I have a ListView that ItemData containing Web sites. When you select an item, it pushes a page from the data. I can view the data. Then I have an action button that pushes another page with a WebView. The problem I have is that the WebView never is completed and said that the web page is unavilable. I have a label that does not display the correct Web page and I can also get the Web page to display if I put the url directly to the page.

Here is the code:

    actions:  [
        ActionItem {
            title: qsTr("View")
            imageSource: "asset:///icons/actions/view.png"
            onTriggered: {
                var page = htmlPage.createObject();
                page.url = "http://www.google.com";
                console.log(page.url);
                navPane.push(page);
            }

        }
    ]
import bb.cascades 1.2

Page {

    property string  url

    id: htmlPage
    Container {
        preferredWidth: Infinity
        preferredHeight: Infinity
        verticalAlignment: VerticalAlignment.Center
        horizontalAlignment: HorizontalAlignment.Center
        WebView {
            id: webView
            settings.background: Color.Black
            url: url
        }
       Label {
           text: url
           textStyle.fontSize: FontSize.XXSmall
        }
    }
}

I tried a lot of different things without success. Anyone have this type of process work?

All of a sudden, it came to me.

    property alias url : webView.url

Tags: BlackBerry Developers

Similar Questions

  • Error: 0xc000012f and the KERNEL DATA PAGE FAULT

    My son has a laptop of game.  Since last week, he experienced extreme problems.  A constant if the following errors: 0xc000012f and the KERNEL DATA PAGE FAULT.  Although I'm not technologically savvy, I tried the obvious in running virus scan and visiting different communities for troubleshooting tips.  When you run the antivirus (paid service) analysis, the system hangs and the system restarts.  I attended ASUS website in the hope of getting more advice than to have to provide access to the laptop of my son to a technician who gave me some insurance for the better part of 45 minutes that he help and troubleshooting problems.  He highlighted a very detailed chart of downtown action (reliable?), which looked pretty serious.  Suffice it to say, the conversation ended when he asked a one-time fixed fee of $200.  When I refused, he went to stop everything.  I would simply like to take any action that will further damage the laptop of my son. I paid $3K for this system.  Is someone can you please help me solve these problems?  I was going to buy a registry cleaner but was informed in an online community chat room not to do so that these products are not reliable.  Thank you all in advance for your review and taking the time to help me.

    Original title: need assistance immediately please.

     We need the log files themselves (called a DMP files) because they contain the only record of the sequence of events that led to the accident, what drivers have been loaded, and what has been loaded.


    Please follow our instructions to find and download the files, we need to help you fix your computer. They can be found here

    If you have any questions regarding the procedure, please ask


    I find the files DMP prayed and tried their zip.  I received the following: file not found or no read permission.

    I took it to a repair shop for yesterday I had to argue that these issues were well beyond my skill level.  The owner of the store insisted that the 'hard drive' was "fried".  It was agreed to replace the necessary parts (gave me a "Crucial - M4 Solid State Drive - 128 GB), this is the info on the box, to replace my 750Go son.  He said that, even if was less "room" it would "fly".  The original price was $ 200 and climbing!  Give me the question my faith in humanity at this time.  Is not relevant to the prey on someones lack of knowledge.  You and the other hand, all those who try to make a difference... who are trying to help is welcomed.  I wish offered troubleshooting would come to maturity.  Nonetheless, I humbly thank you for your support and follow-up in this case.

    I took it to a repair shop for yesterday I had to argue that these issues were well beyond my skill level.  The owner of the store insisted that the "hard drive"was"French fries".»  It was agreed to replace the necessary parts (gave me a "Crucial - M4 Solid State Drive - 128 GB - INFORMATION ON LISTED), to replace my 750Go son.  He said that even if it was less "room" it would "fly".  The original quoite was $ 200 and climbing! Give me the question my faith in humanity at this time.  Seems very inappropriate to prey on someones lcak of knowledge.  You on the other hand and those who try to make a difference... who are trying to help, should be commended.  I wish offered troubleshooting would come to maturity.  Nonetheless, I humbly thank you for your support and follow-up in this case.

  • The Spry XML data Pages continue to increase the memory IE7 use

    Hello

    I am facing a recent issue when I built a data page spry with Dreamweaver cs3 and when you test the page using IE7 displays the data and after that I'm not doing something else opens the Manager of Windows taskbar and found shocking that the tab for iexplore.exe guard incrementing memory usage and as soon as I navigate to another page in the Web site or return to the previous state of the history by clicking aft IE7 button, it stops incrementing and shows a number of static Ko. It is not increment more.

    Please help me, I enclose the coding as below. I kept this code in my project directory web tomcat because it is only used by a Web server running and gives an error if security policy test it offline on the local computer.

    Thanks in advance.

    Anmol Saraf

    "mranmolsaraf" wrote in message
    News:f4oidv$k6f$1@forums. Macromedia.com...
    > ds1 var = new Spry.Data.XMLDataSet ("menubarXML.xml",
    > "specials/menu_item" {distinctOnLoad: true, useCache:false, loadInterval:100});}

    You reload the XML file every 100 milliseconds, I'm not surprised
    the memory usage increases...

    ----------------------------
    Massimo Foti, programmer web-rental
    Tools for ColdFusion and Dreamweaver developers:
    http://www.massimocorner.com
    ----------------------------

  • [Explanation necessary] Clears the listview data and fill it again with new data

    Hello

    I correctly filled a listview in c ++, data analysed and does interesting things with it. However, I am drunk stumbling, unable to find a way delete and repopulate my display of the list...

    Question 1:

     

    1. How can after I insert data in the list view, I clear the list data and run again the same method (init) who populated the list view with the data in the first place?

    Here are the docs that I referenced and I don't understand how to implement the methods in my code.

    QList - clear() method

    https://developer.BlackBerry.com/Cascades/reference/QList.html#clear

    Using the data access Code, example
                              
    data_access/using_data_source

    GroupDataModel - Clear()

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__groupdatamodel.html#clear

    CODE

    Here is my code - filling of the display of the list of C++ and display of data in a ListView.

    MyApp.cpp

    MyApp::MyApp(bb::cascades::Application *app)
    : QObject(app){
        // create scene document from main.qml asset
            // set parent to created document to ensure it exists for the whole application lifetime
            QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    
                AbstractPane *root = qml->createRootObject();
                qml->setContextProperty("yoyo",this);
                //grab references
                list_view = root->findChild("listView");
    
                // set created root object as a scene
                app->setScene(root);
    
                mNetworkAccessManager = new QNetworkAccessManager(this);
                bool result = connect(mNetworkAccessManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(requestFinished(QNetworkReply*)));
    
                 Q_ASSERT(result);
                 Q_UNUSED(result);                 json = new QFile("data/file.json");
    }
    
    void MyApp::init(){
        QNetworkRequest request = QNetworkRequest();
         // i call some service here
         mNetworkAccessManager->get(request);
    }
    
    void MyApp::requestFinished(QNetworkReply *reply){
        qDebug() << reply->error();
        qDebug() << reply->errorString();
        if (reply->error() == QNetworkReply::NoError) {
            qDebug() << "No error";
    
                    QByteArray data = reply->readAll();
    
                    if (!json->open(QIODevice::ReadWrite)) {
                        qDebug() << "Failed to open file";
                        return;
                    }
                    json->write(data);
    
            bb::data::JsonDataAccess jda;
            QVariantMap results = jda.loadFromBuffer(data).toMap();
                    QVariantList lst = jda.loadFromBuffer(data).toList();
                GroupDataModel *m = new GroupDataModel();
                       m->insertList(lst);
                       m->setGrouping(ItemGrouping::None);
                       if(list_view) list_view->setDataModel(m);
    
        }else{
            showDialog("Boo",reply->errorString());
        }
    }
    

    MyApp.hpp

    // Tabbed pane project template
    #ifndef MyApp_HPP_
    #define MyApp_HPP_
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    namespace bb {
    namespace cascades {
    class Application;
    }
    }
    namespace bb {
    namespace data {
    class Application;
    }
    }
    
    /*!
     * @brief Application pane object
     *
     *Use this object to create and init app UI, to create context objects, to register the new meta types etc.
     */
    class MyApp: public QObject {
    Q_OBJECT
    public:
        MyApp(bb::cascades::Application *app);
        virtual ~MyApp() {
        }
        Q_INVOKABLE
        void init();
    private slots:
        void requestFinished(QNetworkReply *reply);
    private:
        QNetworkAccessManager *mNetworkAccessManager;
        QNetworkRequest *request;
        QFile *json;
        bb::cascades::ListView *list_view;
    };
    
    #endif /* MyApp_HPP_ */
    

    hand. QML

    import bb.cascades 1.0
    
    Page{
    Container {
                            background: Color.White
                            ListView {
                                id: listView
                                preferredHeight: maxHeight
                                objectName: "listView"
                                listItemComponents: [
                                    ListItemComponent {
                                        type: "item"
                                        Container {
                                            Container {
                                                Label {
                                                    text: ListItemData.id
                                                }
                                            }
    
                                        }
                                    }
                                ]
                                onTriggered: {
                                    console.log("selected_index: " + indexPath)
                                }
                                horizontalAlignment: HorizontalAlignment.Center
                                verticalAlignment: VerticalAlignment.Center
                            }
    
    }
    }
    

    Question 2:

    How reference to the ListView object with the name "listView" in different parts of the MyApp.cpp file? Is there anything else I should add to the header file to make the accessible listView?

    Question 3:

    What happens when you call the clear() method? How the data model is affected? How the user interface is affected? What happens in memory?

    Question 4:

    How do you verify that the data in the list has been deleted so that you can go ahead and fills again with new data? What is the cheque that I perform?

    I would also like to know how you manage multiple views of lists and data sources in your applications. Best practices or ideas?

    Thank you

    I was able to clear the listview with the following code, if anyone is interested.

    listView.dataModel = null
    

    The dataModel must be set to "null".

  • Date page does not appear first drop the bar down

    Just downloaded the new ios and found that the Notification Center page appears first when you use the new bar drop down. I have to keep pulling down then drag to the right to display date apps, weather, news, etc.

    How can I configure it so that I can view the main page widget first, when you pull down the drop to the low bar and not the notification page?

    Thank you!

    Just drag to the right at the beginning.  No need to blow first.

  • Trouble sometimes with WebView short Web page rendering

    I noticed sometimes in my application poorly rendered Web pages in a WebView because the webview appears dynamically size itself so that it is only as high as it should be... so if something to Center vertically, it appears at the top of the screen, not the vertical middle of the screen. There was even a Yahoo/Facebook login page that started small and has started to grow a few pixels per second!

    I tried to add:

    verticalAlignment: VerticalAlignment.Fill

    ... for the WebView to the ScrollView as if it is contained in and to the container that contains the ScrollView, but that doesn't seem to help.

    I found another post on the forum that answers this question:

    WebView {
        ...
        preferredWidth: Infinity
        preferredHeight: Infinity
    }
    
  • Display the ListView data not grouped data

    How to read data from an SQLite table and display it on a ListView without the GroupDataModel. I don't want my list to be grouped.

    Have you looked at these articles in the knowledge base?

    http://supportforums.BlackBerry.com/T5/Cascades-development-knowledge/ListItemComponent-types-when-U...

    http://supportforums.BlackBerry.com/T5/Cascades-development-knowledge/using-your-own-DataModel/Ta-p/...

    Martin

  • Notify the ListView data in the model have changed

    Hello!

    I know this question has been asked several times, but I have yet to find anything satisfactory.

    I have a ListView, filled with a QListDataModel.

    After some time I update an element of the model. So far, the only way I found to the ListView so that this change is to delete the model and then reappend all elements. But the problem with this approach is that ListView Flash and scroll to the top of the page. Is there anything better to just say ListView that it should update the visible elements?

    Thank you

    Well, I just signal myself in the WRITE method and it works.

  • Incorrect Listview data list JSON

    Hi all

    Small question here I work on all day but I can't seem to understand. My application gets the JSON data in a database online. The JSON data looks like this:

    {
      "legislations": [
        {
          "databaseId": "cas",
          "legislationId": "rsc-1985-c-a-1",
          "title": "Access to Information Act",
          "citation": "RSC 1985, c A-1",
          "type": "STATUTE"
        },
    
    (...)
    

    For some reason, in the ListView, the key of "reference" is displayed (for example, for this entry, ' R.S.C. 1985, c. a - 1 ' will be displayed), no title. I'm confused because I don't talk to you even the word 'quote' in my code!

    Even more confusing, I am able to sort keys by title, so the list is in alphabetical order, but I can't get the titles will appear!

    Here is my code so far:

    (...)
    
    ListView {
                id: browseLegList
                dataModel: legBrowsDataModel 
    
                listItemComponents: [
                    ListItemComponent {
                        type: "title"
                        Container {
                        leftPadding: 30
                        preferredWidth: 768
                        preferredHeight: 100
    
                        layout: DockLayout {}
    
                        Label {
                            verticalAlignment: VerticalAlignment.Center
                            text: ListItemData // I've also tried ListItemData.title, but no difference
                            multiline: true
                            }
    
                        Divider {
                            verticalAlignment: VerticalAlignment.Bottom
                            }
                        }
                    }
                ]
            }
        }
        attachedObjects: [
            GroupDataModel {
                id: legBrowsDataModel
                sortingKeys: ["title"]
                grouping: ItemGrouping.ByFirstChar
            },
            DataSource {
                id: legBrowsDataSource
                source: ""
                type: DataSourceType.Json
    
                onDataLoaded: {
                    legBrowsDataModel.clear();
                    legBrowsDataModel.insertList(data.legislations);
                }
                onError: {
                    console.log("JSON load error..." + errorType)
                }
            }
        ]
    
    (...)
    

    Anyone have any suggestions where to go from here?

    Thank you!

    Hello

    Try changing

    ListItemComponent {
                        type: "title"(...)
    

    TO

    ListItemComponent {
                        type: "item"(...)
    

    and

    Label {
               verticalAlignment: VerticalAlignment.Center
               text: ListItemData(...)
    

    TO

    Label {
               verticalAlignment: VerticalAlignment.Center
               text: ListItemData.title(...)
    
  • Windows 8 kernal in data page error

    Hello

    I get the blue screen that says "kernal in page data error." I pulled all the files in the minidump and downloaded here:

    https://www.dropbox.com/s/h0cfmd0h6arfad6/minidump.zip?DL=0

    If anyone can help understand me what the problem is, it would be great.

    Thank you

    These accidents were related to the corruption of memory (probably caused by a driver).

    Run these two tests to check your memory and find which driver is causing the problem.  Please run first check

    If you are overclocking anything reset by default before running these tests.
    In other words STOP!

    If you don't know what it means that you're probably not



    1-Driver Verifier (for full instructions, see our wiki here)

    2-Memtest. (You can learn more about running memtest here)


  • Download the data page in the database Application example

    Can anyone help me in the process to create a page to download the data to a spreadsheet (csv or tab delimited file) to an existing table or a new table.

    Attached file has screenshots of the page I'm talking about.

    Thank you

    Prasanna

    Hello

    Documentation can help

    https://docs.Oracle.com/database/121/HTMDB/advnc002.htm#HTMDB28980

    https://docs.Oracle.com/database/121/AEEUG/upload_data.htm

    Kind regards

    Jari

  • How to upgrade data using load data page?

    Hi all

    im doing a migration page where my user will provide the csv file, so I could load into my table. problem is that loading data using apex collection so I know columns are limited, but I forgot how. (probably 40 something).

    So I decided to split the csv file with the two files with a common column, which is a key. If im guessing two files can be linked using this key. However when I upload the second file, he will still do an insert instead of update action. How updated? is this what I need to set or activate?

    just to check that I tried to download the csv... and then changed some content inside and re upload... even if I that.it always inserts instead of update. Can anyone share how can I update? It's really important because I have a lot of columns to download. so in my situation, the best way is to separate files.

    Help, please...

    In components, under the loading of data shared. On the model of your table, you specify the unique columns (up to 3). I believe that if there is no match, it will insert. If it finds a matching record, it will update. So if you have a single column that is in each worksheet, you must specify here

  • &lt; netui-data: pager &gt; action to extract lines dynamically

    Hello

    How can I configure a pager of DataGrid to dynamically extract lines when a user through the paging swap pages?
    I know that I can read all my lines to a collection / array before the rendering of the datagrid control and set the pager to iterate on it like this:

    [Controller]

    Private list < Ride > wrinkles;

    public list < Ride > getRides() {}
    return of the rides;
    }

    [Action]
    wrinkles = rideDBControl.getAllRides (); huge amount of data
    ...
    back to the front;
    }

    [JSP]

    "< div style =" "border-width: 2px;" > < netui-data: dataGrid name = "currentRidesGrid" dataSource = "pageFlow.rides" >
    < netui-data: configurePager pagerFormat = "prevNext" pageSize = "${pageSize}" / >
    < netui-data: header >
    < netui-data: headerCell headerText = "Name" / >
    < netui-data: headerCell headerText = "Description" / >
    < / netui-data: header >
    < netui-data lines: >
    < netui-data: spanCell value = "${container.item.name}" style = "background-color: #f0f0f0; do-size: 14pt; ">
    < / netui-data: spanCell >
    < netui-data: spanCell value = "${container.item.description}" >
    < / netui-data: spanCell >
    < / netui-data lines: >
    < / netui-data: dataGrid > < / div >

    But how can I make the pager call a method to update the content of the collection "wrinkles" according to the current selected page and the size of the page? And how do I get the current page and the size of the page inside this method?
    I want to be paginated queries that may return a huge amount of data (1 m + lines), so extract all lines at once is impossible. What I want to do, is spreading the current page and the page size of pager to a method that will update the current collection according to a query such as:

    Select X, Y, Z
    Table
    Where the...
    And ROWNUM BETWEEN page * pageSize AND (page + 1) * pageSize

    Can someone help a noob?

    For more information, I found the answer by myself.

    To retrieve the rows dynamically, you must change the tag , and include the attributes a pageAction and partialDataSet, for example:

    Within the action of pagination, you can get the current size of the line and page of a PagerModel object. You can then update the data source (don't forget to call the setDataSetSize providing the length of the entire data so that the pager shows the right amount of pages), for example:

    @Jpf.Action (forward = {@Jpf.Forward (name = "success", access = Jpf.NavigateTo.currentPage)})
    {public pagination() before
    DataGridStateFactory dataGridStateFactory = DataGridStateFactory
    .getInstance (getRequest ());
    Gets the pagerModel for the grid object
    PagerModel pagerModel = dataGridStateFactory.getDataGridState)
    "currentRidesGrid") .getPagerModel ();
    => Code to get the size of any data source<>
    pagerModel.setDataSetSize (dataSourceSize);
              
    Get the first line and the model page size
    int firstRow = pagerModel.getRow ();
    int pageSize = pagerModel.getPageSize ();
              
    => Code to extract the rows to display<>
    wrinkles = pageRides;
              
    Forward, forward = new Forward ("success");
    back to the front;
    }

    I hope this helps.

    See you soon

  • run a coldfusion on a certain date page

    Hi all

    I was wondering if it is possible to run a page see on you server automatically on a date and a time, without having the af interaction a user pushing a button to trigger the action.

    TNX for your suggestions!

    Greetz.

    of course, use a scheduled by the CFAdministrator or CFSCHEDULE task

  • Export data Page OA for master detail Page

    Hello

    Export data from OA Page for master detail regions.

    Kind regards

    Hello

    Please use folwing piece of code.

    OAExportBean = expBean
    (OAExportBean) webBean.findChildRecursive ('Export');
    define the exportDetails for this region, master/detail.
    expBean.setExportDetails (oaPageContext, "masterRegionName",
    'detailRegionName', 'masterVuName', 'detailVuName');

    Kind regards
    Out Sharma

Maybe you are looking for