ERPNext with Applications that depend on Remote API

176 views
Skip to first unread message

hamdan k abu taima

unread,
May 27, 2014, 4:33:38 PM5/27/14
to erpnext-dev...@googlegroups.com
Hello Community ,

You are doing so great , I am new to ERPNext , and its my 3rd week of learning it , Thanks for your documentation , its helps a lot , now here is what I am trying to do :
- I want to use ERPNext apps , add new custom apps that depends on custom fields on customer doctype, such as ( ref_id ) ,
I am trying to use (ref_id) in new custom app that is its main functionality is to list data from remote API referenced to ref_id of that customer.
for instance , I already have a system which have the customers data , such as points , and balance .
now we are implementing ERPNext , adding ref_id to each customer that exactly match the customer id in the remote system,
I have already RESTFUL API at ex. http://domain/getPoints/{id}
now in ERPNext the new app ( My Points ) should list down all points of logged in customer or user from API ,
Administrator can also update points from a different app ( manage_points ) which also interact with remote api .
these enhancements would take my business to the next level benefiting from ERPNext apps .

Please advice .

Thank yo

Rushabh Mehta

unread,
May 27, 2014, 10:41:40 PM5/27/14
to erpnext-dev...@googlegroups.com
Hi,

Welcome to the community and thanks for your kind words! I am unable to understand your question. If you are looking for REST API in ERPNext,



@rushabh_mehta

--
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/bc419e18-4f35-43db-b761-1e408edd8623%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

hamdan k abu taima

unread,
May 28, 2014, 1:52:22 AM5/28/14
to erpnext-dev...@googlegroups.com
Hi Rushabh , 
Nope , that it is not what I mean, we need to request Remote API which return some data [ that is in a separate  domain ] , just listing the data in a table in a simple page ! 
Hi,



@rushabh_mehta

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.

Anand Doshi

unread,
May 28, 2014, 2:03:02 AM5/28/14
to ERPNext Developer's Forum
If you want to display external data in Customer document, you can do it from javascript itself, if you don't intend to store it.

Create a custom field of type HTML
Use Setup > Custom Script

frappe.ui.form.on("Customer", "refresh", function(frm) {
    // your code to generate html table
}

It will request for new data every time the form is refreshed.

-Anand.


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/08e98ef1-e13d-4136-8925-b87980c9e8e5%40googlegroups.com.

hamdan k abu taima

unread,
May 28, 2014, 2:19:10 AM5/28/14
to erpnext-dev...@googlegroups.com
Thanks very much, JavaScript is not recommended due to Cross domain policy its, add to that I am using api key which I don't wish to use it in JS files , 
So I was thinking about Python , server side is a good solution , but how can we make done in Frappe , 
Thanks   
Hi Rushabh , 
Hi,



@rushabh_mehta

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsubscr...@googlegroups.com.

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

Rushabh Mehta

unread,
May 28, 2014, 3:04:12 AM5/28/14
to erpnext-dev...@googlegroups.com
You will have to write templates. We don't have updated documentation on that yet, but see an example:
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/a0527507-6bd3-434f-89a5-948ace06800b%40googlegroups.com.

Anand Doshi

unread,
May 28, 2014, 3:31:01 AM5/28/14
to ERPNext Developer's Forum
Reply all
Reply to author
Forward
0 new messages