I want to analyze the values from a string

Hello.. I want to analyze certain values in a string... it's values in my channel...

anyType{NewDataSet=anyType{Table=anyType
{SINo=5; ProductId=33;productname=aaa;
price=543;};Table=anyType{SINo=1;
ProductId=111;productname=bbb;price=543;};};}

I need to display my SINo, ProductId, productname and price... everything separately... is it possible? or is it possible to convert this string to an xml and then parse the values?

You can write a function to split this string with respect to the level of a delimiter, in this case '=' can be used, like the Split function available in the string for the Desktop Java class.

This function returns an array of strings in which the split string values is stored.

Tags: BlackBerry Developers

Similar Questions

  • Analyze the values to a string and then place in the lines

    Hi all

    I need help here. I have a field called document_desc. Below is a sample of its contents:


    Invoice: * 90104 * attachment document URL created in ArchiveLink content server. Number of
    attachments: 3 Document ID (s): * 4FB6EB9040000ACA813, 4FB6EB924C0A2A813 *.
    *, 4FB6EBB7000ACA813 * (s) URL :): http://xxxxxxxxxx
    I need to do 2 things here:

    1. I need to analyze the elements in bold. The number of values beginning with 4FB can vary. In this example, there are 3 of them, it could be one, there may be 10. However, they will be always between the ' ID (s):' and the ' URL (S):'

    Invoice number (901825004) will always be only one and the same position, but can have different lengths.

    2. I then need to format it so that it looks like:
    Invoice_Number        Archive_ID
    901825004               4FB6EB904C561491E1000000AC12A813
    901825004               4FB6EB924C561491E1000000AC12A813
    901825004               4FB6EBB74C561491E1000000AC12A813 
    Any suggestions?

    Published by: dgouin on May 29, 2012 11:25

    Published by: dgouin on May 29, 2012 11:26

    Published by: dgouin on May 29, 2012 11:27

    Published by: dgouin on May 29, 2012 11:27

    Published by: dgouin on May 29, 2012 11:33

    Hello

    Regular expressions a great help with this stuff:

    WITH     got_doc_id_list     AS
    (
         SELECT     x_id
         ,     REGEXP_REPLACE ( str
                          , '.*Invoice: *([^ ]+).*'
                          , '\1'
                          , 1
                          , 1
                          , 'n'
                          )     AS invoice
         ,     REGEXP_REPLACE ( str
                          , '.*Document ID\(s\):(.*)URL.*'
                          , '\1'
                          , 1
                          , 1
                          , 'n'
                          )     AS doc_id_list
         FROM    table_x
    )
    ,     cntr          AS
    (
         SELECT  LEVEL     AS n
         FROM     dual
         CONNECT BY     LEVEL <= 10     -- Max number of doc_ids possible in one str
    )
    SELECT       d.x_id
    ,       d.invoice
    ,       TRIM ( REGEXP_SUBSTR ( d.doc_id_list
                                  , '[^,]+'
                          , 1
                          , c.n
                          )
                )    AS archive_id
    FROM       got_doc_id_list  d
    JOIN       cntr             c  ON  c.n  <= 1 + LENGTH (d.doc_id_list)
                                                - LENGTH (REPLACE (d.doc_id_list, ','))
    ORDER BY  x_id
    ,            c.n
    ;
    

    It works Oracl 10.1 (and higher). In Oracle 11, there are new features of regular expressions which can make it a little simpler.
    I guess that your data are pretty well trained. For example, I assume that there is always something (not counting the white spaces and commas) after ' ID of Document (s): "and before"URL", and that the ID never include the substring"URL"." If these assumptions are false, then the same basic approach will work, but the details are a little messier.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Point where the above query was to produce erroneous results, and explain, using specific examples, how you get these results of these data in these places.
    Always tell what version of Oracle you are using.

  • Passing the value from one page to the other page

    Hi gurus,

    I need to pass the value from one page to the other page and two pages use different AMs.
    In the first page I have sellers results region table where the $vendor_name column is a hyperlink that navigates to the page Vendor_Sites. Now after accessing the second page, I want to excute the VendorSitesVO in PR of CO based on the value passed to VendorsVO (vendor_id) of first page.

    can someone help me on this?

    Thank you
    Vincent.

    Published by: user4933347 on December 4, 2009 12:19 AM

    You can set parameters of Pagecontext and transmit values through them. These values can be passed between pages, even if the AMs are different.

    Try:
    pageContext.putParameter ("Parameter1", value1);
    pagecontext.setForwardURL (second page)

    Concerning
    Sumit

  • I bought an iPhone 6s and want to transfer the data from my old iPhone 4S with iTunes

    I bought an iPhone 6s and want to transfer the data from my old iPhone 4S with iTunes but it says "the"iPhone"iPhone cannot be used because it requires a newer version of iTunes. Go to www.itunes.com to download the latest version of iTunes. "

    I checked and the version of itunes is the latest AID!

    DooozySue wrote:

    I checked and the version of itunes is the latest AID!

    Most likely, what you found, is that the iTunes version is the latest available for your operating system.

    The latest version of iTunes is 12.4.3.  This version requires at least OS X 10.8.5 or later version, or Windows 7 or later version.

    If your iTunes version is earlier than 12.4.3, it will probably not recognize your 6s performance iPhone iOS 9.

    If you do not have the required operating system, get first.  Then download from iTunes

    http://www.Apple.com/iTunes/download

  • I have a digital 8 handycam (sony) model dcr-trv350. I want to record the video from tape to a dvd. Help, please

    My computer is a desktop running Vista 64-bit. Is it possible I can load the video off my camcorder on my computer and do a DVD?

    Please help if you can.

    Thank you

    CRK

    Hi Crk,

    Thanks for posting the question in the Microsoft Community!

    You want to copy the videos from the camcorder and burn them on a DVD.

    To copy the videos from the camcorder to the computer, I suggest you to get help from Sony support site or contact their support personnel.

    You can use Windows DVD creation to burn a DVD.

    Visit the site:

    Burn a DVD-video disc

    http://Windows.Microsoft.com/en-us/Windows-Vista/burn-a-DVD-video-disc

    For any question related to Windows, feel free to contact us.

  • Error in Windows Media Player, Windows Media Player is not installed correctly and must be reinstalled. You want to install the Player from the Microsoft Website

    I don't know how or why it happened, but one day to another, WMP won't open. I tried to open an MP3 file, and he says that WMP has not been correctly configured "Windows Media Player is not installed correctly and must be reinstalled. Do you want to install the player from the Microsoft Website? ».

    I assumed that since I had to make some updates yesterday, that he was at fault, it had installed an update/new version of WMP and it was either buggy or doesn't work do not, so I went to the Windows updates, but no recent updates on the list had a remote connection with Windows Media Player.

    So, I accept the first proposal of the error message, and I'm headed to the Windows Media Player download page on the Microsoft Website. However, the version I should install (which was the one I already had) has Windows Media Player 12 for Windows 7. But this option is locked for me, and as I tried to install it, it says it is not compatible with my system. Not to mention, it's a whole package and not just the WMP installation.

    I tried everything and nothing seems to work. It won't even let me uninstall WMP because it won't let me open.

    My OS is Windows 7 Home Premium 64-bit. And the error messages that I get to try to launch any WMP feature (the tool, the installation program, no matter what), opens an error window stating that "there is a more recent version of Windows Media (12.0.7601.18150) player already installed on your computer. It is not possible to use and more old (12.0.7601.17514) installation package to install files or repair your current version of the reader. »

    Please, I ask for any intervention in this case.

    This arises from time to time, but I don't think that there is a difficulty of 100%.

    You can try (in no particular order)

    1. uninstall, reboot, reinstall WMP- http://www.howtogeek.com/howto/26107/how-to-reinstall-windows-media-player-in-windows-7-to-solve-problems/ if that doesn't help, try a SFC/scannow check - http://support.microsoft.com/kb/929833
    2. There is this diagnostic tool - http://support2.microsoft.com/mats/windows_media_player_diagnostic/ that can help (from http://support2.microsoft.com/fixit/en-us?wa=wsignin1.0 )
    3. You could try a system restore to a date before the problem occurred to see if that helps - http://windows.microsoft.com/en-us/windows/system-restore-faq#1TC=windows-7 and see if it gets a WMP work back
    4. Last resort, a repair install - http://www.sevenforums.com/tutorials/3413-repair-install.html
    5. Or just simply forget about WMP and try another party 3rd multimedia player that you can install and uninstall at will, as free VLC - http://www.videolan.org/vlc/

    But it may be worth waiting a while to see if someone else has a better solution.

  • Windows Media Player is not installed correctly and must be reinstalled. You want to install the Player from the Microsoft Web site?

    Running Windows 7 home Premiun 64 x. Click to open the program the message pop up "Windows Media Player is not installed correctly and must be reinstalled. You want to install the Player from the Microsoft Web site? "that it takes to the site and there is no available media player Windows 7, installed WMP 11 does not work either. Tried to turn on and back on... did not work

    Do you remember the last time that your Media Player worked properly?  You can use the system restore (type it in the start menu to find) to go back on this point.  This restoration takes about 2 minutes and will not affect your files - no matter how far you go.  It simply restores your system files and settings.

  • Impossible to select the value from the search screen (quick select, then) on OFA

    Hello

    We have a problem with a user who are not able to select any value from the LOV on any page of the Oracle.

    1. click the button of LOV

    2. search + go

    3. Select or quick selection nothing happens (error on the Page appears in the left corner of the homepage)

    4. only cancel works.

    Any suggestion would be appreciated.

    I saw a similar question posted Impossible to select the value from the search screen (quick select, then) on OFA

    But unfortunately this is not the answer.

    Thank you

    Sam

    Display of the solution to help others. I tried to connect a SR and suddenly a pop Note ups that helped.

    The problem is related to the profile "Self Service Accessibility Features" customer has defined for the user concerned.

    Follow these steps:

    1 change the value of 'None' profile at the user level.

    2 disconnect / connect to the application and testing.

    See you soon.

  • Initializer for 'color': unable to analyze the value of type uint text "colorUint".

    What is wrong with my code? I get this error:

    Initializer for 'color': unable to analyze the value of type uint text "colorUint".

    Code:

    public static void convertStringToUint(value:String,_mask:String):uint
    {
    var colorString:String = "0 x" + value;
    var colorUint:uint = mx.core.Singleton.getInstance("mx.styles::IStyleManager2").getColorName (colorString);

    Return colorUint;
    }


    < s:Button id = "Battery" x = "10" y = "44" width = "60" height = "30" label = "Battery" fontSize = "10" color = "colorUint" / >

    -Data binding will not be able to detect assignments to "colorString".

    Means that you must add [link] to the variable.

    [Bindable]
    public var colorString:String;
    

    Other issues, is that a chain is not a uint.  A uint is a numeric value.  So, after you have created your color of string value, you must typecast as a uint.

    
    
  • Copy the value from one point to another element

    Hi all

    I have a few items of data selector and a check point, now I want to copy the value of the element selector data for other transmissions of data selector by clicking on the chechbox, an example of javascript?


    Thank you

    Deep

    Deep,

    So the objective is to copy a single date field in several date fields? try this out...

    
    

    See you soon,.

    Janet Tyson

    Published by: Tyson Janet on April 20, 2009 14:05

  • How to choose the value of a string are numeric together and words of letters (for example, TEST)

    Hi all

    How to choose the value of a string are letters (for example, TEST) and all numeric...

    for example
    TEST 123456
    TEST 34567
    123456 ABCD
    1234 TEST
    TESTING 12345
    TEST 1@234$
    YOUR T 123456

    I want the results of the query as below.
    TEST 123456
    TEST 34567

    And I tried to use regexp_like in this case but without success. See the code below.
    SELECT * FROM TABLE WHERE regexp_like (Description, ' [TEST] % & [[: digit:]] + $');

    How can I do this, please answer.

    Thank you

    WF

    If you want to return only the rows that contain the string 'TEST', followed by zero or more space characters, followed by one or more digits?

    How about this:

    SELECT *.

    FROM my_table

    WHERE REGEXP_LIKE(description,'^TEST\s*\d+$')

  • To access the values from the row outside the ListView ListItem

    Hello

    I spent two hours browsing the forums and documentation with no chance of finding a solution on how to access the list item data from outside the listview.

    Let explain me my code. It is marked with I work and what does not work and its expected behavior.

    Should work behavior


    Tapping & getting data

    The arrayDataModel is filled with 4 rows. Firstly the list item, second item in the list... etc.

    • Tapping on the order of the day, label with the id of triggeredText displays the value of a threaded list item.
    • The index of the tapped icon appears in the label with the id of triggerredIndex.

    Incrementing Index using ActionItems onBar

    By pressing action items 'previous' and 'next', you can increment the index value to the label with the id of triggeredIndex. The order of the index is 0-4, even as total of the items in the list.

    How to extract data from the index when the value of triggeredIndex?

    Buttons

    The buttons at the bottom of the screen... Select 1, select the 2nd, 3rd Select should select indexes 0,1,2 of the list and display the value in triggeredText and triggeredIndex. They do not work.

    How did I pull the values when you click the buttons?

    import bb.cascades 1.3
    
    TabbedPane {
        id: root
        showTabsOnActionBar: false
    
        Tab {
            id: mainTab
            title: "Test List"
                Page {
                    id: mainPage
                    titleBar: TitleBar {
                        title: "List Traversal Test"
                    }
                    actions: [
                        ActionItem {
                            title: "Previous"
                            ActionBar.placement: ActionBarPlacement.OnBar
                            onTriggered: {
                                // get current selected index from list=
                                var currentIndex = parseInt(triggeredIndex.text);
    
                                if(currentIndex <= 0){
                                    //do nothing already at first item
                                }else{
                                    // subtract 1 from index ( ci - 1) ?
                                    var newIndex = parseInt(triggeredIndex.text) - 1;
    
                                    // show data from new selected index
                                    // ???
    
                                    // triggeredItem.text = XXX // the data
                                    // ???
    
                                    // triggeredIndex.text = X // the current index
                                    triggeredIndex.text = newIndex;
                                }
                            }
                        },
                        ActionItem {
                            title: "Next"
                            ActionBar.placement: ActionBarPlacement.OnBar
                            onTriggered: {
                                // get current selected index from list=
                                var currentIndex = parseInt(triggeredIndex.text);
    
                                if(currentIndex == 4){
                                    //do nothing already at lastitem
                                }else{
                                // add 1 to index ( ci + 1) ?
                                var newIndex = parseInt(triggeredIndex.text) + 1
    
                                // show data from new selected index
                                // ???
    
                                // triggeredItem.text = XXX // the data
                                // ???
    
                                // triggeredIndex.text = X // the current index
                                triggeredIndex.text = newIndex;
                            }
                            }
                        },
                        ActionItem {
                            title: "Clear"
                            ActionBar.placement: ActionBarPlacement.OnBar
                            onTriggered: {
                                // set current index to 0 (top item in list)
                            }
                        }
    
                    ]
                    Container {
                        preferredHeight: maxHeight
                        layout: StackLayout {
                            orientation: LayoutOrientation.TopToBottom
                        }
    
                        Label{
                            id: triggeredItem      // value of listitem from current index
                            text: "0"
                        }
                        Label{
                            id: triggeredIndex    // current index
                            text: "0"
                            onTextChanged: {
                                // set triggeredItem.text to contents of selected ListItem with same index
                                // STUCK HERE cannot access ListItem.dataModel(indexPath) from here....
                            }
    
                        }
                        Container{
                            ListView {
    
                                id: theList
                                objectName: "dalist"
                                dataModel: ArrayDataModel {
                                    id: theListModel
                                }
                                listItemComponents: ListItemComponent {
                                    StandardListItem {
                                        id: itemRoot
                                        title: ListItemData
                                    }
    
                                }
                                onTriggered: {
                                    var si = dataModel.data(indexPath);
                                    triggeredItem.text = "LIST ITEM CONTENT: " + si;  //set content when user taps on item
                                    triggeredIndex.text = "LIST ITEM INDEX INDEX: " + indexPath;  // set index when user taps
                                }
    
                                onSelectionChanged: {
                                    //console.log(selected);
                                }
    
                                onCreationCompleted: {
    
                                    //add some data to the listview
                                    theListModel.append("First List Item");
                                    theListModel.append("Second List Item");
                                    theListModel.append("Third List Item");
                                    theListModel.append("Fourth List Item");
                                }
                            }
    
                        }
                        Container{
                            layout: StackLayout {
                                orientation: LayoutOrientation.LeftToRight
                            }
                        Button{
                            text: "Select 1st"
                            onClicked: {
                                theList.clearSelection();
                                theList.select(0);
    
                            }
                        }
                        Button{
                            text: "Select 2nd"
                            onClicked: {
                                theList.clearSelection();
                                theList.select(1);
    
                            }
                        }
    
                        Button{
                            text: "Select 3rd item"
                            onClicked: {
    
                                //expected behaviour is to show data from Third List Item
    
                                // triggeredIndex.text = INDEX 3
                                // triggeredText.text = (DATA FROM THIRD LIST ITEM)
    
                                // THIS IS NOT WORKING ....
                                theList.clearSelection();
                                theList.select(2);
                                console.log(theList.dataModel(3));
                                triggeredItem.text = theListModel.dataModel(3);
    
                            }
                        }
                    }
                   }
                }
            }//tab
    }
    

    Thank you and have a happy and healthy 2015!

    Your help will be greatly appreciated.

    I ran and got this:

    asset:///main.qml:161: TypeError: Result of expression 'theList.dataModel' [bb::cascades::ArrayDataModel(0x1091a838)] is not a function.
    

    But it works

    theListModel.data([3])
    

    But this isn't the solution, you have a more serious problem. You select a value, you trigger. If you add this in onTriggered you select it (and you can see that it changes color when it is selected).

    theList.select(indexPath);
    

    If you want to use option to deselect

    theList.select(indexPath, !theList.isSelected(indexPath));
    

    And if you want to have that one chose this

    theList.clearSelection();
    theList.select(indexPath);
    

    Inside the button 'Select the 3rd point' allows to select programmatically

    theList.select([2]);
    

    It works but I'm not sure what you're trying to do

  • Function to analyze the value of a field to another field of the contact form contact

    HI - we need for the reports to be able to take part of the chain of values in a field.

    For example we would bring in a field called Service_Name and take the Tactic_Code starting from the attribute and put it in another field of tactical called contact Code as shown below.

    Does anyone know how to do this using a feature in the program generator. I tried using a rule to update but could not understand it.

    Any help would be greatly appreciated.

    Blake

    Service_name = a been of _CH_ [Marketing_Channel] = [Campaign_Name] [Tactic_Code]

    Tactic code =[Tactic_Code]

    Yep, Michael there as usual, it is the way to go. You will need a regular expression (regex - if you are not familiar with the regular expression, a good tutorial is here: Regular Expression Tutorial - Learn how to use regular Expressions) pull the tactical code out of your service name - you want to use the 'replace regular expression' in cloud connector.

    I think it should work, but you'll want to test:

    Regex to find:. * ? T_(.*)$

    The regular expression to replace: $1

  • How to insert the value from the FORM to another database table?

    Hi all

    I have the following problem.

    I have a form that has a tabular layout for the MATURED_FD_DTLtable. (all about 20 line items)

    CREATE TABLE MATURED_FD_DTL

    (

    ACCT_FD_NO VARCHAR2 (17 BYTE) NOT NULL,

    CUST_CODE NUMBER (9),

    FD_AMT NUMBER (15),

    FD_INT_BAL NUMBER (15),

    TDS NUMBER (15),

    CHQ_NO NUMBER (10),

    CREATED_DATE DATE,

    CREATED_BY VARCHAR2 (15 BYTE),

    PREV_YR_TDS NUMBER (15),

    ADD_FD_AMT NUMBER (15),

    DESCRIPTION VARCHAR2 (100 BYTE),

    P_SAP_CODE NUMBER (10),

    P_TYPE VARCHAR2 (1 BYTE)

    )

    By clicking on 'SAVE' button, all values will be automatically is stored in the MATURED_FD_DTLdatabase table.

    But I want to insert these values in another table called TEMP.

    I want to insert values of form only, no table select.

    How can I do this?

    Help me.

    Is Oracle Designer 6i.

    Answer:

    BEGIN

    Commit_form;

    PREMIER_ENREGISTREMENT;

    LOOP

    insert into TEMP_MATURED_FD_DTL

    SELECT * FROM MATURED_FD_DTL WHERE ACCT_FD_NO =: acct_fd_NO;

    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";

    NEXT_RECORD;

    END LOOP;

    PREMIER_ENREGISTREMENT;

    COMMIT;

    MESSAGE ("RECORD UPDATED AS PAID '");

    MESSAGE (' ', no_acknowledge);

    END;

  • Set the value from one point to another element at run time

    Hello

    I use APEX 4.2

    My question is on the same page, we form another, I create two region region html

    I'm filling out the form and press on create button then the value created by primary key must be in

    page HTML element area (whereas it only displays in editable form mode)

    I want after click on create region html button get refreshed and value should appear displaying the only element of the page

    any idea?

    Thank you

    go

    Hi, go,

    I modified your page, I just created the sub process of PL/SQL after the presents.

    Start

    Select empno in: P3_EMPNO from emp where ename =: P3_ENAME;

    END;

    It assigns the value to point P3_EMPNO and session as well. Initially the P3_EMPNO point value is not inserted into the session.

    Please check and let me know.

    Thank you

    Lacombe

Maybe you are looking for

  • Click on a new website and it will open in a new window?

    For some time when I click on a link to something from another web page, it opens in a new window.Or if I select the option "open new windows in a new tab instead", then all links to a different Web site open in a new tab.For example if I search some

  • lost my address bar arrow back

    I have Firefox 6, but no address bar or back arrow. How can I reinstall it?

  • I got a 8007045D error code

    When I tried to update windows it says failure 2 updates and 23 is not necessary with a 8007045d error code does anyone know what this means or what im supposed to do? Thank you

  • Microsoft #1233596186 fraudulent certificates Request Service

    I bought a desktop computer with 7 Home Premium from Windows. The first couple of everything was fine, then I noticed my update of the week stopped automatically loading. I tried everything I could to make it work without result. I'm not computer sav

  • BlackBerry Smartphones Word To Go

    Please can someone explain how to use Word to Go in my applications Thank you