Call a whitelisted method from other application java script

Hello All,
   I have to create records in erpnext for custom doctype.
   I have written a whitelist method which will accept parameters(json) and return result data(json) .
   the method is 'selling.utils.create_records(args,_type='POST')'
   How to call this method from other application using javascript?

Thank and Regards,
Gangadhar kadam
  



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/bf4119e6-6b95-4818-9f61-0df00b0bf432%40googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
cmd=selling.utils.create_records?parameters=

??


On Thursday, February 27, 2014 4:52:36 PM UTC+5:30, gangadhar kadam wrote:
Hello All,
   I have to create records in erpnext for custom doctype.
   I have written a whitelist method which will accept parameters(json) and return result data(json) .
   the method is 'selling.utils.create_records(args,_type='POST')'
   How to call this method from other application using javascript?

Thank and Regards,
Gangadhar kadam
  



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/2eebecdc-ba6c-455c-b9de-dc5e1acc64c5%40googlegroups.com.

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