Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

Can we set few table rows as pre-selected and few rows as Non-Selectable?

$
0
0

Hi , As shown in image, all rows are pre-selected through data utility

 

In Tree-Builder :

ColumnConfig localColumnConfig2 = localComponentConfigFactory.newColumnConfig("abc", false);

localTreeConfig.setPreSelectableColumn(localColumnConfig2);

 

In xconf :

 

<Option serviceClass="PreSelectRowDataUtility"selector="abc"cardinality="duplicate"requestor="java.lang.Object"/>

 

In Data Utility :

 

public class PreSelectRowDataUtility extends AbstractBooleanValueDataUtility

{

  public boolean getBooleanAttributeValue(String paramString, Object paramObject, ModelContext paramModelContext) throws WTException

  {

   return true;

  }

}

Capture.JPG

 

Now we want first row as Non Selectable. There should be no checkbox in first row.

for that there is ptc method

localTreeConfig.setNonSelectableColumn(localColumnConfig2);

and DataUtility AbstractNonSelectableRowDataUtility

But there is already one data utility registered in xconf regarding this column"abc" . how we can do implement both functionality togather ?

 

 

Requesting for Help. Thanks


Viewing all articles
Browse latest Browse all 3592

Trending Articles