サーチバーで検索した結果を出力したものをCSV出力する方法を教えてください。
Django(HTML + JavaScript)にてAppを作成してダッシュボードを作成しました。
サーチバーに入力したものをテーブルビューで出力するシンプルなダッシュボードです。
Advanced XMLであれば
イメージはデフォルトで付属しているSearch.appで検索後、「スマートモード」の左隣にあるボタン群のようなものです。
Advanced XMLは「?showsource=true」でソースを確認してもXMLしか表示されず、
ブラウザ付属の「ソースを表示」を使用しても検索前(ボタン群が表示されていない)のソースしか表示されません。
以上、よろしくお願いします。
Hi,
I have got sample HTML code from our colleague.
Please see the github link he created.
https://gist.github.com/mgroves84/d2a4e8ac91e8b6a6e86c
Please add this page to within the /django/templates/ directory for your test.
Thank you.
Under the covers the export button calls the /en-US/api/search/jobs/
You would have to write some JS code to get the search_id from the search manager and then call the API endpoint to get the file.
I don’t have any sample code, but hopefully that will get you started.