Changing variables of C++ QML UI (json source and sorting keys)

Hello

I have a tabbed two tabbed pane. I want to fill each tab with a dfifferent JSON (list (not XML). I managed to fill the first tab with the first json file... following the example of application stampcollector. All the UI is QML but JSON loading and groupdatamodel of adjustment is done in C++.

1. now I want to fill the tab page of the 2nd with another JSON list. How can I go about it? Create a new class or can I change the JSON source when the 2nd tab fires?

2 just like in the application of stampcollecctor, I use sort keys. I have a few elements of the action in QML, that when you press on, I want that sort of change lists. So let's say that the first action to sort A - Z, the second action Z - A, the third of the population, action action 4th by area.  How to access and change the sort key?

 

3. is there in any case to sort alphabetically in reverse order, from Z - A?

Code I have so far is below... just no idea where to start...

hand. QML

import bb.cascades 1.0

TabbedPane {
    id: mainTabPage
    showTabsOnActionBar: true

    // Country Tab
    Tab {
        title: "Countries"
        NavigationPane {
            id: countryTabNav
            property variant _countryView;
            Page {
                Container {
                    ListView {
                        id: countryList
                        objectName: "countryList"
                        listItemComponents: [
                            ListItemComponent {
                                type: "listItem"
                                StandardListItem {
                                    title: ListItemData.country
                                    status: ListItemData.population
                                    description: ListItemData.capital
                                }
                            }
                        ]

                        onTriggered: {
                            var chosenItem = dataModel.data(indexPath);
                            _countryView = chosenItem;
                            countryTabNav.deprecatedPushQmlByString("countryDetail.qml");
                        }
                    }

                    //-- define tab content here
                    layout: StackLayout {
                    }

                }
            }
        }
    }
}

App.cpp

#include "app.hpp"

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

using namespace bb::cascades;
using namespace bb::data;

App::App() {
    QmlDocument *qml = QmlDocument::create("main.qml");
    //-- setContextProperty expose C++ object in QML as an variable
    //-- uncomment next line to introduce 'this' object to QML name space as an 'app' variable
    //qml->setContextProperty("app", this);

    AbstractPane *root = qml->createRootNode();

    // ListView Model
    ListView *countryList = root->findChild("countryList");
    setupCountryListModel(countryList);

    Application::setScene(root);
}

void App::setupCountryListModel(ListView *countryList) {
    JsonDataAccess jda;
    QVariantList mainList = jda.load("app/native/assets/countries.json").value();

    if (jda.hasError()) {
        bb::data::DataAccessError error = jda.error();
        qDebug() << "JSON loading error: " << error.errorType() << ": "
                << error.errorMessage();
        return;
    }

    GroupDataModel *countryModel = new GroupDataModel(QStringList() << "country");
    countryModel->setParent(this);
    countryModel->insertList(mainList);
    countryModel->setGrouping(ItemGrouping::ByFullValue);

    countryList->setDataModel(countryModel);

}

App.HPP

#ifndef APP_H
#define APP_H

#include 
#include 

using namespace bb::cascades;

namespace bb
{
    namespace cascades
    {
        class ListView;
    }
}

/*!
 * @brief Application GUI object
 */
class App : public QObject
{
    Q_OBJECT
public:
    App();

private:
    void setupCountryListModel(ListView *countryList);
};

#endif // ifndef APP_H

1. you will need to duplicate what you did for the other tab.  Check out weatherguesser which has a bunch of tabs and datamodels.

2. order groupdata model page

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

Try:

countryModel->setSortingKeys())

3.

countryModel-> setsortedascending (false)

Tags: BlackBerry Developers

