how can show selected records of two table ?

aru

Member
Hi All,

I have a form, Where I have two search list Table.

So when I click on a record of a table , it will be selected.
Then I click a delete button to delete the selected record.

Here I have two table. And I have only one delete button.

So When I click on a record of Both table,
ie I clicked on a record of Table 1, then it is selected.
Then I again clicked on a record of next Table, table 2.
then that record is selected.

I want to delete by those two selected record, by a single delete button.
It is worked.
But when i clicked second table, the selection of first table is disappear.
So it make a confusion to user.

I want to see the selected records on both table. What is the solution ?
Can you help me ?
:sign0085:
 

mjcoon

Well-Known Member
Licensed User
I doubt whether there is a way round this. I think so because it is just like Windows behaviour. If you have several File Explorer windows open (in any version of Windows?) you can select files in each window. But the selection is not visible (or in grey) unless that particular window has the focus. As you change the focus between eahc window the selected files for just that window become apparent.

So it seems to me that Mobile Windows is just reflecting this (perhaps not ideal) feature of Windows in general.

But I have still not cracked how to keep the selected record always visible in my own form where there is only a single table!

Mike.
 

klaus

Expert
Licensed User
Longtime User
I had similar problem to show the selected row in a table.
I added a column at the beginning where I put an arrow to show the selected row.

Attached a sample program with 2 tables, hope this will help you.

Best regards.
 

Attachments

  • Table1.sbp
    1.3 KB · Views: 212

specci48

Well-Known Member
Licensed User
Longtime User
I added another sample including a delete button.

This is very tricky because if you delete a row in a table, the following row in the table gets selected automatically, but the selection_changed event is only fired if the last row of the table was deleted. :BangHead:
And In some cases the automatic row selection may be irritating. The attached sample stores the selected row in an extra variable to prevent this automatic selection...


specci48
 

Attachments

  • TableSelect.sbp
    1.8 KB · Views: 198
Cookies are required to use this site. You must accept them to continue using the site. Learn more…