how I can make filter in filed ?

hi

I want make filter in empltable by PBAUserprofile and make the result in field in this field I select only the record filtered in the the form ?!!

how I can do this ?

thank you

Hi Hakim,

You can do that by using Override methods at form datasource level…

Use ValidateWrite,excecuteQuery,init Methods to filter the data…

can you give me some exemple please ?

give me your email id…

i will send u an xpo file for you to make better understand.

brahiminaim@gmail.com

thank you

““brahiminaim@gmail.com””

thank you !!

You can apply the filter on init and executeQuery override method of datasources.

  1. You can do it on init method after the super call or before the super call in executeQuery method. Below are the 2 different ways to apply filter on datasource level :

public void init()
{

super();
this.query().dataSourceTable(tablenum(CustTable)).addRange(fieldnum(CustTable, RecId)).value(element.initQueryRange());
}

public void executeQuery()
{
this.query().dataSourceTable(tablenum(CustTable)).addRange(fieldnum(CustTable,RecId)).value(element.initQueryRange());
super();

}