web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to extend filter pane in On-hand list ?

(0) ShareShare
ReportReport
Posted on by 10

We have the requirement to add a range on the Warehouse type as not Transit for a specific role 
I tried to modify the addFilterPaneRanges() method, updatedesign method
But it didnt work.

//protected void addFilterPaneRanges()
//{
// next addFilterPaneRanges();
// QueryBuildDataSource InventLocationDS = InventLocation_ds.query().dataSourceName(InventLocation_ds.name());
// SysQuery::findOrCreateRange(InventLocationDS, fieldNum(InventLocation, InventLocationType));
//}

// QueryBuildDataSource InventLocationDS = InventLocation_ds.query().dataSourceName(InventLocation_ds.name());
// SysQuery::findOrCreateRange(InventLocationDS, fieldNum(InventLocation, InventLocationType));
// CoC
// next updateDesign(_mode);
// if(_mode == InventDimFormDesignUpdate::Init)
// {
// isFormOpenedWithDynalink = (InventSum_DS.query().dataSourceName(InventSum_DS.name()).dynalinkCount() > 0)
// || (InventTable_DS_DS.query().dataSourceName(InventTable_DS_DS.name()).dynalinkCount() > 0)
// || (InventDim_DS.query().dataSourceName(InventDim_DS.name()).dynalinkCount() > 0)
// || (InventBatch_DS.query().dataSourceName(InventBatch_DS.name()).dynalinkCount() > 0);
// if(!isFormOpenedWithDynalink)
// {

// InventLocationDS = InventDim_ds.query().dataSourceName(InventLocation_ds.name());
// SysQuery::findOrCreateRange(InventLocationDS, fieldNum(InventLocation, InventLocationType));
// }
// }

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    300,727 Super User 2025 Season 2 on at
    RE: How to extend filter pane in On-hand list ?

    Hello Raj,

    Can you tell if you got errors or if nothing happened? Was the code as copied above also disabled by the comment indicators? It looks like

    Have you used the debugger to check if the coding is executed? It looks like you add a range, but no filter value for the field InventLocationType.

    Note that you can use extensible data security (XDS) for achieving your requirement. You can then create a security policy which will add the query constraint which can be linked to a particular security role.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans