Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering null values when there is no parameter passed in the url(FormHandler prepare example) #36

Open
vivekyandapalli opened this issue Oct 13, 2020 · 2 comments

Comments

@vivekyandapalli
Copy link

In FormHandler prepare document,
the below url is working fine(filtering cross column where Yes is present)
https://learn.gramener.com/guide/formhandler/replace?c=Yes&_format=html

but, when c parameter is removed from url, ideally it should return full data, but it is filtering out null values.
https://learn.gramener.com/guide/formhandler/replace?&_format=html

@vivekyandapalli vivekyandapalli changed the title Filtering null values when there is no parameter passed in the url Filtering null values when there is no parameter passed in the url(FormHandler prepare example) Oct 13, 2020
@sanand0
Copy link
Contributor

sanand0 commented Oct 31, 2020

@vivekyandapalli sorry about the delay on the revert. Both URLs seem to have the same content:

https://learn.gramener.com/guide/formhandler/replace?c=Yes&_format=html
https://learn.gramener.com/guide/formhandler/replace?&_format=html

There is no column called "c", so "c=Yes" has no effect -- which is expected.

What were you expecting, please?

@vivekyandapalli
Copy link
Author

@sanand0 here, c parameter is used for Cross column filtering in prepare function.

image

When I checked flags.csv Cross column is having null values along with Yes values. When there is no c parameter in url it is filtering those null values.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants