Forum Discussion

lucas's avatar
lucas
Ideator I
5 years ago

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:[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:84128d64-2f8e-495b-800a-afbacbd16030:type=text&text=var%20param%20%3D%20%7B%0D%0A%09aras%3A%20top.aras%2C%0D%0A%09type%3A%20%22HTMLEditorDialog%22%2C%0D%0A%09sHtml%3A%22here%20i%27ve%20tried%20to%20put%20just%20the%20name%20and%20the%20full%20path%20but%20it%20didn%27t%20seem%20to%20work%20as%20even%20when%20i%20changed%20form%20i%20was%20always%20getting%20same%20form%20opening%20%22%2C%0D%0A%09dialogWidth%3A%201000%2C%0D%0A%09dialogHeight%3A%20500%2C%0D%0A%7D%3B%0D%0A%0D%0A%2F%2F%20This%20will%20be%20called%20after%20the%20dialog%20is%20closed%0D%0Afunction%20callback%28res%29%20%7B%0D%0A%09if%20%28res%29%20%7B%0D%0A%09alert%28res%20%2B%20%22%20loves%20learning%20about%20new%20opening%20HTML%20pages%20as%20dialogs%21%22%29%3B%0D%0A%09%7D%0D%0A%7D%3B%0D%0A%0D%0A%2F%2F%20Open%20the%20dialog%0D%0Avar%20topWnd%20%3D%20top.aras.getMostTopWindowWithAras%28%29%3B%0D%0Avar%20wnd%20%3D%20topWnd%20%3F%20topWnd%20%3A%20window%3B%0D%0Awnd.ArasModules.Dialog.show%28%27iframe%27%2C%20param%29.promise.then%28callback%29%3B]

any help is welcome

thanks 

lucas

1 Reply

  • actually if you know any way to make the user select a leaf of the x classification on an action click it would really help me as i've been searching for days and didn't see anyone talk about this