Is there a way to capture the search value the user entered in a table search field

Aperta
#1,146 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust, sql
Ambito
frontend, web-dev

Direzione di ricerca

Start with the table component’s handling of initial_search_value, search_value, and the $search parameter; the issue does not name a source file or test, so locate those entry points in the SQLPage repository. Check whether the user-entered value is exposed in a way that can be passed back as a URL parameter on reload. Done means the search can be preserved across reloads; the issue has had no activity for 303 days.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

waiting for response

Below is a sample of my code. I am able to pass in a parameter to set the initial search value for the search bar in a table. But I would like to be able to capture the search value the user entered so when I reload the page, I can set the initial_search_value to the user's search. Any ideas would be greatly appreciated.

P.S. I love SQLPage and I have been able to do just about everything I have wanted.


-- Display the section title

SELECT
'text' AS component,
'Account' AS title;

SELECT
'table' AS component,
'Links:' AS title,
'AcctNbr' AS markdown,
1 AS sort,
$MySearchParm AS initial_search_value,
$search AS search_value,
1 AS search;

select
'[' || a.acctnbr || '](' || 'testchange_account.sql?Sender=Main&AcctNbr=' || a.acctnbr || '&search=' || $search || ')' AS AcctNbr,
a.CompanyName, c.Email
from contacts c
left outer join accounts a
on (c.accountid = a.accountid)
where (email = sqlpage.cookie('Email') or sqlpage.cookie('Email') like '%@kevinreagan.com')
and a.companyname is not null
and a.companyname <> ''
and c.email is not null
and c.email <> ''
order by a.companyname

Lingua principale
Rust
Stelle
2.6k
Fork
175
Merge medio
14h 16m
PR unite (30g)
43

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sqlpage/SQLPage

Tutte le issue di sqlpage/SQLPage

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.