Updating fields

Hi,
We have done scripting to make user specific calculations in the invoice.
With help of Nabin we have it almost up and running.

However, we can not update the custom fields.We could use a hint how call the "update"/"change" of a field

rgds robert




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/87c0bcb9-5e06-4222-9e86-88c9eb8d9c1a%40googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
cur_frm.get_field("fieldname").refresh()

using:

cur_frm.set_value("fieldname", value)

will also call refresh


On Monday, February 17, 2014 1:49:32 AM UTC+5:30, Robert Becht wrote:
Hi,
We have done scripting to make user specific calculations in the invoice.
With help of Nabin we have it almost up and running.

However, we can not update the custom fields.We could use a hint how call the "update"/"change" of a field

rgds robert




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/d37da5fe-c924-4eaf-9209-6a4d5f2ea7c0%40googlegroups.com.

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