ERPNext with Applications that depend on Remote API

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.


On Wed, May 28, 2014 at 11:22 AM, hamdan k abu taima <ph…@gmail.com> wrote:

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 !



On Wednesday, May 28, 2014 5:41:40 AM UTC+3, rushabh wrote:

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,


On 28-May-2014, at 2:03 am, hamdan k abu taima <ph...@gmail.com> wrote:

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




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/bc419e18-4f35-43db-b761-1e408edd8623%40googlegroups.com.

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




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

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



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/CAAQzbF3Q3ffAGfdYqWCVMie-Au0PA86bOEoo3OAYcD0D3Kov5A%40mail.gmail.com.

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