--
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/9bfca4c4-3741-4310-b67a-7d375e5958ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/9bfca4c4-3741-4310-b67a-7d375e5958ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/41925dc7-7d6d-486e-8b20-8b9114741c98%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
Can someone help??Regards
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/9bfca4c4-3741-4310-b67a-7d375e5958ab%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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/41925dc7-7d6d-486e-8b20-8b9114741c98%40googlegroups.com.
Or something is preventing the loading of custom code, to verify this, go to “Setup”> “Custom Code” and add the line below before the “cur_frm.cscript.attach_image”console.log (" Custom code working fine ")
and check if the message are Showed in browser console When You refresh the page.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/c2a9be68-5327-429c-9f0f-59f76a16fb56%40googlegroups.com.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/41925dc7-7d6d-486e-8b20-8b9114741c98%40googlegroups.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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/c2a9be68-5327-429c-9f0f-59f76a16fb56%40googlegroups.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 view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/74036215-c732-435a-8bcf-6448d30ef383%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/74036215-c732-435a-8bcf-6448d30ef383%40googlegroups.com.
Hi Satish,
One possibility of script not loading could be that you have multiple client scripts for the same doctype and it is loding the other one.
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/6ece7991-e7e2-404d-976a-ea5800ff86c7%40googlegroups.com.
Hi
--
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/99c149ea-93b1-4bc0-9c0d-7de78aef793c%40googlegroups.com.
@rushabh_mehta
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
HiI am taking the script I earlier shared as the base and making small changes to it to see the effect. I am assuming that the script is basically correct and I just need to make some changes to control references to get it right. The link to script is http://pastebin.com/HfaLqmhZI may be grossly wrong and if I am please do indicate. Then I might stop banging my head over it.
1. First of all if I start the script with cur_frm.doc.add_new_image (i have changed the custom field names) instead of cur_frm.cscript.add_new_image the script is not triggered at all. I gives the following error:Traceback (innermost last): File "lib/webnotes/handler.py", line 78, in handle execute_cmd(cmd) File "lib/webnotes/handler.py", line 118, in execute_cmd ret = call(method, webnotes.form_dict) File "lib/webnotes/handler.py", line 140, in call return fn(**newargs) File "lib/webnotes/handler.py", line 22, in runserverobj webnotes.widgets.form.run_method.runserverobj() File "lib/webnotes/widgets/form/run_method.py", line 40, in runserverobj r = webnotes.model.code.run_server_obj(so, method, arg) File "lib/webnotes/model/code.py", line 104, in run_server_obj raise Exception, 'No method %s' % method_name Exception: No method
2. When I use cur_frm.cscript.add_new_image it returns "Please select and image first" even though the image is already selected.
3. If I declare a variable d with var d = locals(dt, dn) then it gives the following error:
- Uncaught TypeError: object is not a function VM325:1698
cur_frm.cscript.add_new_imageVM325:1698 wn.ui.form.ScriptManager.Class.extend.triggerall-app.min.js:2078 wn.ui.form.ControlButton.wn.ui.form.ControlData.extend.onclickall-app.min.js:2134 (anonymous function)all-app.min.js:2134 b.event.dispatchjquery.min.js:2 v.handle
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/851006d3-d192-415c-948e-c6a76c021d75%40googlegroups.com.
HiI have all three of my custom fields on child table "Sales Order Item" under the main form "Sales Order". So maybe that explains why doc won't work.However, I have associated the script with Doctype "Sales Order" and not "Sales Order Item" as you said earlier that the script needs to be associated with the main form only.Clicking on VM325:1698 doesn't help. It just shows the my written script. Nothing else.
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/26a3e4f2-4350-4407-806c-9f8930757b4b%40googlegroups.com.
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/b9f9621c-b97f-445c-8ad3-b2c531d78498%40googlegroups.com.
should be
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/580dcec1-2cd0-45c0-9e0b-0d9980f6b81d%40googlegroups.com.
@rushabh_mehta