Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TouchBooksAlloy Sample Issues #92

Open
daveeel opened this issue Jan 8, 2015 · 6 comments
Open

TouchBooksAlloy Sample Issues #92

daveeel opened this issue Jan 8, 2015 · 6 comments

Comments

@daveeel
Copy link

daveeel commented Jan 8, 2015

Hi, I'm a Ti developer with a few offline-only Apps experience. Starting to explore apps like TouchBooksAlloy.

I could import the sample project to Ti Studio, however the "Run" button is dimmed for the project while it's fine for my other projects. CLI building is okay though. Since the sample is said to be "full source", I'd like to know what's missing ?

Or is the sample supposed to build up from an empty Ti Alloy project ?

Thanks!

@daveeel
Copy link
Author

daveeel commented Jan 10, 2015

By manually creating a Alloy project in Ti Studio and copy the src files over, I am able to compile & run the sample from within Ti Studio. It's fine to create new books and replicate to remote server. However the App could not display books. Have to check what's wrong.

@daveeel
Copy link
Author

daveeel commented Jan 28, 2015

I revisited the sample again. Having a Cloudant DB setup. I could add book from the UI and see Cloudant DB get updated to different versions by changes in the edit book UI. Also see the App receiving update_from_server event too. Even attachment got synced to server as well.

However same as before, the book list never shown. Traced and found that the $.tableView.refresh was never invoked.

What could go wrong?

@daveeel
Copy link
Author

daveeel commented Jan 28, 2015

I can also see books.cblite time stamp being updated in the iOS simulator directory too. It seems that fetching is not triggered.

@daveeel
Copy link
Author

daveeel commented Jan 28, 2015

Well, finally get the App running as expected ...
Found that the sample App source of models/Book.js is outdated. Such that the latest changes mentioned here: https://github.com/pegli/ti_touchdb/wiki/Release-1.1.0-Changes are not reflected.

@daveeel daveeel closed this as completed Jan 28, 2015
@pegli
Copy link
Collaborator

pegli commented Jan 28, 2015

I'm reopening this issue to remind me to update the sample app. Sorry you had so much trouble getting it working.

@pegli pegli reopened this Jan 28, 2015
@daveeel
Copy link
Author

daveeel commented Jan 29, 2015

Thanks Paul. 👍

Your solution & couchDB fits my use case so well, such that I can't give up digging your sample sources, I do learn quiet many new concepts and programming techniques from the happy "troubles".

By the way, directly using your sample code, the "Run" options are grayed out in Ti Studio UI, however the sample App could be launched by going through "Run Configurations" in Ti Studio instead of CLI. There must be some missing new stuff required by Studio since your last code. I haven't figured out them yet, but it should be better to recreate the Alloy project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants