return value of customAskAsync()?

Then... How are we supposed to get the return value of a customAskAsync() dialog box? The docs suggest you use a dialogCallBack() function, and that's fine, except that after the launch of the async obviously continues to run app dialog box of the code without waiting for the result of the dialog box (which is normal for a modal async/no dialogue). It would not be a problem if the Synchronization dialog box / modal was not obsolete. What Miss me? Thank you.

Alternatively, you can complete the code of this function in the dialogue, and then the function callback to continue the code. Not perfect, but it allows you to wait on this dialog box user input then continue once you have.

Edit:

Added an example:

function get_user_input(){
var buttons = ["Yes", "No"];var ops = {title : "Continue?", size : blackberry.ui.dialog.SIZE_MEDIUM, position : blackberry.ui.dialog.LOC_CENTER};blackberry.ui.dialog.customAskAsync("Would you like to continue what you are doing??', buttons, continue_answer, ops);}

function continue_answer(index){
//index 0 is yes, index 1 is no
if(index == 0){
console.log('User wants to continue');
}else if (index == 1){
console.log('User does not want to continue');
}
}

Hope that helps

Tags: BlackBerry Developers

Similar Questions

  • How to use the return value of TestComplete (using COM) as a variable in the conditional statement (for example loops) TestStand

    Hello

    I have setup a COM interface for TestStand (TS) to run some scripts in TestComplete (TC).  Normally, when TestComplete has finished executing the script, it returns a 0 or 1 to designate the success/failure during the TestStand step (step test for example String value).  It worked well.

    However, now I need TestComplete to regain a vaule (e.g. 32) TS and TS need to assess this value in a while statement. So if the TC value is 32, I would have some statement in TS ike:

    While (return value! = 30)

    Do something...

    Thank you

    Jigg,

    No, the program does not have a new thread.  It's just a single sequential thread. She called other sequential files, and that's all.

    I think I'll have some luck with the StationGlobal.  It seems to work (for example by setting the StationGlobal a single sequence file automatically updates the Stationglobal in another movie file, sort of like passing the reference value)

    Thank you!

  • Use the return value to do step digital multiple success or failure

    Hello

    I use a multiple digital step to check several measurements by an external DMM through a function created in CVI.  I would like to use the return value of the function to replace the global status of the step. The reason is that the return value indicates a communication error, while steps are being taken, and which would lead to a "fake" fake or false 'Pass '.

    What I would do is more or less this >

    If the return value is 0, then check if the measuremets are between the limits

    If return value! 0 = there was a communication error so step continues to operate independently of the measure.

    I tried combining multiple digital step with a step of pass/fail, but it does not work.

    I also trie to change the expression of the status of the multiple digital steps but basically ignores him.

    Any ideas?

    Thank you

    Javier

    Why don't you just make that return the value limits for multiple numerical limit stage.  Comparison of the EQ value and the low limit to 0.

    That would make the most sense.

  • How to return values in calls to subsequence?

    I want to call a sous-suite. I pass parameters to this subsequence but I want too return values. Is it possible to return values other than using globals?

    -Pat

    Hello

    You can set the parameter as "pass by reference". Right mouse click on the setting you are interested in and you will find this setting.

    Concerning
    Ray Farmer

  • Return value of DLL LabVIEW Build to the Prototype of the function

    Hi all

    I know LabVIEW can generate a DLL with return value with a function like prototype

    Sub nomfonction (arguments);

    We could define the return value to arguments.

    However, LabVIEW build a DLL with return value instead of "null" in the United States

    int nomfonction (arguments);

    In fact, I could achieve this when my part of connector VI has a 1 linked indicator.

    I could get my prototype of function dll in the application as Builder

    Double functioname (void); or well functioname (void); or some

    Although I could do above, this applies only when my VI has 1 single output.  If the VI

    1 more arguments, I still get

    Sub nomfonction (arguments);

    So I missed something? Or is this a limit of LabVIEW?

    Please don't get angry if this question has been asked before, I'm lack of subject

    LabVIEW to communicate with other languages.

    Thank you

    Jean Cyril

    You can.  In the construction specifications, under source files, go to set your prototype.  on the right, there is a drop down 'Output VI' which is what you want.  Note that I only saw him able to return numeric values.

  • Executed as user: domain\username. The return value is unknown. The process exit code was 128. The step failed.

    I have a job with 20 steps. This error occurs for any stage of perticular. It produces randomally at any stage.

    "The return value is unknown.  The process exit code was 128.  The step failed. »

    This is not the right forum for SQL database issues.

    Please repost your question in the MSDN SQL forum
    http://social.msdn.Microsoft.com/forums/en-us/sqldatabaseengine/threads

    Sincerely,

    Marilyn

  • Get the .exe with LaunchExecutable() return value

    Hello

    I try to get the return value from an .exe file started with LaunchExecutable(). Do you think it is possible or am I wrong?

    Thank you!

    Adrien T.

    Adrien:

    If you run the CreateProcess() executable, you can then use GetExitCodeProcess() to read the results.

    See more details here: http://digital.ni.com/public.nsf/allkb/E250246D65A6A18D8625659F0065F310

    Note that you must have the Windows SDK (aka Win32 API) installed to use CreateProcess/GetExitCodeProcess.  The SDK is provided with CVI, but is not installed by default.  If you have not installed, reinstall CVI, selecting only SDK or Win32API (depending on the version of the CVI you).

  • Possibility to get a popup to display the display value "" and not the "return value".

    Version - Application Express 3.2.1.00.11

    I have a list of values that exceed 1500 files and am so impossible to use a Select list.

    When you use a popup lov after choosing the recording, apex displays the return value (in my case a number). Is it possible to let him use the display value (in my case, a text string).

    Concerning

    Ben

    Benton says:

    Version - Application Express 3.2.1.00.11

    I have a list of values that exceed 1500 files and am so impossible to use a Select list.

    When you use a popup lov after choosing the recording, apex displays the return value (in my case a number). Is it possible to let him use the display value (in my case, a text string).

    See limiting the number of values in a LOV

    If it comes to a page element, and then change the type of Popup LOV key.

    If there is a control in a table, it's another reason to upgrade to a supported version, or the tabular form will need to be converted to be manually generated and processed in order to allow the appropriate control be returned using the apex_item.popupkey_from_lov method

  • The list of values - return value identical to the display value

    I fill a selection list with the names of the members with a lov sql like the following

    < tt > select memberName d, r FROM whateverTable < /tt > memberId

    The problem is that in the database, the stored value is the Member ID. I really want the real memberName stored in the database instead I want to use this name of Member elsewhere in my application.

    When the integrated trigger executes its code

    < tt >

       if NVL (:old. CONTACT_PERSON,'0') ! = NVL (:new. CONTACT_PERSON,'0'( ) then

    Insert into eba_ca_history ()table_name component_rowkey COMPONENT_ID column_name old_value new_value) values

           ('EVENTS', :new.row_key, :new.event_id, 'EVENT_OWNER',:old. CONTACT_PERSON,:new. CONTACT_PERSON()

       end if ;

    < /tt >


    I get the following text shows on my apps update page-"owner of an event has changed from 457879885611315631565 to 2546454654546546546546..."

    lov.PNG

    I want the value of the actual display to display for an update instead of the return value.


    I tried to convert the value to help

    lov2.PNG


    But which causes the following error


    lov3.PNG


    How can I make sure that the return value of the lov being stored in the database matches the display value for the lov?

    Hi Richie,

    If I understand your request, simply set your LOV query with the same column like screen and return:

    select memberName as display_value, memberName as return_value FROM whateverTable
    

    If this isn't what you're asking, I apologize for the misunderstanding.

    Thank you

    Erick

  • Event just after obtaining return value of lov inline search page

    Hi all

    I created a lov inline search, my page looks like this:

    page.png

    When I search and select the result I want.

    page1.png

    I get this result selected as back to my point of return of my page:

    page 3.png

    What I want is:

    At the time when the page is displayed to show me the value selected, I want to show him something else on this return value. For this I need to know what the event or the setting I need to take to whether or not the selection is made.

    I hope I made clear what I need

    Thank you very much for your help

    Kind regards

    Afaf

    Not really sure what you are after. You can try this.

    If (PageContext.isLovEvent ())

    {

    String lovInputSourceId = pageContext.getParameter (SOURCE_PARAM);

    If ("".equals (lovInputSourceId))

    {

    }

    }

    See you soon

    AJ

  • LOV and return value

    Hello

    I have a lov and the return value of this lov is assigned to a formval. I have a Viewobject VO1 which is attributed to the return values of point LOV. After selecting a value from the lov, I am tring to get the return value later of the viewobject Vo1 but he still presents as null.

    Don't know how to get the return value. Any help is appreciated.

    Thank you

    KK

    KK,

    That's what I understood.

    You have a LOV which has 2 lovMaps, it returns the field of LOV and 2 returns the value for the FormValue field.

    The formValue field is mapped to an attribute of the VO.

    After you select the value from the LOV, you try to get the value returned to the FormValue using the VO attribute attached to the value of the shape.

    How are you trying to access the value and where?

    See you soon

    AJ

  • ActionDescriptor Automation plugin return value

    Hello.

    I create a bunch of plugins that work together, and I'm creating a Panel to control all this. The group currently has a single button that triggers the call of an event that is the event of the execution of my automation plugin. I can send parameters to the side js side C++ using an ActionDescriptor, and works very well.

    The executeAction return value must be the result, which is also an ActionDescriptor according to documentation - I would use it to return data to the plugin in order to establish a two-way communication between the user interface and my central plugin. My question is this: how you can set the ActionDescriptor on the C++ side must be returned by executeAction? There is no reference to this in the kit of development or forums.

    Thank you

    Barna

    For the filter, see Dissolve.cpp (DoFinish()) and DissolveScripting.cpp, (WriteScriptParameters())

    For automation, see Listener.cpp (Execute()) and ListenerScripting.cpp (WriteScriptParams())

  • get the return value of a method of the application module in the workflow

    Hello

    I use jdeveloper 11.1.1.7.0

    I defined a method (return type is useful java card) in the Module of the Application and add this method to the client interface.

    also I have a workflow and in this TF firstly I should execute this method and put the return value for the pageFlowScope parameter. I know that to use this method as a methodCall and set it as an activity by default, but I don't know how to get the return value before entering the jsff page and set the pageFlowScope parameter.

    Habib

    Concerning

    When you add the activity to the way to deal, there are 'Return value' property that you can set to #{pageFlowScope.yourVariable}

    Dario

  • How to return values from the record following instead of in the same record in LOV

    Hi all

    I use Forms 10 G.

    I have a block of details. In what in the 3rd column, I have a LOV.

    My requirement is let say I asked for it from the 1st and 2nd column, and it shows 1 record.

    After that if I pressed F9, then it should display the LOV list and, when I select a value any then it will create a new record with the same value of 1st and 2nd column.

    Example: -.

    Agenda provider country
    123ABCIndia

    We here in the column 'Country' LOV. Then when I pressed F9 then Lov should be displayed.

    as below.

    List of countries
    India
    U.S..
    Japan

    It works very well so far.

    Now if I select from the USA in the list then it should create a new record with the values of 1st and 2nd column.

    Agenda provider country
    123ABCIndia
    123ABCJapan

    How can I do this?

    Besically I need, rather than return the value in the same record, he must return to the next with the exsiting values record.

    The algorithm is:

    -use the KEY-LISTVAL about to 'COUNTRIES '.

    -LOV execution using builtin show_lov

    -store the return value Lov any parameter or a local variable in your trigger code ( vL_dummy_Deger varchar2 (100); )

    -Create registration

    -assign value to any new item you want to

    code like this:

    declare

    vLDummy boolean;

    vL_dummy_Deger varchar2 (100);

    Start

    -lov runs lov ruturns value is assigned to all the dummy elements to store Lov, return value. (no need to display)

    "-" DUMMY "point lets store lov, return value.

    vLDummy: = show_lov ('LOV_ULKE');

    --

    vL_dummy_Deger: =: model;

    create_record;

    : new_item: = vL_dummy_Deger;

    end;

  • Calling a function multiple return values...

    Hello

    I wrote a simple function 2 return values. It comes to my own understanding.

    create or replace function func1 (empid number)

    Return number

    is

    number of SAL;

    number of deptID;

    Start

    Select the wage in sal of employees where employee_id = empid;

    Select department_id from deptid from employees where employee_id = empid;

    return of sal;

    deptid return;

    end;

    I tried to call the function like below: -.

    declare

    number of performance(1);

    Result2 number;

    Start

    performance(1): = func1 (101);

    Result2: = func2 (101);

    dbms_output.put_line(result ||) '' || Result2);

    end;

    output:-1700 1700

    the salary was posted twice.

    I understand that the second query has not been taken into account.

    Please let me know how this can be achieved.

    Thanks and greetings

    Here is an example of functions Oracle return multiple values - dBforums:

    CREATE or REPLACE TYPE pmc_tab AS TABLE OF NUMBER;

    CREATE TABLE v_stats_daily (start_date date, number of Field1, Field2 number, field3 number);

    INSERT INTO v_stats_daily VALUES('08-OCT-2003',10,20,30);

    INSERT INTO v_stats_daily VALUES('08-OCT-2003',40,50,60);

    INSERT INTO v_stats_daily VALUES('08-OCT-2003',70,80,90);

    CREATE OR REPLACE FUNCTION PMC_STATS

    (pStatDate Date) IS BACK pmc_tab

    MyArray pmc_tab;

    NUMBER of vstat1;

    NUMBER of vstat2;

    NUMBER of vstat3;

    BEGIN

    MyArray: = pmc_tab();

    SELECT sum (Field1), sum (field2), sum (field3)

    IN vstat1, vstat2, vstat3

    OF v_stats_daily

    WHERE the arguments start_date = pStatDate;

    MyArray.EXTEND;

    MyArray (1): = vstat1;

    MyArray.EXTEND;

    MyArray (2): = vstat2;

    MyArray.EXTEND;

    MyArray (3): = vstat3;

    RETURN MyArray;

    END;

    /

    Set serveroutput ON

    DECLARE

    MyDate DATE;

    MyArray pmc_tab;

    I have SEVERAL;

    numOut NUMBER;

    BEGIN

    MyArray: = pmc_stats('08-OCT-2003');

    dbms_output.put_line (' number of Table: ' | to_char (myArray.Count));

    FOR i IN 1.MyArray.last LOOP

    numOut: = MyArray (i);

    -If numOut is null then

    dbms_output.put_line (' value: ' | to_char (numOut));

    -end if;

    END LOOP;

    END;

    /

    /

    Table number: 3

    Value: 120

    Value: 150

    Value: 180

    PL/SQL procedure successfully completed.

    /

    Post edited by: Elya

Maybe you are looking for