stop execution of worklight procedure - ibm-mobilefirst

can we stop execution of worklight procedure(adapter).I have a form.on submit click i calls webservice through worklight adapter .and a cancel button.how can i stop execution on cancel button click?

What you are asking for is not possible at this time in Worklight.

Related

MobileFirst App Diagnostic

How can I disable the APP DIAGNOSTIC screenshot after the occurrence of an error ? It appears selecting it on an error POPUP in the app itself. This app is hybrid and based on MobileFirst 7.1.
There is no flag to remove the 'Details' button that appears in the pop-up that leads to this Diagnostics table.
I believe you should be able to override the dialog all-together and provide your own by using the onConnectionFailure property in the initOptions.js file. You should have there the following snippet
// # The callback function to invoke in case application fails to connect to MobileFirst Server
//onConnectionFailure: function (){},

Handling OS based alert

I am preparing automated test script for our website. I have a functionality for sending mail. While sending mail outlook produces an alert to accept it to proceed sending mail. But I could not close the alert using selenium and If I manually accept the alert the Selenium script is stopped and the test case fails.
I tried below common code in my script and it didn't work.
Alert alert = driver.switchTo
I know selenium web driver can't handle none web application, but is there a way around it?
Try this,
Popup Dialogs
Starting with Selenium 2.0 beta 1, there is built in support for handling popup dialog boxes. After you’ve triggered an action that opens a popup, you can access the alert with the following:
Alert alert = driver.switchTo().alert();
source :- http://docs.seleniumhq.org/docs/03_webdriver.jsp
maybe this link will help you, try this one also.

Start vb.net application before windows login

On my server pc I have a simple vb.net application running on windows startup. Currently I simply added it to the StartUp folder in AppData. This works fine except I have to remotely connect and login to my server pc after each restart, before the application will start up. How do i make my application start up with out me having to login first? I know it's possible since a lot of programs dont require you to login on the machine first like teamviewer and my sql server.
You can use Window's Task Scheduler for this purpose:
Basic settings
Open the Task Scheduler (you may search for it in the Start Menu).
In the Actions panel click Create Task....
Enter a name and description (the latter is optional) for your task.
Select Run whether user is logged on or not and possibly Do not store password..
Adding a trigger
Go to the Triggers tab and click New....
In the Begin the task box select At startup.
Make sure Enable is ticked, then press OK.
Specifying an action
Go to the Actions tab and click New....
In the Action box select Start a program.
In the Program/script box enter the path to your application.
Press OK and you're done!
Read more about the Task Scheduler:
Task Scheduler - MSDN
Schedule a Task - TechNet

Application exit in mobilefirst platform

I am using mobilefirst for my hybrid application development (For Android, iPhone and windows phone devices). I tried with WL.App.close() but its not working for me.
Any method available for closing the Mobilefirst app?
How can we identify backbutton exit from application in Mobilefirst?
Per Google and Apple guidelines, you may not programmatically quit the application for an end-user. This is an action you must let the user do.
Hence, the WL.App.close() API no longer does that. In fact, this API method is deprecated and will be removed in a future release.
To trigger a quit of the application, you'll probably need to create a Cordova plug-in. In this plug-in you will need to cause a "silent exception" which will cause the app to crash when you choose to execute the plug-in. This way the app will quit.
Nowadays, in Android as well - tapping the Back button no longer quits the application. Rather it too will put the app in the background. This is the expected behavior.
What you could do, for Android and Windows Phone 8 is to override the Back button's default action by using WL.App.overrideBackButton and there too trigger an exception to quit the app.
Or - let the user quit the app...

VB.Net running as a service

I have built an application that connects to the exchange server and does some scanning tasks on the incoming mail.
Application has a form where i can start and stop scanning,give in an interval, do some other configuration, and a notificationicon in the taskbar to show hide,end and so on..
The problem is that I would like the application to start as a service, because now a user has to log in first on the server before it starts working.
I tried some tools like RunAsService, i had a service, but obviously it didn't run the application.
Of course i understeand now that when the application will run as a service, scanning will be the only thing that will happen, no forms and no notification icons.
However i do not know where to start, should i extract the scanning logic from my configuration as a separate application? What application type should it become then ?
You have two easy options.
First one just create a new Windows Service Project from your New Project button in the Visual Studio, and then just program your app.
Second one, just create a service from the service management window in your computer and add the executable file of your program. It will start running as a service (with visible windows and everything as you coded it).
You should follow this link and schedule your vb.net windows program as windows task
In Your code, at the end ,when everything gets executed you should write Me.Close() to hide your form.