How to add dynamic value on module page

 
 Hello sir

           I have created a new module tracking, where i have to add values in a table dynamically. For that i have seen some .js file(like selling_home.js) where in items field there are “label”:wn_(“NAME OF LABEL”) function is used to show label and route: “Report2/Customer” is used for linking a path, so i want to know is there any function which returns a value from other doctype and then i can set it on my tracking module page.

 Thanx & Regards
Rohit



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.

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

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/f1BLUHYX07kJ.

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

 

 

Hi Rohit,

Please provide an example of what you are trying to do. It is a much better way of explaining your requirement.

Thanks,
Anand.

On 26-Apr-2013, at 11:58 AM, Rohit Waghchaure <ro...@indictranstech.com> wrote:

 
 Hello sir

           I have created a new module tracking, where i have to add values in a table dynamically. For that i have seen some .js file(like selling_home.js) where in items field there are "label":wn_("NAME OF LABEL") function is used to show label and route: "Report2/Customer" is used for linking a path, so i want to know is there any function which returns a value from other doctype and then i can set it on my tracking module page.

 Thanx & Regards
Rohit



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.

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

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/f1BLUHYX07kJ.

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 unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

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

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

 

 

Rohit,

I am not able to understand what you are trying to say.

You can get values from the server using the wn.call function using "webnotes.client.get_value" method and display the returned value using JS / JQuery

best,
Rushabh



On Fri, Apr 26, 2013 at 11:58 AM, Rohit Waghchaure <ro...@indictranstech.com> wrote:

Hello sir

I have created a new module tracking, where i have to add values in a table dynamically. For that i have seen some .js file(like selling_home.js) where in items field there are "label":wn_("NAME OF LABEL") function is used to show label and route: "Report2/Customer" is used for linking a path, so i want to know is there any function which returns a value from other doctype and then i can set it on my tracking module page.

Thanx & Regards
Rohit



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.

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

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/f1BLUHYX07kJ.

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












Twitter: @rushabh_mehta



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.

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

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

 

 

Hi Rushabh

I have attach a screen shot here for more understanding, where i have added table i want to insert some dynamic values into the table for that i declared a variable with value 50 ( 2nd snap shot ). i want these value in my table so how should i add this value in items field.

Thanx & Regards
Rohit


On Fri, Apr 26, 2013 at 12:17 PM, Rushabh Mehta <rm...@gmail.com> wrote:
Rohit,

I am not able to understand what you are trying to say.

You can get values from the server using the wn.call function using "webnotes.client.get_value" method and display the returned value using JS / JQuery

best,
Rushabh



On Fri, Apr 26, 2013 at 11:58 AM, Rohit Waghchaure <ro...@indictranstech.com> wrote:

Hello sir

I have created a new module tracking, where i have to add values in a table dynamically. For that i have seen some .js file(like selling_home.js) where in items field there are "label":wn_("NAME OF LABEL") function is used to show label and route: "Report2/Customer" is used for linking a path, so i want to know is there any function which returns a value from other doctype and then i can set it on my tracking module page.


Thanx & Regards
Rohit



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.

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

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/f1BLUHYX07kJ.

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












Twitter: @rushabh_mehta



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.

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


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 unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

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

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

 

 

Rohit,

Use jquery selectors to do this. (if you don't know how to use jquery, learn it if you plan on doing such customizations).

best,
Rushabh

FYI: Please use gist / pastebin for sharing code snippets and be considerate to other people on the forum by sending minimum attachments.



On Fri, Apr 26, 2013 at 1:04 PM, Rohit Waghchaure <ro...@indictranstech.com> wrote:
Hi Rushabh

I have attach a screen shot here for more understanding, where i have added table i want to insert some dynamic values into the table for that i declared a variable with value 50 ( 2nd snap shot ). i want these value in my table so how should i add this value in items field.

Thanx & Regards
Rohit


On Fri, Apr 26, 2013 at 12:17 PM, Rushabh Mehta <rm...@gmail.com> wrote:
Rohit,

I am not able to understand what you are trying to say.

You can get values from the server using the wn.call function using "webnotes.client.get_value" method and display the returned value using JS / JQuery

best,
Rushabh



On Fri, Apr 26, 2013 at 11:58 AM, Rohit Waghchaure <ro...@indictranstech.com> wrote:

Hello sir

I have created a new module tracking, where i have to add values in a table dynamically. For that i have seen some .js file(like selling_home.js) where in items field there are "label":wn_("NAME OF LABEL") function is used to show label and route: "Report2/Customer" is used for linking a path, so i want to know is there any function which returns a value from other doctype and then i can set it on my tracking module page.


Thanx & Regards
Rohit



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.

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

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/f1BLUHYX07kJ.

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












Twitter: @rushabh_mehta



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.

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


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 unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

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

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












Twitter: @rushabh_mehta



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.

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

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