Base function for lookup value click in FreedomUI

Hi community,

 

I would like to know the base function that gets called when you click on a lookup value and takes you to a new page in FreedomUI. We are looking to override the function and add our own logic to it.

 

Thanks in advance.

 

Regards,

Abilash.S

Like 0

Like

1 comments

Hi,

 

In creatio-devkit-common there is the Bs class with the constructor with this function:

process: async t=>{
                        const e = this._getHandler(t);
                        return null == e ? void 0 : e.handle(t)
                    }

and when the lookup value is clicked the "crt.7XRequest" request is caughth with the "EditRecord" action:

(payload stores information about which entity the lookup column represents and which record will be opened) after which page opening is performed. So you need to check for the "crt.7XRequest" request in your case.

Show all comments