Create a localized ListView

Hi, I created a custom in QML ListView that retrieves

data from XML (has an XML file as a data model).

I think I know how to support the chain located in typical situations,

for example, in QML I add qsTr keyword strings that i want to be

translated into different languages.

But how to do the same thing with the XML data source?

Thank you.

There are several options;

(1) use qrTr in your QML file by passing the returned ListDataItem.xxx

(2) provide a translation in the XML file as a separate field.

(3) providing an additional XML file for each language you want to support then load the appropriate.

You might find 3 is the easiest to maintain go before there is an obvious leaking between the XML file and any file translation which, without adequate testing, could lead to missed translations. that is any text that you place in your xml file is not automatically picked up by collection of translation to the compilation service.

Tags: BlackBerry Developers

Similar Questions

  • How can I create a local link to a particular message

    Hello world

    Someone have an idea on how to create a local link to a particular message, such as those created when you drag and drop an e-mail to the calendar app or task?

    I want to use these links to paste into Evernote notes and tasks Omnifocus... the idea is do not stick all of the e-mail... just a link

    Thank you

    Drag the column to preview message Mail message to the Dock or the office.

  • I can't create the local group on vSphere Client 5.5

    Hello, Hello all!

    I'have the vSphere Client 5.5 and I cannot create a local group on the tab "local users and groups. When I create a group shows me an error and I can not create it. This is the error that I have:

    Call "HostLocalAccountManager.CreateGroup" of object "ha-localacctmgr" on ESXi 'IP' failed.

    I am connected to the root.

    I saw in other forums that it is impossible to create groups due to the last version is only possible in the Web Client that comes integrated with vCenter.

    In the old versions is possible, but when I open a session in vSphere Client 5.0 for example, I have to update version and I can't use the 5.0 version.

    How can you help me?

    Thanks and greetings

    PD: Sorry for my bad English

    Hi Danisb3,

    It seems that local users is now the recommended around work (see link above), but as you said if you have vCenter you can add groups

    ESXi 5.1 and later versions does not support local groups. However, Active Directory groups are supported - is it possible to connect to AD?

  • Can we create a local database with SQl developer 3.1

    Hi I am trying to create a local database that I can run in my machine. Should what username and password I use. Do I need it, where to find it.

    Thank you

    If your instance of XE and SQL Developer are on the same machine, try right-clicking on the node 'Connections', then 'create local connections. This will create connections, which you can then use to administer the complete database, including the schemas provided apex. If you do it yourself, just use 'localhost' or 127.0.0.1 as the host of the db.

  • Create the local user g 12 DB

    Hello

    I am trying to create a local test user (DB 12 g Win7 / 64):

    SQL > conn sys

    SQL > alter session set container = PDBORCL;
    Altered session.


    SQL > show con_name

    CON_NAME
    ------------------
    PDBORCL


    SQL > create user test identified by the test.


    == > ORA-01109: database is not open.

    Select... v_$ services;


    0pdborcl2477889254pdborcl0
    5db112gr1XDB1684560570db112gr1XDB25.07.134091627695
    6db112gr11712327574db112gr125.07.134091627695
    1SYS$ BACKGROUND16595921928.06.133062388681
    2USERS OF SYS$342705567628.06.133062388681



    Sorry, I do not learn and understand the new concept of the current user / local again.


    How can I start the PDB and create a local user to manage the normal grant as users of 11 g DB schema?


    A big thank you and best regards

    Friedhold



    Hi Friedhold,

    I think the problem is that you connect to the database container rather than to the snap-in data base. You must connect the name of service associated with this snap-in db. Change connection string to test/test@pdborcl

    that should be found in your tnsnames file. Or you can use a syntax ezconnect.

    sqlplus test/test@//localhost:1521/pdborcl (or something similar)

    I posted a similar example on my blog that you can follow from beginning to end that can help explain.

    http://dbaharrison.blogspot.co.UK/2013/07/create-simple-user-in-12C-pluggable.html

    see you soon,

    Harry

  • Need a powershell script to create a local user on esx given the esx server list box

    Hello

    I need a powershell script to create a local user on esx in a given list entry of esx servers through a csv spreadsheet. The script should ask me the user name and the password for the user name to be created on the given list of esx servers.

    Thanks in advance!

    Just noticed that there is a lack of vacuum after the - password parameter.

    It should be

    $userName = Read-Host "Username"
    $password = Read-Host "Password" -AsSecureString:$true
    Import-Csv "C:\vmhosts.csv" | %{
         Connect-VIServer -Server $_.Hostname -Credential (Get-Credential)
         New-VMHostAccount  -Id $userName -Password $password -UserAccount:$true -GrantShellAccess:$true -Confirm:$false
         Disconnect-VIServer -Confirm:$false
    }
    

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • How to create a local user for ESX Web Access?

    Hi, in my last post,

    http://communities.VMware.com/message/1444920#1444920 I enabled web access.

    But what is the best practice to create a temporary user directly on the esx to provide access of computer virtual via web access console?

    Thank you.

    You can have a configuration of the user for the local access to ESX and it will not be seen by vCenter.  ESX is not its userbase with vCenter synx.

    If you have vCenter, simply create a folder in your virtual machines and the view models, move the virtual machine in question in the newly created folder and add the AD account with permissions to this folder and assign a role.  You can then simply access the vCenter and all they will see, if the user does not have permissions anywhere elsewhere in your vCenter hierarchy, is the single guest.

    But, if you do not have vCenter you will need to create a local account on the ESX host

    Hope it makes sense.

  • Problems with tutorial building a website with Web Premium CS4 – part 2: creating a local site

    I have problems with

    Building a website with Web Premium CS4 - part 2: creating a local site

    Since after taking all the steps in the tutorial and choosing Localhost from the menu to open the homepage of the Apache server in a web browser, IIS7 opens instead of the home page of the Apache server...

    I use Google Chrome as the default webbrowser...

    Looks like you have IIS as the Web server 'by default'.

    Try this http://localhost: 8080

    If that takes you to the Apache Web server, then you must set it as your default.

    Jim

    News added: it is possible that both are listening on port 80 and IIS is a winner. To reconfigure IIS, open it and site web by default, you must change the site link. Http must be on port 8080.

    If Apache is already set to port 80, then you will not need to do anything else. I think that is fair. I don't know how to set up Apache to listen on port 80 if it is defined on port 8080. I do not have to look at.

    Make sure that you stop and restart your web services.

  • To create the local development environment

    Hello

    I need to create the local development environment

    There are two options:

    1 gateway pl/sql embedded
    2 oracle xml db http server

    * 1. how to know the configuration that I use to create the local development environment? *

    After installation:

    * 2. how to configure? *


    http://hostname/ReportServer: port/apex/apex_admin... for embedded

    or

    http://hostname:port/pls/Apex/apex_admin...for oracle xml db



    from the tutorial, I just couldn't understand.

    for example, apex is defined in the configuration file? ... How to find?


    I'm stuck.

    Hello

    You have database XE, so you have before installation EPG. You don't need to worry about installation of DAD.
    Check the links I posted.

    The only thing you need to do is to allow remote clients, if your database is not in the same machine where you try to access it.

    If you go to Apex of the same machine where is database, point just your browser to http://localhost: 8080/apex

    BR, Jari

  • Is it possible to create a Local administrator user when you use the Profile Manager to get the configuration settings

    Hello

    We are studying the use of the Profile Manager of OS X as a way to manage our Enterprise macs.

    One of the demands made by the team, is to create an administrator user, as part of the OS X Profile which is lowered to the customer. The rationale is that this would be a way for the it team get, if the fubar user had their Mac

    I did not see this anywhere in the configuration options of the Profile Manager and so ask the people who use it as part of their everyday Toolbox, to find out if such an option is available.

    Thank you and best regards,

    Madan failed

    No, not with the Profile Manager.

    How you deploying your company Mac?  As institutionally imagery or as BYOD devices?  If image, then the image should contain a coherent local administrator account.  If the active image also the Apple Remote Desktop or SSH, you have a method of mass, control and manage the devices.  If BYOD style, then you are out of luck that the end user is the only one with the key of the device.

    You can take a look at following JAMF Casper.  Once devices are registered, you have the possibility to create accounts (However the common method is to create an account on registration).  If you deploy a BYOD approach, you should also look into DEP program Apple (https://deploy.apple.com) as more DEP JAMF (or other MDM) is a very powerful tool for light to zero touch deployment of systems.

    Reid

    Apple Consultants Network

    Author - "El Capitan Server - Foundation Services.

    Author - "El Capitan Server - Collaboration & control»

    Author - "El Capitan Server - Advanced Services '.

    : IBooks exclusively available in Apple store

  • Created in the ListView lost when C++ ListItem custome context reference

    Hi all

    I have a listview that generates a list of the custome listviewItems (ie the containers). Containers have a setContextProperty to my database object. But when they are added to the list view, I can't access the database context property. I realize that the listview is not in the same context as the page but I don't understand why when I bind context for the real item the reference he lost?

    Error: asset:///WorkoutListItem.qml:17: ReferenceError: can't find variable: _Dal

    List.QML

    
    Page
    {
    Container { ListView { id: workoutList horizontalAlignment: HorizontalAlignment.Fill
    
     dataModel: _Dal.ListofWorkouts listItemComponents: [ ListItemComponent {  type: "item" WorkoutListItem { workoutId: ListItemData.id workoutName: ListItemData.name } } ] }//End List }//End root
    }//EndPage
     
    

    WorkoutListItem.qml

    
    Container { id:root property int workoutId: -1 property variant workoutName: ""
    
     layout: StackLayout { orientation: LayoutOrientation.LeftToRight }
    
     Button { id: workoutDelete text: "Delete" onClicked: { var result = _Dal.DeleteWorkout(root.workoutId) } }
    
     Label { id: workoutNumberLabel text: root.workoutId }
    
     Label { id: workoutNameLabel text: root.workoutName }
    
     Button { id: workoutEdit text: "Edit" onClicked: { //TODO: Open workout page } }}
     
    

    application.cpp

    
    QmlDocument *WorkoutListItem = QmlDocument::create("asset:///WorkoutListItem.qml").parent(this);
    WorkoutListItem->setContextProperty("_Dal", dal);
    

    Thanks in advance for any help

    -J

    itemRoot.ListItem.view.yourFunction(ListItemData)
    

    yourFunction (data) is defined in the ListView itself

    from there, you have access to your context

  • Script to create a local library

    Hello guys!

    Unfortunately the Version of Photoshop: 14.0 (14.0 in 2013) did not understand the 'Creative Cloud Libraries' extension but it costs nothing to try another solution:

    It would be possible to create a script or a Panel in Adobe Cofiguarator 4 with a fotos. Gallery PNG stored in a local folder "C: \ clipart", allowing him to insert images in the document using the same? Similar to the "Creative Cloud Libraries" but instead! Thank you.

    Illustration:

    Screenshot_1.png

    Take a look at the image viewer in the experimental section @ http://www.ps-bridge-scripts.talktalk.net/

  • Create a local user with the vSphere Client

    Hello

    I want to create a new user with the permission of readonly. In the vmware documation salon, they say I have to go to the tab local users and groups, but there is no tab with that name.

    And sorry for my English I'm not a native speaker.

    Hi and welcome to communities,

    This tab is visible only when you connect to the ESXi directly with the vSphere Client. You won't see when you connect to a vCenter server.

  • What happens to the existing after the partition of table index and created with local index

    Hi guys,.

    / / DESC part id name number, varchar2 (100), number of wage

    In an existing table PART I add 1 column DATASEQ MORE. I wonder the part of table based on dataseq.now, the table is created with this logic of partition

    create the part table partition (identification number, name varchar2 (100), number of salary, number DATASEQ) in list (dataseq) (values partition PART_INITIAL (1));

    Suggestionn necessary. given that the table is partitioned based on DATASEQ I wonder to add local indexes on dataseq. to dataseq, I have added a local index create index idx on share (dataseq) LOCAL; Now my question is, already, there are the existing index is the column ID and salary.

    (1) IDX for dataseq is created locally so that it will be partition on each partition on the main table. Please tell me what is happening to the index on the column ID and salary... it will create again in local?

    Please suggest

    S

    Hello

    first of all, in reality 'a partition table' means create a new table a migration of existing data it (although, theoretically, you can use dbms_redefinition to partition an existing table - however, it's just doing the same thing behind the scenes). This means that you also get to decide what to do with the index - index will be local, who will be global (you can also reassess some of existing indexes and decide that they are not really necessary).

    Second of all, the choice of the partitioning key seems weird. Partitioning is a data management technique more that anything else, in order to be eligible, you must find a good partitioning key. A column recently added, named "data_seq" is not a good candidate. Can you give us more details about this column and why it was chosen as a partitioning key?

    I suspect that the person who proposed this partitioning scheme made a huge mistake. A non-partitioned table is much better in all aspects (including the ease of management and performance) that divided one wrongly.

    Best regards

    Nikolai

  • Creating partitioned local index

    Hi all

    Planing to run the range-partitioned on a table and creating Local partitioned index, but in the table is seen forced composite primary key thought to previously create Composite Unique Local partitioned index.

    Problem is when creating index its error ORA-14039 giving, of course it is not possible as partitioning column is not a subset of columns in a UNIQUE index key.

    Is there no workaround solution to create Local partitioned indexes... otherwise I'll be forced to create the overall index part?

    Y at - it no drawback if I create Composite Unique Local partitioned indexes including the columns of partitioning on purpose?

    There will be no impact if I create the index Composite Unique Local partitioned by including the columns voluntarily on the SQL QUERIES, access this table partitioning?

    Please suggest me a workaround solution.
    CREATE TABLE YASIR.CS_RESEARCH (ORDER_NBR NUMBER NOT NULL,
                          ORDER_DETAIL_NBR NUMBER NOT NULL,
                          SESSION_ID VARCHAR2(40),
                          PRODUCT_GROUP VARCHAR2(16) NOT NULL,
                          PRODUCT_SUBGROUP VARCHAR2(16) DEFAULT 'N/A',
                          FORMAT_TYPE VARCHAR2(10) NOT NULL,
                          CONTRIBUTOR VARCHAR2(60) NOT NULL,
                          DOCUMENT_NUMBER VARCHAR2(15) NOT NULL,
                          DOCUMENT_DATE DATE,
                          BILLABLE_PAGES NUMBER,
                          NON_BILLABLE_PAGES VARCHAR2(512),
                          PURCHASED_UNITS VARCHAR2(2000),
                          DELIVERY_METHOD VARCHAR2(6) DEFAULT 'ONLINE',
                          COMPANY_NAME VARCHAR2(120),
                          STATUS VARCHAR2(10) DEFAULT 'NEW',
                          CONTENT_CODE VARCHAR2(15) NOT NULL, 
                          CONTENT_CODE_DESC VARCHAR2(60),
                          ITEM_PRICE NUMBER NOT NULL,
                          PAGES_ORDERED NUMBER,
                          LAST_MNT_DATE_TIME DATE NOT NULL,
                          LAST_MNT_OPID VARCHAR2(120) NOT NULL,
                          CREATE_DATE DATE NOT NULL,
                          DML_FLAG CHAR(1) NOT NULL)
         PARTITION BY RANGE (CREATE_DATE) 
         (PARTITION CS_RESEARCH_2009_Q2 VALUES LESS THAN (MAXVALUE));
    
    ###Split partitions:
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('30-SEP-2007 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2007_Q3,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('31-DEC-2007 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2007_Q4,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('31-MAR-2008 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2008_Q1,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('30-JUN-2008 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2008_Q2,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('30-SEP-2008 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2008_Q3,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('31-DEC-2008 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2008_Q4,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ALTER TABLE YASIR.cs_research
      SPLIT PARTITION CS_RESEARCH_2009_Q2 AT (TO_DATE('31-MAR-2009 23:59:59', 'DD-MON-YYYY HH24:MI:SS'))
      INTO (PARTITION CS_RESEARCH_2009_Q1,
            PARTITION CS_RESEARCH_2009_Q2);
    
    ###Create indexes on cs_research except primary key index CSR_PKEY:
    alter session set sort_area_size=262144000; -----(250MB Total will be 1GB for 4 parallel process)
    create index YASIR.CSR_DETAIL_NBR on YASIR.CS_RESEARCH(TO_NUMBER(REPLACE(TO_CHAR(ORDER_NBR,'999999999')||TO_CHAR(ORDER_DETAIL_NBR,'999999999'),' ',''),'999999999999')) LOCAL
              (PARTITION CS_RESEARCH_2007_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2007_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q2 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q2 TABLESPACE USERS)
         nologging parallel (degree 4);
    Index created.
    
    create index YASIR.CSR_SESSION on YASIR.CS_RESEARCH(SESSION_ID,ORDER_NBR) LOCAL
              (PARTITION CS_RESEARCH_2007_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2007_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q2 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q2 TABLESPACE USERS)
         nologging parallel (degree 4);
    Index created.
    
    create index YASIR.CSR_CREATED on YASIR.CS_RESEARCH(CREATE_DATE) LOCAL
              (PARTITION CS_RESEARCH_2007_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2007_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q2 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q2 TABLESPACE USERS)
         nologging parallel (degree 4); 
    Index created.
    
    create index YASIR.CSR_DOCUMENT_NUMBER on YASIR.CS_RESEARCH(DOCUMENT_NUMBER) LOCAL
              (PARTITION CS_RESEARCH_2007_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2007_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q2 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q2 TABLESPACE USERS)
         nologging parallel (degree 4); 
    Index created.
    
    create index YASIR.CSR_STATUS on YASIR.CS_RESEARCH(STATUS) LOCAL
              (PARTITION CS_RESEARCH_2007_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2007_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q2 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q2 TABLESPACE USERS)
         nologging parallel (degree 4);
    Index created.
     
    create unique index CSR_PRKEY_IND on YASIR.CS_RESEARCH(ORDER_NBR,ORDER_DETAIL_NBR) LOCAL
         (PARTITION CS_RESEARCH_2007_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2007_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q2 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q3 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2008_Q4 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q1 TABLESPACE USERS,
              PARTITION CS_RESEARCH_2009_Q2 TABLESPACE USERS)
         nologging parallel (degree 4);
    ERROR at line 1:
    ORA-14039: partitioning columns must form a subset of key columns of a UNIQUE
    index
    Thank you
    Yasser

    YasserRACDBA wrote:
    I want to create a unique partitioned index Local and use this primary key index.

    But my main question is if this create_date column will affect all sql queries that are not used in where clause?

    Yasser,

    your main question should not be about performance queries, but the consequence of adding the CREATE_DATE to the local unique index:

    1. you change the meaning of the primary key: adding the CREATE_DATE means that the unique character of ORDER_NBR, ORDER_DETAIL_NBR is only applied by CREATE_DATE. I guess that does not match the business experience that this primary key is supposed to enforce and defeated the original purpose of the uniqueness that is unique values of ORDER_NBR, ORDER_DETAIL_NBR across the table.

    2. If you want to use as a key in other tables you must add the CREATE_DATE to all child tables, because you need to refer to the primary key complete a relationship of key foreign primary key.

    So the only 'right' way to do this is to use a unique comprehensive index on ORDER_NBR, ORDER_DETAIL_NBR. Of course, this means you must rebuild whenever a partition maintenance is carried out which invalidates the overall index since you use 8i and you cannot use the UPDATE GLOBAL INDEXES clause.

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676 /.
    http://sourceforge.NET/projects/SQLT-pp/

Maybe you are looking for