Solved

Not updating the form

  • 21 September 2023
  • 2 replies
  • 51 views

Userlevel 3
Badge +1

Hi there , 

 

I want to select multiple lines with the 'Select' checkbox as seen below, but I have a problem. Each time I select a line, the form on the right is also updating with the information of the line that I am currently selecting. Is it possible to keep the form from the first line as I select the other ones, until I click on the task that I want to execute on all of them? 

Here is the example

icon

Best answer by Erwin Ekkel 13 October 2023, 12:03

View original

This topic has been closed for comments

2 replies

Userlevel 6
Badge +16

This effect can be achieved if you do the following: 

create a view based on the table, but with an added fake reference column. 
Add a column to the table to indicate the main row. 
When the first checkbox is set fill the column with the main row. 
After executing the task you would reset the fake reference column. 
The main issue with this, this will only work if 1 person works on an exclusive set of rows at the same time. 

The select of the view would look like this (pseudo code): 

select x.*, x2.x_id
from x as x
join x as x2
  on x.x_id = coalesce(x2.x_fakereferencecol,x2.x_id)

When the reference column is not set you will see it's own detail. If the reference column is set you will see the detail of the indicated row.
 




When the indicator is not set:
 


when the indicator is set: 

 

Userlevel 3
Badge +1

Thank you! We will try that.