mx commands mendix

0
How can I get the name of the page, and the name of the widget on the console of the browser?
asked
3 answers
0

Hi Qusai,

Right click on the page you want, click inspect and then go to consol (the second tab)

and write this function

var x = mx.ui.getContentFrom().path;
var y = x.split('/');
var z = y[1].split('.');
var pageName = z[0];

then write the below it will give you the name of the page

pageName
 

 

 

answered
1

Does CommunityCommons help with ‘GetApplicationUrl’?

answered
0

You might want to look at the Client API docs at https://apidocs.rnd.mendix.com/9/client/mxui_lib_form__FormBase.html to get form Title and widget info on https://apidocs.rnd.mendix.com/9/client/mxui_widget__WidgetBase.html 

answered