Add custom report a run time filter attribute

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gundogduyakici
    Senior Member
    • Mar 2018
    • 165

    Add custom report a run time filter attribute

    Hello,
    Add a custom report to the runtime filter attribute. I made a special report. But how do I add the runtime filter feature? I add this feature from the database. But it does not work when I'm working. for example ( ["dateStart"] )
    Does this have simple sample codes?
    Thank you.
    Last edited by gundogduyakici; 04-24-2018, 08:38 AM.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    if you add ["dateStart"] in database to runtime filter, it will be shown.
    in service run method you have where parameter

    Comment

    • gundogduyakici
      Senior Member
      • Mar 2018
      • 165

      #3
      No parameters. I thought it was automatic. Where I need to add parameters? Do you have an example of this? I could not find. tanya

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        run method get 2 parameters run($where, $params)
        if runtime filter is visible and you set it, print in log your $where argument and you will see $GLOBALS['log']->error(print_r($where, true));

        Comment

        • gundogduyakici
          Senior Member
          • Mar 2018
          • 165

          #5
          I understand. I will try this. Thank you. tanya

          Comment

          Working...