else if (FileConstantKeys.PERMISSION.equals(previousTab))
{
// view permission
String[] viewPermissionS = previousForm.getViewpermission();
Vector viewPermisionV = new Vector();
DDNameValue viewPermissionListBox = null;
String idName = "";
String displayName = "";
// if user have selected records
if (previousForm.getViewpermission() != null)
{
int sizeOfListBox = viewPermissionS.length;
for (int i=0;i<sizeOfListBox;i++)
{
int indexOfHash = viewPermissionS[i].indexOf("#");
idName = viewPermissionS[i].substring(0, indexOfHash);
displayName = viewPermissionS[i].substring(indexOfHash+1, viewPermissionS[i].length());
viewPermissionListBox = new DDNameValue(viewPermissionS[i], displayName);
viewPermisionV.add(viewPermissionListBox);
}
previousForm.setViewpermissionvec(viewPermisionV);
}
// if user have not selected records
else
{
previousForm.setViewpermissionvec(new Vector());
}
// modify permission
String[] modifyPermissionS = previousForm.getViewpermission();
Vector modifyPermisionV = new Vector();
DDNameValue modifyPermissionListBox = null;
idName = "";
displayName = "";
// if user have selected records
if (previousForm.getViewpermission() != null)
{
int sizeOfListBox = modifyPermissionS.length;
for (int i=0;i<sizeOfListBox;i++)
{
int indexOfHash = modifyPermissionS[i].indexOf("#");
idName = modifyPermissionS[i].substring(0, indexOfHash);
displayName = modifyPermissionS[i].substring(indexOfHash+1, modifyPermissionS[i].length());
modifyPermissionListBox = new DDNameValue(modifyPermissionS[i], displayName);
modifyPermisionV.add(modifyPermissionListBox);
}
previousForm.setViewpermissionvec(modifyPermisionV);
}
// if user have not selected records
else
{
previousForm.setViewpermissionvec(new Vector());
}
// delete permission
String[] deletePermissionS = previousForm.getViewpermission();
Vector deletePermisionV = new Vector();
DDNameValue deletePermissionListBox = null;
idName = "";
displayName = "";
// if user have selected records
if (previousForm.getViewpermission() != null)
{
int sizeOfListBox = deletePermissionS.length;
for (int i=0;i<sizeOfListBox;i++)
{
int indexOfHash = deletePermissionS[i].indexOf("#");
idName = deletePermissionS[i].substring(0, indexOfHash);
displayName = deletePermissionS[i].substring(indexOfHash+1, deletePermissionS[i].length());
deletePermissionListBox = new DDNameValue(deletePermissionS[i], displayName);
deletePermisionV.add(deletePermissionListBox);
}
previousForm.setViewpermissionvec(deletePermisionV);
}
// if user have not selected records