Community Questions & Answers
how to access custom row(s) data via Alloy ?
hi, ive tried many/multiple ways to get this to work but just cant as yet, so would appreciate anyone's assistance. i have a view as follows : ~~~ "LBProw.xml" <Alloy> <TableViewRow id="LBProw" > <ScrollableView...
Database results from different tables on the same line - manipulating TableViews
I want to display random strings from different tables within the same line/row to form a complete sentence. I can return one result per line but cant work out how to manipulate tableviews/rows to include different pieces of data on the same line. I have...
Identifying a specific tableViewRow
I'll try to be short. I have a database which I turn into a tableView with sections and rows. The rows are all mixed up. I need to retrieve a specific id that allows me to identify its primary key in the database on click. Using the rows position in...
How to change the attributes of window in Titanium studio
I have created an app using Titanium Studio...i'm using tableview to display the contents of my database and now i want to customise my window completely... for eg: i want to change the nav bar completely with some cool back buttons...and i also want to...
Tableview and modal windows data
Hi there, I have created a tableview, and then when a row is clicked it opens up a modal window. This all works perfectly and as it should. But, I am having trouble sending data to the modal window, can this be done? I want to send the date that is...
'swipe' of tableview fired, but row/index properties are missing
os:mac os platform:android sdk:3.0.2.GA `swipe` is fired, but properties as `e.row`,`e.index` are missing in the event. but in the document, it says `swipe` event of the tableview has row/index...
TableView and No Data label
Hi, does anyone know how to add "No data" label to middle of the table view? I need same thing like is in the contacts (iPhone native application - [screen](http://oi41.tinypic.com/4hb2c3.jpg)). Now I am using: ~~~ var row =...
problem opening tab window from tableview
Hi, I can open this window directly from the tab which runs correctly but it causes this error if I try to open it from a tableview. ~~~'undefined' is not a constructor (evaluating 'new FormHelper()'~~~ I am using Titanium 3.1.0GA but have tried with...
Android table view selectRow not highlighting table row?
I have a table view with table view rows that has a selectedBackgroundColor set. When the user clicks on a row I want it to select the row and show that selectedBackgroundColor. It works fine in iOS but in Android the row's background does not change to...
Keyboard will not stay in numeric/symbol layout
I've been maintaining an app that uses a TableView for a input form, with textFields on each row to take input. But recently a behaviour has cropped up for iPhone that is annoying our users. When they are inputting into a textfield, and they swap to the...
Prevent touchmove on tableview after touches start
I am implementing a Facebook-style sliding menu for navigation in my app. It works almost exactly the way I want, except for when a tableview is the main window. When the main window is a tableview, as long as the touchmove event isn't vertical in nature,...
Collections & Data Bindings
Hi All, Newbie Question Number 2. I have a collection: ~~~ exports.definition = { config: { columns: { "player_id": "INTEGER PRIMARY KEY AUTOINCREMENT", "first_name": "TEXT", ...
Quickie Newbie Alloy Question
Hi All, Working with Alloy for the first time and loving it. Im still migrating my brain to the new xml markup and just wanted to know if there was a way you can attach a keyboard toolbar to a textfield in the view xml. ~~~ <Alloy> <Model...
titanium non-swipeable taleview
If you look at the settings app on the iphone, it has multiple table viewes one under another. tough when I swipe the screen, I son't swipe the rows of each tableview, but the whole screen. Can I create a tableview, that is just a table, and does not...
Move and Delete mode in TableView simultaneously
Hi. I can't find way to get TableView in 'move' and 'delete' mode simultaneously. It is possible in phone's favorites contacts - you can move or delete the row, but you cannot put TableView in 2 modes in Titanium.
Buttons on tableView using tableViewRow
I have a following code snippet: var win = Ti.UI.createWindow({backgroundColor:'white'}); var row = Ti.UI.createTableViewRow(); var table = Ti.UI.createTableView({width:200,height:150,borderWidth:1,borderColor:'red'}); var but =...
Count hasCheck in multiselect(tableview).
Im having a problem with the counting of how many hasChecks are "true" in a multiselect(tableview). I need to limit the amount of options selected. Code: ~~~ var mSelOpts = Ti.UI.createTableView({ ...
Table Search View
Can anybody provide me a simple working example of the table search view...i have written a code to search in the table view using a simple textfield and its change event.. it searches well.... but infact due to the refreshing of the table ui... i dont get...
Tableview - modal transition error
Hi, I'm implementing an RSS reader with a tableView. Clikking a row open (modal transition) a new window with a browserView pointing at the RSS row's url. When closing it come back to table view. But, if I click again in a row the App crash: ~~~ [DEBUG]...
TableView and Table View Row
HI i'm trying to add row to table using for loop but it is not happening find the below code ~~~ var tabelarray = []; //alert('Sorry, we could not upload your photo! Please try again.'); var table = Ti.UI.createTableView({ backgroundColor...
Child tableview doesn't still checked
Hello, I'm using a tableview for show some others tableviews (It's a podcast window) and i'm using hasCheck for know what podcast is playing. When I play a podcast (in the show's child window), going back on shows list and return to the show I'm playing,...
Four thumbnail image views per row in a tableview
Hi, i want to show four thumbnail images per row in table view with some space between them... Anyone can share example ?? Regards
Yes... another TableView in ScrollView question
Are there any suggestions for getting a tableView to be scrollable within a scrollView? I've tried setting canCanelEvents on the parent scrollView but then that causes issues with not being able to scroll at all if you happened to try to scroll up while...
Reordering rows with gestures (Android)
Hi, I've a table with some data and I need that the user can reorder the rows without using Up Down buttons on every row. It would be nice to use drag&drop other kinds of gestures. Using this example, how I'd do it? ~~~ var win =...
Issue with TableView heights & Window animation on iPhone 5
Hi guys, I have two weird issues on an app i'm upgrading so it is iPhone 5 compatible. Both of these issues did not occur on iPhone 3.5 inch screens. For reference, I'm using the latest Ti SDK. 1. First issue is my app no longer animates when clicking...
Missing components in the table when scrolling
Sample is simple to test. Keep scrolling and at some point you will see the textfield or switch missing from the row. A bug? ~~~ var win = Ti.UI.currentWindow; var btn = Ti.UI.createButton({ title :...
TableView inside a ScrollView
I'm trying to write a chat window, similar to WhatsApp's chat. For that, I initially wanted to put a bug ScrollView, and in it two elements: a TableView for all the chat bubbles (90% height for example), and a view for the TextField/SendButton (10% height...
TableView in Scrollview doesn't scroll (Android).
Hi, I have a problem (under Android) I have to put a tableView inside a scrollView. The problem is that it doesn't allow me to scull the tableView. here's the code : ~~~ bgView = Ti.UI.createScrollView({ contentWidth: 'auto', contentHeight:...
TABLEVIEW INSIDE SCROLLVIEW
Hi everyone...!!! I have got a small problem which seems to become really big coz i can't find any solution to that.. Please help me with that one.. I have got a tableview of fixed height lets say of '200' inside a scrollview, the problem is that I'm not...
TableView inside ScrollView won't scroll on Android
I'm trying to achieve a "Pull to refresh" functionality on Android but having little luck. I've looked at the GIT suggested in other threads ([http://gist.github.com/903895](http://gist.github.com/903895)) but it's got the same problem that I'm...
Width of SearchBar in the TableView with index
Hi guys I've got a little problem with index/search bar in the tableview. I have no idea what is again wrong. To the point: xml: ~~~ <Alloy> <Tab> <Window> <RightNavButton> <Button...
showing data in a table view
Hi i'm trying to show some data in table view when i clik in a button but it didn't work this is what i do ~~~ // this sets the background color of the master UIView (when there are no windows/tab groups on it) var win = Titanium.UI.createWindow({ ...
Textfield on TableView loses focus (Android)
Usecase: A tabgroup with 2 tabs has a tableview on the 2nd tab with a textfield on a row. After a touch on the textfield the keyboard pops up but then the textfield loses focus(ie. there is no cursor in the field). (Also when using...
Filter tableView modifying searchBar value programmatically
Application type: mobile Titanium SDK: 3.X Platform & version: iOS Device: iOS simulator I have created a new window with a tableview with a search bar attached. On load event of the window, I set the focus to the search bar and set the value I want...
Tableview swipe to delete
Hi guys, I know that in tableview view, if i set the editable to be true, i can swipe the row i want to delete and the delete button will appear. But now, I want to know if I can add other button when i swipe? For example, when i swipe the row, instead...
Perfromance issue question regarding scroll view and table view in a scrollable view.
The set up --------------- I am developing a horizontal news feed using the scrollable view. In each view, there is a background image that can be scrolled horizontally in a scroll view. Additionally, overlaying the image is a table view with about a max...
TableView Fit To Contents
Is there a way to use a TableView and have it size to its contents? I have set the background color and then added four rows (using Alloy) and then set the height of the entire TableView and each row explicity using DIP sizes. On Mobile Web and Iphone it...
leftImage issue with TableView on Android
I'm seeing some strange behavior with the TableView functionality in Android and Titanium SDK 3.1.0.GA. I have a list of exhibitors and if the user has selected a particular exhibitor as a favorite I set the leftImage on the tableview row to a star icon. ...
TableView method SetData makes searchBar width 100%
Hello, i'm trying to add a button (a lbl that acts like a button) at the right of a searchBar. Similar to this post: http://stackoverflow.com/questions/13974616/customize-cancel-button-of-searchbar-in-titanium It works well if I only have the searchBar...
Master Detail template - can't I show the price
Hello I've been trying to work this out all day (I'm not very bright!). What I want to be able to do us use the tableView functionality to show a variable name and on the same row the value. It will also need to be hasChild:true so that the value can be...
Touchstart & touchEnd for ios not working
Hi, I have a tableview with touchstart and touchend events, but not working good. When I do click a row this should go to new window but only goes once if I do click for second time in this event no does nothing. It is as if locked. ~~~ function...
can I order my day?
There's a way to order an tableview with day's giving in that form: `2013-02-21T12:01:17.000Z` ? Thanks
JSON to TableViewRows with Headers/Filtering in Alloy project
I have a JSON object that contains a collection of records that all have date properties. I'm able to easily create a TableView to display the collection. I'd like to add custom headers to the TableView for each date. It needs to be custom headers because...
Should I convert TableViews to ListViews
We have an existing project containing a number of TableViews. I'd like to convert some (if not all) of them to ListViews due to a number of minor issues with TableViews. However the functionality and layout of the tables cannot change significantly, so I...
refreshing a table view in a tabview after returning from a window
In my tabview, the first tab's window is a seperate js file. which i linked to this first tab using the window url property. in that window i have a table view. from the first tab's window i open a new window which has the data related to the table view....
Android SDK 3.1.0 problem with TableViews and Labels
Hello, this is my code. ~~~ var tableViewNot = Titanium.UI.createTableView({ data: [], backgroundColor:'transparent', maxRowHeight:'68dp', minRowHeight:'68dp', top:'80dp' }); function rellenaTablaProd(itemList){ dataNot = []; ...
View is displaced after focusing a window
Sometimes the tableview displaces itself from the origin position (left: 0), after the main window is opened for the first time or gain focus (e.g. popping the child window). The tableview moves to the left till the right edge moves to the half of the...
Tableview Index styling.
Is there anyway to stylise the tableview index header?
Can't click tableView row on empty space when checkbox added into the row
hi, i make simple tableview from this code: ~~~ function addTableViewRow(/*String*/ keterangan, /*String*/ jumlah, /*String*/ amount){ var tableViewRow = Titanium.UI.createTableViewRow({ height:'35dp', backgroundColor:(rowCount%2 === 0) ?...
Assertion failure in UITableView _endCellAnimationsWithContex
I got this error and I don't have any idea what it means I am using Titanium 3.1.0.GA I's happening when looping through a table and I am trying to push a value to an array stored originally in a tableviewrow object ~~~ [99982:1c103] *** Assertion...