Plumtree Portal UI  
 

AConditionType.AddItemToMyConditionsList Method 

This method is almost like the opposite of the GetConditionValue() method. It takes the objItem, which is the server version of the condition value, and converts it to the UI version. The variable objItem is currently of the type returned by GetConditionValueType(). It now needs to be converted to the type that the ExpListModel understands. If you are using the default Growable List, then the objItem simply needs to be converted to a string. Then, add it to a String[], and call the AddRowsToList(String[]) method.

public abstract void AddItemToMyConditionsList(
   object objItem,
   ExpListModel myListModel,
   IPTSession ptSession
);

Parameters

objItem
- the condition value that needs to be added to the list.
myListModel
- the list model which holds the data of items in the list
ptSession
- the current user's session is provided in case it is needed

See Also

AConditionType Class | com.plumtree.portaluiinfrastructure.condition Namespace | ConditionTypeURLDomain