1 Reply Latest reply: Nov 30, 2012 12:17 PM by Terry Wilson RSS

    User Profiles in Reference App

    Ecommerce
      Is there a way to pass a specific User Profile to trigger a business rule in the JSP Reference App?

      Thanks
        • 1. Re: User Profiles in Reference App
          Terry Wilson
          Assuming this is for 6.2.x and below; The user profile does not have a corresponding endeca url navigation parameter so I would amend the reference app to take a field and enter the user profile that way. You would then use that value and set the profile in code, from the AdvDevGuide:

          //User profiles can be any string. The user profiles must
          // exactly match those configured in Developer Studio.
          // Add this import statement at the top of your file:
          // import java.util.*;
          Set profiles = new HashSet();
          // Collect all the profiles into a single Set object.
          profiles.add("young_woman");
          profiles.add("r_and_b_music_fan");
          profiles.add("college_student");
          // Augment the query with the profile information.
          eneQuery.setProfiles(profiles);


          Now add it to the ENEQuery in the controller.jsp file before execution.
          regards
          Terry