Reply To: DashedSentence in a PennController trial

PennController for IBEX Forums FAQ / Tips DashedSentence in a PennController trial Reply To: DashedSentence in a PennController trial

#4885
daniela
Participant

Hi Jeremy,

I’m having trouble implementing newController() inside a template. Here’s what I’ve got (I just added newController() and its commands to an already functioning script):

PennController.Template( PennController.GetTable(“fictional.csv”),
variable => [“critical”,
newController(“DashedSentence”, {s: [variable.bio], display: “in place”,blankText: “…”})
.print()
.log()
.wait()
.remove()
,
newController(“DashedSentence”, {s: [variable.pronoun,variable.verb,variable.adj,variable.objnp,variable.time,variable.spillover]})
.print()
.log()
.wait()
.remove()
)

I get the following error when I try to run it: Command ‘length’ unknown on Controller element ‘DashedSentence’. (PennController: 22). I’ve updated to PC 1.7, and have also tried to figure it out in the PC trial tester with no luck.

Did I do something wrong, or does newController() not work inside a template (or both)?

Best,
Daniela

  • This reply was modified 4 years, 8 months ago by daniela.
  • This reply was modified 4 years, 8 months ago by daniela.