Can we filter by state or display state in 'Find Affected Objects' wizard when creating a CR?
Oct 03, 2023
01:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Oct 03, 2023
01:16 PM
Can we filter by state or display state in 'Find Affected Objects' wizard when creating a CR?
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?
Labels:
- Labels:
-
General Customization
3 REPLIES 3
Oct 04, 2023
02:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Oct 04, 2023
02:28 AM
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
PetrH
Oct 04, 2023
09:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Oct 04, 2023
09:04 AM
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,
Oct 12, 2023
04:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Oct 12, 2023
04:25 AM
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"
/>
