getCurrentItem() doesn't seem to work

Anyone know how to add the id? Please let me know