Menu
  • HOME
  • TAGS

Change the row color of Repeatbox

javascript,mobile,smartface.io

You can try this in onRowRender event of RepeatBox; this.fillColor = ((e.rowIndex % 2)=== 0 ? "#ECECEC" : "#FFFFFF"); Smartface.io Team...

Is it possible to deploy my project to Smartface emulator via Wireless network?

android,ios,debugging,emulator,smartface.io

Smartface App Studio supports "Device Emulator" over Wi-fi , but because of perfoamnce issues it is disabled for current releases. You can check it from File Menu -> Project Details -> Debug / Emulator Settings. USB Connection is always the best option in terms of performance and stability, in addition...

Inserting data to the sql database in smartface

mobile,smartface.io

You can do this in 2 ways: Can insert data with "Data.execute()" method (manual). You should put your query and arguments as parameter. First parameter must your sql query. Do not forget notifying your dataset to show your data in repeatbox. Can use dataset to insert or remove data in...

How to Create Tabgroup on smartface app studio

smartface.io

You can use textbuttons, place them at the top of the page, use as many as you need. And place container objects under these buttons. When you press a button, make the related container's visibility true and other's false. For example, when pressed button1, let cont1.visible = true; cont2.visible =...

Where should I put static text file?

android,mobile,smartface.io

It is not implemented in current release of Smartface App Studio. Also I have tried it before. It is Phase 2 for File Operations. You can download your static text file from the internet and can save it to the local storage. And read it from there. I can just...

How can I add object to the page dynamically?

android,mobile,smartface.io

It is very simple. Like other programming language just use add method. You have to give a parameter which is your obect. Take a look below. Pages.Page1.add(createButton); ...

How can I pass object properties to onSyndicationSuccess event while using SMF.Net.WebClient dynamically

object,webclient,smartface.io

I used your codeLines. I just add a textButton to Page1, and it works fine both for Android and iOS . In Global.js; function makeWebRequest(remoteURL, requestString, callBackFunction) { var myWebRequest = new SMF.Net.WebClient({ url : remoteURL, httpMethod : "POST", requestString : requestString, requestHeaders : [ "Content-Type: application/x-www-form-urlencoded"], onSyndicationSuccess : callBackFunction,...

Smartface: How to play an audio file?

smartface.io

I have sample app about Mp3 player. Make sure you have right file directory. Here this is my script. This works on Android, I did not tried on iOS. function Page1_Self_OnKeyPress(e) { if (e.keyCode === 4) { Application.exit(); } } var mp3path = ""; function Page1_Self_OnShow() { //Comment following block...

I cannot see my app when I debug my project on smartface free

smartface.io

The screen that you mentioned is just shown at the beginning of the app for some seconds. Then you can see your application page and use it. You should reinstall it on a real android device.

Change color of label in each repeatbox row

mobile,smartface.io

You can change the color of the Label object in repeatbox onRowRender function. onRowRender first write this code to catch the index of your Dataset: Data.DS_MyDset.seek(e.rowIndex); Now by seeking e.rowIndex, you get the same index from your Dataset. After that you can write an if block to check if Label's...

Can't find variable error on Smartface

smartface.io

I have got such an error like that. Probably, you defined that variable into the one of the functions that are in the Global file. You should directly define global variables into the Global file. function Global_Events_OnStart(e) { ... } --> For example you should define your global variables here,...

Nokia map with smartface

nokia-maps,smartface.io

Smartface App Studio uses native map components. I mean that; *For Android -> Google Maps *For iOS -> iOS Map...

Smartface 4.3.0. Emulator on iOS 8.3

smartface.io

I guess you heard about the restrictions in iOS 8.3. Yes, for licenced users iOS emulator will be available again with the next release, which will be ready soon. If you have a Mac, you can download the emulator project from the link below : https://github.com/smartface/iOS-Emulator And you can compile...

Default iOS back bar button item

ios,uinavigationbar,smartface.io

You must assign onSelected event of back item. Can you try this; var leftItem = new SMF.UI.iOS.BarButtonItem({ systemItem : SMF.UI.iOS.BarButtonType.cancel, onSelected : Pages.back() }); this.navigationItem.leftBarButtonItems = [leftItem]; ...

Global page in smartface

smartface.io

You can find it in the ~/[your_project_name]_data/Script/ folder. By the way, if you use version 4.3.x, the file name is Global_Smartface.js....

How can I stop all process if network connectivity lost in Smartface.io

android,ios,connectivity,smartface.io

With using isNetworkUp control you can use your own Error Dialog. If you don't write any codeLines to detect that network is up or down, It triggers Global_Events_OnError . function Global_Events_OnError(e) { switch (e.type) { case "Server Error": case "Size Overflow": alert(lang.networkError); break; default: SES.Analytics.eventLog("error", JSON.stringify(e)); //change the following code...

Error message “Unfortunately Smartface emulator stopped” is always shown on android device

android,smartface.io

This is a known issue for Android emulator, and it is already fixed. Next release of Smartface App Studio will be ready soon and you will be able to use it without facing this error....

Create image object programmatically

javascript,cross-platform,smartface.io

You can create a strecth type image with the codelines below; var createButton = new SMF.UI.Image(); createButton.image = "answer.png"; createButton.top = 5; createButton.width = 38; createButton.height = 38; createButton.left = 5; createButton.imageFillType = SMF.UI.ImageFillType.stretch; createButton.onShow = function(e) { alert("object created"); }; You can check more info from : http://docs.smartface.io/?topic=html/M_SMF_UI_Image__ctor.htm Smartface.io...

endValue as Percentage Usage

javascript,smartface.io

You can use it as String: Pages.Page1.ImageButton1.animate({ ... endValue : "100%", ... }); ...

I want to add my editbox data to a local table?

android,onclick,smartface.io,editbox

There is a very helpful document about dataset queries, you should check it : http://www.smartface.io/developer/guides/data-network/sql-query-execution/ Try the code below : var myEditbox = new SMF.UI.EditBox({ left : "10%", top : "20%", text : "" }); var myButton1 = new SMF.UI.TextButton({ left : "10%", top : "40%", text : "create insert",...

Is there any setting like “adjustViewBounds” on Smartface?

smartface.io

If you use repeatbox and wants to change rowHeights related to image sizes, you can use customRowHeight method for repeatBox. like ; var rBox = new SMF.UI.Repeatbox(); // adding items to repeatbox /* If this property is assigned to a function, this function will be called. This function results will...