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

Return the inserted id? #26

Open
seabannan opened this issue Jul 23, 2012 · 2 comments
Open

Return the inserted id? #26

seabannan opened this issue Jul 23, 2012 · 2 comments

Comments

@seabannan
Copy link

How do you return the inserted id when using the newRecord function

var record = model.newRecord({
        description: data.description,
        type: data.type,
        userEntered: data.userEntered
});

Ti.API.info(record);

record.save();

How can i get the id of the newly inserted row

thanks

@easy-dev
Copy link

did you check record.id ?

@seabannan
Copy link
Author

hi yes thanks for this working now ;)

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