BB10 - dialogue dilemma & reminder Chaos

Hi all

I'll try and make this short. In fact, when the user presses on delete, I want a dialogue box appears asking them to confirm. If they hit Yes, the ID of the associated element will be removed.

It works:

function setOnclickDelete (paramID) {}
document.getElementById('overflow-btn-delete').onclick = function() {}

var r = confirm ("delete permanently this point?");
If (r == true) {}
DB.transaction (function (tx) {}

tx.executeSql ("DELETE FROM ARTICLES WHERE id =?', [paramID], function () {}");
});
bb.popScreen (this);
}

};
}

But this isn't the right way to do it. The title is not customizable and so to bed 'JavaScript Confirm'. I took a glance to the API and am halfway there.

Can detect which button the user presses (delete or cancel):

 

function setOnclickDelete (paramID) {}
document.getElementById('overflow-btn-delete').onclick = function() {}

standardDialog();

};
}

function dialogCallBack (selection) {}
Alert (Selection.Return);
}

function standardDialog() {}
try {}
() blackberry.ui.dialog.standardAskAsync
"Are you sure you want to permanently delete this item?
blackberry.ui.dialog.D_DELETE,
dialogCallBack,
({title: 'Delete?'});
} catch (e) {}
Alert ("Exception in standardDialog:" + e);
}
}

Correctly passes the ID parameter but unable to detect which button has been clicked. (Delete or cancel):

 

function setOnclickDelete (paramID) {}
document.getElementById('overflow-btn-delete').onclick = function() {}

standardDialog();

};
}

function dialogCallBack (paramID) {}
Alert (paramID);
}

function standardDialog() {}
try {}
() blackberry.ui.dialog.standardAskAsync
"Are you sure you want to permanently delete this item?
blackberry.ui.dialog.D_DELETE,
function() {dialogCallBack (paramID)};
({title: 'Delete?'});
} catch (e) {}
Alert ("Exception in standardDialog:" + e);
}
}

My solution seems to be a mixture of both, but I have been unsuccessful in finding a solution so far. Advice, solutions or help will be greatly appreciated.

Kind regards

Karel Vuong

Ahh - right (not too clear of Q)

Here you go - a fully functional demo...




Dialog Demo






    
    


Whenever you want to pass a parameter to a reminder (you can't unless it's your own reminder) you have to work around him, as in dlgdemo() above using an anonymous function with data, you are interested in passing further in the scope of the recall.

The function (opt) {dodelete (opt.return, param}} passes in dlgdemo() opt and a param scope therefore dodelete() gets two returned the option from the dialog box and the parameter that you want to pass

Tags: BlackBerry Developers

