Insert into tabSingle using client.py

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


  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-forum+un…@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.

On 22-Sep-2014, at 7:18 pm, Syed Qadeer <sd...@gmail.com> wrote:

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.

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-forum+un…@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.


  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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/51BB6126-269F-4129-BA36-739944EB4F76%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.