Hi all, I’m slightly embarrassed because this should be easy, but I can’t figure out how to do this: in the tuc/tua file, I have the complete references of my document. How can I access it from within my Lua code? For instance, something like utilitydata.structures.references.collected.”MyReference”.references.realpage How can this be accessed? Thanks a lot and best wishes Thomas
On 4/24/2024 5:41 PM, Thomas A. Schmitz wrote:
Hi all,
I’m slightly embarrassed because this should be easy, but I can’t figure out how to do this: in the tuc/tua file, I have the complete references of my document. How can I access it from within my Lua code? For instance, something like
utilitydata.structures.references.collected.”MyReference”.references.realpage
How can this be accessed? grep for "job." (i bet you can figure it out and compensate the embaressment that way)
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 24. Apr 2024, at 17:59, Hans Hagen
wrote: grep for "job." (i bet you can figure it out and compensate the embaressment that way)
Hans
Nope, very sorry, can’t figure it out… I see job.register, I see I can access structures.refrences.collected, but what about the next level utilitydata.structures.references.collected={ [""]={ [“REF"]={ What does the empty key do? And how do I retrieve the value of REF.references.realpage? Thomas
Nope, very sorry, can’t figure it out… I see job.register, I see I can access structures.refrences.collected, but what about the next level
utilitydata.structures.references.collected={ [""]={ [“REF"]={
What does the empty key do? And how do I retrieve the value of
REF.references.realpage?
Thomas
Sigh, as always: just when I had hit “send,” I figured it out: structures.references.collected[""][REF].references.realpage But I’m not sure if there is an easier/better way. And I still would like to know what the empty string as key does. Thomas
On 4/25/2024 9:25 AM, Thomas A. Schmitz wrote:
Nope, very sorry, can’t figure it out… I see job.register, I see I can access structures.refrences.collected, but what about the next level
utilitydata.structures.references.collected={ [""]={ [“REF"]={
What does the empty key do? And how do I retrieve the value of
REF.references.realpage?
Thomas
Sigh, as always: just when I had hit “send,” I figured it out:
structures.references.collected[""][REF].references.realpage
But I’m not sure if there is an easier/better way. And I still would like to know what the empty string as key does.
it's the prefix (namespace) which here is empty (easier to use "" as key than have some exception) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Thomas A. Schmitz