How can I choose a specific Search Mode when opening a Search Dialog via Method?

Hi community,

I use following code to open a classic Part search dialog. 

const param = {
    aras: aras, 
    type: 'SearchDialog',
    dialogWidth: 1200,
	dialogHeight: 500,
    itemtypeName: 'Part',  
    defaultSearchMode: "AML",  // ??????
};

const topWnd = aras.getMostTopWindowWithAras();
topWnd.ArasModules.MaximazableDialog.show('iframe', param).promise.then(callback);

Is it possible to pre-select the used search mode?

Typically the "Simple" (Einfach) search mode is preselected. I have an additional custom search mode that is similar to Simple, but allows users to search for all generations of a Part.

In my use case user shall be able to search and select previous Part versions. So it would be convenient if my custom search mode would be selected automatically when the search dialog is opened. 

I guess this is currently not possible. But maybe somebody has an idea?

Thanks!

Angela

Parents
  • Thanks for the update — your new approach sounds like a smart workaround! Starting from the latest item and programmatically gathering previous versions makes sense, especially when multiple revisions are involved. It keeps the UI cleaner and avoids relying on dropdown behavior that’s hard to control. animal rampage 3d

    I’m also curious about your controlled float strategy — are you planning to log user decisions when they choose to float or not? Would love to hear more about how you’re implementing that logic.

Reply
  • Thanks for the update — your new approach sounds like a smart workaround! Starting from the latest item and programmatically gathering previous versions makes sense, especially when multiple revisions are involved. It keeps the UI cleaner and avoids relying on dropdown behavior that’s hard to control. animal rampage 3d

    I’m also curious about your controlled float strategy — are you planning to log user decisions when they choose to float or not? Would love to hear more about how you’re implementing that logic.

Children
No Data