Show same parent users in dropdown

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
David_Kimz
User
Posts: 4

Show same parent users in dropdown

Post by David_Kimz »

I have two tables (users and tasks), where users are connected by parent ID and list page works fine.
Now need users under same parent to appear in dropdown list when adding tasks.
Rightnow users only see there own records.


mobhar
User
Posts: 11702

Post by mobhar »

Post your tables schema, some records in them, and your customization for more discussion.


David_Kimz
User
Posts: 4

Post by David_Kimz »

Thanks for the help, I found it with a few inquiries and was disappointed by how simple it was. Incase anybody lands same issue here is what worked for me, inserting below code in UserID_Loading Server Event.

if((CurrentPage()->TableName == "Tasks") && ((EW_PAGE_ID == "add") || (EW_PAGE_ID == "edit"))){
	$this->CurrentUserID = CurrentParentUserID();
}

Post Reply