hi - here goes my FIRST post!
I'm a complete newbie, therefore using DBF just to get the hang of it first.
I've tried to no avail using the (fieldname) EMAIL = A5WS_GetCurrentUser() in the filter expression on a grid. ( the websecurity is set-up as email identifier, so my assumption was that the email field in the table should equal the email value of the logged in user?)
Then I came across the following in serverSideEvents - SearchBeforeLoad:
This event fires before the query to retrieve saved searches is executed.
'It allows you to set a filter value for either the 'userId' or 'securityGroup' fields to limit list of saved searches that are presented to the user.
'e.tmpl - Grid definition
'Your event can set these property values
'e.userid 'Set the value of one or more variables.
'e.securityGroups = "admin"
'These values will be added to the query to find the list of saved searches to show the user
If this can work - how would I write the e.userid = the logged in user (and again I presume the logged in user will refer to the Email identifier?)
or, if I'm wrong, and the e.userid refers to the logged in user value - how do I write that to equal the value of my email field I want to filter it on.
I have tried many many hours, could'nt find help anywhere, other than a video based on Mysql, which was MyGreek to me!
Also not sure if I had to DIM any variables anywhere.
help will be much appreciated!
Koos
I'm a complete newbie, therefore using DBF just to get the hang of it first.
I've tried to no avail using the (fieldname) EMAIL = A5WS_GetCurrentUser() in the filter expression on a grid. ( the websecurity is set-up as email identifier, so my assumption was that the email field in the table should equal the email value of the logged in user?)
Then I came across the following in serverSideEvents - SearchBeforeLoad:
This event fires before the query to retrieve saved searches is executed.
'It allows you to set a filter value for either the 'userId' or 'securityGroup' fields to limit list of saved searches that are presented to the user.
'e.tmpl - Grid definition
'Your event can set these property values
'e.userid 'Set the value of one or more variables.
'e.securityGroups = "admin"
'These values will be added to the query to find the list of saved searches to show the user
If this can work - how would I write the e.userid = the logged in user (and again I presume the logged in user will refer to the Email identifier?)
or, if I'm wrong, and the e.userid refers to the logged in user value - how do I write that to equal the value of my email field I want to filter it on.
I have tried many many hours, could'nt find help anywhere, other than a video based on Mysql, which was MyGreek to me!
Also not sure if I had to DIM any variables anywhere.
help will be much appreciated!
Koos
Comment