--
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 on the web visit https://groups.google.com/d/msgid/mementodatabase/CANbWJXjjpSMm6B9yrLyqiLBP8JT2o8ggCK1qTwb6dy-Q86bcwA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/4b9490b5-6216-415c-a588-0aba0acef4c4n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/497c115a-4658-4ba6-bb76-aa1f217de8bbn%40googlegroups.com.
--
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 on the web visit https://groups.google.com/d/msgid/mementodatabase/5e8a389c-cbb2-4fb0-9462-6efe9c5aa165n%40googlegroups.com.
If you use the link to entry field to select an entry and then save the record you will see that the lookup field now shows the info that the link to entry field shows, but with cleaner formatting.
What we want is a field where you can type text which will be matched to a field in another library so that a record from that library can be selected. To link to the record "William" we want to be able to start typing W i l . . . and then the record William is linked. We do not want to have to open the other library and scroll down to the record "William" and choose it. We can already do that with the link to entry field, and as Krish pointed out, that is too slow.
The lookup field doesn't look up anything. The link to entry field is doing the lookup. The lookup field is displaying the linked entry.
If you are on the phone, you want to do these lookups quickly. If you have the number you just want to enter the digits. It is faster than the process for selecting a linked entry.
I object to the slowness. But the display could be improved. Currently when you click on the magnifying glass icon (search) and start typing, there is a pop-up list of previous searches that contain the characters you typed. For a lookup function it would be more useful to have a pop-up list of field values that match the characters you typed.
If you are searching by name and you have the option of adding a record, you may find that multiple records have been added with alternate spellings. With a lookup function that shows possible matches as you type, this is much less likely.
I suspect that the lookup function I described cannot be implemented in javascript. It could be implemented as an option in the link-to-entry field.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/bf954875-daea-49c4-97f8-0ddd2596cc94n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/b9e685f9-fb23-46cb-9657-0de7696faad7n%40googlegroups.com.
I use the JavaScript field because I use JavaScript a lot, but for most people, I think the Lookup field is the way to go.
The only thing I notice on Android is that the value for the looked-up field does not get displayed after having chosen the related entry, but only after save.
| Event type | Phase | Execution mode | Object / Method / Property |
| Opening a library | Opening the library | synchronous | Library/lib |
| Opening an Entry Edit card | synchronous | DefaultEntry/entryDefault | |
| Before saving the entry | synchronous | Entry/entry | |
| After saving the entry | asynchronous | Entry/entry | |
| Opening an Entry Edit card | synchronous | Entry/entry | |
| Before saving the entry | synchronous | Entry/entry | |
| After saving the entry | asynchronous | Entry/entry | |
| Before saving the entry | synchronous | Entry/link | |
| After saving the entry | asynchronous | Entry/link | |
| Before saving the entry | synchronous | Entry/unlink | |
| After saving the entry | asynchronous | Entry/unlink | |
| Before deleting the entry | synchronous | Entry/delete | |
| After deleting the entry | asynchronous | Entry/delete | |
| Before window display | synchronous | Entry/entry | |
| After window display | asynchronous | Entry/entry | |
| Before adding | synchronous | Entry/entry/property Favorites to True | |
| After adding | asynchronous | Entry/entry/property Favorites to True | |
| Before removing | synchronous | Entry/entry/property Favorites to False | |
| After removing | asynchronous | Entry/entry/property Favorites to False |
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/cfeb7578-828c-4629-adec-3d53306a4851n%40googlegroups.com.
The only thing I notice on Android is that the value for the looked-up field does not get displayed after having chosen the related entry, but only after save.Interesting. After the save of what? The library A entry or the library B entry?
--
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 on the web visit https://groups.google.com/d/msgid/mementodatabase/a93ade5d-f1c9-4bac-9b1c-dcef74545cbbn%40googlegroups.com.
I have 3 triggers now: Creating an entry, updating an entry, linking an entry - all call a shared function at "Before saving the entry"function setRefField() {
entry().set("RefField", entry().field("RefID")[0].field("RefValue"))
}Basically that works - but in terms of the proper values being displayed only *after* the entry is saved, in other words, the form for the entry is not refreshed as soon as the Lookup field is set or changed.
Also, from a developer experience POV, I sorely miss at least a JS console where I could observe when something triggers or do some log/tracing.
Armin M schrieb am Freitag, 16. Dezember 2022 um 11:17:19 UTC+1:Something else I noticed: Lookup fields are apparently not working with aggregates. e.g. I have a lookup with a number and would want those to be summed up in an aggregate for all rows/entries -> empty result for the aggregate.I guess I'll give the JS approach a go...bill....@gmail.com schrieb am Donnerstag, 15. Dezember 2022 um 01:19:35 UTC+1:Once again, interesting. Is this true also for the same lookup using a JavaScript field? I guess probably so.On Wed, Dec 14, 2022, 14:33 Craig Hunter <craigw...@gmail.com> wrote:I have also observed this. I have a library "Lib" with a link to entry field and two lookup fields. The link to entry field shows the name of the linked entry, and the lookup fields show two other fields in the linked entry. When I create a new entry in "Lib" and make a choice for the link to entry field, I want the lookup fields to show their fields from the linked entry, but they are blank. I have to tap on the checkmark to close the record, find the record in the list of records in library "Lib", and open the record. Then the lookup fields are filled in.
--
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 on the web visit https://groups.google.com/d/msgid/mementodatabase/26198e1a-0edb-49d9-90f7-895594e44bb7n%40googlegroups.com.
I created a Link source library and a Link target library. I defined a Real field call numTarget in the Link target library initialed to 1. I aggregate with sum both the field and also the Lookup field in Link source. I have 1 entry in Link source and 2 in Link target.For some reason, the sum in Link source is 4, but at least it's not 0, so it's not correct to say it's not working. The sum in Link target is 2, as it should be.So, why is it 4 in Link source, and why did you say aggregating lookup field doesn't work? I don't know.
| I kind of miss an onchange event trigger...?
So, what change event are you missing?
You might try setting Real-time scripts to make them run on any event, not just on save.
You might try setting Real-time scripts to make them run on any event, not just on save.I only see specific events on https://wiki.mementodatabase.com/index.php/Triggers ?
But I guess I still don't get the event model here, https://wiki.mementodatabase.com/index.php/Triggers#Phases_3 says:If that's the case: Is there a JS way of getting the current value of an entry from the form itself (and not the backend)? Maybe that would solve the problem.
--
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 on the web visit https://groups.google.com/d/msgid/mementodatabase/95878130-a1c1-4eb1-984d-4d8a5a597679n%40googlegroups.com.