Need help!!
I am not expert in JS. I am trying to write a JS function which will hadle below:
I have created button of different user Types. When the user hit each button the Available functions and the Assigned functions associated with the user are going to display in two different boxes.
I have successfully getting the User types and the associated values with each user type in the JSP page but I am not really sure how to implement the java script function to handle the above functionality.
Here is the code where I am getting the user types and their associated functions.
UserTypes userTypes = UserTypesHandler.cacheRetrieve( session );
if ( null != userTypes )
{
System.out.println("\nThe value of userTypes.getUserTypes().length is: " + userTypes.getUserTypes().length + "\n");
UserTypes.UserType[] userTypeArray = userTypes.getUserTypes();
for ( int utIndex = 0; utIndex < userTypeArray.length; utIndex++ )
{
System.out.println("\nThe value of userTypeArray[" + utIndex + "] is: " + userTypeArray[utIndex].toString() + "\n");
}
}