How to pass parameter and get parameters in page

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



You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@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,

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

On 07-Sep-2012, at 12:36 PM, Madhukar Bansode <ma...@indictranstech.com> wrote:

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




You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@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.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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

 

 

Thanks thats working…!!!

On Fri, Sep 7, 2012 at 1:25 PM, Rushabh Mehta <rm…@gmail.com> wrote:

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

On 07-Sep-2012, at 12:36 PM, Madhukar Bansode <ma...@indictranstech.com> wrote:

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




You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@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.







You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To post to this group, send email to er…@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.

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







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



You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To post to this group, send email to er...@googlegroups.com.

To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.

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