Skip to main content
October 24, 2024
Question

a!recordLink or a!urlForRecord with parameters for Record Views?

  • October 24, 2024
  • 9 replies
  • 0 views

Hi All,

I have an interesting use case where the client wishes to open a 'Task' within a 'Case'.

For Context, we have a design where our Case has a one-to-many relationship with Tasks.

We have a 'Tasks' View on the Case record which has a selectable a!gridField where the end user can select a Task from the grid. This populates a Task screen below with data and record actions for the selected Task.

The client would like to navigate to the Case record -> Tasks View via both the a!recordLink() and a!urlForRecord() with the Task already pre-selected in the UI.

The client is not willing to have the link navigate to a Task Record as they find it confusing and do not want the User to leave the top level Case Record.

Is there any workaround I can use or is linking to a Task Record directly the only option available?

Many Thanks for your time,

Zac

9 replies

somasundaram.d
October 24, 2024

Does the attached image represent your requirement or current implementation?

zacc0002Author
October 29, 2024

Hi Soma,

Apologies for the late reply, the above is our current implementation. The Client would like the above Tasks View on the Case Record to be pre-populated with a selected Task from the Tasks gridField via a a!recordLink or a!urlForRecord navigation action.

I have thought of a hacky workaround by having the Task Record mimic the Case Record exposing the same views to the end user. This way I could use the record Identifier of the Task to have it pre-selected, but I am not fond of this approach.

shanmathip7466
October 29, 2024

Hi [mention:3b9e9f2d631d43ca99c152c78a792872:e9ed411860ed4f2ba0265705b8793d05] ,

I have a question here. From where the user clicks the task. Is it from a separate Tasks gridfield and not inside the record? If this is the case you want to land the user in the tasks view of the case record with the selected Task pre-populated? ---> So if this is your requirement, we can't pass values to the record view in order to display the task pre-populated.

Or please add more information.