If you take a look at the parent::save() method. Towards the end after a successful save, the Id of the row and whether a new record was created or not is saved to the state variable/session.
I think it's tablename.id & isNew are the two variables you are interested in. If it's not tablename then it's the modelname.id.
You will have to check the syntax for correct variable name, so you can get the information from the state variable/session.
Regards,
Neil
Sent from my iPhone
> --
> You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
> To post to this group, send an email to joomla-de...@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>
Check the validData for your Id. I can't remember if the item is saved at the end of save method in the model. If you try to get the model to give you an item, it might give a dummy one. I will check on that when I get home in a few hours if you are still having trouble with it.
Regards,
Neil
Sent from my iPhone