Pablic page request url problem

24 views
Skip to first unread message

Rabin

unread,
Sep 14, 2014, 3:16:39 AM9/14/14
to erpnext-dev...@googlegroups.com

Hello guys

i have faced a problem

I am passing an url (http://0.0.0.0:8000/dashboard/2/3) from public page

I want get value 2 from URL

how can I get the value?

hamdan k abu taima

unread,
Sep 14, 2014, 7:06:49 AM9/14/14
to erpnext-dev...@googlegroups.com
last versions we used , frappe --build_sitemap , 
now I am wondering how to use such alternative way to build sitemap !

Rushabh Mehta

unread,
Sep 15, 2014, 12:41:46 AM9/15/14
to erpnext-dev...@googlegroups.com
dashboard/2/3 becomes a route, you will have to define a template / generator to handle it.

If you want this to be an API method you will need to define a python function and add @frappe.whitelist() to it.

See this


Which can be called as

/api/method/frappe.client.get?doctype=X&name=Y






-- 
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. 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.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. 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/93d1cf12-bf86-4874-8f23-6c57a2b322c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages