Implementing a validation before deleting a row in grid table

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.

 

 

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)

- Rushabh


W: https://erpnext.com
T: @rushabh_mehta

On 05-Dec-2012, at 11:50 AM, Arun Emmanuel <ar...@gmail.com> wrote:

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.

 

 




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)

- Rushabh


W: https://erpnext.com
T: @rushabh_mehta

On 05-Dec-2012, at 11:50 AM, Arun Emmanuel <ar...@gmail.com> wrote:

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.








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.

 

 

Yes - that should work.


On 05-Dec-2012, at 2:14 PM, Arun Emmanuel <ar...@gmail.com> wrote:

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)

- Rushabh


W: https://erpnext.com
T: @rushabh_mehta

On 05-Dec-2012, at 11:50 AM, Arun Emmanuel <ar...@gmail.com> wrote:

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.

 

 





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.

 

 




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.



On 05-Dec-2012, at 2:14 PM, Arun Emmanuel <ar...@gmail.com> wrote:

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)

- Rushabh

On 05-Dec-2012, at 11:50 AM, Arun Emmanuel <ar...@gmail.com> wrote:

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.









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.







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.