Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderators: ArturoRobles, ArturoRobles

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#827709
Hi.

I need my Grid to unable the option of deleting a row if there is just one row left.

This Grid is filled with information from a previous form, and the point of this one is review that information, change it (if necessary), and send it to be approved. But makes no sense sending a form with an empty Grid.

The idea is not to send the form without any infromation (or rows at all) in the Grid.

Thanks.
#827714
Hi,
You can check the numberRowCount of your grid onsubmit of your form and dont allow submit if your rows is zero.
Also you can check rows of your grid onDeleteRow function of your grid and dont allow delete row if your rows is zero.

https://www.youtube.com/channel/UCYiyz1y8Qf4EZjMXodwH1iw/videos
https://www.linkedin.com/in/pmlearning/
Thanks
#827716
programerboy wrote:Hi,
You can check the numberRowCount of your grid onsubmit of your form and dont allow submit if your rows is zero.
Also you can check rows of your grid onDeleteRow function of your grid and dont allow delete row if your rows is zero.

https://www.youtube.com/channel/UCYiyz1y8Qf4EZjMXodwH1iw/videos
https://www.linkedin.com/in/pmlearning/
Thanks
Hi.

I tried this second option but it didn't work. Could you show me how to do it?

Thanks.
#827740
programerboy wrote:Hi,
You can check this post:
https://forum.processmaker.com/viewtopic.php?p=827721#p825473

https://www.youtube.com/channel/UCYiyz1y8Qf4EZjMXodwH1iw/videos
https://www.linkedin.com/in/pmlearning/
Thanks
Hi.

Thank you, but I can't access the pmusers link whith the solution on that post. I don't know why, maybe the website is off.

Is there any other way for me to see the solution to this?

Can anyone know what is the issue?

Unable to create workspace

I have the same issue. Any solution? Thanks alex[…]

Install in ubuntu

Dear All, In our dev environment we did an upgrad[…]

Get data from oracle database.

How to display all data in a table from oracle DB […]