NotificationsDialog returns the same value for the two buttons

I have a NotificationsDialog with two SystemUiButtons, now when I click on buttons and console the result they both return the number two, I don't really understand why.

{NotificationDialog}
ID: alertdialog
Title: "Alarm" - + alarmTime
body: Setting.get ("alarmCompletedMessage")
repeat: true
            
                
buttons:]
{SystemUiButton}
label: "Stop".
},
{SystemUiButton}
label: "Snooze."
}
]
onFinished: {}
Console.log ('result' + result)
Console.log (Error)
}
}

Is there a better way to identify which button has been activated?

Wish a little, she supported confirm and Cancel buttons, or SystemUIButtons have their own onClicked properties

Thank you

Use buttonSelection () instead of the result .label

Tags: BlackBerry Developers

Similar Questions

  • GL CCID have the same values for Segment

    Is it possible that two different code_combination_id in the same GL_Code_Combination table has the same values for segment.
    It is, when I run the accounts payable balance report trial of the responsibility of the PA, its follow-up of the transactions ID associated with only 1 and not both.
    But, here, for the same Chart_of_Accounts_Id, we can see that there are two Code_combination_id entries, with the same values for segment.
    Can you please let me know if this is possible?

    For example: I'm running the following queries and Segment1, Segment2, Segment3, Segment4, 12855 CCId values Segment5 is the same as Segment1, Segment2, Segment5, Segment4, Segment3 to 13402.

    Select CODE_COMBINATION_ID, CHART_OF_ACCOUNTS_ID,
    SEGMENT1, SEGMENT2 SEGMENT3, SEGMENT4, ENABLED_FLAG, SEGMENT5,
    * of the GL_CODE_COMBINATIONS where CODE_COMBINATION_ID = 12855

    Select CODE_COMBINATION_ID, CHART_OF_ACCOUNTS_ID,
    SEGMENT1, SEGMENT2 SEGMENT3, SEGMENT4, ENABLED_FLAG, SEGMENT5,
    * of the GL_CODE_COMBINATIONS where CODE_COMBINATION_ID = 13402

    CCID - Segment1, Segment2, Segment3, Segment4, Segment5
    -----------------------------------------------------------------------------------------------
    12855 01 000 2220 00000 000
    13402 01 000 2220 00000 000

    I hope you understand.
    Thank you
    Bob

    Hi Bob,

    Can you please check the id of chart of accounts for the two combinations...

    Concerning
    Muthu

    Published by: Muthu on April 30, 2013 02:10

  • How to position the two buttons at the top of the div inside a container div element?

    Hello!

    Good news...

    I created my very first thumbnail slider for my site that actually works!

    Bad news...

    The buttons that allow to scroll the div element, which is encapsulated in a container of Center, are are more placed on top of the div.

    Here's the html code:

    < div id = "centerContainer" >

    < div id = "aemcSlider" >

    < ul >

    < li >

    "< a class ="aemcPkgBut"href =" "target =" "alt ="AEMC Packaging"title ="AEMC Packaging"> < / has >

    < /li >

    < li >

    "< a class ="aemcGroundFlexBut"href =" "target =" "alt ="GroundFlexAd"title ="GroundFlex Ad"> < / a >

    < /li >

    < li >

    "< a class ="aemcClampBut"href =" "target =" "alt ="Clamp-On Announces"title ="Clamp-On Announces"> < / has >

    < /li >

    < li >

    "< a class ="aemcMetrixBut"href =" "target =" "alt ="Metrix Announces"title ="Metrix Announces"> < / has >

    < /li >

    < /ul >

    < / div >

    < div id = "leftBut" >

    "< a class ="arrowLeft"href =" "target =" "alt ="Left"title ="Left"> < /a >

    < / div >

    < div id = "rightBut" >

    "< a class ="arrowRight"href =" "target =" "alt ="Right"title ="Right"> < /a >

    < / div >

    < / div >

    Here's the CSS:

    Key container:

    #centerContainer

    {width: 800px; margin: 0 auto; background-color: #0e210e; position: relative}

    Div element:

    #aemcSlider

    {

    text-align: center;

    list-style: none;

    Width: 450px;

    height: 114px;

    margin: 0 auto;

    padding-top: 0px;

    padding-right: 0px;

    padding-bottom: 0px;

    padding-left: 0px;

    top: 67px;

    position: relative;

    overflow: hidden;

    }

    #aemcSlider a {margin right:-12px ;}}

    Left and right buttons:

    a.arrowLeft

    {

    Width: 29px;

    height: 96px;

    float: left;

    position: absolute;

    margin: 0 auto;

    display: block;

    background-image: url (.. / Images/arrowLeft.png);

    background-repeat: no-repeat;

    left: 311px;

    top: 91px;

    opacity: 0;

    }

    a.arrowLeft:hover

    {

    background-image: url (.. / Images/arrowLeft.png);

    opacity: 0.5;

    }

    a.arrowRight

    {

    Width: 29px;

    height: 96px;

    position: absolute;

    float: right;

    margin: 0 auto;

    display: block;

    background-image: url (.. / Images/arrowRight.png);

    background-repeat: no-repeat;

    opacity: 0;

    left: 720px;

    top: 92px;

    }

    a.arrowRight:hover

    {

    background-image: url (.. / Images/arrowRight.png);

    opacity: 0.5;

    }

    Here are the things I did to solve problems:

    If I set the div as a container for absolute, the left button disappears.

    I get the same effect when I change the relative position.

    I tried to change the position of relative to the two buttons.

    I also tried to position the buttons outside the div hand and no go.

    How can I position the relative div under these controller button?

    Any help would be appreciated muchly.

    ~ THE

    I don't see a slider.  The code of your slide seems to have a style inline with the width: 0px which is not normal.    Width should be about 400 px.

    I suspect that your arrows need a much z-index superior to appear on the top layers of cursor.  But that's just a guess because I don't see a slider.

    Nancy O.

  • Switch between the two button symbols

    Hello

    I'm new to AS, but not new to programming.  I'm using Flash CS4.  Here's what I'm trying to do.

    I have two button symbols, PlayBTN and PauseBTN. They are used to control the playback of the slideshow. When I use one or the other to control the slide show, it works. However, what I want to do is to switch between the two buttons, so that they work together like this:

    1. If the slide show is playing, PauseBTN is visible. If PauseBTN is clicked, stops slideshow and PlayBTN becomes visible.

    2. If the slideshow is paused, PlayBTN is visible. If PlayBTN is clicked, stops slideshow and PauseBTN becomes visible.

    In other words, clicking on the button control not only the slideshow, but changes which button is visible.

    I got this working with a video clip of two frames and bitmaps in static, but when I swap the bitmaps for the buttons, rollovers button stop working.

    Can someone give me some advice please?

    ... Mike

    This is not a flexible configuration.  PauseBtn should be a movieclip with a up more and eventually to the bottom of chassis and PlayBtn either a movieclip with a up more and eventually to the bottom of the frame.  You can then use:

    PauseBtn._visible = true;  or false ot visible property of your control button.

  • The same POPup can be used for the two buttons

    Hi all

    I'm looking for an application where I need to use the same popup for two different buttons. This popup has a form of the ADF. I want to use for the Insert on a table of the ADF operation. The requirement is something like below

    A JSF page should have an ADF read only table with 3 buttons Insert, read, delete respectively. Buttons Insert and should be using popup which the user can enter data and display the data respectively. I am

    way to a form of the ADF for the insert PopUp. Now the problem is when the user selects a row in the table and click on the View button it should open a popup with read only form displaying the data from the selected row. For this I use the

    same popup which I use for insertion of information by changing properties readonly or I have to create a separate popup for the purpose of seeing it please help me out in that.

    Thanks in advance.

    Published by: 959766 on November 6, 2012 10:11

    You can use the same popup...

    Timo

  • LocationProvider.getInstance returns a null value for the positioning of the cell PHONE location

    Hi guys.

    I'm having a problem trying to get a network of cells (MS basis) path to be able to work on my BlackBerry Bold 9000.

    Both assisted and Standalone GPS work (outside of course), but I'll try to find a way to position themselves inside the building.

    Here's what I'm going to put criteria:

    Criteria criteria = new Criteria();
    
    criteria.setHorizontalAccuracy(Criteria.NO_REQUIREMENT);
    criteria.setVerticalAccuracy(Criteria.NO_REQUIREMENT);
    criteria.setCostAllowed(true);
    criteria.setPreferredPowerConsumption(Criteria.POWER_USAGE_LOW);
    
    LocationProvider.getInstance(criteria); //<-- Returns null on real device
    

    When I run on a real device it gives me always null, when I do the same thing on a simulator, so this works:

    What I am doing wrong? I really need to find a way to make it work inside.

    Thanks for any input.

    Hey, Dominator,.

    I'll be real simple with you and try to make you save a LOT of time.

    Basically, cell tower positioning doesn't work out of the box on the Blackberry platform (except in a few configurations of rare device / carrier). So you can essentially throw the code you have above. If you need a place inside detection, you will need access to a database of celltowerId. These databases contain information from the Tower (Rad_error_nocontent, mnc, mcc, Lake) and its approximate location (lat/lng coordinates). This will give your application a rough estimate (less than a mile or two) from the current location of the device.

    Open source and professional databases are available. This is an open source database that runs on GSM networks (of course, he didn't 100% coverage of all the pylons). The biggest downfall is that it does not support CDMA (Sprint/Verizon) networks.

    http://openCellId.org

    You will find that most of the people on this forum are not very useful when it comes to cellTower information, positioning so you will need to research, research, research.

    Good luck

  • With one of several rows with the same value for the same ID

    Hello

    I have this request:

    SELECT

    Count (case when EXISTS ())

    SELECT *.

    FROM business_log bl, su topic

    WHERE su.ID_SUBJECT = s.ID_SUBJECT

    and bl.id_subject = su.id_subject

    AND bl.value = 'resolved '.

    )

    then 1 end another null) num_solved

    OF THE subject

    It is possible that a subject is more than once 'resolved' in the table BUSINESS_LOG

    I want to count only one line solved for a topic.

    I need to use only under RESERVE the table in the main query due to other counts.

    Thank you very much.

    Concerning

    Milos

    Post edited by: 2796614

    in the examples before we talked abount 'Resolved' instead of 'resolved' as in your last example... to let you know, how it is stored.

    I had advice is not to use SEPARATE.

    So what... the evidence that any other question is faster than anything goes business_log, filter lines and can count distinct keys...

    separate within a group function is not the same thing as do select distinct...

    HTH

  • Capabilities.screenResolutionY returning an incorrect value for the iPhone5

    Hello

    I'm trying to make gui adjustments based on the values returned by flash.system.Capabilities. However, when I test on the iPhone5 in portrait mode the values returned are screenResolutionX: '640' and screenResolutionY: '960'. I am compiling with air 3.5 in renderMode: "gpu" and put the swf metadata tp widthPercent: 100% and the heightPercent: 100%. I'm doing something wrong?

    Thank you

    CJ

    To get the right size, you will need to include a splash screen for the size of the iPhone 5, with the name of "[email protected]". This image would be 640 x 1136, and when he sees iOS, it knows that you want the iPhone 5 to use the entire screen.

  • What is the right way to use variables controlled by the two buttons and programming?

    First of all, I apologize if this has been discussed before.  I know not how to phrase succinctly the application, so maybe I just missed the search terms.

    We have several pieces of the Labview software in the laboratory that automatically control things like the taps and heaters.  Sometimes we also manually control these same things.  I'm moving old NI PCI (and older versions of Labview) maps to a variable and based on compactRIO system shared network.  However, I'm still not on best practices to achieve.  I need to be able to have a script running at any time control panel so that I can access, for example, a valve controller (which is just a Boolean), and I need power open and close the valve by programming other scripts.  I need, of course, the control panel to track the State of the valve until it opens another script, the Panel indicates that it is open, and the next push on the control panel it will close.

    Historically, this has been processed using structures business to move from a "computer control" and "hands-on" with global variables that define the State of the valves.  Of course, this is not recommended.

    So far, I've played with the help of two variables, a status of valve and the other for the State of button.  The Panel configuration then loops, reads the status of the valve and puts the State of button if the State of the valve has changed.  I can do this with registers at offset or with the structures of the event, but anyway, it gets very crowded and seems inefficient.  Is there a good way to do this in Labview?  It seems this is a common problem, so I hope there is an easy and elegant solution that I've missed.

    Variable published use shared network.  Your scenario and your manual of the interface and change the variable and then shared your cRIO reads fair value and writes the appropriate values.

    Now for a cool part.  On your manual interface, right-click on your heart control that you want to use to control the shared variable and go to properties.  There should be a data binding tab in the Properties dialog box.  You can bind a control/indicator to a published network shared variable.  So this button will always be attributed to the current state.

    Your script should just read the shared variable before resuming to verify that it is in the correct state.

  • Try to use the same pattern for more than two channels (CSR configuration) with usb 6000

    Hello

    I am currently trying to implement a LabView code to get readings of voltage using 5 different places at the same time. I want to only use the first location in the ground and get 4 measurements of voltage between the ground and each of the other 4 channels. I use a USB 6000 which, for now, allows me to use the same pattern for only two channels. Is it possible to use the same pattern for 4 channels?

    Thank you

    Maria

    The images do not explain everything. You must explain what are the sensors. I think you totally wrong on how they should be linked. CSR, all sensors must be a common understanding and the outputs not individual channels as I have already explained. If you are unable to do this, you should probably not use CSR and you have the wrong data acquisition device. If you want a side of a sensor as a reference, you need differential connections.

  • Need a query to return the first and last date for a rowset.

    Hello

    I have a query which can be simplified to the following data, if
    Assume that it is my dataset, with THE_VALUE of
    Sign (Anum) therefore,-1, 0 or 1.

    * (Sorry for crushed registration. "I can't understand this website's rich text formatting.) *

    THE_VALUE THE_DATE THE_MEMBER
    1 0 1 January 2007
    1 0 1 February 2007
    1 0 1 March 2007
    1. 1 April 1, 2007
    1 1 1 May 2007
    1 0 1 June 2007
    1. 1 July 1, 2007
    1. 1 August 1, 2007
    1 0 01 - sep - 2007
    2 0 1 January 2007
    2 1 February 1, 2007
    2 0 1 March 2007
    2. 1 April 1, 2007
    2 1 1 May 2007
    2 0 1 June 2007
    -2 1 1 July 2007
    2. 1 August 1, 2007
    2. 1 01-sep-2007
    3 0 1 January 2007
    3. 1 February 1, 2007
    3 0 1 March 2007
    3 0 1 April 2007
    3. 1 May 1, 2007
    3 0 1 June 2007
    3. 1 July 1, 2007
    3. 1 August 1, 2007
    3 0 01 - sep - 2007

    I need to get the lines with the THE_MEMBER, the values of the first and the last
    THE_DATE, where the value is - 1, and the date range is the last
    set of lines to the Member, with the same value of THE_VALUE.

    I tried the following to get the dates of first and last for a set
    consecutive months with the same value for the Member.

    SELECT the_member
    the_value
    the_date
    first_value (the_date)
    in the first_date (PARTITION the_member, ORDER BY the_member the_value, the_date)
    last_value (the_date)
    during the last_date (PARTITION the_member, ORDER BY the_member the_value, the_date)
    OF togola
    ORDER BY the_member
    the_date;

    At first, it seems to work, but then, when the return value
    an old value, FIRST_DATE will be the first of all the lines containing
    This value for the Member rather than the first of consecutive
    rows with this value for the Member. Apparently the partitioning
    occurs before the order.

    THE_MEMBER THE_VALUE THE_DATE FIRST DATE LAST DATE
    1 0 January 1, 2007 January 1, 2007 January 1, 2007
    1 0 1 February 2007 1 January 2007 1 February 2007
    1 0 1 March 2007 1 January 2007 March 1, 2007
    1. 1 April 1, 2007 April 1, 2007 April 1, 2007
    1. 1 May 1, 2007 April 1, 2007 may 1, 2007
    1-0 June 1, 2007 January 1, 2007 June 1, 2007
    1. 1 July 1, 2007 April 1, 2007 July 1, 2007
    1. 1 August 1, 2007 April 1, 2007 August 1, 2007
    1 0 01 - sep - 2007 1 January 2007 01-Sep-2007

    2 0 January 1, 2007 January 1, 2007 January 1, 2007
    2 1 1 February 2007 February 1, 2007 February 1, 2007
    2 0 1 March 2007 1 January 2007 March 1, 2007
    2. 1 April 1, 2007 February 1, 2007 April 1, 2007
    2 1 1 May 2007 February 1, 2007 may 1, 2007
    2-0 June 1, 2007 January 1, 2007 June 1, 2007
    -2 1 1 July 2007 February 1, 2007 July 1, 2007
    2. 1 August 1, 2007 February 1, 2007 August 1, 2007
    2. 1 01-sep-2007 1 February 2007 01-Sep-2007

    3 0 January 1, 2007 January 1, 2007 January 1, 2007
    3. 1 February 1, 2007 February 1, 2007 February 1, 2007
    3 0 1 March 2007 1 January 2007 March 1, 2007
    3 0 April 1, 2007 January 1, 2007 April 1, 2007
    3. 1 May 1, 2007 February 1, 2007 may 1, 2007
    3 0 June 1, 2007 January 1, 2007 June 1, 2007
    3. 1 July 1, 2007 February 1, 2007 July 1, 2007
    3. 1 August 1, 2007 February 1, 2007 August 1, 2007
    3 0 01 - sep - 2007 1 January 2007 01-Sep-2007

    That's what I need to get in the end.

    THE_MEMBER FIRST DAY DATE OF LAST
    July 2 1 2007-01 - Sep - 2007

    Any ideas would be really appreciated.

    Published by: user10700981 on December 17, 2008 13:57

    Hello

    We'll call the lines whose the_value =-1 'good' lines and lines with the_value! =-1 ranks of 'bad '.

    For each value of the_value, we need the first and last values of the_date where
    the last row in the group is good
    (b) the current line is good
    (c) there is a lot of lines from the current line to the end of the Group
    Condition (a) is just a special case of (c).
    Conditions (b) and (c) are similar: (b) if applied to the current line, (c) applies to all lines after him. They can easily be combined into a single test that counts the number of lines after the current line or bad.

    Which produces the results you requested of the sample data that you provided:

    WITH     count_bad     AS
    (
         SELECT     the_member
         ,     the_date
         ,     COUNT     ( CASE
                        WHEN  the_value != -1 -- assuming the_value is never NULL
                        THEN  1
                     END
                   ) OVER     ( PARTITION BY     the_member
                          ORDER BY     the_date     DESC
                        )     AS bad_cnt
         FROM     table_x
    )
    SELECT     the_member
    ,     MIN (the_date)     AS first_date
    ,     MAX (the_date)     AS last_date
    FROM     count_bad
    WHERE     bad_cnt     = 0
    GROUP BY     the_member
    ORDER BY     the_member;
    
  • By comparing the two registers of the transaction system

    I would like to comment on a matter of data modeling. In our source siebel system, our business users would like a metric that is based on the comparison of two requests for service. Essentially, if the second service request is created 7 or fewer days after the first application service, then it is reported as a reminder. Common element used for this comparison, it is that they both have the same associated assets.

    We could easily create the necessary ETL for the creation of a fact of reminder. However, my question is around to give visibility to the relationship between the two. Essentially, the business users would like that the first service request is related to the second and vice versa. How would you recommend creating this relationship in the star schema?

    For the relationship, you can for example add a column in the dimension of reminder.
    Recalls with the same value (for example the first recall) are related.

    If you want to see the reverse callback number in a one-to-one relationship, you can add another column to store.

    Concerning
    Nico

    Published by: gerardnico on 4-apr-2009 01:17

  • How to assign the value based on the various buttons

    Hello
    I'm working on create/update page to date, who have two buttons, save and send. The two buttons save registration but two fields in OT be assigned values when you press "submit" button. If I set EOImpl (< nom_de_colonne >), how I'd get that affects? Or any other convenient way to implement?
    All information and any suggestions will be appreciated in advance.
    Thank you.
    Rudolph

    Hi, had
    Thanks for the quick response. I do not work on the courses page. It's all simple page to update. My drawing a 2 button, save and send. Both registers the update. Then click on the "Submit" button, I neet automaticall value for 2 columns, present the flag = O, application number = 'SSR - 1' before you save it, and the value must be stored in the DB table.
    Thank you.
    Rudolph

  • How can I return the data again to Flex my cfc

    I use a cfc by default CRUD built in Flex Builder 3 using activeRecord. I changed my cfc to return the query and access remotely, but I always event.result = null.

    What I am doing wrong? I just want to return the folder after I save it.

    I know I could create a new method in my manager to call a query that will get the record based on my values of form, but I want to return that same value without having to suddenly. Is this possible?

    Flex MXML

    < mx:RemoteObject

    ID = "roMyObject" destination = "ColdFusion" source = "CFCs. MyGateway"showBusyCursor ="true">

    < name mx:method = 'save' result = "MyHandler (event); "/ >

    < / mx:RemoteObject >

    Gateway CFC

    < cffunction = 'save' output name = "false" access = "remote" >

    < name cfargument = "obj" required = "true" / >

    < cfreturn obj.save () / >

    < / cffunction >

    CFC

    < cffunction = 'save' output name = "false" access = "public" returntype = "Cancel" >

    < cfscript >

    If (this.getClassifiedID (eq) 0)

    {

    Create();

    } else {}

    Update();

    }

    < / cfscript >

    < / cffunction >

    < name cffunction "crΘer" output = "false" returntype = access = "remote" = "query" >

    < cfargument name = "obj" required = "true" >

    < cfset var qCreate = "" >

    < cfset var qread read = "" >

    < cftransaction isolation = "read_committed" >

    < cfquery name = "qCreate" >

    Create folder

    < / cfquery >

    < cfquery name = "qGetID" >

    Select last_insert_id() as new_id;

    < / cfquery >

    < / cftransaction >

    < cfreturn qGetID >

    < / cffunction >

    Hello

    You gave the return type of function as zero economy. Try the following code.

    If (this.getClassifiedID (eq) 0)

    {

    result = create();

    } else {}

    result = update();

    }

    Hope this helped you

    concerning

  • Press the 2 buttons at the same time

    Hello

    I thought I was doing a game of Pinball this morning.  Because the PlayBook a 4-point multitouch, is possible to detect the pressure/holding a button left flipper, a right flipper button or both flippers at the same time.  How about the two buttons a fraction of the second part?  QNX is a real-time operating system, but I have not found this type of control in the AIR SDK.

    Harry

    There should be no problem to do that, but I think you want to use the flash.ui.Multitouch API

    Here's a video that shows how to do this, but you will end by edit it just follow your TouchEvents rather than MouseEvents...

    In response to Touch raw data

    Hope that helps

Maybe you are looking for