OK guys this is my first post and I'm having a little difficulty.
I have the security settings such that each user can only see and modify the data they input. That works. I have a field UID in each table with relationships between them.
The excel import function does not follow this protocol such that importing data from any user account has a default UID of 0.
I cannot allow users to specify a UID in the excel file for they will screw it up and push records into the wrong account or leave it blank pushing the data with again a UID of 0.
I therefore need getOwnerId or currentuser type functionality such that when the excel is inserted it goes in with the current logged in user's UID which is not in the excel file.
I have tried putting in code in beforeinsert in the Import function but I just can't seem to get anything that sets the UID for import correctly.
I don't see any postings anywhere either.
Does anyone have samples of what they've done for this?