Below is a sample code to put filter or range for financial dimension region for any form. If you current form has default dimensions set like region and department and you want to filter only region then this sample code can help you.
You need to put in init method of the form.
SysQuery::addDimensionAttributeRange(CustInvoiceJour_ds.query(),
CustInvoiceJour_ds.name(),
fieldStr(CustInvoiceJour, DefaultDimension),
DimensionComponent::DimensionAttribute,
EmployeeRegion_RangeMST1.GOD_Region,
'Region');
You need to put in init method of the form.
SysQuery::addDimensionAttributeRange(CustInvoiceJour_ds.query(),
CustInvoiceJour_ds.name(),
fieldStr(CustInvoiceJour, DefaultDimension),
DimensionComponent::DimensionAttribute,
EmployeeRegion_RangeMST1.GOD_Region,
'Region');