Community Questions & Answers
Label selected shadow color
I have a tableViewRow, which contains a label. The label has shadowColor and -Offset. If I tap the row, it will highlight, the label adjusts it's color to highlightedColor, but the shadow remains the same. Is there any way to change the color of the shadow...
SELECT...FROM...WHERE...AND...AND...AND
Hi. I'm experiencing some problems with a SQL expresion: If i do something like this it works correctly ~~~ var filas=db.execute('SELECT Nombre, PrecioMedio FROM restaura WHERE PrecioMedio>'+(precioSeleccionado-5.5)); ~~~ However if i try to...
pickerRow
Hello PickerRow I have a problem with, is that when you add new options and HTML, the leaves added so adding them, I show a bit of my code ~~~ cadena.addEventListener('change',function(e) { //Hacemos una condicion si existe el elemento...
Doing SELECT from a database -->Uncaught SyntaxError: Unexpected identifier
Hi. When i test a program i receive an error in the last one of the following 3 lines: ~~~ Ti.Database.install('Resources/restaurantes.db','restaurantes'); var db = Ti.Database.open(restaurantes); var filas=db.execute(SELECT * FROM restaurantes) ~~~ I...
selectores
Hello Titanium Studio for Android platform, has <select> selectors as html?
Give the user the ability to choose language
Hi guys, I've got some questions concerning changing the language of my app. Is short, the app I'm building is a city guide specifically made for (foreign)students who are studying in Antwerp in Belgium.The user should be able to choose what language they...
How to select a random line from an sqlite request
Hello everyone, I am trying to select a random record from a sqlite request, like that: ~~~ var rows = db.execute('SELECT * FROM testdb ORDER BY RANDOM() where level="'+ levelq + '" LIMIT 1' ); if (rows.getRowCount() > 0){ while...
problem with a column into my DATABASE
hello everyone, I am trying to access my database with this Titanium code: ~~~ var win = Ti.UI.currentWindow; var button =...
Select a Photo Album and all its images
How can I select, with the touch of the photo Album name, all the images within that folder? I need to be able to acquire all the images within a Photo Album that the user will select.
Howto select specific AVD in Ti Studio?
How can I select a specific AVD in Ti Studio for testing? I want to pre-configure my AVDs in the Android SDK Manager and then use them for testing in TI Studio. The problem is that TI Studio always creates new AVDs and won't let me select the already...
Dropdown Lists (html select) in Android Webview
While testing on a Verizon Droid phone and also verified in a 2.0.1 emulator I was unable to get a drop down list to appear when clicking on one inside a webview.
Getting empty resultset in database execute
in app.js ~~~ Titanium.Database.install('highScores.sqlite','highScoresDB'); ~~~ in scores.js ~~~ var db = Titanium.Database.open('highScoresDB'); var scores = db.execute('select * from scores'); Ti.API.info(scores.rowCount); ~~~ console prints 0! In...
Bug in tableviewrow with selecting, probably a Titanium SDK bug?
Hi Guys, So i got my App in the iTunes Store finally but there has been an annoying bug which i can't seem to fix. Its about this app: http://itunes.apple.com/nl/app/psx-sense/id488587133?l=nl&ls=1&mt=8 And the bug is that when u are in the first...
How to implement checkboxes into a tableview ?
Hi, I want to have a tableview with a checkbox on each row to allow selecting a multiple items list and return an array from the ones selected when pressing a button Can anyone tell me what control can implement that? Thank you
IS DB fail or tableview fail ?
I setup a toolbar button ,click it will add a tableview ,the tableview's data is use db/while to get * then push to tableview's data. Now I have a problem when I click then tableview show on APP,I press iPad HOME button to leave this APP ,then click this...
Dissapearing textlabels on click in a custom tableviewrow
Dear people, Im loading a tableview whitin a scrollableview, everythings works fine, but when im selecting the row there a disapearing some views and labels whitin my custom row when the selection-background has been shown.... (weird behaviour) Are there...
Looping through Tableview to toggle selected row
Hey all. I've been hoping/waiting for the awesome appcelerator team to create the functionality similar to iOS MAIL where you can click EDIT and select multiple rows. I can't wait much longer so I am trying to do it myself. Each of my rows have the...
sqlite 'LIKE' query help!!
Hi experts,, This statements makes syntax error nera '%' . Please tell me what is wrong... Thanks !! ~~~ var dbRs = hDb.execute( "SELECT VER, KEY, KEYDAT, DATFILE FROM Dic WHERE KEY LIKE %?% COLLATE NOCASE", sKey ); ~~~
clicking on the button of a tableviewrow triggers just the event for clicking the whole row...why?
I am trying to acomplish the folowing I have 2 buttons on the right and some text on the left of each row I want different events when taping on each one...but the whole tablerow selects itself...then deselects iself...
backgroundSelectedColor firing unexpectedly
Android SDK 4.0, Ti SDK 2.0.0v20120302, Test device Galaxy Nexus I have a table row, with a view added to it. When the table row is touched it fires the view to change its background colour, even though you don't touch anywhere near the view in the...
database in nested tableview
I am trying to call out my database and display in the tableview. i can call out the distinct column. but when i want to parse the rows in the distinct columns, i cannot get them to SELECT it and display. ---- file #1. ------ var db =...
Selecting text on table row to copy it?
I am developing an iOS app. How can I select text on a table row so that the user can copy it? Thankful for all help!
Select row in table view on androids (1.5.0 RC1 SDK)
I'm struggling with the row selection in an android application. So I looked to the kitchen sink samples. Same behavior in the table view layout 2 sample: the rows only gets selected if you don't touch an element of the table row. If you touch an element...
How to make a select list with Titanium ?
Hello, I would like to know how to make a select list like an HTML select with Titanium? Thank you, Alex
Selecting images in the phone?
Hello, I have an app that take a picture, that picture is saved to the phone and also added the path of the picture too SQLite. My problem/question is: I want that when the person enters again the app, the pictures taken from the app (only those pictures,...
Drop down list disabled in Android Webview
This code works fine on the iPhone but does not work on Android. Unable to use the drop down list. I have tested it on many different web pages with the same results. Titanium Developer 1.2.1 Titanium SDK 1.2.0 and 1.1.2 Android 2.1 and 2.0.1 // this...
setBasicAuthentication and selects html pulldowns
Hy, I need an authentication on my dev server to call my external pages. I use the setBasicAuthentication function (webview object) to verify me on the server ... But when i use this functionality all my select boxes dont work. When i touch this box they...
Use a Picker to Filter a table view?
I have a table view populated with an SQL Select * statement from a SQLite DB. Works great. I'd like to offer a way to filter the contents of this table view by first letter since it's a long table. I know how to make a new SQL request to do this...
Multi-select pick lists?
I have a iPhone app requirement to present the user with a series of views where they will make multiple selections and I will be adding the selections in each view to its own array. Think of a recipe, where they may need to choose vegetables on one step,...
Select a row from a table in parent window, and change stuff
Hi, I have a table-view, which I can click on. When I click it a new window opens with other stuff inside. Here I have a button, and when I click it I want the row, at the table, to change an image to something else. Eitherway, I cannot "select"...
SQLite SELECT with LIKE condition help
Hi, Im trying to filter my sqlite database, but I get an error when I try to filter using LIKE conditions. **SQL sentence:** var resultSet = conn.execute("SELECT DISTINCT(nombre) FROM elementos WHERE nombre LIKE '%?%' ORDER BY nombre ASC",...
Selecting Parent Element for Modification
Here's what I want to do: I want to be able to create a whole bunch of rows in a table view, with an image in each row, and when an image of one of the rows is clicked, I want to be able to access the information of the row that the image is in. So,...
Picker with Custom Labels/Images = No tap select
When using custom labels or images in picker rows, the tap to select doesn't appear to function. The swipe up and down does, but not the tap. You can see this in the Kitchen Sink picker custom labels & picker custom images demos. By comparison you can...
no 'select highlighting' while use of backgroundGradient (iphone)
hi. if i am using backgroundGradient an a tablerow it seems to overlap the 'select highlighting' or better that color changing if a row is selected. even if i set selectedBackgroundColor. do i have to code that myself if i use the backgroundGradient, or...
TableView > Enable EDIT Mode and SELECT multiple rows
I'm looking to do something similar to what you see in MAIL where you click EDIT and little circles appear on left side. Then you can select multiple rows and run an action on those rows (delete, move, etc) from a menu at the bottom. I know there's EDIT...
Tablerow variable for SQL WHERE variable
I have a tableview that shows a bunch of rows based on an array. When a user selects a tablerow, I want to be able to use a variable from the tablerow in a SQL SELECT statement as the WHERE variable. A simplified example is this: ~~~ var points =...
Titanium.UI.TableView.selectRow failing on Android
I'm trying to select a table using the following call: `table.selectRow(indexVar);` Which works fine on iOS but crashes Android with the following message: Runtime Error: TypeError: Cannot call property selectRow In object...
multiselect picker
Hi Folks, can anyone tell me how to implement a multi-select picker for iPhone. I have a button, clicking on which I wanted to display a modal window which consist no. of options to choose, at a time multiple options can be selected.
Select textfield text on focus
Is it possible to select(and copy?) the text in a textfield when the textfield is focussed?
Show window on click
Hello all, I've been trying this all day and I just get can't it. I have a table view that pulls data from my database, but I can't figure out how to click on a row and show the details in a new window. I tried several event listeners to no avail. Any...
Defaulting to Tab 2 not tab 1 in 1.3
I have two apps that I know work and on sale in the iTunes store. I tried re-compiling them under 1.3 and they both exhibit the same issue. Both are using tabs and even though the code specifies they should open with Tab 1 being selected and on view they...
Showing 1-41 of 41