You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/11/04 08:56:14 UTC

[GitHub] [incubator-superset] senturkayhan commented on issue #6708: Jinja macro url_params is not working from the dashboard

senturkayhan commented on issue #6708: Jinja macro url_params is not working from the dashboard
URL: https://github.com/apache/incubator-superset/issues/6708#issuecomment-549265596
 
 
   I solved this issue that I added this code to def dashboard (**kwargs )   in core.py
   I used what i need parameters name in this code, you should change with your needs
     
   if request.args.get('foo'):
               slice_count = 0
               for sss in dash.slices:
                   dashboard_data['slices'][slice_count]['form_data']['url_params'] = {'foo':request.args.get('foo')}
                   slice_count += 1
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org