Using Choose to filter field

SUGGESTED

Hi there,

Im trying to filter a field based on CHOOSE as I read on greytrix ( http://www.greytrix.com/blogs/sagex3/2014/08/31/adding-selection-window-for-any-action/ )

My code is working but If I use the search (as highlited in the screenshot) the field is closed and I get the message "item not found", even if Im sure the item exists...

Here is my code:

Subprog S_YFORMNUM(VALEUR)
Variable Char VALEUR()
If!clalev([F:YFSF]) : Local File YFAMSTKFORM [F:YFSF] : Endif

Choose [YFSF] Where ([F:YFSF]YFAFID = [M:STONE]YFAMNUM) Using
&[YFSF]YSSFID Titled "ID Formato",
&[YFSF]YSSFDES Titled "Desc. Formato"
& Sized (80,150)
& Titled "Opção Formato"

Filter [F:YFSF]

VALEUR = [YFSF]YSSFID

End

Top Replies





  • Hi there, 
    i am facing issue more than above. I'm looking for help madly

    1)  'Search' function is not working. When i mouse click on Search area, the lookup screen close directly.

    2)  when i try to…

  • 0





    Hi there, 
    i am facing issue more than above. I'm looking for help madly

    1)  'Search' function is not working. When i mouse click on Search area, the lookup screen close directly.

    2)  when i try to select record number 2 (in Red rectangle), but it always return me record number 1, it seem like system will always take the first      record if there are same 'Object' even different 'Policy'

    3) When mouse click on 'Back / Next' (in Orange Circle) , the lookup screen close directly.

    Thank you

  • +1 in reply to destan
    SUGGESTED

    Hi everybody, 

    sorry to revive this very old topic but I have the same question and I can't find the answer. I'm quite new to 4GL, so maybe for an expert is an easy question (I hope).

    When I close the "choose window" I have several values of status to handle: 

    Case status

        When 28:    # selection of a certain row , so I can put the selected value in VALEUR  --> ok!! 

             Filter [F:ZGAEQ]
             VALEUR = [F:ZGAEQ]SQHNUM
         When 48:   # left arrow  : previous page of data

        When 49:  # right arrow:   next page of data

         When 45:  # rapid selection 


         When 7: # exit with no selection 
    Endcase

    Is there a way to handle "automatically" values of 48, 49, 45 in order to see, for example, the next page of data or d I have to manage everything "manually in some way"?

    Thank you very much!! 

  • 0 in reply to Gabriele Predoli

    Hi folks!

    Too bad that no 4GL expert seems to be around :-)

    I'm facing the same problems you guys do, additionally, I do always get only 3 records listed in the popup even if there are more items that should be shown...

    Did one of you find a way to solve this problem yet?

    Regards, Benjamin