I’m trying to check if a doc has been saved atleast once using this guide but I always get undefined
as the output
Please give more details about what you are trying to achieve.
I’m trying to check if a doc has been saved atleast once
Thought this was clear, sorry.
So I am at a doc, I want to check the save status of it. Basically equivalent of self.is_new()
in server side. I tried using
cur_frm.doc.__islocal
but it gave me undefined
if you have new doc it will be 1
Ah thanks. You’re right. Though I was expecting a 0
/ False
rather than undefined
for already saved doctypes