Forum Discussion
ArchiveUser
8 years agoQrew Captain
Is there a way to make this work where the user's page is refreshed and it keeps a search term in the built in search bar?
The dynamic filters are nice and all, but my users are currently scanning a bar code into the search bar which filters the report down to 5 or 6 relevant records. They then click URL buttons to update status on a few of these relevant records.
Every time they click one of my URL buttons, it refreshes the page and even though the search bar is still populated, and I see the search term in the URL, the report does not filter until we hit "Search" (or Enter on the keyboard).
My code is below:
var text URL =
URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_7="&URLEncode("Complete");
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);
The dynamic filters are nice and all, but my users are currently scanning a bar code into the search bar which filters the report down to 5 or 6 relevant records. They then click URL buttons to update status on a few of these relevant records.
Every time they click one of my URL buttons, it refreshes the page and even though the search bar is still populated, and I see the search term in the URL, the report does not filter until we hit "Search" (or Enter on the keyboard).
My code is below:
var text URL =
URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_7="&URLEncode("Complete");
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);