AnsweredAssumed Answered

How to manipulate the original api call method when #customModule/layout/customLayout is called?

Question asked by chadhutchins on Oct 9, 2015
Latest reply on Nov 19, 2015 by Alan Beam
I have a custom layout with some custom views. I can access my layout in the UI by going to #customModule/layout/customLayout (given customModule is my module and customLayout is my layout)

What I'd like to accomplish is to be able to redirect to my layout, but with additional parameters sent to it, such as a record id, something like this: #customModule/layout/customLayout/c936a36f-7f14-04a6-0f76-56169de5ffc4

Then my layout could initially render based on if there is a specific record_id passed or no record_id passed.

I know how to handle this in my customModuleApi on a subsequent call, but I don't know how to modify anything related to the initial layout request. 

Is there a way to pass URL or post data to the initial layout call? Or am I approaching this problem wrong and there's another way?

Outcomes