Eric Schultz
11/01/2024, 2:32 PMCeligo AI
11/01/2024, 2:33 PMAI generated answer (using internal Slack threads):In SuiteCommerce Advanced, you can access the
application.layout.selectedMenu
attribute within a customer extension by using the getLayout
method of the application
object. This method returns the instance of the layout, and you can then access its properties, including selectedMenu
.
Here is a sample code snippet:
javascript
var layout = application.getLayout();
var selectedMenu = layout.selectedMenu;
Please note that the application
object is usually passed to the module when it is being mounted. If you don't have access to it, you might need to adjust your module structure or pass the application
object to your module.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
11/01/2024, 2:33 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.775122583
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.76705
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.764713168
Celigo AI
11/01/2024, 2:33 PM