insert into tabSingle using client.py

44 views
Skip to first unread message

Syed Qadeer

unread,
Sep 22, 2014, 9:48:00 AM9/22/14
to erpnext-dev...@googlegroups.com
Hello All,

i am facing an issue when i am trying to insert the rows in TabSingles table.

i am passing the data as

insert([{"doctype" : "Singles","field": "subscriptions","value": "syeds"}])

but it throws an exception saying "DoesNotExistError: [WNF] DocType Singles does not exist".

so please anyone can put some light on it. how can i insert something which is not a doctype.

Thanks
Syed

Rushabh Mehta

unread,
Sep 23, 2014, 12:56:25 AM9/23/14
to erpnext-dev...@googlegroups.com
Sorry tabSingles is not a doctype - should have been named as something different!

You can update a single type though.


Thanks
Syed

--
1. Please be kind and don't send large attachments
2. For issues, features requests use https://github.com/frappe/erpnext/issues
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/ee01f54d-7ba6-4eeb-855c-6dcb937b00f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages