Possible to change label of the child table content field dynamically

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



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-forum+un…@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.
cur_frm.fields_dict only has fields of the parent form.


On 23-Jun-2014, at 11:32 am, Rohit Waghchaure <ro...@indictranstech.com> wrote:

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



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-forum+un…@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.



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/D126431F-1D6E-41B0-8B57-928F72519C0D%40gmail.com.

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

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

Regards


On Mon, Jun 23, 2014 at 4:22 PM, Rushabh Mehta <rm...@gmail.com> wrote:
cur_frm.fields_dict only has fields of the parent form.



On 23-Jun-2014, at 11:32 am, Rohit Waghchaure <ro...@indictranstech.com> wrote:

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



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-forum+un…@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.




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-forum+un…@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/D126431F-1D6E-41B0-8B57-928F72519C0D%40gmail.com.

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



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAFsi8V1yP3X53AvPkuSFFo%3D-ArUc0QZMxJrx0JPO6Cicj24K5Q%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.
Why don't you try and figure - look at grid.js


On 23-Jun-2014, at 4:50 pm, Rohit Waghchaure <ro...@indictranstech.com> wrote:

Hi Rushabh,

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

Regards


On Mon, Jun 23, 2014 at 4:22 PM, Rushabh Mehta <rm...@gmail.com> wrote:
cur_frm.fields_dict only has fields of the parent form.



On 23-Jun-2014, at 11:32 am, Rohit Waghchaure <ro...@indictranstech.com> wrote:

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



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-forum+un…@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.





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-forum+un…@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/D126431F-1D6E-41B0-8B57-928F72519C0D%40gmail.com.

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



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAFsi8V1yP3X53AvPkuSFFo%3D-ArUc0QZMxJrx0JPO6Cicj24K5Q%40mail.gmail.com.

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



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/B73E87C9-2139-47D3-8F22-10CCBD77BC6B%40gmail.com.

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