Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hi @UR_10013634,
I wanted to see if you got the help you needed.
If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation.
Thanks,
Hello, @Catalina Thank you for your response. I tried the previously described solution, but it's not working the way I want it to. The OOTB member table is rendered concurrently with my custom JSP. When this page retenders, I would like one of the roles to be selected by default and its user as well.
Hi @UR_10013634
Do you use the OOTB Memers table? if so you should create onw custom one and in the table configuration class set the setPreSelectableColumn variable
The help describes it more widely
You have to understand that you need own hidden attribute that says the row is preselected
Section> Configuring Pre selectable rows based on a boolean attribute value available in the backing object
<Service name="com.ptc.core.components.descriptor.DataUtility">
<Option serviceClass="com.customPkg.TestCustomDataUtility "
requestor="java.lang.Object" selector="col1” cardinality="duplicate"/>
</Service>
TableConfig table = factory.newTableConfig ();
--------
ColumnConfig col = factory.newColumnConfig(<'''columnId'''>, false);
col.setNeed (<Attribute>); // Specify the attribute which will decide the
row is pre selectable or not.
col.setDataStoreOnly (true); // this will make your Column hidden
table.addComponent (col);
table.setPreSelectableColumn (col);
PetrH
What are you actually trying to accomplish? If you just need to send an email to a specific role during a workflow, there are easier ways to do it.
