on 10-01-2009 6:04 PM
hello, i have a grid and i want to make a search per date and then refresh the grid to came back to the initial values...
when i load my page it is like this: http://img9.imageshack.us/img9/6359/gridy.jpg
the values that the grid shows have the actual date
the user can put some date in that textbox and then i press the button "search", i build an function but it show me this error: "document.SearchData is null or not an object" but curious after some seconds update the grid with the corresponding search values.
with the "Refresh" button i want to the grid came to the values when the pages load...i build another function and put this
document.grd_ScrapList.updateGrid(true);
but dont work..dont know why
could someone help me
regards and thanks in advance
Mário
Mario,
Clicking Search should set the date which the user has entered in the query and re-read the data. Refresh should set the current date in the query and reread the data.
The function updateGrid(true) rereads the query using the actual query parameters. If you want to refresh the data to the current date, you may try the refresh function. Have a look at the MII help: [iGrid Methods|http://help.sap.com/saphelp_xmii120/helpdata/en/44/cf1aa93afb6f1ee10000000a155369/frameset.htm].
What does you document.DearchData look like?
Hope this helps.
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mario,
as the refresh() is a grid function, your first code is correct. But I have just tried an example and see what you mean. The refresh() just rereads the query with the settings I had set before. So I would think you have to add some code in your JS refresh function that resets the starttime to the current time to get the result you want (show the result using the actual date).
Michael
User | Count |
---|---|
12 | |
6 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.