Answered

Float Number

Questions 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

Questions 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

Questions 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

Questions 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

Questions 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

Questions 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

Questions 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

Questions 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
Answered

Image 'clicked' in Segment widget

Questions asked by Humberto Trinh on Feb 21, 2017 03:28 EST

Hi, We have a segment with 2 images (working as a button). We have configured onTouchEnd event that provides information about the clicked widget and location, but in addition to this, we need to know the row it belongs. For example a message in an alert when you click the first image in...

View all replies

I think this can be achieved using context.  function frmName_onclickImageButton(context){       var selecteditem = context.widgetInfo.selectedRowItems[0]; } First you have to create the function...

View full answer

Answered by: Roelof Koelewijn Feb 22, 2017
Answered

Assign Segment's internal control's Event

Questions asked by Ning Ye on Feb 17, 2017 15:32 EST

I have a simple segment with some switch widget in it.  See image attached below.  Is there a way to assign an event during init or preshow event to assign OnSlide event call back?  I need to access the row context so that it knows how to handle the event....

View all replies

Found a way to do it during the data load ...

View full answer

Answered by: Ning Ye Feb 17, 2017

Pages