Book a Demo

Author Topic: Passing data to a custom fragment script  (Read 4520 times)

Screwtape

  • EA User
  • **
  • Posts: 93
  • Karma: +4/-0
    • View Profile
Passing data to a custom fragment script
« on: September 26, 2014, 07:52:16 pm »
I'm scripting document generation (with jscript for some reason), and it would be very useful to be able to pass "global" variables or something between the script calling DocumentElement and the custom fragment script.

Is there any way of doing this?
Screwtape

Screwtape

  • EA User
  • **
  • Posts: 93
  • Karma: +4/-0
    • View Profile
Re: Passing data to a custom fragment script
« Reply #1 on: October 03, 2014, 06:38:07 pm »
Hi!

I've managed this using a tagged value, which seems to be rather an inelegant way of achieving it, as it actually modifies the element in question.

Has anyone out there got a better way of passing data from the controlling script to a custom fragment script?

Clint.
Screwtape

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Passing data to a custom fragment script
« Reply #2 on: October 03, 2014, 07:33:32 pm »
I'm no Java guy but in such cases the word stream comes to mind. Surely not the fastest way to communicate but one that should work in almost all conditions.

q.