How to pass values from one page to another page

36 views
Skip to first unread message

Madhukar Bansode

unread,
Jun 18, 2012, 2:03:20 AM6/18/12
to erpnext-dev...@googlegroups.com
Hello all,,

I want to pass the values from one page to another page as a parameter, Please help me

Thanks and regards

Mitesh Chudasama

unread,
Jun 18, 2012, 2:07:26 AM6/18/12
to erpnext-dev...@googlegroups.com
hello Madhukar,

Use DocType Mapper 
In Top Panel->Document->DocType Mapper

-Mitesh

Anand Doshi

unread,
Jun 18, 2012, 2:34:52 AM6/18/12
to erpnext-dev...@googlegroups.com
Hi Madhukar,

Please tell us the scenario so that we could guide you.

What are you trying to achieve? Please elaborate.

Thanks,
Anand.
> --
> You received this message because you are subscribed to the Google Groups
> "ERPNext Developer Forum" group.
> To post to this group, send email to
> erpnext-dev...@googlegroups.com.
> To unsubscribe from this group, send email to
> erpnext-developer...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Madhukar Bansode

unread,
Jun 18, 2012, 2:40:20 AM6/18/12
to erpnext-dev...@googlegroups.com
Hi,

Anand thanks for your reply,

Dear Anand,

I have created page where i have select drop down for selecting financial year, I want send the selected financial year as parameter to other page which will display content for selected financial year.

Mitesh has suggested me to use Doctype Mapper, But i m not aware of that,

and please send me the link if any for online documentation for the same

For more options, visit this group at http://groups.google.com/group/erpnext-developer-forum?hl=en.




--
Thanks and Regards,
Madhukar S Bansode
New Indictrans technologies PVT.LTD.
Cell No.+91-7709199414
www.indictranstech.com


DECLAIMER
This e-mail has arrived in your e-mail Inbox from  New Indictrans Technologies Private Limited, Pune. Please do visit http://www.indictranstech.com/  to know more about New Indictrans Technologies Private Limited. This email is not spam. We follow 'US Unsolicited Electronic Mail Act of 2000', which states that an e-mail cannot be considered SPAM if it contains contact/removal information, which this e-mail does. This e-mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If, by an addressing or transmission error, this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or it's attachment(s) other than by its intended recipient(s) is strictly prohibited. Any opinions expressed in this email are those of the individual and not necessarily of the organisation. Before opening attachment(s), please scan the attachment for viruses.". In case & if you do not wish to receive e-mail (the way you have received it today for what so ever cause or reasons) in near future? Reply back to this emai l saying "Remove e-mail ID". Within two working days your ID will be removed.

Rushabh Mehta

unread,
Jun 18, 2012, 5:01:57 AM6/18/12
to erpnext-dev...@googlegroups.com
Madhukar,

There are atleast 2 ways to do this.

1. Tight coupling: Open the page via script using `loadpage` and call whichever function you want on the new page, in the callback method of loadpage.
2. Loose coupling: Make a routing scheme. call your page via url using mysite#mypage/parameter1/parameter2

and on the onload method of that page, extract your parameters from the url hash (`window.location.hash`)

Option 2 is usually the better choice!

- Rushabh



-----------------------------------------------------
ERPNext - Business Operating System

W: https://erpnext.com
T: @rushabh_mehta
Reply all
Reply to author
Forward
0 new messages