Skip to content

access to the quickreport filter window

Forums Forums SIMPOL Programming access to the quickreport filter window

Viewing 16 post (of 16 total)
  • Author
    Posts
  • #3452
    Michael
    Keymaster

    Hi John,

    This is more a documentation issue than anything else. The item you are looking for is in commonreportgui.sml. Here is the definition:

    function dofilter(report1 report, type(wxdialogparent) w, array tables, string filter, \
                      string newclause, function okhandler, boolean allowtablechange=.true, \
                      boolean showjoinbutton=.true, string deftablename, \
                      boolean iscalculation=.false, string asname, boolean ismodify=.false, \
                      wxform mainform, string errmsgtitle=sCMNERRMSGTITLE, type(*) ref, \
                      type(dataform1) form, \
                      string caption="Superbase NG Quick Report Filter Definition") \
                      information "[simpol::return::boolean]" export

    This function is used for both the filter and the calculation code in the update. I haven’t had the time to document the use of this for out of house, but you should be able to get it to do what you want.

    The okhandler needs to be a function with the following prototype:

    function myfilterok(commonfilterinfo finfo, wxform form)

    The item you are looking for is form!tbFilter.

    I hope that helps. I really don’t have the time to document this in detail right now.

    Ciao, Neil

Viewing 16 post (of 16 total)
  • You must be logged in to reply to this topic.