- Thank you received: 62
we still are working on grid.js right?. So if my column is called rut (the id) and I don't want to show me all the records, if I said don't show me data when rut is empty, could be some like this?
if(ds=rut|"")return;
I'm trying some alternatives but don't work. I'm starting to desesperate.
Please Log in or Create an account to join the conversation.
If you are only using one column in the advanced filer than you could use
if(ds="rut|")return;
If you were using also other columns in the search filter, than you would have to take this into account as well.
Please Log in or Create an account to join the conversation.
I have one column filtered only, the column rut, bue don't work
if(ds="rut|")return;
the submit button don't work even if i put a correct rut id, don't show me anything, but I delet the code and come back to work again.
What can be happening?
I don't change any other line of code, only the mentioned in this post.
Please Log in or Create an account to join the conversation.
You could do
alert(ds);
just for test, to see what is actually in there.
Please Log in or Create an account to join the conversation.
Hi, another day, I'm trying another things...
alert(ds); give me this results...
with ==
if(ds=="rut|")return;
if I put an incorrect Id don't show me any results, it's ok
if I put a correct id, it show me the data asociated to the id, it's ok
but... if the search box is empty still show me all the data...
the alert alert(ds); show me rut%7C%7C when empty search box
and when I put a correct id for example 12345678-9 it show me rut%712345678-9C%7C
with =
if(ds="rut|")return;
don't work anything, the submit button don't give any result, neither if I put a correct id, nothing happen.
with === the same thing, don't work.
What it supposed the alert(ds) has to show me?
Please Log in or Create an account to join the conversation.
if you put alert(ds); into that code a window should pop up where the content of the ds variable should appear. Could you tell me what do you see when you click search with an empty search box, and what do you see if you put something into that search box?
Please Log in or Create an account to join the conversation.