Search Question

84 views
Skip to first unread message

fsjpap...@gmail.com

unread,
Feb 15, 2026, 10:54:36 AM (5 days ago) Feb 15
to mementodatabase
We stock alot of nuts and bolts, and when I use the android version standard for search , I can use for example...

3/8" , and it will return all parts that have 3/...   in the part discription / number 

When I use the same 3/8" on the PC Version, it does not recognize the / character, so only returns parts that start with 3

Is the "/" character a reserved character on the PC?  Or is this a error of the program? 

I can use an alternate such as 3_8 but this is non-standard in the parts world,  

1/2"  , 3/8" , 5/8"  is standard for size discriptions

Insites / Ideas ?

Thank you 

Dan

Er Mo

unread,
Feb 15, 2026, 12:04:26 PM (5 days ago) Feb 15
to mementodatabase
Hallo
Versuche mal mit Anführungszeichen . also " 3/8 "

Hello
Try using quotation marks. So, "3/8"

Ernst

Bill Crews

unread,
Feb 15, 2026, 12:48:30 PM (5 days ago) Feb 15
to Er Mo, mementodatabase
Or maybe try 3\/8" to "escape" the slash.

--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mementodatabase/144c0dfa-2b9b-44bd-b95f-0537a404021bn%40googlegroups.com.

Mmm

unread,
Feb 15, 2026, 1:52:08 PM (5 days ago) Feb 15
to mementodatabase
В настольной версии можете добавить запросы SQL для размеров */2, */4, */8, */16 и сохранить их как вид (пресет).
Поиск будет в два этапа: выбор вида со знаменателем и обычный поиск числителя.

Пример запроса для */8 в библиотеке "nuts&bolts":

SELECT * FROM "nuts&bolts" WHERE "size" LIKE "%/8" AND removed = 0

Запрос нужно сохранить как вид.
Чтобы найти все 3/8 нужно выбрать вид */8 и в поиске набрать 3.

воскресенье, 15 февраля 2026 г. в 20:48:30 UTC+3, bill....@gmail.com:

fsjpap...@gmail.com

unread,
Feb 17, 2026, 2:02:24 PM (3 days ago) Feb 17
to mementodatabase
Thanks for the Ideas,

I needed an excuss to dive into SQL.. this is it! 

It worked well! 

Question

To make the search more End User friendly,  and shield them from having to type in SQL queiries, is it possible to make a SQL script  ask for the search criteria, in a pop up box, then send it as a varible to the sql script, then return the result?

I best work off examples, Im sure this will trigger other ideas to explore with the program 

Thanks


Dan 

Mmm

unread,
Feb 17, 2026, 5:27:00 PM (2 days ago) Feb 17
to mementodatabase
Использовать скрипты для поиска можно, но скрипты не умеют включать Вид (показывать только нужные записи).
Обходной вариант - дополнительное поле (например, логическое поле) и Вид по этому полю (когда выбрано).
Скрипт получает поисковое значение в качестве аргумента и отмечает логическое поле в подходящих записях. Вид показывает отмеченные записи.

Пример.
1. Дополнительное логическое поле "show".
2. Вид "Search" с фильтром, когда логическое поле "show" выбрано.
3. Аргумент скрипта может иметь тип: набор значений или строка.
В примере - набор значений "Choose a size" (элементы не все, нужно дополнить все возможные размеры).
4. Запустить скрипт действие в библиотеке с нужным аргументом.

let search = arg('Choose a size');

let ee = lib().entries();

//Сброс ранее выбранных записей
let selected = ee.filter(a => a.field('show'));
selected.forEach(a => a.set('show', false));

//Поиск и отметка подходящих записей
let result = ee.filter(a => a.field('size') == search);
result.forEach(a => a.set('show', true));

5. Результаты поиска будут показаны на вкладке Вид "Search".

6. Можете добавить диалоговое окно с описанием результатов поиска:
- Найдено записей: N. Для просмотра откройте Вид "Search".
- Подходящие записи не найдены. Измените параметры поиска.

Пример функции msg("Text","Title"):
https://groups.google.com/g/mementodatabase/c/QKZQ1YF8wXM/m/-PiBwkUKBwAJ

7. Можете добавить второй аргумент для скрипта - что искать: Болт или Гайку. 
Можете не добавлять, а настроить группировку найденных записей в Виде "Search".

Шаблон библиотеки с примером:
https://mementodb.com/t/6659296043728896

вторник, 17 февраля 2026 г. в 22:02:24 UTC+3, fsjpap...@gmail.com:

alwaysc...@gmail.com

unread,
Feb 17, 2026, 11:07:32 PM (2 days ago) Feb 17
to mementodatabase
Thank you for the detailed response, I will be tackling the task in the next few days, and will let you know how it went.

Dan 

Reply all
Reply to author
Forward
0 new messages