Pablic page request url problem

<style type="text/css">p { margin-bottom: 0.1in; line-height: 120%; }a:link {  }</style>

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?



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-forum+un…@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.
last versions we used , frappe --build_sitemap , 
now I am wondering how to use such alternative way to build sitemap !


On Sunday, September 14, 2014 10:16:39 AM UTC+3, Rabin wrote:

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?



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

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/894ef409-4ed2-459b-a964-87eca4ab04cd%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
On 14-Sep-2014, at 12:46 pm, Rabin <bd...@gmail.com> wrote:

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?


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



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

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CADA0F6C-C527-4226-AA21-C6AD1B3ACF18%40gmail.com.

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