Joining a new table with a UserList
Permalink 1 user found helpful
I wish to join a table with the UserList class.
I have tried addToQuery which does the join fine, but the columns are unaffected as a UserInfo object is returned.
I have tried to extend the UserList class but this fails as the parent class then forces all returned objects to be of type UserInfo.
I could extend ItemList or DatabaseItemList but this will add to my headaches because I will loose all the user filter functions in UserList
I am so close but so far I fear.
I have tried addToQuery which does the join fine, but the columns are unaffected as a UserInfo object is returned.
I have tried to extend the UserList class but this fails as the parent class then forces all returned objects to be of type UserInfo.
I could extend ItemList or DatabaseItemList but this will add to my headaches because I will loose all the user filter functions in UserList
I am so close but so far I fear.
I copied the UserList class and it had this
I changes this to
This now bypasses the core UserList with force returns a UserInfo object.