Quantcast
Channel: SCN : Blog List - Customer Relationship Management (SAP CRM)
Viewing all articles
Browse latest Browse all 229

Attachment Attribute: Visible in Search

$
0
0

I tried to use them to perform the search and I expected only the attachment instances belonging to the given product I specified in INSTID are returned.

 

To my surprise, the query result includes not only the attachments for the given product, but also returns lots of attachments belonging to other products created by me.

clipboard1.png

Through debugging, I found the parameter CATID, TYPEID and INSTID is not passed into main search function module in line 61, which means they are not considered during search at all.

clipboard2.png

Instead the search result are filtered by the three parameters in post processing, according to the attribute value "CRM_SEARCH_VISIBILITY" of each attachment instance:

clipboard3.png

In Attachment Property UI, we can assign three kinds of value for "Visible in Search":

clipboard4.png

clipboard5.png

It is defined as instance attribute in Document model workbench:

clipboard22.png

according to the filtering logic in code below, the attribute would work as below in CMAdvDocumentFinder implementation:

 

No Restriction: the attachments with such attribute will not be filtered.

1 - In Business Objects of the Same Object Type Only: the attachments whose host business object type not equal to search parameter TYPEID will be filtered out.

2- Only in the Same Business Object: the attachments whose host business object instance not equal to the instance specified by search parameter TYPEID and INSTID will be filtered out.

clipboard6.png


Viewing all articles
Browse latest Browse all 229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>