BB 10 C++ during the click button on

QML, you can make the click event on. I write my qml in C++, however there is no onclick method.

How do you get click to work.

Button * btnSave = newButton();

btnSave-> setText ('Save');

contentContainer-> add (btnSave);

Someone at - it a simple example that they could provide to help me get started?

Thanks in advance.

To do this in C++, you must connect a signal (in this case, is clicked() button in a location of your class). Best you have a look here.

Assuming you have defined a slot called onSaveButtonClicked() in the header, which will be called when the user clicks the button:

public slots:
void onSaveButtonClicked();

in your application, after your create button class, you need to:

Connect (btnSave, SIGNAL (clicked ()), this, SLOT (onSaveButtonClicked ()));

When the button is clicked, it will emit the signal that calls the function of slit.

Tags: BlackBerry Developers

Similar Questions

  • How to use several adf 12 shape and insert the form data in to table during the click on "submit" button

    How to use several adf 12 shape and insert the form data in to table during the click on "submit" button. Can we use several form from adf or not?

    Make sure that you dragged the VO based EO.

    Also make sure that the VO attributes based EO Updatable property.

    The query according to VO is used only to add LOV to the column of the original VO ModelId.

    See you soon

    AJ

  • on change of value event I'm shooting adf Faces error message but its getting recorded during the click on save

    Hi Experts,

    JDEV 11.1.1.7.0

    On valueChangeEvent I throw adfFacesErrorMessage but its economy during the click on save.

    Because I can't do validation in my OE. So I can use validator instead of valuechange evnt. ? While it will not allow something to save.

    autoSubmit = "true" validator = "#{backingBeanScope.myBean.checkValidation}" >

    On valueChangeEvent I throw adfFacesErrorMessage but its economy during the click on save.

    Message is just to what is expected.

    So can I use instead of evnt valuechange validator.

    Yes, you must use the validator to implement validation

    Dario

  • How to show or hide the region of the shuttle during the click on the radio buttons?

    Hello

    I'm new to JDeveloper. Here is my requirement.

    1. create 2 radio buttons: Yes and no and default displays "" selected radio button.

    2. create a region of shuttle with select query in VO.

    Query is:

    Select 'No group' for_user, for_pkg double null

    Union

    Select "Company" for_user, for_pkg "SEGMENT1" double

    Union

    Select 'Rental' for_user, for_pkg 'SEGMENT2"double

    Union

    Select 'Cost center' for_user, 'SEGMENT4' double for_pkg

    Union

    Select 'Project' for_user, 'SEGMENT5' double for_pkg

    Union

    Select "Intercompany" for_user, "SEGMENT8" for_pkg of the double

    order by nulls first for_pkg

    3. initially hide the region of the shuttle during the loading of the page.

    4. click on the radio button 'yes', display area of the shuttle with values at the head of list of query VO and empty list leak.

    5. new click on the 'no' radio button, he must hide region and so screen shuttle shuttle dynamically according to the selected option button.

    But my problem is I am able to hide area shuttle when the page loads at the beginning and after that, when I'm clicking 'Yes' radio button, is just to display area shuttle empty without value in the main list and once when I'm clicking 'No' radio button, it should hide area shuttle but he's not hiding. I used the RPP to show or hide the area Shuttle under certain conditions. I use JDev 10.1.3.3.0 version as we Oracle EBS version 12.1.2 in our society.

    Please find the attached draft and suggest me proper with examples of sample approach.

    Monika,

    I tried to get this working in the lower version of Jdeveloper and looks like it works.

    Can you make the change below and see what happens.

    1. modify your query to VO as below: (I replaced null with SEGMENT0)

    select 'No Grouping' for_user, 'SEGMENT0' for_pkg from dual
    union
    select 'Company' for_user, 'SEGMENT1' for_pkg from dual
    union
    select 'Location' for_user, 'SEGMENT2' for_pkg from dual
    union
    select 'Cost Center' for_user, 'SEGMENT4' for_pkg from dual
    union
    select 'Project' for_user, 'SEGMENT5' for_pkg from dual
    union
    select 'Intercompany' for_user,'SEGMENT8' for_pkg from dual
    order by for_pkg
    

    2. place VO execution to the processFormRequest:

        public void processFormRequest(OAPageContext pageContext,
                                       OAWebBean webBean) {
            System.out.println("In process Form Request");
            super.processFormRequest(pageContext, webBean);
            OAApplicationModuleImpl appModule =
                (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
            String eventParam = pageContext.getParameter(EVENT_PARAM);
            System.out.println("eventParam: " + eventParam);
            if ("showHideShuttle".equals(eventParam)) {
                //  appModule.invokeMethod("deletetrailing");
                System.out.println("Inside If");
                OAMessageCheckBoxBean messageCheckBoxBean = (OAMessageCheckBoxBean)webBean.findChildRecursive("checkBoxBean");
                System.out.println("messageCheckBoxBean : " + messageCheckBoxBean);
                String messageCheckBoxBeanVal = (String)messageCheckBoxBean.getValue(pageContext);
                System.out.println("messageCheckBoxBeanVal: " + messageCheckBoxBeanVal);
    
                if ("Y".equals(messageCheckBoxBeanVal)) {
                    OAViewObjectImpl shuttleVO1 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO1");
                    if (shuttleVO1 != null) {
                        shuttleVO1.setWhereClause(null);
                        shuttleVO1.setWhereClauseParams(null);
                        shuttleVO1.executeQuery();
                        System.out.println("Executed Query : " + shuttleVO1.getQuery());
                    }
                    OAViewObjectImpl shuttleVO2 =
                        (OAViewObjectImpl)appModule.findViewObject("ShuttleVO2");
                    if (shuttleVO2 != null) {
                        shuttleVO2.setWhereClause("1=2");
                        shuttleVO2.setWhereClauseParams(null);
                        shuttleVO2.executeQuery();
                        System.out.println("Executed Query1 : " + shuttleVO2.getQuery());
                    }
                }
                String[] name = { "RenderAttr1" };
                String[] val = { messageCheckBoxBeanVal };
    
                Serializable[] params = { name, val };
                Class[] paramTypes = { String[].class, String[].class };
                appModule.invokeMethod("setXXCustomPVOValues", params, paramTypes);
    
            }
    
        }
    

    3. move Spel link shuttle Bean for the region of header above.

    Some useful links for the shuttle Bean:

    Technology blog based in Java of Sushant: 13. Area of application OFA shuttle

    Framework OA Blog: control of the shuttle as part of OSTEOARTHRITIS

    See you soon

    AJ

  • How to insert a few lines of the user interface and some of the system during the click on the Add button

    Hi Experts ADF,

    I have an Add button and a table.

    My requirement is when the user clicks the Add button then the table below should show a new line. And some of the values I'm inserting into the method doDML with operation == DML_INSERT.

    I tried the steps below: -.

    (a) the primary key attribute is based on an expression groovy (with a sequence).

    (b) Add button is linked to the operation of CreateInsert.

    doDML c method) @Overridden in EOImpl, java. And some of the values I'm inserting into the method doDML with operation == DML_INSERT.

    (d) when I click Save I get error. So please let me know if any changes I need to do.

    Thank you

    Animesh

    Or if you want to insert data on the operation of createInsert then simply replace the create method in EOImpl

    Ashish

  • How to set a blank publication to hide the target (menu) during the click on trigger and target

    I created a menu using the widget consisting of vacuum.  I want the menu to close only when the user clicked the menu button or clicking on the target (bottom of page).

    Could someone please explain a method to do that the Muse offers options are limited to; Hide targets: on click. decelerate; the deployment of the trigger and the target.

    Thank you

    Luke

    You can do one of these «Hide target click» options
    (when you click the shutter button, that will close the target)

    There is no other way in Muse to close a target outside options for this widget.

    You could research third-party widget, there could be an option there.

  • Subform is hid during the click on check & send process SAP HCM

    Hello

    I am posting this here because it is more the problem of form to Adobe.

    Here is my requirement, I've been struggling with.

    I have 3 subforms of the same type (contains 8 fields each) to add the members of the family. Subform 1 is mandatory and is always visible. Subform 2 and 3 are hidden when the form is loaded. I have a JavaScript on the initialize event to hide.

    this.resolveNode("subform_name").presence = 'hidden ';

    When the user decides to add more details, click on the Add button that makes the subform 2and 3 visible, one at a time. Script under the click event for the Add button is:

    If (this.resolveNode("subform2").presence == 'hidden') {}

    this.resolveNode("subform2").presence = "visible";

    this.resolveNode "(PRI_DES2. PRI_FLAG2") .rawValue ="X ";      «I'm too add a flag on a field on the Add button.»

    }

    On the event ready subform2 form: I've got the code for the visible subform2 below.

    If ($record. PRI_FLAG2 == 'X') then

    .its presence $ = 'visible '.

    endif

    Everything works well up to this point.

    When the user fills in the data and click on check and send, the subform2 disappears; Note that the values in the fields are still there, I can see it when I click on the Add button. I am sure that the initialize event fires again on the cheque and send, taking the form of the initial phase.

    I tried different ways to restrict it. I use not responsible for instance, just make subforms hidden / visible. I have FORMCALC and Javascript on the form.

    Please help with any suggestions / ask me for more details.

    Many thanks - Raj

    Hi reda,.

    I don't know if I understand you right...

    1. Subform 2 and 3 do not need a script in initialization - go to object. Subform. Presence | Hidden (Exclude..)
    2. If the user click on the Add button you need not the If Condition
    3. I would write
      1. this.resolveNode("subform2").presence = "visible";  OR xfa.resolveNode("subform2").presence = 'visible '; OR subform2.presence = 'visible ';
      2. this.resolveNode "(PRI_DES2. PRI_FLAG2") .rawValue ="X ";   OR xfa.resolveNode ("PRI_DES2. PRI_FLAG2") .rawValue ="X "; OR PRI_DES2. PRI_FLAG2. RawValue = "X";
    4. The last script I would not write in the form ready event. Why use this event?
    5. If you make the subform 2 a 3 hidden, you must reset the entries in my opinion. You can use the following script: xfa.host.resetData ("xfa.form.fomr1.subform2");

    Sorry, my English isn't the best. I hope I could help a little,

    Mandy

  • Text hidden/visible during the click field on

    Hello

    I create to make a field hidden to visible founded when clicking on a button using javascript. I watched this: http://htmldb.oracle.com/pls/otn/f?p=31517:129:1617669608355761
    But do not understand and cannot operate. First of all, I had a hidden text field. The user clicks on the 'New' button that calls the function foo() of js (without submit page). Here, I have tried various things, based on another thread that had value of $x (P11_NEWFIELD)... I tried:
    .visible $x (P11_NEWFIELD)...
    visibility of $x (P11_NEWFIELD)...
    .hidden $x (P11_NEWFIELD)...
    None worked. I then tried the reverse (what makes a text field and try to hide it... didn't work.) I tried to put some html_HideElement (this); in the attributes of text fields to see if it does anything, but still visible to me unsurue what that's supposed to do. Help: x

    Button
    URL = javascript:myFunc();

    Eager P11_NEWFIELD to go from hidden to visible text field after you press the button.

    Edit: It doesn't seem to work at all actually... I tried window.open ("Hi"); in the service and he do not seem...

    Thanks for help
    Mike

    Published by: Gerd on October 20, 2009 11:24

    Hello

    If you upgrade button URL only

    javascript:$x_Hide('P11_NEWFIELD');
    

    BR, Jari

  • TextInput changes to the text during the click on

    Hi all.

    I have a text entry that contains the text 'name '.  What I want to do, is when it is clicked it gets rid of this text.  I can do it this way

    < s:TextInput x = "10" y = "291" width = "265" textDecoration = "none" text = "Name" id = "txt_name" click = "" txt_name.text = "" fontStyle = "italic" / > "

    Simply change the text value to "" on the click attribute.

    However, this causes problems because if you click it once that he get rid of 'Name' and you type in something, if you clicked on it again, it would be to get rid of what you typed in.

    If I'm on this simple function

    protected function commentnametext (): void
    {
    If (txt_name2.text is "Name")
    {
    txt_name2. Text == ";
    }
    on the other
    { }
    }

    < s:TextInput x = "10" y = "321" width = "265" textDecoration = "none" text = "Name" id = "txt_name2" click = "commentnametext ()" fontStyle = "italic" / > "

    However, when I click on the textarea component it dosent seem to run the function, changing text dosent.  No idea why its not working?

    Your function is false

    protected function commentnametext (): void
    {
    If (txt_name2.text is "Name")
    {
                      txt_name2.text == ";  -You must write here txt_name2.text = "; instead of 2 == writing only 1 =
    }
    on the other
    { }
    }

    If this post answers your question or assistance, please mark it as such.

  • Update Bind variable during the click on chart?

    New to ADF, so getting started is a little rough right now.

    I created a couple of display objects, trained in my JSF page and created the graphics bar out of them. I can click on the series in the bar chart and update a table ADF without problem. What I would do, is to take the result of the click (I know how to find the value of the Group since the click) and past this value in another view to display a new table.

    So the question is how can I update a binding for a display object variable and display the results in a table of the ADF?

    I have a query: "select user_name, user_role from users where user_id =: userId" with a variable named liaison: userId. It took the form of the ADF on my page and rendering: false and display: false. What I would do, is updated ": userId" variable with a value of the graph and display of the form.

    Any help?

    Thank you!

    Hello

    I think that the blog post from this Shay can be useful for you:
    http://blogs.Oracle.com/Shay/2009/01/setting_parameter_for_before_p.html

    Kind regards

    Branislav

  • 6's iPhone Home button makes annoying noise during the click on?

    Suddenly, my iPhone 6's "home" button has started to make a weird noise when a click on. He normally works and it's not a big deal. But since it is very boring, is it a way I can fix it myself? Little help is appreciated!

    Now try the hold home button and make sure that you clean your phone.

  • How to close the default alert box that will come during the click on "back" button

    Hi all

    I develop an application that I have added basiceditfield four times on a single page, but if I pressed the device back button after having entered this field valuse is coming with an alert box save, Discard, cancel option

    I want to delete this alert message when click on "back" button

    Thank you all

    Replace http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/container/MainScreen.html#o... return false (or true, does not matter).

  • How to set a value of outputText 0 during the click on the button cancel using javascript

    Hi Experts,

    JDEV version 12.1.3.0

    I have an outputText at the foot of the column. And I have a button cancel on the top of the page. Then click on the button cancel. How can I set the outputText zero value.

    Thank you

    AR

    Hello

    Please check the labour code. Make clientComponent = "true" in the output text.

    function customOutputValue (event) {}

    var buttonComponent = event.getSource ();

    Find the client component for the af:outputText 'greeting '.

    var oComponent = buttonComponent.findComponent ("ot1");

    Set the value of the outputText component

    oComponent.setValue("0")

    }

    >

    Thank you
    Amey

  • UI, destroy the dialogue during the click on the button

    Hi all

    I created three buttons on my dialog box (OK, cancel, and delete). OK and cancel works very well.

    How can I destroy my dialog box when you click on the button Delete?

    Thank you

    Shonky

    Hey!

    This is the same as the example of mark:

    win = new Window('dialog', 'test');
    
    win.test_btn = win.add('button', undefined, 'New Document');win.test_btn.onClick = function() {win.close(0);}win.test_btn1 = win.add('button', undefined, 'Open Document');win.test_btn1.onClick = function() {win.close(1);}
    
    win.center();var myDlg = win.show();
    
    if(myDlg == 0){    alert("New document");}else if(myDlg == 1){    alert("Open document");}
    

    Hope that helps.

    --

    tomaxxi

    http://indisnip.WordPress.com/

  • 14 - how to make Firefox for my start page launched during the click on the "new tab" - button?

    I want to my homepage (Google) launched with by clicking on the + tab at the top. However, I donot want another plugin added.

    It may set up one way or the other?

    TIA
    =

    Hello

    You can try setting tha value of browser.newtab.url on google in Subject: config.

    1. In the address bar, type Subject: config and press enter. The subject: config "this might void your warranty!" warning page may appear.
    2. Click on I'll be careful, I promise!, to continue on the subject: config page.

    Customize the new tab page

    Subject: config entries

Maybe you are looking for