How to add dynamic value on module page

36 views
Skip to first unread message

Rohit Waghchaure

unread,
Apr 26, 2013, 2:28:48 AM4/26/13
to erpnext-dev...@googlegroups.com
 
 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

Anand Doshi

unread,
Apr 26, 2013, 2:47:17 AM4/26/13
to erpnext-dev...@googlegroups.com
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.

--
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...@googlegroups.com.
To post to this group, send email to erpnext-dev...@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.
 
 

Rushabh Mehta

unread,
Apr 26, 2013, 2:47:26 AM4/26/13
to erpnext-dev...@googlegroups.com
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




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...@googlegroups.com.
To post to this group, send email to erpnext-dev...@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

Rohit Waghchaure

unread,
Apr 26, 2013, 3:34:49 AM4/26/13
to erpnext-dev...@googlegroups.com
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
Snap shot of module page.png
Snap shot of js.png

Rushabh Mehta

unread,
Apr 26, 2013, 3:42:29 AM4/26/13
to erpnext-dev...@googlegroups.com
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.

Reply all
Reply to author
Forward
0 new messages