How to pass a parameter to RecordType?

Certified Senior Developer

Hi,

We have 3 interfaces and 1 RecordType. 2 Interfaces call a RecordType and the latter calls a third interface.

Example:

   InterfaceA => RecordType => InterfaceC

   InterfaceB => RecordType => InterfaceC 

My Question: How the InterfaceC may know which source Interface (A or B) have called the RecordType please?

The 2 interfaces A and B calls the RecordType with a RecordLink like :

link: a!recordLink(
    recordType: cons!TST_RECORD_TYPE,
    identifier: fv!row.id
)
    

The RecordType calls the InterfaceC using the Summary action (Tab View).

  Discussion posts and replies are publicly visible

Parents
  • Is your goal to display something different on interface C based on where you started? Can you describe more what you want to display on interface C?

    Assuming that is what you're hoping to do, there really isn't an easy way that I know of to identify what link you came from. The only thing that might work is to just conditionally show interface C within interface A or B using a dynamic link instead of a record link. If you did this, you wouldn't navigate to the summary view itself, you would just temporarily hide all of the content in interface A using an if() or showWhen and then display interface C within your original interface.

  • 0
    Certified Senior Developer
    in reply to Peter Lewis

    Yes Peter, it is exactly that.

    We need for a customer, to just hide a button in one case (but keep the button displayed in the other case).

    I would have liked to avoid changing anything else for such a little need. 

    But thank you, I will try what you've suggested me.

Reply Children
No Data