I have created an application that among other things includes a 'task' list...
In the user maintenance section users are defined and can be added to 'groups'.
When the user opens the app, a listbox shows the tasks assigned to that user, and should also show tasks assigned to any group the user is in.
tblGroupMembers, contains userID and GroupName. A second table tblTasks contains "assigned_to". When a task is created, user selects either a userid or group name to populate "Assigned To"
I have built a function that checks the tblGroups and builds a list of groups the user is in. In the query builder I call a function as the criteria which passes the userid to the query, works fine. When I try to add the function that builds a string of groups, doesnt return any groups.
I have tried using as the criteria In(funcGroups()), where funcGroups returns ("Group1", "Group2"), also tried ('Group1', 'Group2'), also tried "assigned_to=Group1OR assigned_to = Group2"...
if I type Group 1 OR Group2 straight into the query builder, it works, just doesnt work when the function returns the values...
Any comments appreciated
In the user maintenance section users are defined and can be added to 'groups'.
When the user opens the app, a listbox shows the tasks assigned to that user, and should also show tasks assigned to any group the user is in.
tblGroupMembers, contains userID and GroupName. A second table tblTasks contains "assigned_to". When a task is created, user selects either a userid or group name to populate "Assigned To"
I have built a function that checks the tblGroups and builds a list of groups the user is in. In the query builder I call a function as the criteria which passes the userid to the query, works fine. When I try to add the function that builds a string of groups, doesnt return any groups.
I have tried using as the criteria In(funcGroups()), where funcGroups returns ("Group1", "Group2"), also tried ('Group1', 'Group2'), also tried "assigned_to=Group1OR assigned_to = Group2"...
if I type Group 1 OR Group2 straight into the query builder, it works, just doesnt work when the function returns the values...
Any comments appreciated