Similar Questions

  • CHANGE of SIZE of the BRUSH WITH CTRL and alt KEYS

    Hi all

    I'm on the road with my new macbook, and I have a problem with setting up my wacom pen.

    At home I use an iMac with CS5 and to change the brush size, I press alt and CTRL key and move the pen left/tight up/down to size of chang and hardnes of the brush. I find it very convenient!

    On my new Macbook, I have CC and I don't have the ability to use this easy key combination, I was loking autour and some google, but I have found the place to get the same settings on my macbook.

    Is there anyone who can help me?

    Thank you very much.

    When you hold down Option/Alt + Control and left mouse click and drag anything happens?

    (the button on the pen is set to left click?)

    The Option/Alt key should always be the second key to the left of the SPACEBAR

    The control key must always be the third key to the left of the SPACEBAR

  • Why do Shotmatch clips source and destination, both change?

    When I click on a source and destination Shotmatch clip affects both. I want to clip 2 match clip 1, clip 1 is not changing.

    Appreciate any ideas

    Neil

    I thought about it. It's my first time using SG and get used to the shape and what works when you link first. I am restoring an old film silent and discovered that I separate the shots, so it was darkening the two shots because they are in the same area of the clip. After using scene detection, it works.

    However my other question is obtaining detect GD using an edl instead of the scene. My movie is 23.98 but SG think that the edl is 24. I rechecked my sequence and parameters of the SOUL to be sure but still the same issue.

    Bret

  • Application module runs does not after changing the jndi in the JDBC data source name

    I had an obligation to deploy ADF application dev, test, and production. Every environments to different databases.

    To reach the requirement above, we had suite
    (a) uncheck "Auto Generate and descriptors weblogic - jdbc.xml sync for the deployment" of the Application property.
    (b) defined a data source to wls console (console different wls for each env) to dev, test, and production with jndi, jdbc/dashboardDS.
    (c) on the module of the application, the connection type changed to "JDBC Data Source" and filled in "jdbc/dashboardDS" to the name of the data source.

    Now, we are able to deploy our ADF application for dev, test, and production environments.

    But, after doing some changes to the bc4j.xcfg file as in step c), I'm not able to run AM. AM is running in an error message.
    oracle.jbo.jbotester.ErrorHandler$ExceptionWrapper: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:96)
         at oracle.jbo.jbotester.ErrorHandler.displayError(ErrorHandler.java:89)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:437)
    Caused by: oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/dashboardDS
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1418)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    Caused by: javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         ... 19 more
    ## Detail 0 ##
    oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/dashboardDS
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1418)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    Caused by: javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         ... 19 more
    ## Detail 0 ##
    javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    
    ----- Level 1: Detail 0 -----
    oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/dashboardDS
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1418)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    Caused by: javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         ... 19 more
    ## Detail 0 ##
    javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    
       ----- Level 2: Detail 0 -----
       javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name:  jdbc/dashboardDS
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
         at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:214)
         at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:906)
         at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:632)
         at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:597)
         at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:428)
    Any suggestions

    Thank you
    Ajay

    You are talknig Tester ADF BC? Yes, and then change the type of URL JDBC connection for tester to run.
    In you AM - configurations - Double click AMLocal and change

    Published by: in the line of fire on December 12, 2011 14:56

  • How can I change the connections of source and target OWB?

    Hello, I have hurt to change the connection to the source in OWB.

    My login name of source is identical to the front. That DB name, schema name is now moving to connect to the source. Here are the steps that I did.

    1. went to control Center Manager and cancel the mapping of source.
    2. is go explore connection and right click on the connection to the source, and then click Open Editor. change the username, ip address, password, name of the comic.
    3. goes to control Center Manager and redeploy the mapping. It does not work... It is said, table or view does not exist.

    Is there somewhere else I need to change... Somewhere, Miss me...

    Any help is appreciated...

    Hello

    Go to the module using the mentioned location.
    Change the module, set the location of metadata to the correct location
    Go to data locations, the correct location should be with selected locations. If so, remove it and place it again.

    Now, go to the configuration of the module and go to the Identification
    Check the value of the location and make sure that it uses the correct location

    I think it is sometimes useful to change the location to another location and back to the correct location.
    I hope this helps.

    Kind regards

    Emile

  • How to use the variable in the path of the source of an image in flex

    Hello
    I just want to know that how to use the variable in the path of the source of an image in flex

    Hello
    I just want to know that how to use the variable in the path of the source of an image in flex

  • Change GroupDataModel ItemGroup via QML / Javascript

    Running in a smalll snag, which takes too much time to resolution... I'm putting the DataModel consolidation via a function of javascript QML.

    function setDataModelGrouping(groupingTypeFull)
    {
      myDataModel.setGrouping(groupingTypeFull ? ItemGrouping.ByFullValue : ItemGrouping.ByFirstChar )
    }
    

    When this is executed, the following error is generated...  Error: Unknown method parameter Type: bb::cascades:ItemGrouping:Type

    So basically, my QML file has no idea what ItemGrouping... but in a GroupDataModel, ItemGrouping is accessible...

    MyModel
    {
      id: myDataModel
    
      // Sort the data items
      sortingKeys: ["column1", "column1"]
    
      // Set sort order to descending
      sortedAscending: false
    
      // Specify that headers should reflect the full value
      // of the sorting key property
      grouping: ItemGrouping.ByFullValue
    
      ...
    }
    

    Am I missing an import?

    Thank you

    Got, it works by creating a method of setMyDataModelGrouping within the myDataModel class. Not the best solution, but enough time spent on studying this issue...

    I am still confused about why a method GroupDataModel.setGrouping () keep omitting of javascript... According to the literature, it is a public method... therefore justiciable qml / js.

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

  • Edit event managed by this case in LabVIEW 2013 does not show the specifiers of the event, Event Sources and events on screen resolution 800 x 600

    Edit event managed by this case in LabVIEW 2013 shows not specifiers of the event, Event Sources and events on screen resolution 800 x 600.

    As far as I know, the list of supported resolutions is determined solely by the graphics card. It is possible that one used by the PC supports only 800 x 600 as maximum resolution, even if you plug an external monitor.

    Like Dennis suggested, the recommended option would probably be to develop on another PC and only deploy an executable for the industrial PC. That's what we do with our systems (although not because of this problem, but because it makes sense. There absolutely no need to have the IDE installed in most of our systems).

    Other options:

    1. See if you can get an update of the driver from the manufacturer to solve this problem.
    2. Plug a USB Monitor with its own driver.
    3. Try to hide the taskbar and make the smaller title bar in the hope that the bug manifests.
    4. Try remote access in the PC. I think that some remote access programs allow you to specify custom resolutions that are not affected by the original drivers. Remote Desktop seems to be a likely this option even if it has been awhile since I've used it.
    5. Check the BIOS. I saw at least one industrial PC where there was some settings in the BIOS to control the resolution, but I don't remember the details, and it was quite limited. I think that in this case, you can change the resolution, but then the image does not fill the entire screen.
  • I bought a new hard drive. I don't have a system recovery disk. Can I load Windows Vista from another source and activate using my original product key?

    I bought a new hard drive. I don't have a system recovery disk. Can I load Windows Vista from another source and activate using my original product key?

    Hello

    There is no download available from Microsoft Vista.

    Contact the manufacturer of your laptop and ask them to send a set of recovery disks.

    They should do this for a small fee.

    "How to replace Microsoft software or hardware, order service packs and replace product manuals.

    http://support.Microsoft.com/kb/326246

    Some manufacturers have more available Vista recovery disks.

    If this happens, you may need to try this instead:

    You can also borrow and use a Microsoft Vista DVD, which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed. The product key determines which Edition is installed.

    Builders recovery DVDs are should not be used for this purpose.

    And you need to know the version of 'bit' for Vista, as 32-bit and 64-bit editions come on different DVDs

    See you soon.

    p.s. If the old hard drive is still installed and running before you change on hard drives and you never received the to purchase recovery discs, you can make the recovery discs from the recovery Partition which should be on the old hard drive. You will need to request that the manufacturer how to do as each computer manufacturer has their own way of making records of this partition recovery.

    It depends on the old hard drive still works.

  • AD, used as a trusted source and target system

    Hello

    I have a requirement to use AD as a trusted source and the target system the zero days and 1 for a transitional period.  We have 18 applications to integrate with OAM for SSO.  Currently, the authentication and authorization of these applications are made via AD.  However, the client wants to move to the use of LDAP in goal SSO.  The first phase includes 3 apps on the 18 apps.

    Day zero, I use AD as a source of confidence to push users to IOM.  Then, I run AD as a target system to link the user to their existing AD accounts.  Their ad groups will also be reconciled by IOM.

    Because there will be a transition period and the customer would not have to change the process of assistance to creating accounts AD (for internal and external users), they asked that we continue to allow accounts AD to reconcile with IOM in the trusted source and target system.

    I have not used AD connector as a reliable source.  I intend to source AD done trust reconciliation to run first, then the task of reconciliation system AD target to run then.  It's the same AD connector.

    This can work as long as the customer wishes until they want to spend to IOM for the creation of the user and accounts AD commissioning through the access policy.

    Is this sound ok you?  There is a "witch hunt" I didn't think?

    Thank you

    Khanh

    Yes, you can run the recon trust first and get all the identity created by IOM.

    Later, you can run the Scheduler for recon target for linking AD accounts with user profile of IOM.

    Note: There is a field in AD IT resource in need of update if you want to switch between the target and recon trust.

    Research of configuration:

    This parameter contains the name of the lookup definition that stores configuration information used during the reconciliation and commissioning.

    If you have set your target system as a resource target, then enter Lookup.Configuration.ActiveDirectory.

    If you have set your target system as a reliable source, then enter Lookup.Configuration.ActiveDirectory.Trusted.

    Default value: Lookup.Configuration.ActiveDirectory

    ~ J

  • Source and program monitors crashing in the first

    Hey all.

    So, unfortunately I seem to have problems of stability with Adobe Premiere CC 2015 (to date).

    The source files are H.264 in a .mov container.

    I am running Windows 10 but have experienced the same problem yesterday in Windows 7.

    I use the EMT.

    So here's the deal. I was running really slow and repeated performance crashing (just the program monitor and source and also of the whole program). I was pulling my hair out with frustration and decided to pull the trigger on a new computer. (Yes, I know... the upgrade to solve problems of crash was probably not the best idea, especially without the problem of the first widely).

    My old computer:

    Windows 7

    AMD Athlon II X 4 630 @ 2.8 ghz

    12 GB OF RAM

    NVIDIA GTX 460 768 GB

    New computer:

    Windows 10

    Intel i7 4790 @ 3.6 ghz

    24 GB RAM

    NVIDIA GT 720 1 GB (the OEM mobo dislikes my GTX 460 [known issue] and I plan to get a GTX 960 or GTX 970 tomorrow)

    I've been editing, completely blown away by how smooth first and After Effects were running; a pleasure to scrub through the timeline in PP and time real AE RAM previews. Then, just before you go home at night, the program and the source monitor crashed.

    On my old computer, it meant that they became black. On the new computer they're going grey (sometimes the source monitor panel displays "media forward"). On both computers, the playhead moves and audio isn't yet.

    I do not regret my upgrade, I know that it was overdue. However, it is a bit disheartening that I expected the upgrade of instability to do a thing of the past (I do not claim that it was smart thinking lol).

    Any input would be greatly appreciated.

    PS. After the program monitor and the source of watching the crash, the program does not freeze. I tried switching back and forth between Composite and Mulitcam (in the program monitor) or Composite and Audio Waveform (in the Source monitor Panel) to try to jog it in work and that does not work. On the old computer, when I was finally closed PP to relaunch a dialogue accident would seem, but not up to what I chose to close the program to reboot (little strange, right?). On the new computer, the only time where he arrived so far (less than 90 minutes to play in the first), it didn't pop up with a dialog to crash, it just closed as usual. I don't remember if the dialog crash on the old computer had an error code.

    Change the name of mov to mpeg extension and see if it will help.

    I'm not upgrading to W10 and have no problem with the nikon files and cc15. I'm a little skeptical W10.

  • New user problem: Source and program monitors not identical

    Hello

    After several years of inactivity edition I want to make a new start – now with a new version of Adobe. Seems I have to do a large part of the new curve... ;-)

    Implementation of a simple test/learning project, I immediately met a strange problem:

    My Source monitor and program monitor have another 'form': the Source monitor is a block (4:3?), the program monitor is a big screen.

    I'm not aware of having modified or arranged these parameters, and I can't do them even.

    How to do this?

    The questions and related issues:

    • I looked up the initial project settings that allow me the selection of options PAL (and not NTSC), but also big screen by default (and not a different screen format). I can't find. How to do this?
    • Commenting on these parameters of the project, I'm not sure 100% what to choose if I still have the choice: I think that older movies (to change) have my trip so the most recent or 4:3 screen 16:9 wide. And after a crash of my Canon camcorder is on the way which also records (I think) on the big screen. So: Select a specific screen/project format? And WHAT should I choose?
    • The different shape of the Source and the program monitor seems to affect the use of the Titler window: also has a form 'bulk '. Thus the titles in the Titler different completely in the program monitor, especially in what concerns eligible margins. This also gives the creation of models of Titler very confusing and difficult.

    Thanks for the help!

    WimYogya

    Hi Wim,

    The Source monitor and program have qualities of different reading. For example.

    Source monitor will play the original clip. So, if you have a 4:3 video, it will play as it is.

    The program monitor will play within the parameters of the sequence you have chosen. Thus, in the case of sequence > sequence he settled on square pixel 1.0 and the clip is 4:3 it will play in a square pixel.

    Visit this link for more information: Web video wrong size / enlarged

    Vinay

  • TABLE import in the source and target OLAP and OLTP Informatica records

    In the designer to map every time I import from my source OLTP and OLAP source table is displayed in its own folder named instance imported from. It is a problem that when I migrate my lower the workflow repository is always looking ofr these sources and targets. How to import or migrate there relative OLTP and OLAP source and target material in the table designer.

    Appreciate the help.

    Hi, before you migrate you can choose options as explained below

    1. create the same global name of connection for ODBC OLAP and OLTP and then import the tables to informatica

    2. other is, after you import the source tables with any ODBC connection name, you can change the name of the file as below
    a. check the table and in the Source Analyzer workspace to modify the table. In the table , tab click on rename
    (b) change the name of the data base by "OLAP" or 'OLTP' depending on your source.
    c. the source table is automatically moved to the folder OLAP and OLTP

    3. If the table is already existing in OLTP or OLAP, you can use the reuse or replacement of options when importing new mappings during the migration.

    Just to test this scenario once and applies for all tables in the source. I do the same during the migration

    Hope this helps

  • I buy I phone 5 s of unknown source and I need for my apple ID to open

    I buy a new iphone from an unknown source and I need to unlock

    Sorry, but if you mean that it is locked to another Apple ID, then you're going to need help from the former owner or that the device doesn't help. If you do not find the former owner then your only option would be to try to get a refund there where you bought it. See find my iPhone Activation Lock - Apple Support

  • After changing a Firefox latest, my favorites have disappeared, and just "restore from backup" gives "not able to process the backup file".

    I tried the tool maintenance for places.sqlite and even delete the file so firefox it rebuilt. But no joy. New version is 36.0.1. Don't you remember an old man, but he was old enough. Five available json files, but none works

    I found my own answer.

    I copied the file favorite .json on a USB key. Led to another PC that still had an old Firefox and successfully it read. The exported as HTML and postponed retrospectively & imported.

    If someone else this problem is not lucky enough to have another PC with old Firefox, I'm willing to bet that you could just install Chrome rather & he'd willingly read.

Maybe you are looking for