cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Can we filter by state or display state in 'Find Affected Objects' wizard when creating a CR?

RG_10753677
8-Gravel

Can we filter by state or display state in 'Find Affected Objects' wizard when creating a CR?

RG_10753677_0-1696353105529.png

1. Can we display a state column in the Find Affected Objects window?
or

2. Can we add a filter and filter by state?

or

3. Can we use baseWhereClause="(state.state='PRODUCTION')" in jsp file and customize, so that only production state objects are returned?

 

 

 

3 REPLIES 3

Hi @RG_10753677 

Add the state to the view in a view customization

the state is already there so you need to just show it

HelesicPetr_0-1696400853029.png

 

HelesicPetr_1-1696400879445.png

 

PetrH

 

Thank you so much, this works for my use-case temporarily. 

Long-term, I am looking for way to restrict users from selecting non-prod state affected objects, or WC to return only prod-state objects, that way users can click on 'Select all' checkbox in the results table header, instead of grouping/sorting the results by state and selecting each object manually, 

Can you try like below.
 
Go to codebase\pickerAttributes.xml file 
 
    <ComponentID id="compID">
        <ObjectType id="TYPE">
            <SearchCriteriaAttributes>
                <Attributes>
                    <Name>internalName1</Name>
                        <DisplayName>DN1</DisplayName>
                            <IsSearchable>true</IsSearchable>
                </Attributes>
                <Attributes>
                    <Name>internalame2</Name>
                        <DisplayName>DN1</DisplayName>
                            <IsSearchable>true</IsSearchable>
                </Attributes>
            </SearchCriteriaAttributes>
        </ObjectType>            
    </ComponentID>
 
use the compID in your jsp picker 
 
<wctags: itemPicker 
.
.
.
searchResultsViewId="<custom>.view"
displayAttribute="<list of attribute's internal names separated by commas>"
componentId="compID" 
/>
 
Top Tags