searching via a relation based on a global

Hello,

I now have a problem with something that worked before and is described here: Marking records - Classic Servoy - Servoy Community

The relation is based on the primary key of the dataprovider and a global containing the user_id. I can enter data through this relation but not find things. It always returns no records.

I have attached a solution that demonstrates the problem. If you look at the table view, there is a popup where you can choose a username. The popup next to that allows you to either see all records or just the “marked” ones. The latter part simply doesn’t work when you do what I am doing in that method.

Thanks
Patrick

The search will be fixed in 2.0RC8

just a remark. in the code you do this:

controller.loadAllRecords();
controller.find();
data_to_marks.mark = 1;
data_to_marks.username = globals.user_name;
controller.search();

but only this is needed

controller.find();
data_to_marks.mark = 1;
controller.search();

(this is not the fix for you, just a tip)

Thanks for the tip. That was my first version, but since it didn’t work I tried all kinds of things. Thanks for the fix.