on 10-31-2008 11:30 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.