Hi
How can i validate/check the values in a row of a grid table before deleting that row from the grid table
Thanks
Arun
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to er...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
rmehta
2
Hi Arun,
There is no such validation on the client side at the moment.
You can use the validate method on the server-side to achieve this (query if from the database to check if the grid rows match)
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to er...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Ok… So i have to match the rows submitted and that available in the database to find which all rows are deleted.
Then have apply the logic for validation on that missing rows from the POST and to raise Exception accordingly. Ryt??
On Wed, Dec 5, 2012 at 2:01 PM, Rushabh Mehta
<rm…@gmail.com> wrote:
Hi Arun,
There is no such validation on the client side at the moment.
You can use the validate method on the server-side to achieve this (query if from the database to check if the grid rows match)
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to er…@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to er...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
rmehta
4
Yes - that should work.
Ok.. So i have to match the rows submitted and that available in the database to find which all rows are deleted.Then have apply the logic for validation on that missing rows from the POST and to raise Exception accordingly. Ryt??
–
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
To post to this group, send email to er…@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to er...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
OK… Thanks Rushabh… I will try that method
Thanks
On Wed, Dec 5, 2012 at 2:15 PM, Rushabh Mehta
<rm…@gmail.com> wrote:
Yes - that should work.
Ok.. So i have to match the rows submitted and that available in the database to find which all rows are deleted.
Then have apply the logic for validation on that missing rows from the POST and to raise Exception accordingly. Ryt??
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to er…@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer-forum+un…@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to er...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.