How to pass parameter and get parameters in page

40 views
Skip to first unread message

Madhukar Bansode

unread,
Sep 7, 2012, 3:06:33 AM9/7/12
to erpnext-dev...@googlegroups.com
Hello All,

I am  looking for passing a parameter to page and get parameters in page, is there any method like

// to load page with
loadpage('page_name',params); 

pscript[''onload_page_name'] = function() { // load the page
 //get parameter in page
}


Thanks and regards

Rushabh Mehta

unread,
Sep 7, 2012, 3:55:12 AM9/7/12
to erpnext-dev...@googlegroups.com
Madhukar,

Lookup "arguments" in javascript

you will have to wire them to the onload method called from loadpage

I had also given you the solution earlier of using the url hash to pass arguments

like:

#page_name/parameter1/parameter2

and extract parameters from window.location.hash

(also open page using url not "load_page")

- Rushabh



W: https://erpnext.com
T: @rushabh_mehta

--
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.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/TDQm0yd_52IJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Madhukar Bansode

unread,
Sep 7, 2012, 4:10:21 AM9/7/12
to erpnext-dev...@googlegroups.com
Thanks thats working..!!!!
--
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.

Reply all
Reply to author
Forward
0 new messages