Community Questions & Answers
Possible bug with iPhone tableview search bar
The iPhone version of my app is crashing. This happens with Ti 3.1.0 but not with 3.0.2. The view consists of a window containing a table view and a search bar. when the window opens a request is sent to the server and data is retrieved to populate the...
TableView and SearchBar Bug on TI 3.1.0 => resolve/downgrade on TI 3.0.2
Environment: - iOS 6.1.4 or Simulator 6.0 - Titanium SDK 3.1.0 -> BUG - Titanium SDK 3.0.2 -> NO BUG - Alloy Project Console Error: ~~~ [DEBUG] : 2013-06-12 11:28:46.499 Freightplus[10532:c07] *** Assertion failure in -[UITableView...
How to perform a search on the Database using searchBar
I've created an app for iOS and android platform which includes an sqlite database. I'm using tabBar and I've created a new window containing a searchBar. Can anyone pls tell me how can I use this search bar to search the database and display the search...
How to update the search Table
Hi all, I've created a app for iOS and android platform. I'm using tabBar. I've created a search window containing a separate seachBar and a table for recent search items. whenever i type in the searchBar i get the result in a new window but the problem...
How to refresh the Table View Data
I've created an app using tabBar. I've created a separate search Window Containing a searchBar and a TableView to display the recent search items. Whenever the return event is fired a new window called searchresult.js opens up displaying the data searched....
How to enable the part search
I'm using tabBar for an iOS and android app which includes sqlite database. I've created a separate search window with a searchBar in it. This searchBar searches for the data in the database. But I'm facing a small problem. I have a table name subject in...
How to perform the part search
I'm using tabBar for an iOS and android app which includes sqlite database. I've created a separate search window with a searchBar in it. This searchBar searches for the data in the database. But I'm facing a small problem. I have a table name subject in...
Search bar over lay is not visible for android
Hi I created the search for the IOS and Android attached to the tableview. when i run the application on device i can see overlay on IOS not for Android. How to get overlay for search bar to the tableview android @thanks in advance
SearchBar with a TableView Header
Hi, It appears there is a small bug on Alloy? or maybe I am doing something wrong here. But if I have this code: ~~~ <TableView id="table" onClick="openDetail" filterAttribute="fullname"...
SearchBar as actionView
Has anyone got the Android search bar working as an action view? I can get the icon to show up, but it will not expand so I can enter in some text. I expected the below code to show me a text box where I can enter my search term, instead I get the search...
Hide tableView row header in Android
I am using table view `filterAttribute` for search purpose. During the search operation unable to hide table row header (in iOS table row header will not be visible during the filter process). Here I have attached screen shot for reference. [output...
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...
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...
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 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...
Tableview and search bar problem
I have a tableview which have a search bar. The window backgroundColor is black while the table background color is transparent. The color of text in table is white. Now when i do a search, by default the search result backgroundColor is white. So, my...
Setting the Font Size and Family in an Alloy Application
Hi there- Is it at all possible to set the font family/size of a SearchBar control for an Alloy (or other) application? In addition, I am also looking to change the default background from the white inset...I am assuming that an image is the only way to...
Search function on a ListView
Is there any plane to implement the "search bar" capability for a ListView working the same way it works with a TableView? I really need this since using ListView saves 49Mb of my device memory using the same information and showing it exactly...
When rotated device hide search bar
I have added search bar on the current window . its working fine but when i rotated device search bar hide. any solution ????
"backgroundImage" for searchbar
The documentation states that you would be able to set a background image for the searchBar view. My own tests, the Kitchensink and the rest of the documentation for the searchbar view make me doubt that this is actually accurate. Anyone know the facts?
Remove empty rows from table
I have implemented search functionality on the table. when we search it working file but empty rows are exists on table search result. when we scroll more empty rows are show. I want to show only search result not with empty row.
Keybord Search button event
Hi I want to search functionality on the table view with pressing search button on the keyboard . I have added search bar on the table. search functionality is working fine . i want to search functionality on the search button(key) on the keyboard. I cant...
Try to create pins based on JSON data
Hi, My question is, It is possible to create a searchbar to write an address, and when tap a button, an annotation is placed on a map? Thanks
search bar and google map annotation
Hi, I create a serachbar with a tableview, i can detect places , i created also a map , i want when i write the name of a place in my search bar, an annotation is placed in the map, here is my code: ~~~ win1 = Titanium.UI.createWindow ({ ...
Tableview +Searchbar
Hi, I create a search bar and i want an autocomplete search, this work fine in my code, but i my tableview is attached to the background, i want it attached to the search bar and a have another problem when i make a search on the searchbar apres taping 4...
Listen for a 'clear' event on SearchBar
Hi I'm developing an iPhone app in Titanium Studio 3.0.2 and I want to react to the user clearing the search bar, i.e. pressing the little 'x' button on the right but I can't find anything for this in the API docs. I know you can add an actual Cancel...
Searchbar queries SQLite Database and brings up results in a new window
Hello all! I'm have a searchbar and a SQLite Database with a few columns, of which one of them is the "name" column. What I would like to do is to have the user type in a name in the searchbar to search the database for the row that matches what...
Stretch a searchbar on a navbar
Is there a way to stretch a searchbar control in the <TitleControl> part of a Window? I want it to stretch to fill the navbar area when it is tapped.
Style a textfield like in the searchbar?
Hey, i wanna create a custom searchbar - everything works fine... But how the hell i can style my textfield the same way it is made in the default searchbar textfield ?? (I mean this very rounded corners...) Any idea? Best, Nico
Android SearchView icon
1. Application type: mobile 2. Titanium SDK : 3.0.2.GA 3. Platform & version: Android 4.0 4. Device: Android emulator , Asus transformer 5. Host Operating System: Ubuntu 11.10 6. Titanium Studio: Titanium Studio, build: 3.1.0.201303091040 Hi all, I...
Tableview header in search
Hi, I'm using a tableview with SearchBar component in iOS app. My items are divided by header (category, essential). How can i keep header in search result of SearchBar component ?
Android: searchbar opening virtual keyboard on application launch
We have an Android application with a search bar on the first screen; on the device, the search bar is being focused automatically on launch and launching the virtual keyboard. Is there any way of stopping this? We've tried all kinds of hacks to no...
searchbar return event not firing
I have a tab with a searchbar, I've created it independently and inserted it into the window and created it as part of a tableview and no matter what way I do it I can get focus events to fire but never 'return' events so I can't actually execute searches...
Search rows need help with values
Hello! I have a database were i get my rows. I made a homemade searchbar so i dont get that white view from the search bar. I need help to set the right Values so my search goes trough the tableview row names. Its for Iphone SDK 3.0.0. Would be forever...
Ti.UI.SIZE is not taking actual size when linking table view with searchbar
I have set the height of table view as Ti.UI.SIZE and included the searchbar with tableview using attribute search in tableview. Ti.UI.SIZE is calculating the size of tableview only, not considering the size of searchbar. Is there anyway to include the...
Searchbar with database columns
Need help to get my database to work with my searchbar to find the names in the rows. I dont get an error but when i search for A all names disapair. Its for iOS sdk 6. my code: ~~~ var searchTextfield = Ti.UI.createSearchBar({ top: '20dp', ...
How to use the SearchBar with a TableView in Alloy
I've bound a TableView to a collection and added a SearchBar as below. What is the best way to apply the search to the collection? Should I handle the change event on the SearchBar and use setData to rebind the data to the table? I haven't been able to...
No search results in Tableview
I'm having a little trouble searching a table with the iPhone simulator, using code based upon the Kitchen Sink example. The table displays using data loaded remotely from my website and displays a tableview. The search bar displays at the top and...
Alloy tableview and searchbar
Hi, A strange problem appears when I want to set "search" attribute to tableview. This is my Alloy xml: ~~~ <SearchBar id="searchbar" height="43" /> <TableView id="societies"...
Android, hide keyboard of search bar when window open
Hi, I have a problem, all of my windows that has a search bar (used in tableViews) get focused when the Window opens so the keybiard is shown. (at least on simulator). calling search.blur(); in the open event of the window doesn't hide it. it seems that I...
TableView search filterAttribute on Android
Just ran into this - seems like a regression in 1.8.0.1 for Android. On Android, if you designate a filterAttribute in a tableView like `filterAttribute: 'filter'` and create tableViewRows - if you don't include 'filter' in the call to ~~~ var...
Search throug the views without using tableVIew
I am building android mobile application using titanium sdk:2.5.3 android 4.0, in ubuntu. I want to apply search on the views listing in one of my page, how do I use the search bar in it? I am not using TableView. What I have to do with it?
Searchbar only on scroll
Hi, i'm new in Titanium. I use searchbar in my tableview (iOS), but I need to show it only when user scroll down. Same behavior of iPhone message list. Is it possible ?
Search bar and iOS guidelines
Hello, anybody knows if iOS allow to use search bars with not rounded corners ? I dont really understand the guidelines...
tableView.filterAttribute = 'filter' not working in android, if called out..!!
Application type: mobile SDK: Titanium SDK version: 2.0.2 (05/30/12 10:21 2ff31a3) Platform & version: android 2.3 Device: Android Device Host Operating System: OSX 10.7.4 Titanium Studio: build: 2.1.1.201207271312 Hi there, guys i'm facing an issue...
Problems with blur() on searchbar attached to tableview
Hi all, I'm having some problems with a searchbar attached to a tableview. I want the searchbar to search my sqlite database and change the tableview data to the data returned by my sql search. And that works just fine - my problem is, that after the sql...
SearchBar and TableViews
Hi everyone! I have a question regarding the positioning of a table's SearchBar on Android. Is there any way I can show the SearchBar (connected to a particular tableView) in a separate view? I don't want to show the SearchBar "stuck" on top of...
Change Ti.UI.SearchBar returnKeyType (iOS)
Hi guys, The title pretty much says it all. I want to change the `returnKeyType` for `Ti.UI.SearchBar` so that it says "OK" instead of "Search" in the lower right corner. Is this possible? Thanks in advance.
SearchBar with Scopebar filter
__Q) Anyone know how I can implement the scope bar in titanium?__ The docs shed no light on the subject from what I can see. I.e. This thing from the iOS guidelines page: __Scope Bar__ A scope bar—which is available only in conjunction with a search...
Tableview click changes search bar - how to preserve?
I have a popover that gets it's tableview by calling a function. The tableview has a defined search bar which works fine. When the user clicks on a row in the tableview however, the search bar loses focus and the original unfiltered tableview appears. I...