emcclure Posted October 4, 2010 Posted October 4, 2010 I have an employee database that shows records for three different types of employees. I'm trying to create a script that shows a list of each employee type on different layouts. Scripts are not my strong point and any help would be greatly appreciated.
Matthew F Posted October 4, 2010 Posted October 4, 2010 My suggestion is that you do this with a relationship and not a script step. See the attached example. Employees.fp7.zip
comment Posted October 4, 2010 Posted October 4, 2010 I'm trying to create a script that shows a list of each employee type on different layouts. Try: If [ IsEmpty ( Get ( ScriptParameter ) ) ] Show All Records Else Enter Find Mode [ ] Set Field [ Employees::Type ; Get ( ScriptParameter ) ] Perform Find [ ] End If Set each layout to perform this script OnLayoutEnter, with the appropriate type as the script parameter. Note that this is necessary only if you have different layout requirements for each type e.g. type-specific fields. Otherwise you could just perform a find within the same layout.
emcclure Posted October 12, 2010 Author Posted October 12, 2010 Thanks so much! The script worked great!!
Recommended Posts
This topic is 5160 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now