Filter by Action-Button combine

stonystony Member Posts: 122
edited 2012-10-10 in NAV Three Tier
I have the following action bar:

Is there a way to select multiple buttons. Say I want to create a filter of "Altholz Natura" and "Natura".
The following code is executed, for example if you select the Action "Natura".
SETRANGE(Farbencode,'NATURA');
CurrPage.UPDATE(FALSE);

thanks
stony

Comments

  • IsitarIsitar Member Posts: 29
    Hello

    if it is only about one field you could use a global variable (example FilterText) and put the strings togheter.
    global: FilterText Text 1024
    local: Filter Text 250
    
    Filter := Natura;
    IF STRLEN(FilterText) > 0 THEN
      FilterText += '|';
    
    FilterText += Filter;
    
    SETFILTER(Field,Filter);
    

    Hope this helps you
    Greetings from Switzerland
Sign In or Register to comment.