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

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.



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

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/e4d97a7f-72d2-40c1-9818-ffc59f7dd581%40googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
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.

On Wednesday, 19 February 2014 10:18:21 UTC+3, Syed Qadeer wrote:
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.



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-forum+un...@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.
You can use wn.model.with_doc function which will return full doclist of a doctype

On 19-Feb-2014, at 12:49 PM, Syed Qadeer wrote:

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.

On Wednesday, 19 February 2014 10:18:21 UTC+3, Syed Qadeer wrote:
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.



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



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

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1EAE16D9-98DC-4CA6-BCCB-EDE9BCFF00C1%40gmail.com.

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