Hi, i'm trying to filter a summary report for CurrentUserID() if the CurrentUserLevel() is 2 and disable the ext. search for the userid. The field utente_tempo is my userid field, and it's a dropdown with all my users. I've tried with two metods:
1) In Fields->Report(Extended Search) -> Default Value i've inserted CurrentUserID()
In Page_load:
if (CurrentUserLevel() == 2) {
$this->utente_tempo->Disabled = true;
}
2) In Page_load:
if (CurrentUserLevel() == 2) {
$this->utente_tempo->Disabled = true;
}
In Page_Selecting:
AddFilter($filter, "utente_tempo = '".CurrentUserID().'");
this will disable correctly the utente_tempo field in ext. search but give me an empty table.
If i use:
AddFilter($filter, "utente_tempo = 1");
It's working fine.
Any idea why CurrentUserID() is not working?