How to list data filtering record for current logged user? September 21, 2018, 03:50:59 PM Hi, I have a transactions list having data containing user information.I want this data to be automatically filtered for the current user. Example if i am currently logged in as 20046554. The transactions above should be only be showing details for ID number 1, User: Jodill James A. Esteban, Item: The Anonymous Book.I tried using the WHERE in the default query configuration with the following statement:transaction_user=USER_NAMEHowever, after republishing, i still get the same results details in my list I also tried using the following statement hoping it works:transaction_user='$_GET[USER_NAME]'But this only resulted into a loading screen:This are my joins and my user authentication details:What proper statement should i add in the default query WHERE? or there are other things that i should do?P.S. (Sql Where Statment eg. status='active')Thanks in advance Quote Selected Last Edit: September 21, 2018, 03:52:39 PM by nofeara
Re: How to list data filtering record for current logged user? Reply #1 – September 22, 2018, 11:06:48 AM You can use user record management to do this kind of thing. You can equally use where statement to filter the record. Example:transactional_user='" . USER_NAME. "'" Quote Selected 1 Likes
Re: How to list data filtering record for current logged user? Reply #2 – September 22, 2018, 02:06:26 PM Quote from: Emman – September 22, 2018, 11:06:48 AMYou can use user record management to do this kind of thing. You can equally use where statement to filter the record. Example:transactional_user='" . USER_NAME. "'"Whoah, it worked. Thank you very much Quote Selected
Re: How to list data filtering record for current logged user? Reply #3 – January 25, 2021, 02:20:23 AM how about custom view? how to display record that belong to login user Quote Selected
Re: How to list data filtering record for current logged user? Reply #4 – January 25, 2021, 03:10:46 PM Quote from: amsi – January 25, 2021, 02:20:23 AMhow about custom view? how to display record that belong to login userYou can modify the controller class and add that filter in that relevant method. Quote Selected