Pass Data to report from doctype

Hi All,
 
1 I have created a doctype Search
2 In that i have taken some parameter like Search parameter (for report filters), doctype name 
3 I have to use search parameter(filters) for searching records in doctype (doctype name), i want to show the output on report
5 For that i have created a script report (Search Report)
6 I have added filter like search parameter, doctype name in search report using javascript
7 Now i want to pass search parameter and doctype name from 'Search' doctype to 'Search Report'
8 For that i am trying to use wn.model.map() method
9 This method only works to send data from one doctype to another doctype
10 So is there any way to pass data from doctype to report

Thanks and Regards
Rohit



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.

Use any global js variable.

On Wednesday, August 21, 2013, Rohit Waghchaure <ro…@indictranstech.com> wrote:
> Hi All,
>
> 1 I have created a doctype Search

> 2 In that i have taken some parameter like Search parameter (for report filters), doctype name
> 3 I have to use search parameter(filters) for searching records in doctype (doctype name), i want to show the output on report

> 5 For that i have created a script report (Search Report)
> 6 I have added filter like search parameter, doctype name in search report using javascript
> 7 Now i want to pass search parameter and doctype name from ‘Search’ doctype to ‘Search Report’

> 8 For that i am trying to use wn.model.map() method
> 9 This method only works to send data from one doctype to another doctype
> 10 So is there any way to pass data from doctype to report
> Thanks and Regards

> Rohit
>
> –
> 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.
>





https://erpnext.com
Twitter: @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-forum+un...@googlegroups.com.

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