Skip to main content
Inspiring
March 28, 2022
Answered

JSX: Passing values param from html to jsx

  • March 28, 2022
  • 1 reply
  • 348 views

Hello,

i have attached a file, where you can see some PProPanel sample code.

Lets say i want to use a string in the function $._PPP_.getnumAEProjectItems(). How do i pass this from the html? Couldnt figure it out but my guess is, that "$._PPP_.getnumAEProjectItems()" is the passed param for "evilscript" and i cant define a param in a param.

 

greetings

This topic has been closed for replies.
Correct answer Bruce Bullis

See PProPanel/index.html's implementation of "newseqfrompreset"; it builds up the necessary parameters at the JavaScript (html) level, then passes them to evalScript.

https://github.com/Adobe-CEP/Samples/blob/1c08d2c74b7ae7c1cd418fab4578c080a3241a1b/PProPanel/index.html#L144

1 reply

Bruce Bullis
Bruce BullisCorrect answer
Legend
March 28, 2022

See PProPanel/index.html's implementation of "newseqfrompreset"; it builds up the necessary parameters at the JavaScript (html) level, then passes them to evalScript.

https://github.com/Adobe-CEP/Samples/blob/1c08d2c74b7ae7c1cd418fab4578c080a3241a1b/PProPanel/index.html#L144