Possible to change label of the child table content field dynamically

69 views
Skip to first unread message

Rohit Waghchaure

unread,
Jun 23, 2014, 2:02:53 AM6/23/14
to erpnext-dev...@googlegroups.com
Hi,

I used set_label(), which works correctly for parent form, but when i am trying to reflect same thing on child table it did not working.
Eg: For Quotation Item
I have to change the label of Item Code to Item or Qty to Quantity(1-10) dynamically
for that i used following code:

cur_frm.fields_dict.item_code.set_label('Item') 

but it gives me an error Cannot call method 'set_label' of undefined

Whether i am using correct syntax, please suggest me correct syntax
 
Thanks, Rohit

Rushabh Mehta

unread,
Jun 23, 2014, 6:53:58 AM6/23/14
to erpnext-dev...@googlegroups.com
cur_frm.fields_dict only has fields of the parent form.


--
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
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 view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/16106c3e-6050-4815-8f70-f2ea27db3548%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rohit Waghchaure

unread,
Jun 23, 2014, 7:20:10 AM6/23/14
to erpnext-dev...@googlegroups.com
Hi Rushabh,

Can u please provide me the syntax to change the label of child table field.

Regards



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



--
Rohit S. Waghchaure
Cell: +91 90118 57174 | Off. : (20) 657 0800 / 25281316
New Indictrans Technologies Pvt Ltd | www.indictranstech.com

Rushabh Mehta

unread,
Jun 23, 2014, 9:25:33 AM6/23/14
to erpnext-dev...@googlegroups.com
Why don't you try and figure - look at grid.js


Reply all
Reply to author
Forward
0 new messages