Switch between multiple workshop embedded modules

I have a Workshop applciation which acts as a parent module, to that we have embedded multiple other workshop modules. The ask is to switch easily between these “child” modules with the filtered data as they are having the same backing object. So I have a event which allows this trigger, but how can I exactly do this without redirecting to other tabs/ open new window?

It should be a smooth transation similar to how for example switch between tabs or event a button.

Similarly to switch between child modules which are all on the same level.

Hi! You could create 4 sections in your module, with each set to be conditionally visible depending on the trigger. So when trigger condition is met (maybe this is object set having xxx output or upon button click), set a variable value to A, B, C, or D, and have 4 different sections set to be conditionally visible only when the variable is A, B, C, or D.

Use navigateToModule with target: "CURRENT_WINDOW"** renders the child in-place, no new tab, no redirect.

navigateToModule({
  moduleRid: "ri.workshop..module.CHILD_RID",
  target: "CURRENT_WINDOW",
  parameters: { myObject: selectedObject },
});

Wire this to your event/button. Since all children share the same backing object, just swap the moduleRid and pass the same filtered object each time.

Best Regards,

Felipe Montes
Development Advisor
Follow me @ linkedin.com/in/felipemontesl/ or GitHub: Brazillianerd