Skip to Content
author's profile photo Former Member
Former Member

Combo Engine Filter

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 31, 2008 at 01:53 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Oct 31, 2008 at 12:06 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.