navarre.ai

Slide archive

Search & JSON

JSON and SearchResults · 2023 · Matt Navarre · 17 slides

See the slides

Slide 1Search & JSON

Slide 2About Matt

Hey, nice suit ^

Slide 3SearchResults 7

Slide 4Pieces and Parts

Slide 5Layouts

Slide 6Table

Data table with 4 fields

Slide 7Scripts

At it’s core, SearchResults is a series of scripts

Slide 8How?

Slide 9Metadata

Slide 10Demo

Let’s go play with those features

Slide 11JSON

That’s all well and good. But how does JSON come into this?

Slide 12Key Calls

Slide 13SearchResults and JSON

Slide 14Prefs

Preferences
{
"general" :
{
"current_table" : "4",
"psos" : "Off",
"show_history" : "Off",
"show_tooltips" : "On"
},
"table_01" :
{
"lines_to_show" : "8",
"search_enabled" : "On",
"table_name" : "Client"
},
"table_02" :
{
"lines_to_show" : "10",
"name_sub" : "On",
"quickfind" : "Off",
"search_enabled" : “On",
"table_name" : “People"
},
….}

Slide 15Results

{
"results" :
[
{
"link" : "",
"text" : "People | Showing 2 records",
"type" : "header"
},
{
"link" : "XWKUW TAANS DQPER HT14T",
"table" : "02",
"text" : " Robert Smitherton • 804-648-2844 • Stusser Electric Company"
},
{
"link" : "XWKUW TAANS EZ9GJ OBTVP",
"table" : "02",
"text" : " Robert Smith • 973-575-6473 • TNT Express Worldwide"
},
{
"count" : 2,
"link" : "",
"search" : "robert smith",
"table" : "02",
"text" : " ...List 2 results",
"type" : "footer"
},

Slide 16

{
"display" :
{
"result_layout" : "? * Line 1, Column 1\r A valid JSON document must be either an array or an object value.",
"separator" : " • "
},
"general" :
{
"current_table" : "4",
"psos" : "Off",
"show_history" : "Off",
"show_tooltips" : "Off"
},
"search" :
{
"action" : "Search",
"datatype" : "text",
"operator" : "",
"profile_list" : "",
"string" : "robert smith",
"table_name" : "Client",
"table_number" : "01"
},
"table_01" :
{
"lines_to_show" : "8",
"search_enabled" : "On",
"table_name" : "Client"

Slide 17

{
"display" :
{
"result_layout" : "? * Line 1, Column 1\r A valid JSON document must be either an array or an object value.",
"separator" : " • "
},
"general" :
{
"current_table" : "4",
"psos" : "Off",
"show_history" : "Off",
"show_tooltips" : "Off"
},
"search" :
{
"action" : "Search",
"datatype" : "text",
"operator" : "",
"profile_list" : "",
"string" : "robert smith",
"table_name" : "Client",
"table_number" : "01"
},
"table_01" :
{
"lines_to_show" : "8",
"search_enabled" : "On",
"table_name" : "Client"
},