How to divide the string in bb-cascades

  1. I have a table of data as json

    {"RegistrationResult":"Registered Success:Empid:157:TableName:COMPANY156"}
    
  2. Now, how I want to split the show list view in qml and string as the follwing

    Success stories

    EmpID = 157

    TableName = COMPANY156

  3. Please tell the concept of cutting a string and show the result in qml

I can get the result of the follwing method:

{"RegistrationResult":["Registered Success","Empid":"157","TableName":"COMPANY156"]}
 

But I do not know how to split the string for a first... Help, please...

svmrajesh wrote:

  1. ,......"Registered Success:Empid:157:TableName:COMPANY156"}

Take a look at QString docu

Just do something like

myString.split(':')

and you get a QStringList and this QStringList is directly mapped to a table in QML JavaScript

Tags: BlackBerry Developers

Similar Questions

  • Simple question: how to divide the string into multiple lines concatenated?

    Hi people,

    Maybe it's an easy question.

    How to split a string that is concatenated into multiple lines by using the SQL query?

    ENTRY:
    select 'AAA,BBB,CC,DDDD' as data from dual
    Delimiter = ', '.

    Expected results:
    data
    ------------
    AAA
    BBB
    CCC
    DDDD
    I'm looking for something nice to feature "an opposite to «sys_connect_by_path»»

    Thank you
    Tomas
    with t as (select 'aaaa,,bbbb,cccc,dddd,eeee,ffff' as txt from dual)
    -- end of sample data
    select REGEXP_SUBSTR (txt, '[^,]+', 1, level)
    from t
    connect by level <= length(regexp_replace(txt,'[^,]*'))+1
    
    REGEXP_SUBSTR(TXT,'[^,]+',1,LE
    ------------------------------
    aaaa
    bbbb
    cccc
    dddd
    eeee
    ffff
    
  • How to get the string (specified by row and column) of txt file with labview

    Hello world

    How to get the string (specified by row and column) of txt file with labview

    THX

    As far as I know, a text file has no column.  Be more specific.  Do you mean something like the 5th word on line 4, where the words are separated by a space, and lines are separated by a newline character?  You can read from the spreadsheet String function and set the delimiter to a space.  This will produce a 2D channels table.  Then use the table to index and give the line number and column number.

  • How to concatenate the string with a digital command?

    Hello

    How to concatenate the string with a digital command?

    Thank you.

    I think I forgot to add the semicolon, what you can do is, drag the CONCATENATE function and add semicolon.

  • How to avoid the string * empty * on new pushScreen

    Someone knows how to avoid the string * empty * coming on each press of the screen and instead * void * can I have my own channel at the same place... Please let me know its possible or not...

    Thank you

    read the API:

    http://www.BlackBerry.com/developers/docs/4.7.0api/NET/rim/device/API/UI/component/ListField.html#se... (java.lang.String, int)

  • How to divide the Dates

    Hi all...

    Here, I use the following scripts...

    create table a10 (eno number, date f, date t, number of sal)

    INSERT IN A10 (ENO, F, T, SAL) VALUES)

    1, TO_Date (1 July 2013 12:00:00 AM ',' DD/MM/YYYY HH: mi: SS AM'), TO_Date (June 30, 2014 12:00 ',' DD/MM/YYYY HH: mi: SS AM')

    (100);

    INSERT IN A10 (ENO, F, T, SAL) VALUES)

    1, TO_Date (May 1, 2013 12:00:00 AM ',' DD/MM/YYYY HH: mi: SS AM'), TO_Date (April 30, 2014 12:00 ',' DD/MM/YYYY HH: mi: SS AM')

    (200);

    COMMIT;

    entry:

    ENO      F             T                SAL

    07/01/2013 2014/06/30 100 1

    1 05/01/2013 30/04/2014 200

    Expected results:

    ENO FTSAL

    1 05/01/2013 2013/06/30 200

    1 30/04/2014 300 07/01/2013

    1 05/01/2014 2014/06/30 100

    I'm little bit confused how to divide the dates here... Any help is appreciated.

    Thank you all

    Stéphane

    Hello

    Always tell what version of Oracle you are using, especially if it's so old.

    In Oracle 10 (or 9, by the way) you can do this way:

    WITH cntr AS

    (

    SELECT LEVEL AS n

    OF the double

    CONNECT BY LEVEL<=>

    )

    got_change_date AS

    (

    SELECT d.eno

    C.n

    WHEN 1 THEN f

    ANOTHER t + 1

    END AS change_date

    C.n

    WHEN 1 THEN 1

    OF ANOTHER-1

    END as mul

    sal

    BY a10 d

    CROSS JOIN cntr c

    -WHERE... - If you need any filtering, put it here

    )

    got_total_sal AS

    (

    SELECT eno

    change_date f

    Advance (change_date) OVER (PARTITION BY eno

    ORDER BY change_date

    ) - 1 AS t

    SUM (sal * mul) over (PARTITION BY eno

    ORDER BY change_date

    ) AS total_sal

    OF got_change_date

    )

    SELECT *.

    OF got_total_sal

    WHERE t IS NOT NULL

    ORDER BY eno, f

    ;

  • How to divide the column Date OBIEE

    Hello
    We have the name of the date column: To_Date and the format is DD/MM/YY hh.
    How to divide the date in YEARS, MONTHS, DAY as new columns.
    kindly help on that.


    Kind regards.
    CHR

    Published by: 867932 on November 23, 2011 22:18

    Hi user,

    All 3 functions can be written in RPD too. MDB layer, duplicate the date column-> the mapping tab to column of Goto-> expression-> functions Builder Select-> calendar Date functions / hour-> select DayofMOnth function. The column of your logic formula will look like,

    DayofMonth (YourDateColumn)

    Rgds,
    DpKa

  • How to use the String with an external dispatchEvent event.target.name?

    ... I hope that the question of the title makes sense...

    On my stage, I have an external SWF loaded with a button. When you click the button dispatches the main event scene.

    On the main stage a listener can load a SWF it in a magazine called Gallery.

    The charger of the Gallery is also shared by the buttons on the main stage, who use the event.target.name chain to appeal to sovereign wealth funds with corresponding names.

    I use tweens to fade and, in the content of the Gallery when a key is pressed.

    --

    Loading of the FSV worked until I tried to create a universal function for the dispatchEvent buttons...

    The problem I have is that I don't know how to set the string to indicate to the newSWFRequest where the SWF file when triggered by external buttons.

    (I maybe do this wrong... but thought that the best way to load a SWF on the main stage from an external SWF was using dispatchEvent?)

    My code raises the event and the charger of the Gallery Faints, but then it does not find the new SWF:

    Error #2044: Unmanaged by the IOErrorEvent:. Text = Error #2035: URL not found.

    Please can someone help me understand how to make the point in the chain in the right direction? (I think that the errors only are in bold below)

    Code:

    var myTweenIn2:Tween;

    var myTweenOut2:Tween;

    var nextLoadS2:String;

    Listening external inclinometer shipped external event

    addEventListener ("contactStage", btnClickExtrnl);

    function btnClickExtrnl(e:Event):void {}

    nextLoadS2 =?

    myTweenOut2 = new Tween(gallery,"alpha",None.easeOut,gallery.alpha,0,0.2,true);

    myTweenOut2.addEventListener (TweenEvent.MOTION_FINISH, tweenOutCompleteF2);

    }

    Function universal BTNS

    function tweenOutCompleteF2(e:TweenEvent) {}

    myTweenOut2.removeEventListener (TweenEvent.MOTION_FINISH, tweenOutCompleteF2);

    myTweenOut2 = null;

    var newSWFRequest:URLRequest = new URLRequest ("SWFs /" + nextLoadS2 + ".swf");

    myTweenIn2 = new Tween (Gallery, "alpha", None.easeOut, gallery.alpha, 1, 0.2, true);

    Gallery.Load (newSWFRequest);

    Gallery.x = Xpos;

    Gallery.y = Ypos;

    }

    Thank you.

    If this code is on the timeline of a child of the main timeline of your external swf add parent 3rd in two lines with parent.parent.

  • How to split the string?

    Hello

    I get data like ~^1820|-93.13|+4.57|-3.20 | 183,62'

    any value assigned something like height, angle, etc...

    I want to divide this string could someone please help me how to do this.

    I would like in a similar.  1820

    a = 93.13

    b = + 4.57

    c =-3.20

    d = 183.62

    Thank you much in advance.

    With the best wishes,

    Ankit.

    Hi Pierre,.

    use SpreadsheetStringToArray:

  • How to convert the string with numbers in the table of Boolean 2D

    Hello

    I have input a string with comma separated numbers 1,192 (starting at 1).

    This string must be converted to a table 2D-boolean. Each number that appears should be true, not true rest.

    The 2D table consists of 4 times of 0.47 Boolean values.

    1.48--> [0.47] numbers [0]
    49.96--> [0.47] numbers [1]
    Numbers 97.144--> [0.47] [2]
    145.192--> [0.47] numbers [3]

    If a '1, 49, 97 145' input string put all [0] [0.3] true.

    How can it be easy/fast resolved?

    Thanks for help

    Break the string of numbers in a table of numbers.  (Spreasheet String to Array).

    In a loop For, index with each issue of this table.  Use in the range and Coerce to see if it is in the range of numbers.  (You can put this in a loop For as auto good indexing through the ranges).  If it's in the range, then use subset replace table to activate the corresponding item in a real.  If this is not the case, do nothing.  Maintain the table of Boolean in a shift register.

    Repeat this step for each number in your table.

    (What is a class assignment?)

  • How to convert the string with numbers in U8 with ascii

    Hello

    I have a string with only numbers 0. 9 paper.

    Now, I want to convert to table-U8.

    He works here, but now the problem: How can I change each character to its ascii value?

    Example:

    entry: 123 (string)

    output: x 31, x 32, x 33 (U8-array)

    Thanks for the help

    It's very easy

    String to Byte Array Function
    Have the Palette: string/array/path Conversion functions

    Converts a string to an array of unsigned bytes. Each byte in the array has the ASCII value of the character corresponding to the string.

  • How to divide a string into an array of strings in separate tables

    Greetings,

    I have an array of strings which displays strings in a text file. I read each line of the text file and put it in an element of the matrix of the chain.

    Now, I'm trying to divide each string for each part of the chain, then put in a separate table. Each element in the chain is separated by a comma. I hit a brick wall at this point and would like to help please?

    The purpose of this is so that I have 4 tables that will be ready their item values and set variables based on these values until I went through all the elements in each array.

    Attached example.

    Also my VI is attached.

    Thanks in advance for your help.

    Then just use Index Array on 2D array provided.

  • How to divide the characters in table 1 d

    I am looking for a way to divide the 'print' to a string 1-d subarray. For example instead of:

    1 / AAAABBBB

    2 / CCCCDDDD

    3 / EEEEFFFF

    ...

    etc.

    then there would be two tables 1 d separated where before there was a:

    1 / AAAA and BBBB

    2 / CCCC and Delalande

    3 / EEEE and FFFF

    ...

    etc.

    Something like that?

    You need better on where the split to take place?  I doubt somehow you want just a simple divided into a constant place.

  • How to save the string in a file with some special characters

    Hello

    I m using MD5 - llb to create a password.

    So, I want to save this MD5-string to a file and read it later abd compared again.

    Works perfectly with a proplem:

    Some Word create a '\r' in the string of MD5 and when I save this string in a file and read it at the time its read as a '\n' for the comparison does not work.

    My question is: How can I record a string exactly as if it were somewhere and read back (also the invisible characters)

    For example, the word: heinz

    is in MD5: \r\FB^\07\A6\07T\C7\D9\C2\94\AB\C9\1DS\95 (string as display codes indicator)

    When I save the string in a file, then I rerad back: \n\FB^\07\A6\07T\C7\D9\C2\94\AB\C9\1DS\95

    I used the "write text file" and "read text file".

    What should I use to record and play back the same thing?

    THX

    Have you tried right click and deselection "convert EOL?

  • How to use the string as a terminal window control

    Hi all

    I am setting up a terminal window in my VI and to do this I have a control of the chain and an indicator of the chain.

    I want the user to be able to write a command in the terminal and when hitting enter into the control must update, but not before! I'd do it

    as the user to be able to enter several commands without having to re - click the control with the mouse, so he must stay in the

    control window.

    The result of this chain control is introduced to an external motor controller, which responds with a string entry in the string of an invoke node indicator.

    I tried to make some case of the event, but not quite sure how I'm going to only detect the input control.

    Any ideas how to precede?

    Thank you

    Concerning

    Tommy

    Yes, in the structure of your event, look for an event of your control chain called 'key' down... on the left, there are several upcoming parameters (char, Vcle etc.) where you can use for example the char find char = 13 (back).

    Look here: http://zone.ni.com/reference/en-XX/help/371361B-01/lvprop/control_key_down/

    Good luck

    Christian

Maybe you are looking for