How to pass parameters to a doctype?

Inline image 2
on click of href specified in last column I have to pass a Invoice number to a doctype for further processing.

ref:
row.append("<a href='http://localhost:8000/app.html#Form/Make%20Payment/New%20Make%20Payment%201/"+row[3]+"'>Pay for SI "+row[3]+"</a>")


but when doctype is get loaded it displays url with invoice number ,after fraction of second invoice number disappears coz it is not a valid part of url.

How I will get sent parameter i.e. invoice number in Make Payment doctype.

Thank You,
Saurabh



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.

    For more options, visit https://groups.google.com/groups/opt_out.
Saurabh, Passing of parameters via URL is deprecated.

Please use wn.route_options to set filters.

- Rushabh


T: @rushabh_mehta

On 16-Aug-2013, at 3:40 PM, Saurabh Palande <sa...@gmail.com> wrote:

<rept.png> 
on click of href specified in last column I have to pass a Invoice number to a doctype for further processing.

ref:
row.append("<a href='http://localhost:8000/app.html#Form/Make%20Payment/New%20Make%20Payment%201/"+row[3]+"'>Pay for SI "+row[3]+"</a>")


but when doctype is get loaded it displays url with invoice number ,after fraction of second invoice number disappears coz it is not a valid part of url.

How I will get sent parameter i.e. invoice number in Make Payment doctype.

Thank You,
Saurabh



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.

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



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.

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