LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Edit Columns of a Table

Hi
 
My application requires, to use a table , in which a few columns values are editable
and few column values are not, during the runtime.
 
I face some problems, to achieve, the above mentioned concept.
 
How can I achieve this? I tried thro' event frame wherein, i used mouse enter-event for Table. It didnt work out.
 
Can any one suggest how this can  be achieved, say For Ex: Column 1,3& 5 values are editable , while 2,4&6 so on are not.
 
Regards,
Partha
- Partha ( CLD until Oct 2027 🙂 )
Message 1 of 11
(3,651 Views)

Hi

One way is to react on the "value change"-event of the table.

You can read the cell which was edited. If this cell should not be changed you can write the old value in again.

Just see the attachment.

Hope this helps.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 11
(3,649 Views)

Hi Thomas,

Thanks for the reply. I tried with the suggetions, but i am not able to keep a track of the previous values,

where in, i could not compare with the old values ,though the ctrl-reference is giving me the edited position

& the new value.

since, contents of table are more, i am finding it difficult to keep the track of the previous values.in order to compare

can you suggest any other way of achieve the concept

Regards

- Partha ( CLD until Oct 2027 🙂 )
Message 3 of 11
(3,646 Views)
You don't need to keep track of the previous values. The event-structure handles that for you.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 4 of 11
(3,645 Views)
Hi Thomas,
 
Its very kind of you to reply, but i am very sorry to say that, i cannot expect the end user to use only mouse
he may use the key board too, especially the "Enter Key" which lead to the next row of the same column.
 
I tried your example vi, if i use the "Enter key", i can go, on and on changing the values in Not Editable column.
and the other thing was, if i just place the cursor using the mouse, changed values are accepted.
one more issue,  is you highlight or doubleclick on the column, then only the changes does not affect that too
if the execution, is in highlited mode.
 
is there any alternate suggestion, where in you can allow the user, only to access the editable columns.
 
 
warm Rgds
Partha.
- Partha ( CLD until Oct 2027 🙂 )
Message 5 of 11
(3,641 Views)
Now I get a bit confused. With the "Enter Key" the cursor jumps to the next row. Each row should behave the same way in one column. So I can't follow your first argument.
 
The point with the mouse is correct - I modified the vi to solve this issue.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 6 of 11
(3,638 Views)
hi Thomas,
 
Thanks for your ideas & suggestions regarding Edit Columns of a Table.
Now i've achieved what I wanted. I've used Table;s Value Change event instead of mouse events.
It holds good for both mouse & keyboard operations on the Table.
I've attached a zip file that has the VI.
You can go thro' it.
 
Regards,
Partha.
 
 
- Partha ( CLD until Oct 2027 🙂 )
Message 7 of 11
(3,617 Views)
hi Thomas,
 
Thanks for your ideas & suggestions regarding Edit Columns of a Table.
Now i've achieved what I wanted. I've used Table;s Value Change event instead of mouse events.
It holds good for both mouse & keyboard operations on the Table.
I've attached a zip file that has the VI.
You can go thro' it.
 
Regards,
Partha.
 
- Partha ( CLD until Oct 2027 🙂 )
Message 8 of 11
(3,512 Views)

Hi

Could you post it as LV7.0 (save with options >> save for previous version)?

So using the value change event is what I suggested in my first message and I also made in the example. So I'm wondering how your vi looks like.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 9 of 11
(3,615 Views)
Hi,
 
Please find the attached VI saved to 7.0. I also added an event case for the Stop button. This allows the VI to stop as expected.
 
Scott Y
NI
0 Kudos
Message 10 of 11
(3,598 Views)