xclassification dialog from custom method

オフライン

hello i'm begining a project, the idea is to have a an action launch a dialog to select a xclass. I would like to launch the same dialog as the one that pops up when adding a part xclass

and x property(see below):

 

after the user selected a class i want to retrieve the name of the class he chose.

The following step is to have a second dialog (depending on the classification chosen) this second dialogs might be hard coded or dynamically buit i'm still unsure and they are going to look like the form used  to fill the xproperty after you choose your part class but slightly different:

i want to add a  column of check boxes for future business logic.

i've tried to search for the xclass tree selection dialog but couldn't find it 

i've tried to display some that i could find in the code tree but without sucess,

i used the dialog api, here is my code:

var param = {
	aras: top.aras,
	type: "HTMLEditorDialog",
	sHtml:"here i've tried to put just the name and the full path but it didn't seem to work as even when i changed form i was always getting same form opening ",
	dialogWidth: 1000,
	dialogHeight: 500,
};

// This will be called after the dialog is closed
function callback(res) {
	if (res) {
	alert(res + " loves learning about new opening HTML pages as dialogs!");
	}
};

// Open the dialog
var topWnd = top.aras.getMostTopWindowWithAras();
var wnd = topWnd ? topWnd : window;
wnd.ArasModules.Dialog.show('iframe', param).promise.then(callback);

any help is welcome

thanks 

lucas