cancel
Showing results for 
Search instead for 
Did you mean: 

Combo Engine Filter

Former Member
0 Kudos

Hi,

I have created a Combo control which is bound to Business query. Can I filter this combo control at the on the load of tilset as I would like to display some filtered data.

Pls share a code if some has worked on this

thanks and regds

Harish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Wolfhard,

Could you pls share the code as I have to deliver this object today and I am unable to find the code for the same.

Thanks in advance.

Harish Singh

Former Member
0 Kudos

Hi,

for example you have an activity search tileset ("normal" or popup) and a search criteria <employee> which is supported with a combo, and you want to restrict the employee list to a particular country value which you are retrieving from somewhere you need to do the following:

- add unbound attribute Z_EMPCOUNTRY to BSACTIVITY (BQ for activities)

- add a filter or segment field ZZCOUNTRY to the query BDoc for employees which is used for your combo

- add a custom filter to the combo engine (filter type = dynamic) using this property Z_EMPCOUNTRY, mapped to the BDoc filter/segment field

- add the following lines to the onload event of the tile:

dim mycountry as string

mycountry = ...

aEmployeeQueryAnchor.bq.SetAttribute("Z_EMPCOUNTRY", mycountry)

Regards,

Wolfhard

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

this is quite simple to implement...

What you need to do is the following:

- add an unbound attribute to your business (query) object

- add this attribute as a custom filter for the combo engine (filter type = dynamic), fill the according BDoc filter/segment field name

- fill this BO/BQ attribute when loading the tile/tileset (1 line code...)

-> then when firing the combo engine the filter will work

Regards,

Wolfhard