Posted: 16 Nov 2017 17:03 EST Last activity: 21 Nov 2017 5:23 EST
Creating a search screen parameter page
I would like to create a search screen with multiple search criteria. Once the user logs in, search screen will be displayed by default. I would like to know what is the best practice to create a page which can hold the search criteria which user enters? Is it good to create a separate page property in Data-Portal? OR create all single value properties in Data-Portal OR any other way to create a page while the page renders? Please advice.
Thanks for the response Santanu. Choice selections need not be stored. For example, if i need to search an employee(stored as operator) among all employees, my confusion was, should i create a 'SearchEmployeeParams' of Data-Admin-Operator-ID as a page property under Data-Portal OR do a page-new of 'SearchEmployeeParams' before a the screen renders OR simply create properties under Data-Portal? As far as i have seen in the projects i have worked, i have noticed second option. I was not sure what is correct. As per your reply, 1st option is the way to go??
Another approach would be creating a data page of the class which holds the section containing the search parameters. For your example you can create a data page of Data-Admin-Operator-ID class and source the data page with a data transform which sets the initial search parameters. Search param section should be using this data page in the initial portal to render when it loads.
1. Create a section in the Operator class. With your search params ,Lets say FirstName and LastName.
2. Create a data page and source the data transform . You can even set the FirstName="" here.
3. Create a wrapper section in Data-Portal and embed the Search Section you created in step 1. When you add the section it will ask the using page for that section so you can give the data page you created in step 2 as the context.