Expand my Community achievements bar.

Elevate your expertise and be recognized as a true influencer! Nominations for the exclusive Adobe Community Advisor program 2023 are now OPEN.
SOLVED

Dynamic table with drop down lists

Avatar

Level 2

I have a Dynamic table with a header row, Section and footer row.

Section has the following cells(columns): Cell1 (drop down with locations), button (to remove row), CCode (Color Code RAL), CName (color name).

I'm starting with 1 row.

now what I want to do is, when they select in CCode e.g. RAL 1003 (rawValue "1") then in CName the name "signal yellow" (rawValue "1") should appear.

I'm using javascript

My first problem is how do I know which value is chosen, because this isn't working:

 

if  (this.rawValue == 1)

{

xfa.host.messageBox('Today')

}

and second how do I set the value in CName

because this only sets it in the first CName cell:

xfa.form.DataSheet.TechnicalInformation.Markings.THatchPatterns.Section.CName.rawValue

= '1';

Please help me, I'm totally lost

1 Accepted Solution

Avatar

Correct answer by
Level 2

solved the problem, instead on change event put script on exit event.

and the following line does the trick:

 

xfa.resolveNode("THatchPatterns.Section[" + this.parent.index + "]").CCode.rawValue = this.rawValue

1 Reply

Avatar

Correct answer by
Level 2

solved the problem, instead on change event put script on exit event.

and the following line does the trick:

 

xfa.resolveNode("THatchPatterns.Section[" + this.parent.index + "]").CCode.rawValue = this.rawValue