Hi @João Franco,
Can I ask you why do you need this behaviour?
I'am asking it because this pattern could handle ~100k results with no performance issues... That's why we didn't implement this feature by default.
That said, in order to add the behaviour you need, you can use the snippet:
var myDD = OutSystems.OSUI.Patterns.DropdownAPI.GetDropdownById("WidgetID");
// Override Prepare configs method...
myDD.prepareConfigs = () => {
// Add new attribute!
myDD._virtualselectOpts.onServerSearch = $actions.Search;
// Set the options with the new attribute!
this._virtualselectOpts = myDD._virtualselectOpts;
// Create the new provider instance!
myDD.createProviderInstance();
}
// Redraw Pattern
myDD.redraw();
This snippet should be added into a JS Node at the Initialized event triggered by pattern, there you can also use the returned WidgetID, or since you're using info that based on database, you can set it at the OnAfterFecth in order to affect the pattern at the right moment you need...
Keep in note that since we didn't implement this behaviour we can't ensure this snippet will solve your use case 100% of the cases...
Cheers,
JR