Skip to content

Instantly share code, notes, and snippets.

@ama-ch
Created June 6, 2014 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ama-ch/52c99b3ed20e5282480d to your computer and use it in GitHub Desktop.
Save ama-ch/52c99b3ed20e5282480d to your computer and use it in GitHub Desktop.
kintone.events.on('app.record.index.show', function() {
kintone.app.getHeaderMenuSpaceElement().innerHTML =
'<input type="text" id="keyword" placeholder="キーワード" > <button id="search">検索</button>'
document.getElementById('search').onclick = function() {
var keyword = document.getElementById('keyword').value;
var url = location.href;
url += '?query=' + '文字列__1行_ like "' + keyword + '"';
location.href = url;
}
});
@ama-ch
Copy link
Author

ama-ch commented Jun 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment