a!recordLink or a!urlForRecord with parameters for Record 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

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Appian Employee
    in reply to zacc0002

    I think I have a way you could achieve this, although it is admittedly a bit hacky. Assuming you have a relationship between task and case, you could set up your app to send them to a task record instead of a case in this scenario.

    For example, you could have your "task record" actually display all of the related case information on the first tab, and the details for the task on the second tab. Then if you had task IDs 1-5 related to case 123, you would have separate URLs for each task but the first tab would all look the same (since they're for the same case).

    It might result in some less than desirable UX elsewhere in the app, but it's at least a work around to have each task have its own URL.

  • Hi Peter,

    Haha, yeah this was also the same conclusion i came to above. It is a possibility I'll keep in mind, but we'll also re-look at the design and see if it can be avoided.

    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.