• tablelist multiselection editing for all?

    From Juge@21:1/5 to All on Mon Nov 8 23:17:16 2021
    I am looking for/missing a functionality within edit tablelist.
    If I have selected multiple rows and edit one cell, all of the other rows
    are deselected.

    I am not sure if I have the options right or whether it is possible at all. What I would actually expect/wish is that all of the selected rows get the new edited value in the edited column.

    I think I could achieve this in the Edit End Command, if it was not that all of the other rows just got deselected at the beginning of edit.

    The reverse seems to be possible. I start editing a cell and during the edit process I can select other rows, with editing going on. Here I could introduce a foreach loop for curselection, but the action is counterintuitive for the user.

    Have I missed one of these options -instanttoggle -editselectedonly something?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Tue Nov 9 09:53:24 2021
    Am 09.11.21 um 08:17 schrieb Juge:
    I am looking for/missing a functionality within edit tablelist.
    If I have selected multiple rows and edit one cell, all of the other rows
    are deselected.

    I am not sure if I have the options right or whether it is possible at all. What I would actually expect/wish is that all of the selected rows get the new edited value in the edited column.

    I think I could achieve this in the Edit End Command, if it was not that all of the other rows just got deselected at the beginning of edit.

    The reverse seems to be possible. I start editing a cell and during the edit process I can select other rows, with editing going on. Here I could introduce a foreach loop for curselection, but the action is counterintuitive for the user.

    Have I missed one of these options -instanttoggle -editselectedonly something?


    Editing and selection are independent functionalities. Your idea to use
    the -editendcommand option will probably work as expected. Alternately,
    you can make use of the <<TablelistCellUpdated>> virtual event.

    --
    Csaba Nemethi https://www.nemethi.de mailto:[email protected]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Juge@21:1/5 to nemethi on Tue Nov 9 07:05:06 2021
    On Tuesday, 9 November 2021 at 09:53:28 UTC+1, nemethi wrote:

    Editing and selection are independent functionalities. Your idea to use
    the -editendcommand option will probably work as expected. Alternately,
    you can make use of the <<TablelistCellUpdated>> virtual event.


    Yes, it worked allright, the only problem is that I need to start the editing and only after that I need to select the multiple rows. When I start the editing the selection is lost ... maybe I could try to save the selection with editstartcommand...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From nemethi@21:1/5 to All on Tue Nov 9 16:39:12 2021
    Am 09.11.21 um 16:05 schrieb Juge:
    On Tuesday, 9 November 2021 at 09:53:28 UTC+1, nemethi wrote:

    Editing and selection are independent functionalities. Your idea to use
    the -editendcommand option will probably work as expected. Alternately,
    you can make use of the <<TablelistCellUpdated>> virtual event.


    Yes, it worked allright, the only problem is that I need to start the editing and only after that I need to select the multiple rows. When I start the editing the selection is lost ... maybe I could try to save the selection with editstartcommand...


    A mouse click will first start the editing and after that it will change
    the selection, *in this order* . Consequently, if you invoke
    curselection from within the proc specified as the value of the -editstatcommand option then the result will be the list of selected
    rows just before the start of the editing session.

    --
    Csaba Nemethi https://www.nemethi.de mailto:[email protected]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)