ODI error: no key is declared in your target data store

Hi all

I'm trying to update a field in a table (MSSQL data) fields in the same table using the incremental IKM MSSQL put up-to-date.

When I try to run the interface the following error occurs:

com.sunopsis.tools.core.exception.SnpsSimpleMessageException: flow control is not possible if no key is declared in your target data store

I chose the 'Key' option on the primary key field in the "target column properties" under the mapping tab in the designer, but when I select the 'update key' in the workflow tab, there is no fields to select.
What is the difference between these two key configurations in the designer? Why the ODI is not recognizing the key specified on the target?

Thanks in advance

Hello

You must create a PK by adding the constraint in your target "Data bank" (go to models-> your data store target-> expand it, right-click on the constraints-> new key and select your PK on the columns tab). Then, you can see the PK in the drop of the update key.

In addition, FLOW_CONTROL should be enabled if you need to dispose of "error capture" mechanism (E$) etc., if not you can set to false.

Thank you
Guru

Tags: Business Intelligence

Similar Questions

  • ESXi 4: error in live migration (VMotion) to the different data store (Local SATA to iSCSI SAN)

    Hi all

    I have a problem during VM migration live in the different data store, the specifications of the virtual machine is just Windows 2003 x 64 installed with the latest VMWare tools.

    Here is the error message:

    Move the virtual machine

    Win2003x64_RST01

    A general error occurred: detected Source this destination could not resume.

    The active state of VM migration

    any idea what could cause this please?

    Kind regards

    AWT

    Check that the machine ESX4 has prevention performance virtualization and data, indicators enabled in the BIOS. I could move 32 bit machines vmotion Unflagged VT turned on in the BIOS, but 64-bit machines could not begin until I activated the flag of VT in the BIOS.

    Also try to clear the mask of the source of the VM CPU before migrating, providing the hosts have the same hardware.

  • ODI file data store

    Hi all

    I have a confusion about the physical and logical length in the ODI file data store.

    I have a fixed-width file where a c2 col had datatype as string (30).

    I've set this column in the data as string store > physical length 30 > logic length 30

    My interface failed with error as '.

    ORA-12899: value too large for column 'S0_IDM '. «C$ _0S0_EAGLE_DWHCDC_CHRG_MST ".» "" "C2_CHARGE_DESC" (real: 31, maximum: 30).

    When I increased the logical length to 255, the interface worked fine.

    Being always the same 30 physical length.

    How different is it?

    Any help on this will be appreciated.

    Thanks and greetings

    Reshma

    This isn't the official documentation, but here's my point of view, after a few moments of reflection

    Everything you do in the ODI Designer is inspired by the logical architecture. Only when running it manifested in a physical implementation i.e. connection strings are materialized etc. When you perform an integration ODI creates usually a few temporary tables prefixed with C$, I$ etc to be able to perform the necessary data movement and the transformations needed to, for example, to fill a data target (table) store. In your example, your flat file is materialized in such a temporary table before that its content is manipulated (or not) and loaded in the target data store. When ODI generates this code that he uses the logical length emitted in the DDL that generates temporary table column lengths, the physical column is ignored.

    Now in your scenario is not a problem as constraints such as these do not matter to the physical file version knowledge if you were to write to the file, that it would not matter if you wrote return 255 characters or 31. This could be a problem if you were using database tables and varying the logical vs physical lengths but generally you reverse engineer tables from database using ODI rather than manually doing so makes better.

    Anyway, in short, I think that the logical lengths should be taken as representative which will manifest itself in the materialization of the temporary objects used to manged / transform the data from the source models (tables$ CAN) and target (I have tables$) while the physical lengths indicate what the underlying physical representation of these models are in reality.

    EDIT: after reading some logical documentation actually represents the length while physics is related the number of bytes required to store the data. Therefore, you could have a situation with multibyte characters where the physical length could be greater than the logical length but not really the other way around.

  • Short ODI IKM Unique key error

    Hello

    I am trying to load data in and short 3.1 datadomain through the IKM ODI of short downloaded from delivery. I use ODI 11.1.1.1.7 with IKM SQL for short for 3.1. I managed to solve the problem all the way until step 9 of the dataload

    Here are the steps to get that:

    Step 1-4 Drop, Create, load, Analyze table work

    6 - integration - context properties of loading RecordWriter

    7 initialize Logger

    8 validate Options

    9 initialize short schema (ERROR)

    Above step 9 errors with:

    org.apache.bsf.BSFException: exception of Jython:

    Traceback (most recent call changed):

    File "< string >", line 57, < module >

    File '< string >", line 15, in throwException

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

    at org.python.core.PyReflectedConstructor.constructProxy(PyReflectedConstructor.java:163)

    java.lang.Exception: java.lang.Exception: there is no unique key in the schema

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)

    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine (SnpScripting


    I'm sure I'm missing something and I can't find it in the documentation. Help, please.


    Thanks in advance.

    This cased by you did not indicate the unique key in your column of your data store in the models.

    1 extend the data store in the models.

    2. expand the attributes

    3. double-click on the PK column you want

    4. click on the Flexfields

    5 uncheck "short property is Unique.

    Or you do not want to set a short Server Unique key and let the server automatically generate the PK.

    You can open your interface and in the configuration of IKM together the value of 'AUTO_GENERATE_RECORSPEC' is true.

  • ODI error

    Hi Experts,

    Try a map display in a target table.
    The mapping is a mapping of one for a simple (IE view (source) to the target table.)

    I get the following error message:

    ODI-1228: failed FUSION_PSFT_VIEW (integration) task on the target of ORACLE PPLSFT_TRG_INTERFACE connection.
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00936: lack of expression

    The generated code is:

    insert / * + append * / into SYSADM. I _PS_FSAH_ACTG_LN $
    (
    GROUP_ID_SEQ_NUM,
    GL_SL_LINK_ID,
    GL_SL_LINK_TABLE,
    FSAH_HEADER_ID,
    FSAH_LINE_NUM,
    FSAH_EVENT_ID,
    FSAH_APP_ID,
    BUSINESS_UNIT,
    BUSINESS_UNIT_GL,
    LEDGER_GROUP,
    GREAT BOOK,
    APPL_JRNL_ID,
    ACCOUNTING_DT,
    FOREIGN_CURRENCY,
    FOREIGN_AMOUNT,
    CURRENCY_CD,
    MONETARY_AMOUNT,
    RT_TYPE,
    ACCOUNT,
    DEPTID,
    LINE_DESCR,
    JRNL_LN_REF,
    IND_UPDATE
    )
    Select
    GROUP_ID_SEQ_NUM,
    GL_SL_LINK_ID,
    GL_SL_LINK_TABLE,
    FSAH_HEADER_ID,
    FSAH_LINE_NUM,
    FSAH_EVENT_ID,
    FSAH_APP_ID,
    BUSINESS_UNIT,
    BUSINESS_UNIT_GL,
    LEDGER_GROUP,
    GREAT BOOK,
    APPL_JRNL_ID,
    ACCOUNTING_DT,
    FOREIGN_CURRENCY,
    FOREIGN_AMOUNT,
    CURRENCY_CD,
    MONETARY_AMOUNT,
    RT_TYPE,
    ACCOUNT,
    DEPTID,
    LINE_DESCR,
    JRNL_LN_REF,
    IND_UPDATE
    de)


    Select

    C1_GROUP_ID_SEQ_NUM GROUP_ID_SEQ_NUM,
    C2_GL_SL_LINK_ID GL_SL_LINK_ID,
    C3_GL_SL_LINK_TABLE GL_SL_LINK_TABLE,
    C4_FSAH_HEADER_ID FSAH_HEADER_ID,
    C5_FSAH_LINE_NUM FSAH_LINE_NUM,
    C6_FSAH_EVENT_ID FSAH_EVENT_ID,
    C7_FSAH_APP_ID FSAH_APP_ID,
    C8_BUSINESS_UNIT BUSINESS_UNIT,
    C9_BUSINESS_UNIT_GL BUSINESS_UNIT_GL,
    C10_LEDGER_GROUP LEDGER_GROUP,
    C11_LEDGER BIG BOOK,
    C12_APPL_JRNL_ID APPL_JRNL_ID,
    C13_ACCOUNTING_DT ACCOUNTING_DT,
    C14_FOREIGN_CURRENCY FOREIGN_CURRENCY,
    C15_FOREIGN_AMOUNT FOREIGN_AMOUNT,
    C16_CURRENCY_CD CURRENCY_CD,
    C17_MONETARY_AMOUNT MONETARY_AMOUNT,
    C18_RT_TYPE RT_TYPE,
    ACCOUNT OF C19_ACCOUNT,
    C20_DEPTID DEPTID,
    C21_LINE_DESCR LINE_DESCR,
    C22_JRNL_LN_REF JRNL_LN_REF,

    'I' IND_UPDATE

    of SYSADM. C$ _0PS_FSAH_ACTG_LN
    where (1 = 1)






    ) S
    If NOT EXISTS
    (select 1 from SYSADM.PS_FSAH_ACTG_LN T
    where
    and ((T.GROUP_ID_SEQ_NUM = S.GROUP_ID_SEQ_NUM) or (T.GROUP_ID_SEQ_NUM IS NULL and S.GROUP_ID_SEQ_NUM IS NULL)) and
    ((T.GL_SL_LINK_ID = S.GL_SL_LINK_ID) or (T.GL_SL_LINK_ID IS NULL and S.GL_SL_LINK_ID IS NULL)) and
    ((T.GL_SL_LINK_TABLE = S.GL_SL_LINK_TABLE) or (T.GL_SL_LINK_TABLE IS NULL and S.GL_SL_LINK_TABLE IS NULL)) and
    ((T.FSAH_HEADER_ID = S.FSAH_HEADER_ID) or (T.FSAH_HEADER_ID IS NULL and S.FSAH_HEADER_ID IS NULL)) and
    ((T.FSAH_LINE_NUM = S.FSAH_LINE_NUM) or (T.FSAH_LINE_NUM IS NULL and S.FSAH_LINE_NUM IS NULL)) and
    ((T.FSAH_EVENT_ID = S.FSAH_EVENT_ID) or (T.FSAH_EVENT_ID IS NULL and S.FSAH_EVENT_ID IS NULL)) and
    ((T.FSAH_APP_ID = S.FSAH_APP_ID) or (T.FSAH_APP_ID IS NULL and S.FSAH_APP_ID IS NULL)) and
    ((T.BUSINESS_UNIT = S.BUSINESS_UNIT) or (T.BUSINESS_UNIT IS NULL and S.BUSINESS_UNIT IS NULL)) and
    ((T.BUSINESS_UNIT_GL = S.BUSINESS_UNIT_GL) or (T.BUSINESS_UNIT_GL IS NULL and S.BUSINESS_UNIT_GL IS NULL)) and
    ((T.LEDGER_GROUP = S.LEDGER_GROUP) or (T.LEDGER_GROUP IS NULL and S.LEDGER_GROUP IS NULL)) and
    ((T.Ledger = S.Ledger) or (T.LEDGER IS NULL and S.LEDGER IS NULL)) and
    ((T.APPL_JRNL_ID = S.APPL_JRNL_ID) or (T.APPL_JRNL_ID IS NULL and S.APPL_JRNL_ID IS NULL)) and
    ((T.ACCOUNTING_DT = S.ACCOUNTING_DT) or (T.ACCOUNTING_DT IS NULL and S.ACCOUNTING_DT IS NULL)) and
    ((T.FOREIGN_CURRENCY = S.FOREIGN_CURRENCY) or (T.FOREIGN_CURRENCY IS NULL and S.FOREIGN_CURRENCY IS NULL)) and
    ((T.FOREIGN_AMOUNT = S.FOREIGN_AMOUNT) or (T.FOREIGN_AMOUNT IS NULL and S.FOREIGN_AMOUNT IS NULL)) and
    ((T.CURRENCY_CD = S.CURRENCY_CD) or (T.CURRENCY_CD IS NULL and S.CURRENCY_CD IS NULL)) and
    ((T.MONETARY_AMOUNT = S.MONETARY_AMOUNT) or (T.MONETARY_AMOUNT IS NULL and S.MONETARY_AMOUNT IS NULL)) and
    ((T.RT_TYPE = S.RT_TYPE) or (T.RT_TYPE IS NULL and S.RT_TYPE IS NULL)) and
    ((T.Account = S.Account) or (T.ACCOUNT IS NULL and S.ACCOUNT IS NULL)) and
    ((T.DEPTID = S.DEPTID) or (T.DEPTID IS NULL and S.DEPTID IS NULL)) and
    ((T.LINE_DESCR = S.LINE_DESCR) or (T.LINE_DESCR IS NULL and S.LINE_DESCR IS NULL)) and
    ((T.JRNL_LN_REF = S.JRNL_LN_REF) or (T.JRNL_LN_REF IS NULL and S.JRNL_LN_REF IS NULL))
    )


    If you see in the next line after "If NOT EXISTS" there is a 'where' followed by a 'and '. I know that this is the cause of the error, because it is a syntax error.

    I don't know why ODI generates this code.
    How to solve this?
    Pointers would be greatly appreciated.

    Thank you
    Shyam

    user12397567 wrote:
    Hey fatty,.

    The PK in the tables source and target have been marked as 'allow' and 'allow '.

    Kind regards
    Shyam

    Hello Shyam,

    I think that you have not received my question correctly.

    If you open your interface and select data target only your PK column store gets selected under 'Key update'?
    KM of incremental update requires a key update to work.

    This update may be a PK/UK created the DB level and overturned in model ODI.
    Or it can be created at the level of model ODI only of PK/UK
    Or it may be marked against the column, check the box called KEY

    Thank you
    Fati

  • I can't download Windows 7 ISO. "Error we had a problem processing your request. Please try again later. »

    I can't download Windows 7 ISO. I tried 24 hours and continue to receive the same response: "error we had a problem processing your request. Please try again later. "I have a valid product key directly from the unit. This means that the Windows Support site has been down for 24 hours or is there a problem with my product key?

    Try this solution:

    Microsoft Windows and Office ISO download tool - HeiDoc.net

  • Error "batteryInfo" has not declared in this scope

    Hi, I have this error in my project, I understand the example of the battery of the sample, but I get the error of generation.

    'MarcossitMobile10::MarcossitMobile10(bb::cascades::Application*)':
    ../src/MarcossitMobile10.cpp:17:42: error: 'batteryInfo' was not declared in this scope
    cc: C:/bbndk/host_10_0_9_404/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx8.0.0eabi/4.6.3/cc1plus caught signal 1
    make[2]: *** [o.le-v7-g/.obj/MarcossitMobile10.o] Error 1
    make[2]: Leaving directory `C:/Users/marcossit/ndk-10.0.9-workspace/MarcossitMobile10/arm'
    make[1]: *** [debug] Error 2
    make[1]: Leaving directory `C:/Users/marcossit/ndk-10.0.9-workspace/MarcossitMobile10/arm'
    make: *** [Device-Debug] Error 2
    
    **** Build Finished ****
    

    I don't understand this part I declare scope

    This is the main.cpp Batterysample

    /* Copyright (c) 2012 Research In Motion Limited.
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
    
    #include 
    #include 
    #include 
    #include 
    
    #include 
    #include 
    
    using namespace bb::cascades;
    using namespace bb::device;
    
    /**
     * This sample application shows some basic
     * usage of the BatteryInfo API, such as charging level and charging state.
     */
    Q_DECL_EXPORT int main(int argc, char **argv)
    {
        qmlRegisterUncreatableType("bb.device", 1, 0, "BatteryChargingState", "");
    
        Application app(argc, argv);
    
        QTranslator translator;
        const QString locale_string = QLocale().name();
        const QString filename = QString("batterysample_%1").arg(locale_string);
        if (translator.load(filename, "app/native/qm")) {
            app.installTranslator(&translator);
        }
    
    //! [0]
        // Create the battery info object
        BatteryInfo batteryInfo;
    
        // Load the UI description from main.qml
        QmlDocument *qml = QmlDocument::create("asset:///main.qml");
    
        // Make the BatteryInfo object available to the UI as context property
        qml->setContextProperty("_battery", &batteryInfo);
    //! [0]
    
        // Create the application scene
        AbstractPane *appPage = qml->createRootObject();
        Application::instance()->setScene(appPage);
    
        return Application::exec();
    }
    

    It's my main.cpp

    /*
    * Copyright (c) 2012 Jason I. Carter
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
    #include "Flashlight.hpp"
    #include 
    #include 
    #include 
    #include 
    
    #include 
    #include 
    #include 
    #include "MobileMarcossit.hpp"
    #include "RegistrationHandler.hpp"
    #include "InviteToDownload.hpp"
    #include 
    
    using namespace bb::cascades;
    using namespace bb::cascades::advertisement;
    
    Q_DECL_EXPORT int main(int argc, char **argv)
    {
        // this is where the server is started etc
        Application app(argc, argv);
    
        // localization support
        QTranslator translator;
        QString locale_string = QLocale().name();
        QString filename = QString( "MobileMarcossit_%1" ).arg( locale_string );
        if (translator.load(filename, "app/native/qm")) {
            app.installTranslator( &translator );
        }
        BatteryInfo batteryInfo;
        const char *uri = "bb.cascades.advertisement";
           qmlRegisterType(uri, 1, 0, "Banner");
           qmlRegisterUncreatableType("bb.device", 1, 0, "BatteryChargingState", "");
           qmlRegisterType("Flashlight", 1, 0, "Flashlight");
    
        // Every application is required to have its own unique UUID. You should
        // keep using the same UUID when you release a new version of your application.
        //TODO:  YOU MUST CHANGE THIS UUID!
        // You can generate one here: http://www.guidgenerator.com/
        const QUuid uuid(QLatin1String("c4e27f7c-f9d2-40dc-8630-1d037a0a1309"));
    
        //Setup BBM registration handler
        RegistrationHandler *registrationHandler = new RegistrationHandler(uuid, &app);
    
        //AppName.cpp file which contains your main.qml file
        MobileMarcossit *mobileMarcossit = new MobileMarcossit(registrationHandler->context(), &app);
    
        // Whenever the registration has finished successfully, we continue to the main UI
        // Added finishRegistration() to registrationFinished()
        // This is to emit signal and by pass use of continue button as shown in sample
        QObject::connect(registrationHandler, SIGNAL(registered()), mobileMarcossit, SLOT(show()));
    
        // we complete the transaction started in the app constructor and start the client event loop here
        return Application::exec();
        // when loop is exited the Application deletes the scene which deletes all its children (per qt rules for children)
    }
    

    It's my MarcossitMobile10.cpp

    // Default empty project template
    #include "MarcossitMobile10.hpp"
    
    #include 
    #include 
    #include 
    #include 
    using namespace bb::cascades;
    
    MarcossitMobile10::MarcossitMobile10(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);
        qml->setContextProperty("_battery", &batteryInfo);
        // create root object for the UI
        AbstractPane *root = qml->createRootObject();
    
        // set created root object as a scene
        app->setScene(root);
    }
    

    and get the error in this line that I declare.

     qml->setContextProperty("_battery", &batteryInfo);
    

    Help...

    Organizing in this way PPH, but already now, run nothing comes in my dev alpha application

    MarcossitMobile10.hpp

    // Default empty project template
    #ifndef MarcossitMobile10_HPP_
    #define MarcossitMobile10_HPP_
    
    #include 
    
    #include 
    namespace bb { namespace cascades { 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 MarcossitMobile10 : public QObject
    {
        Q_OBJECT
    public:
        bb::device::BatteryInfo* batteryInfo;
        MarcossitMobile10(bb::cascades::Application *app);
        virtual ~MarcossitMobile10() {}
    };
    
    #endif /* MarcossitMobile10_HPP_ */
    

    the qml constructor is bateria.qml

    /* Copyright (c) 2012 Research In Motion Limited.
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
    
    import bb.cascades 1.0
    import bb.device 1.0
    
    // Page laying out the visual components
    Page {
        Container {
            layout: DockLayout {}
    
            ImageView {
                horizontalAlignment: HorizontalAlignment.Fill
                verticalAlignment: VerticalAlignment.Fill
    
                imageSource: "asset:///images/bateria/background.png"
            }
    
            Battery {
                horizontalAlignment: HorizontalAlignment.Center
                verticalAlignment: VerticalAlignment.Center
            }
    
            Container {
                horizontalAlignment: HorizontalAlignment.Center
                verticalAlignment: VerticalAlignment.Bottom
    
                bottomPadding: 50
    
                //! [0]
                Label {
                    id: stateLabel
    
                    horizontalAlignment: HorizontalAlignment.Center
    
                    text: {
                        switch (_battery.chargingState) {
                            case BatteryChargingState.Unknown:
                                return qsTr ("Unknown");
                                break;
                            case BatteryChargingState.NotCharging:
                                return qsTr ("Not Charging");
                                break;
                            case BatteryChargingState.Charging:
                                return qsTr ("Charging");
                                break;
                            case BatteryChargingState.Discharging:
                                return qsTr ("Discharging");
                                break;
                            case BatteryChargingState.Full:
                                return qsTr ("Full");
                                break;
                        }
                    }
                    textStyle {
                        color: Color.White
                        fontSize: FontSize.XLarge
                    }
                }
                //! [0]
    
                Label {
                    id: descriptionLabel
    
                    horizontalAlignment: HorizontalAlignment.Center
                    bottomMargin: 100
    
                    text: {
                        switch (_battery.chargingState) {
                            case BatteryChargingState.Unknown:
                                return qsTr ("Something is up with the battery");
                                break;
                            case BatteryChargingState.NotCharging:
                                return qsTr ("Plugged in, just no charge");
                                break;
                            case BatteryChargingState.Charging:
                                return qsTr ("Plugged in");
                                break;
                            case BatteryChargingState.Discharging:
                                return qsTr ("Unplugged and discharging");
                                break;
                            case BatteryChargingState.Full:
                                return qsTr ("Plugged in, full");
                                break;
                        }
                    }
                    textStyle {
                        color: Color.Gray
                        fontSize: FontSize.Large
                    }
                }
            }
        }
    }
    

    and the qml plugin is Battery.qml

    /* Copyright (c) 2012 Research In Motion Limited.
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
    
    import bb.cascades 1.0
    import bb.device 1.0
    
    Container {
        preferredWidth: 498
        preferredHeight: 318
    
        layout: DockLayout {}
    
        //! [0]
        ImageView {
            id: batteryOutline
    
            horizontalAlignment: HorizontalAlignment.Center
            verticalAlignment: VerticalAlignment.Center
    
            imageSource: _battery.chargingState == BatteryChargingState.Unknown ? "asset:///images/bateria/battery_plugged_error.png" :
                         _battery.chargingState == BatteryChargingState.NotCharging ? "asset:///images/bateria/battery_plugged_bad.png" :
                         _battery.chargingState == BatteryChargingState.Charging ? "asset:///images/bateria/battery_plugged.png" :
                         _battery.chargingState == BatteryChargingState.Discharging ? "asset:///images/bateria/battery.png" :
                         _battery.chargingState == BatteryChargingState.Full ? "asset:///images/bateria/battery_plugged.png" : ""
        }
        //! [0]
    
        //! [1]
        ImageView {
            id: loadingLevel
    
            horizontalAlignment: HorizontalAlignment.Left
            verticalAlignment: VerticalAlignment.Center
    
            translationX: 75
            preferredWidth: _battery.level * 350.0 / 100.0
    
            imageSource: _battery.level <= 10 ? "asset:///images/bateria/fill_red.png" :
                         _battery.level <= 20 ? "asset:///images/bateria/fill_yellow.png" :
                         _battery.level < 100 ? "asset:///images/bateria/fill_grey.png" : "asset:///images/bateria/fill_green.png"
        }
        //! [1]
    
        ImageView {
            id: stateIndicator
    
            horizontalAlignment: HorizontalAlignment.Center
            verticalAlignment: VerticalAlignment.Center
    
            imageSource: _battery.chargingState == BatteryChargingState.Unknown ? "asset:///images/bateria/exclamation.png" :
                         _battery.chargingState == BatteryChargingState.NotCharging ? "asset:///images/bateria/exlamation.png" :
                         _battery.chargingState == BatteryChargingState.Charging ? "asset:///images/bateria/flash.png" :
                         _battery.chargingState == BatteryChargingState.Discharging ? "" :
                         _battery.chargingState == BatteryChargingState.Full ? "" : ""
        }
    }
    

    It will be something else?

    qml->setContextProperty("_battery", &batteryInfo);
    

    for example

    qml->setContextProperty("_bateria", &batteryInfo);
    
    or
    
    qml->setContextProperty("Battery", &batteryInfo);
    
  • error: 'QmlDocument' was not declared in this scope

    I followed along the following:

    https://developer.BlackBerry.com/Cascades/documentation/UI/integrating_cpp_qml/index.html

    And added the following code to main.cpp:

    #include 
    #include 
    
    #include "app.hpp"
    
    using ::bb::cascades::Application;
    
    int main(int argc, char **argv)
    {
        Application app(argc, argv);
    
        QmlDocument *qml = QmlDocument::create("main.qml");
        AbstractPane *root = qml->createRootNode();
        Application::setScene(root);
    
        return Application::exec();
    }
    

    When compiling, I get the error:

    error: 'QmlDocument' was not declared in this scope
    

    Your weird namespace.

    using bb::cascades;

    Try this.

    Edit: Also if I were you I wouldn't want to create a new project and select HelloCasades as a model.  That will be running a lot faster than to try to do it from scratch.

  • FDM error: ACCOUNT - key in dual card values Violations!

    I get "error: ACCOUNT - key Violations duplicate card values! during the loading of FDM data file. I tried a few options such as the removal of duplicate lines, it did not work.

    Thank you

    MB

    I deleted mapping exists and it recharged. It's working now. Thanks for all your replies.

    MB

  • Why do I get the message 'a network error occurred during the processing of your order'?  I was able to print an album without problem about a month ago

    I am trying to print a photo book, but get the message "a network error occurred during the processing of your order.  Please check your network connection and try again.  I had no problem with the printing of a book about a month ago.

    Start in Safe Mode, Mac OS x: Safe Mode bootand try to order from there.

    Don't forget to check out the book before ordering this Apple; Get an overview of a project on paper in Photos, iPhoto or Aperture to avoid problems - Apple Support. Save the PDF to be compared with the printed version when coming out.

  • error due to suspicious activity on your computer, call 877-822 9492

    Original title:

    Error message

    I have an error message appears and says "error due to suspicious activity on your computer, call 877-822-9492.

    is it legitimate?

    Unlikely.

    Download, install, execute, update and perform analyses complete system with the two following applications:

    Remove anything they find.  Reboot when necessary.
    (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.
    Delete everything is found.

    Restart the computer.

    It uses free software that you can uninstall it later if you wish.  Do not turn on or try any free trials when installing things.

  • why I cant player to access itv now when I could always? He returns with "an error occurred during the processing of your request."

    why I cant player to access itv now when I could always? He returns with "an error occurred during the processing of your request."

    Hi James,

    Let us know a few details about the issue.

    1. which operating system you have installed on the computer?

    2. what web browser do you use to open itv player?

    3. are you able to play other videos online on other sites?

    If you use Internet Explorer, then you follow these methods.

    Method 1:

    You can run the fix for video problems in Internet Explorer.

    Playing video files crashes or blocking Internet Explorer - Windows

    http://support.Microsoft.com/mats/video_freezes_or_crashes/

    Method 2:

    You can also follow the steps in the following article and check.

    The video problems when you use Internet Explorer

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

    Note: The Reset Internet Explorer Settings feature might reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings and Add-ons. We recommend that you note these sites before using Internet Explorer settings reset feature and re - activate the Add-ons.

    Feel free to get back to us for other queries.

  • Get error saying: a necessary file to your aol desktop software work properly (snmaster.idx) unable to find to fix this problem.

    Original title: installing the aol software

    I uninstalled some older versions of AOL, now I can not open aol. Get error saying: a necessary file to your aol desktop software work properly (snmaster.idx) unable to find to fix this problem. Please reinstall the desktop aol PFC snmaster.idx problem is I don't know how to install this software!  Help

    Hi Bruce,.

    Thanks for posting your question in the Microsoft Community Forum.

    Based on the information, you receive the error message error message to reinstall the AOL software to fix file snmaster.idx missing after uninstalling older versions of AOL.

    This problem may occur if some data for AOL Desktop Software files are not installed in the correct location.

    You can see the AOL support article to install the AOL desktop software.

    Install AOL Desktop software

    You can also consult the support AOL article and check if it helps.

    Message: SNMaster.idx is missing

    If the problem persists, you can get in touch with the support of AOL for further assistance.

    Hope the helps of information.

    Let us know if you need help with Windows related issues. We will be happy to help you.

  • Cannot open the Briefcase error: an unknown error has occurred. Some of your files were copied not

    Original title: TOWEL PROBLEM

    I can't open My Briefcase. Whenever I try to open it, a message appears saying "an unknown error has occurred. Some of your files were not copied. "What to do now to open? Please help me...

    I know it's probably a bit late for mate you, but for someone else the problem, the solution is quite simple.

    Location of the sample: C:\users\user\documents\briefcase

    (Briefcase is replaced with the name of your Briefcase)

    If your location is like this: c:\users\john smith\documents\briefcase

    You need to move the Briefcase to another location that does not have spaces inside and if necessary rename your Briefcase is only a single word.

    Now, create a new folder and rename it again and drag the towel she

    New example: C:\Users\User\Documents\New\Briefcase

    Now, press windows + R (run...)

    Type cmd

    Click Ok

    Type the following command:

    Robocopy c:\users\user\documents\new\briefcase\ c:\users\user\documents\new\ *. * /E /XD c:\users\user\documents\new\ b

    This will move the contents of your bag in the new folder that you created.

  • Windows 7 of fingerprints of connection problem, error ' year error occurred preventing the use of your information for fingerprint identification.

    Original title: wndows 7 fingerprint logon

    I like to use fingerprints for better security authentication when logging a session Windows or unlock. I can create a long, highly secure password and do not have to type it every time I have lock Windows. BUT...

    A week or two ago, the sensors of validity fingerprint reader on my HP Pavilion dv7 stopped working. I reinstalled the latest driver from HP support device, and everything worked fine for a day or two. Now the sensor still works, but Windows (7, home edition, SP1) gives me the message "year error occurred preventing the use of your fingerprint credentials." The only thing that has changed, I know, is the latest Windows updates.

    Can anyone help? Thank you!

    Hi Frank,.

    Thanks for the reply.

    I suggest you to refer to the article and check if it helps.

    http://h20000.www2.HP.com/bizsupport/TechSupport/document.jsp?objectID=c03061709

    If the problem persists, I suggest you send the request in Support HP for assistance.

    http://h30434.www3.HP.com/

    Hope this information helps. If you need more assistance or information on this question, reply to this post. I'll be happy to help you.

Maybe you are looking for