Answered

Camera Widget remove all controls

Question asked by Robert Love on Mar 15, 2017 01:49 EDT

Hi there I'm building a sample app which shows how using OCR to scan a Drivers Licence might work (see attached screen shot on iPhone 4S). I want to remove all controls. I've set "Native UI" to "Off". This has removed the native UI but left me with the ugly controls...

View all replies

Hi Robert, You need to call the below syntax, frmHome.cam.cameraOptions = {         "hideControlBar": true     } which need to execute before the camera...

View full answer

Answered by: Shaik Mohammad Jabiulla Mar 15, 2017
Solved

ios - transaction

Problem posted by Diego Malpartida on Mar 14, 2017 18:59 EDT

Hello Kony, When I call kony.db.transaction, for some reason the transaction callback function is never called. What is even more weird is that the success callback function is being called. Also the previous transaction (call to kony.db.transaction) works fine. This happens only in iOS. In android everything is fine. Why would this be...

View all replies

Posted In
Kony Inc Kony Studio
Answered

Float Number

Question asked by Daniele Benericetti on Mar 09, 2017 11:53 EST

Hi, How to truncate a float number to decimal places? I don’t find the right APIs I have a problem in subtraction. Thanks Daniele

View all replies

You can use the Javascipt api toFixed(decimalPlaces) eg. var x = 5.6789 var y = x.toFixed(2)

View full answer

Answered by: Sourav Nayak Mar 14, 2017
Answered

How to output an Xcode project from Kony visuzlizer

Question asked by nitin sharma on Mar 09, 2017 11:51 EST

I am very new to kony and have recently started exploring Kony visualizer. I have a sample app in my Kony visualizer and I can publish the app using kony cloud to my devices. I can also download the Kony project which is written in javascript. My question is is there...

View all replies

In Kony Visualizer Menu -> Product -> Emulators & Devices Configration -> iOS Create an emaultor, so that you can send kony...

View full answer

Answered by: Venkata Sandeep Govada Mar 10, 2017
Answered

Add master to form programmatically

Question asked by Robert Love on Mar 07, 2017 19:33 EST

Hi there. Is it possible to add a Master to a Form programmatically? Something like this: formName.add(masterName); Thanks!

View all replies

Hi Robert, In the current version of the Kony Visualizer Enterprise-7.2.1, we do not have the feasibility to add the Master...

View full answer

Answered by: Shaik Mohammad Jabiulla Mar 08, 2017
Answered

display a saved image

Question asked by Roelof Koelewijn on Mar 02, 2017 08:18 EST

Hi I'm struggeling to get the image I saved to the filesystem displayed on the image widget, anybody who knows how to do this? My code: function frmPhotos_oncapture_photo(camera){      try{          var lMediaName = "foto" + "-" + 1;          // set photo            var resizeimage = kony.image.createImage(camera.rawBytes);          ...

View all replies

found the solution by doing: var imgData = resizeimage.getImageAsRawBytes(); //the data you write has to be rawbytes  var dataAdded = myfile.write(imgData,false);

View full answer

Answered by: Roelof Koelewijn Mar 16, 2017
Answered

How to determin if Android device is a tablet

Question asked by Roelof Koelewijn on Feb 27, 2017 05:59 EST

Hi, I would like to know if the Device where the APK is running on is a tablet. Is there a way to determin this?

View all replies

Posted In
Kony Inc Kony Studio
Tags:

We have used the #ifdef for getting the device type like :             var flag=false;               //#ifdef tabrcandroid       ...

View full answer

Answered by: suresh jallipalli Feb 27, 2017
Answered

ios widget

Question asked by Daniel Rincon on Feb 22, 2017 07:51 EST

Hi! I have a combo box that show many options to select. The combo show is the native of each tecnology. For Android works well but for iOS when you tap and select a value, it shows again to select but I didn't tap. That happens until I repeat the select that...

View all replies

It was a code problem, we put the line "source.setFocus(false);" and it seems that it solved. Thanks

View full answer

Answered by: Daniel Rincon Feb 27, 2017
Answered

image resize

Question asked by Roelof Koelewijn on Feb 22, 2017 06:07 EST

Hi, I'm trying to find a way to resize captured images from the camera widget in code. I know there are functions in 7.2 to compress and scale images. But I'm wondering if it is possible to resize the image to a certain width and height. For example the captured image on an iPhone...

View all replies

Hi Roelof, You can use the maxSideOfTheImage camera property to control the size of the image, please check the below link for...

View full answer

Answered by: Shaik Mohammad Jabiulla Feb 23, 2017
Answered

kony.contact.add

Question asked by Arjun Sharma on Feb 21, 2017 05:25 EST

I am trying to add a contact using kony.contact.add for the first time but I am getting this error. var ob = {firstname:"John",phone:[{Mobile:["+919999999999"]}],postal:[{Work:[""]}]}; var res = kony.contact.add(ob); Error is: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.intern()' on a null object reference, Name : Unknown Error, stack

View all replies

Hi Arjun, Can you please try the below code and check in your application. var mycontact = { firstname : "John", lastname...

View full answer

Answered by: Shaik Mohammad Jabiulla Feb 23, 2017

Pages