I have a scenario, where a button "Test" is added on a coachview - CV1.(This CV1 is used in many CSHS and other CVs also).
Now i want to change the colour of the button dynamically and i can achieve it by
page.ui.get("/CV1/Test").setColorStyle("DANGER");
But in another CSHS , i have CV2-->CV1--> Test button, In that case i need to change it to
page.ui.get("/CV2/CV1/Test").setColorStyle("DANGER");
is there any way to get the path dynamically using some APIs based on the controlId of the button?