Similar Questions

  • Send a reminder 15 minutes SMS via dialogue (or any provider) Cloud Connector in the program generator?

    Someone has understood how to send a text message reminder minutes before an event? Make a SMS on the day of the event, it's easy, but up to the minute? What did you do to achieve this?

    Basically, the connector of cloud for this provider can not being planned, which is fine, I guess, me personally, I want to as the connectors of clouds dynamic and able to have many programs, not specific to a program.

    I found a work around for this (sort of). You can set default step action time restrictions allow this step to work for some time. With this, just hope he wasn't lag when the cloud connector spoke to the third-party. I would recommend the notification SMS to allow more space buffer window and the same for the duration of validity of restrictions on the action of default step setting value.

  • Return data of an event Reg to appellant VI reminder

    Hello

    I'm new to LabVIEW and approach it from a c# programming background. I have a DLL written in c#, connected library and a reminder of event Reg .NET listen to an event in the DLL. That part works. I can receive an integer of my DLL when the event fires - well.

    However, having this available only in VI integer that is referenced by the event Reg reminder doesn't help - I need to this integer passed back to appellant VI so that I can work with it. I tried a digital indicator to an exit in the Subvi of wiring, but it generates a conflict of function on the wire that connects the strictly typed event with Ref VI reminder. Please see the attached illustration.

    Help, please!

    These "yellow blocks" are all the range of events under "Dialogue and User Interface. They create the user event, generating the user event, destroy the event user and Unregister for events.

    EDIT: see also this thread for example code, you can download: http://forums.ni.com/t5/LabVIEW/How-to-interaction-with-Main-VI-from-Net-event-callback/m-p/2954265#...

  • Collect the serial number of UUT, further in the sequence, then move the dialogue at first USE

    Hi all

    What is the best way to collect the serialnumber USE later in the test sequence (our USE the stored serialnumber, and we want to gather through a DLL call later in the sequence) and pass the input serialnumber dialogue USE?

    Database and report should be in agreement with the serial number that is read from the device from the sequence.

    Looking forward to your advice!

    Kind regards

    David

    Why don't you just replace the PreUUT callback and put your own dialogue in there?  Why the serial number collection should happen later? If it's a matter of having to WEAR it then, you can substitute the reminder of the installation process and enable the object to measure.  Or could even put on in the reminders of the PreUUT or PreUUT loop.

    What people do is override the recall of PreUUT and to put their own VI/DLL calls generally are make barcode scanner or other entry of serial numbers.

    You need to be aware of the indicator to continue.  That's what interrupts execution.

    More information on recalls: http://zone.ni.com/devzone/cda/tut/p/id/6605

    Using the model of process correctly: http://zone.ni.com/devzone/cda/tut/p/id/7958 special attention to the part pertaining to the reminders.

    Another with a section of reminders: http://zone.ni.com/devzone/cda/tut/p/id/2694

    Check out my first post here: http://ni.lithium.com/t5/NI-TestStand/Intercept-the-PreUUT-callback/td-p/998605

    Hope this helps,

  • BB10 - Download the Pdf and view Pdf

    Hi all. I have trouble trying to download the pdf, and then try to view the downloaded pdf file.

    function openLink(urlLink)
    {
      blackberry.invoke.invoke({target: "sys.browser", uri:urlLink}, onInvokeSuccess, onInvokeError);
    }
    

    When the user clicks on a link, the link will be felt openLink function to download the pdf file using the BB browser. This will take the user to download screen to save in pdf format. But when I click on the downloaded pdf file it says

    «The document is empty (size 0 KB)»

    I use the wrong function to download the PDF of the app? If so, how can I download the pdf and allow users to display?

     

     

    Hello

    I don't know why your PDF is coming as 0 k, but what about the download process, and then view, I think that it is perhaps the best solution.

    Use the file transfer API to download the file. As a reminder of the success of the API call, you can then call the PDF Viewer to view the file you just downloaded. Very friendly for the user in my opinion.

    Here are some tools for learning

    API file transfer: https://developer.blackberry.com/html5/apis/blackberry.io.filetransfer.html

    Sample application: https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/fileTransfer/app

    Call: https://developer.blackberry.com/html5/apis/blackberry.invoke.html

    Sample application: https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/fileTransfer/app

    Appeal of basic Applications: https://developer.blackberry.com/html5/documentation/invoking_core_apps.html

  • Creating Application reminder

    For all developers,.

    I am trying to create demand for reminder, reminder of anniversaries.  Here's my problem:

    1 record the event

    How can I record the event and to check when to fire a reminder to the user? He's using PIM or Todolist?

    2. display the customized reminder dialog box

    I learn about PIM for calendar of the event or ToDoList, but the problem is when the callback is triggered, it shows the Calendar dialog box or a task request task. I want to show my custom dialogue box to remind the user when the callback is triggered. How can I do?

    Thank you for your answers

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/system/RealtimeClockListener.h...
    Add it by calling
    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/system/application.html#addRea...

    save it to the system and it is called every minute, so you can control every minute if your event is on. As it is called very often the treatment should be inexpensive, of course.

    You can configure a different entry point to give your application a part of background process that would deal with the audit:
    http://supportforums.BlackBerry.com/T5/Java-development/set-up-an-alternate-entry-point-for-an-appli...

    When the time is right you could display a global dialog as an alert and open your main application a confirmation key, for example.

  • BB10 of the Native INTERFACE elements (ActionMenu, AppMenu, TabbedPane) with Webworks

    I have everyone,

    I'm new to BB10 development and I was wondering if there is the possibility to include elements of native user interface as ActionMenu AppMenu, Tabbedpane via Webworks and also invite the recognnition gesture to open these petite (wide top, left kick,...).

    I saw a jQueryMobile app and I want to incorporate some conductive native via Webworks. Without using frames

    as BBUI.js. So is it possible to do with just call some javascript webworks funtions to add an action menu (on the left), tabbedpane (down) and an AppMenu (upwards)?

    Or do I need to include structures such as BBUI.js and adding the recognition of gestures by myself?

    There is no built-in controls to WebWorks. It only contains plain HTML/JS/CSS and the ability to display some simple dialogues. You will need a user interface infrastructure or code your own UI.

    Note: the framework of the BBUI.js and the JQM with BB10 theme are different things. They serve similar objectives, but are not compatible with eachother. Judging by your posts you seem to be mixing up.

    As you already use JQM, I would say just to add the theme JQM BB10.

    Most of the BBUI projects use the Hammer.js framework for gestures. JQM projects, you can use the built-in JQ/JQM events, or choose to use Hammer.js too. Niether of these methods are specific to the BB and should work on any mobile device.

  • BB Torch - Dialog.doModal (disabiling FileSystemJournalListener reminder)?

    In our application, we display a unique dialogue (for most of the instructions) before launch us the camera application. However, when the user types a picture on the BlackBerry Torch 9800, our class FileSystemJournalListener does not fileJournalChanged() at all, even if we record the reminder with our Application object. However, when the user closes the camera and re - open it via the same method (where the dialog box does not display once again), the callback works very well. That's what I have so far:

    //within my UI container's constructor that launches the camera
    
    myImageListener = new QRCapturedJournalListener(this); //Implements FileSystemJournalListener
    
    ...
    
    //within my fieldChanged method in my UI container when the user clicks on the field that launches the cameraif(permissionCheck()){  if(myPersistDataObj.showHelp()){ Dialog d = new Dialog(Dialog.D_OK ,STR.INSTRUCTION,Dialog.D_OK, Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION),FIELD_HCENTER | FIELD_VCENTER);d.setFont(Fonts.getFont(6));d.doModal()myPersistantDataObj.shownHelp(true);showExternalCamera();   }} else {//notify user permission was denied}
    
    ...
    
    private void startExternalCamera(){            myAppIns.addFileSystemJournalListener(imageListener);     Camera.getInstance().invoke(); // start camera. Wrapper function that invokes the camera app}...
    
    //Invoke function in Camerainvoke(){   Invoke.invokeApplication(Invoke.APP_TYPE_CAMERA, new CameraArguments());}
    

    If the dialog box is a bit conflicted with my PopupScreen, that shows my user interface, saving my reminder, which not is defined before the opening of the camera?

    Looks like I was wrong completely.

    Even if he entered my FileSystemJournalListener class, it was indeed to call fileJournalChanged after all. Part of the problem was that for some reason, when OS 6.0.0 calls the camera, there is some cases where she would call fileJournalChanged and send JPEGs of no return paths (during initialization on the Simulator for the first time, he sent back/store/home/user/camera /), in which my reminder in my UN-registed PopupScreen my FileSystemJournalListener without validating that the incoming path contained a JPEG file.

    Now, he's going only to unregister the listener if we indeed have a way with a JPEG file and then process it. I'm just curious to know if this is expected behavior go ahead with OS 6.0.0 since this never happened with the previous OS versions? I just want to be sure that it makes sense to unregister it if I only want to deal with the last image captured by the user via the camera.

  • Make a reminder App makes me sad

    Hello kind and Patient

    I have been searching the forum for weeks. The issue pertaining to a reminder has been vaguely requested and answered on this forum - most of the time. And the questions that are asked pointedly, have not received all the answers; Although they can collectively close to 1 million views .

    Here is a description of my application

    • There user interface components, so it has a number of screens and dialog boxes
    • It allows a user to enter information, just as would any application - reminder and enforcement is supposed to notify them of this recall by popping a screen or a dialog on a global scale.
    • The app is NOT A BACKGROUND APP, but I want it to work like the calendar on all blackberry phones - which means that when you exit the application it still allows for the reminder dialog boxes to display their individual moments.

    Now, here is my description of the problem:

    • I AM A TOTAL NOOB and I do not know where to take my first step.
    • Many people, trying to help have said things like, "Just check out the reference API of.." It is great and all, but even if I see what it does, I still don't know how to operate it. Or, "See this link". Please give me a link that actually gives me a springboard, not one that has a bunch of suggestions that I still don't understand. I know it looks like I'm complaining, but I seriously had no help regarding this in the past weeks.
    • So all I want to know is how can I get my application to prepare a dialogue or a screen at a time that the user has entered? Where would I put this code in my program? If you want I can show you what I did, just ask.

    All I want is for example, a simple code example. And please, please, please; After posting, please check back to see updated posts. Because I may still need your generous help

    By giving examples of code takes a long time, but I have the time to provide you with some pseudocode. Get the date of user DateField, get the text of the stimulus or which entry you want user with EditField, make a Thread object which accommodates up to the date of the entry with the user, then after sleep deliver the message callback.

    Scott

  • reminder for macOS Sierra notifications shows 1, but none here

    I am running the latest official version of macOS Sierra 10.12

    Everytime I turn on my MacBook, I see that there is 1 reminder on my reminders open it and nothing. I followed the steps from Apple on the deactivation of reminders in iCloud and turning them back top and restart and restart before reminders, no other results.

    Has anyone found a fix for this, that may be having the same problem?

    Here is a screenshot

    https://drive.Google.com/file/d/0ByXVe-9jcsAteFlLTHNRM3dRVFk/view?USP=sharing

    Hi there, HMILLER75. Thank you for using communities of support from Apple!

    It seems that if you get a reminder that there is not actually on your MacBook Pro, which has been upgraded to macOS Sierra. You have made a huge step in troubleshooting, but since it did not help I have a few extra steps for you.

    With the reminders on your Mac app, close it using the Menu option (callbacks > reminders Quit) then hold down the SHIFT key left while the reopening of reminders to clear the cache.

    Safe mode try if your Mac does not start -is not only recommended safe mode when your Mac is not put into market, it also erases the system caches and certainty that your Mac starts correctly.

    These steps should clear reminders inhabiting not actually on your Mac. Have a great day!

  • How to remove 1 reminder reminder EL Cap app?

    Hello

    How to remove 1 reminder reminder EL Cap app?

    I don't see any way the info button to the right is nothing...

    Try control - click/Delete.

  • Bad badge number of reminder on Mac

    After the transition to macOS Sierra, I have a badge indicating 1 reminder on the Mac, as if there was an unchecked item.

    I use callback every day and there's nothing left.

    On my iPhone and iPad, nothing is shown, and that's right.

    Errors: going to regular on top of reminder App, now I see that there is nothing uncontrolled.

    Any help please? Tnxs

    Hi Jet787,

    Thank you for using communities of Apple Support.

    I see that after upgrading to Mac OS Sierra, you have a badge indicating on your application of reminders. I certainly understand and want to ensure that your previous reminder badge has been removed once it ends. I have something I want you to try.

    Please leave the app of reminders by going into menu reminders > Quit. So please give your Mac a fresh reboot. Once your computer turns back on, open the reminders and see if you still have the presentation of the badge a reminder.

    If you still have a question after that, go to the Apple menu > System Preferences > iCloud. Sign out and then sign back in. Open the reminders app and see if you still have a badge icon.

    Best regards.

  • Reminder disappears on all except iMac

    iMac, OS X El Captian, last updated.  Reminder created properly on iMac syncs to icloud and other devices.  Reminder completed on iPhone rejects on iPhone, iCloud and other devices, but not on the iMac.  Try to lay off and button stays green, not red and reminder of shows.  Tried to change on imac and get error that says:

    Reminders could not save the changes

    There was an internal error trying to save this reminder. The changes have not been saved.

    How can I get rid of him?

    Hello kenretlt,

    Thank you for reaching out to the Community Support from Apple. I know how it is important to keep all your information synchronized between your devices, and I'd love to help him get your reminders works as expected.

    Because they seem to work on other devices, the issue is probably based on the Mac. I would recommend the signing of your Mac on iCloud and restart and signing in. This will ensure that your Mac has a solid connection of charges on the server.

    To disconnect, you can open system preferences and click the iCloud. Select the logout and when the option remember to select 'Keep on my Mac' when prompted.

    If the behaviour continues or if you encounter difficulties, the entire community is here to help.
    Best regards

  • Lists of reminders app does not display all the reminder

    Hello

    I updated my Apple Watch watch OS 3 day it out and he was happy to see a new application of recalls has been added, because I use it on my iPhone 6.

    Unfortunately, when I open it on my watch, I don't see any of my reminders or recall lists. Just a 'regular' list which is empty, even if I have the items in the list on my iPhone.

    ask yourself how can I fix?

    iPhone 6 - iOS 10

    Apple Watch purchased Oct 15 - Watch BONES 3

    Got my iCloud account as default for reminders, as well as on the iPhone and watch.

    Thank you

    I'm having the same problem, but also another friend.  The functionality of Siri to set a reminder on the watch does not either.  How can I fix?  It's an update, I was more enthusiastic.

  • time to recall iOS 10 reminder app?

    Hello

    The duration of repetition of reminders in iOS 9 was perfect! Since iOS 10, there are only 2 options... and an hour is too long! How to shorten or adapt the reminder reminder time?

    Yes, one hour is too long, someone at - it a solution?

Maybe you are looking for

  • Why is it not everything I visit online showing not high in my story?

    Today, I've just updated to Firefox 43 and I was online and all, but now, some that I visit or browse online does not appear in my history (he shows some of them, but do not to search for stuff.) For example, that this websit support does not show in

  • upgarding memory from 4 GB to 8 GB

    Can I upgrade my MacBook Pro 13 "mid 2012 memory from 4 GB to 8 GB? How much can it cost to change? and there will be an increase in the speed of my mac after upgrading memory?

  • transfer contacts from Skype

    Hello, I change a laptop to a new How can I move my old laptop to my new laptop Skype contacts?

  • How to install DFI with Microsoft Dynamics CRM 2013 on site?

    Hi all I try to install DFI with Microsoft Dynamics CRM 2013 on site, pls someone help us guide, tips, how to, video tutorial documents... My env are:-Windows Server 2012 R2-Dynamics CRM 2013 Thank youVinh Ng.

  • Upgrade from Vista Home Premium to Ultimate

    My 32 bit HP came with Vista Home Premium which is updated with SP2.   I'm trying to upgrade to Vista Ultimate, but get this message: could not start the upgrade.  To update, cancel the installation and choose to upgrade to a version of Windows that