Can I change(put, delete) the available items in the single list and multiple list field

52 views
Skip to first unread message

Artem Fine

unread,
Oct 15, 2019, 10:21:45 AM10/15/19
to mementodatabase
HELLO!
Задача такая, дочерней библиотеке есть поле, тип "Набор значений"(Single choice list). Нужно чтобы элементы уже были там, когда я создаю новую запись в этой библиотеке. А Я просто выбрал один из готовых вариантов.
Элементы будут браться с имён родительской библиотеки(имя записи, entry().name)
entryDefault().field(single-choice-list) должно иметь прописанные элементы в качестве вариантов выбора, а не самим выбором.
Я пробывал простой метод entryDefauld().set(...) и, естественно значение выставилось, но нужно чтобы я его выбрал.
Извините если что не так)

Artem Fine

unread,
Oct 15, 2019, 10:25:36 AM10/15/19
to mementodatabase
build Object["list"] with property, that i don't know, maybe it's existing?

Artem Fine

unread,
Oct 15, 2019, 10:28:16 AM10/15/19
to mementodatabase
or set up in loop needed items (before created) and then set() field to null?
maybe need bug)))

Er Mo

unread,
Oct 15, 2019, 3:23:09 PM10/15/19
to mementodatabase
Hallo
Hast du es mit " Verknüpfung zum Eintrag " versucht

Hi
Did you try it with "link to the entry"

Artem Fine

unread,
Oct 20, 2019, 3:42:52 AM10/20/19
to mementodatabase
if i linked entries, there will be so many links, this library will have a thousands of entry.
Can it crashing on 99999 entry link?

Er Mo

unread,
Oct 20, 2019, 2:10:18 PM10/20/19
to mementodatabase
Hallo
Hast du das schon gelesen ?

Hi
Did you already read that?

https://groups.google.com/forum/#!topic/mementodatabase/cHTgcPBGfE0

Artem Fine

unread,
Oct 20, 2019, 3:15:05 PM10/20/19
to mementodatabase
HI!)
YEAH, ALREADY READ)))Just after posting first message.
You mean this code?

var e = entry()
var libclients =libByName ('Aus');
var entries = libclients.entries('1');
var entry = entries[0];
var l = entries.length;
for(var j =0;j<l; j++){
//message(l);
var a =entries[j].field('1')
e.set('felt',a);
}
message(a);

Try to use like solutions, but fount something. If i delete any entry from LibByName lib,field with choose items stays, the didn't delete.
They(single choice variants) adds up but didn't delete.
Reads some post where Bill write, solution. But I think, there not about this problem.
He says: We can create single-choice-list, but without any items, and every time when entry created, assign it to the field to which I add points, thus clearing it and filling it again with the script.
I try but nothing changes.

I decided to use links.
Slightly complicated the structure so that the records did not link to the library, where there are only a few records. I hope it works.

Thanks for the tip, it really hits the target)

Reply all
Reply to author
Forward
0 new messages