Hi,
In the Document Object Connection, i have created a custom field such as :
SELECT CASE
WHEN INSTR(a.KEY_REF,'EMP_NO=')>0 THEN Company_Person_API.Get_Person_ID(regexp_substr(a.KEY_REF,'[^^|=]+',1,2),regexp_substr(a.KEY_REF,'[^^|=]+',1,4))
WHEN INSTR(a.KEY_REF,'PERSON_ID=')>0 THEN regexp_substr(a.KEY_REF,'[^^|=]+',1,2)
ELSE '' END FROM IFSAPP.ENHANCED_DOC_REFERENCE_OBJECT a where a.objid = :objid
So i can fetch the person ID in this field, and then I have created a custom tab in the Personal File that links to this custom field so i am able to retrieve all the documents pertaining to an employee wherever the document is located.
It works, however performance is very low… is there a way to index my custom field PersonID? The Indexed box is grey ... Or has anyone found a more elegant solution ?