Retreive a value from the Database without using the wn.model.get

44 views
Skip to first unread message

Syed Qadeer

unread,
Feb 19, 2014, 2:18:21 AM2/19/14
to erpnext-dev...@googlegroups.com
Hello All,

i would like to retreive a value from the tabItem , using a query, but i am not sure, how can i connect to the server to retreive the values

and i am using the javascript to retreive the values from the server.

Thanks.

Syed Qadeer

unread,
Feb 19, 2014, 2:19:05 AM2/19/14
to erpnext-dev...@googlegroups.com
i cannot use the wn.model.get as it looks for only in the locals[], if it is not available in locals then it will return empty array [].

so i want to retreive the values directly from the server.

Nabin Hait

unread,
Feb 19, 2014, 5:23:45 AM2/19/14
to erpnext-dev...@googlegroups.com
You can use wn.model.with_doc function which will return full doclist of a doctype

--
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
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/895d909f-a3f7-4410-a475-1679bc4363ec%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages