Hi .. We are using a!recordLink inside gridTextColumn to direct to a custom dash

Hi .. We are using a!recordLink inside gridTextColumn to direct to a custom dashboard in a record .. When we click on the hyperlink its opening the custom dashboard in the same page instead of a new tab.

Because of this we are facing one issue. Wheni use this hyperlinik in REPORTS, its not a prob. But when i use the same in a task (Initiated from ACTIONS), whenever the hyperlink is selected its warning the data will be lost (as in when we try to close a tab / navigate away from the task page).

How to make the link open in a new tab / new window using the same recordLink or by wrapping it with some other rule ?

OriginalPostID-184773

OriginalPostID-184773

  Discussion posts and replies are publicly visible

Parents
  • My Code is,

    a!gridTextColumn(
              label: "Some ID",
              data: local!datasubset.data.someId,
              links: a!applyComponents(
                        function: rule!renderSafeLink(
                                  recordType_rty: cons!MY_RECORD_TYPE,
                                  identifier_any: _,
                                  dashboard_txt: cons!MY_CUSTOM_DASHBOARD_URL
                        ),
                        array: local!datasubset.data.id
              )
    )


    rule!renderSafeLink

    a!safelink(
              label: "My link",
              uri: urlforrecord(
                        ri!recordType_rty,
                        ri!identifier_any
              )
    )


    Now we dont have a way to say this link to point to a different dashboard in the same recordType
Reply
  • My Code is,

    a!gridTextColumn(
              label: "Some ID",
              data: local!datasubset.data.someId,
              links: a!applyComponents(
                        function: rule!renderSafeLink(
                                  recordType_rty: cons!MY_RECORD_TYPE,
                                  identifier_any: _,
                                  dashboard_txt: cons!MY_CUSTOM_DASHBOARD_URL
                        ),
                        array: local!datasubset.data.id
              )
    )


    rule!renderSafeLink

    a!safelink(
              label: "My link",
              uri: urlforrecord(
                        ri!recordType_rty,
                        ri!identifier_any
              )
    )


    Now we dont have a way to say this link to point to a different dashboard in the same recordType
Children
No Data