Grid trigger not working on responsive ui

Hi All,

  1. In stock entry, i have selected default source and destination warehouse value.
  2. After that, i have click on stock entry item table.
  3. I have seen that values from above(Default source and destination) is set to source and destination warehouse of stock entry item table.
  4. I want to remove this functionality if purpose is ‘Material Transfer’.
  5. For your reference i have pasted my code on http://pastebin.com/CqA1yAfy.
  6. For that from client side i have called trigger, which works fine in previous version of erpnext, but it did not work on responsive ui erpnext framework,  please provide me solution on this
Thanks and Regards
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.

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

     

     
Hi Rohit,

Change the function name to: cur_frm.cscript.mtn_details_add
Most probably, you won't need to call refresh_field, since this function is called before render. See stock_entry.js - mtn_details_add function for more details.

Thanks,
Anand.

On 29-Jul-2013, at 7:42 PM, Rohit Waghchaure <ro...@indictranstech.com> wrote:

Hi All,
  1. In stock entry, i have selected default source and destination warehouse value.
  2. After that, i have click on stock entry item table.
  3. I have seen that values from above(Default source and destination) is set to source and destination warehouse of stock entry item table.
  4. I want to remove this functionality if purpose is 'Material Transfer'.
  5. For your reference i have pasted my code on http://pastebin.com/CqA1yAfy.
  6. For that from client side i have called trigger, which works fine in previous version of erpnext, but it did not work on responsive ui erpnext framework,  please provide me solution on this
Thanks and Regards
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.

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

     

     



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.

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