cancel
Showing results for 
Search instead for 
Did you mean: 

Change caption depends on rawValue

former_member217677
Participant
0 Kudos

Hello,

I have a question regarding a change of the caption of the text field depending on other field.

In a table I have two raws  -  raw1 and raw 2.

Raw1 = contains text field (F1) with rawValue X or Y

Raw2 = contains text field (F2), where caption should change depends on F1 (X or Y). Original caption of F2 = "test text YYY".

What I want is:

if ( F1.rawValue == "X") then

               F2.caption.value.#text = "test text XXX";

endif

This code is implemented under F2.

But the problem is program doesnt check F1. It seems it doesnt see F1 from F2. Caption of F2 stays "test text YYY". 

Can you help me to resolve this issue? Thanks in advance,

Evgenij

Accepted Solutions (1)

Accepted Solutions (1)

rakesh_m2
Contributor
0 Kudos

Hi Evgenij,

Please access F1 through it complete path or place F1 and F2 in same subform.  Also check if language you are using is formcalc.

Thanks,

Rakesh

former_member217677
Participant
0 Kudos

Hello Rakesh,

F1 and F2 are in the same subform, in the same table, just in two different raws.

Language is Formcalc. Changing of caption is working, just the check of F1 is not.

What is the right syntax for complete path of F1?

Like from data binding (e.g. $.DATA.HEADER.GR_HEAD.DEPEXNUM) or with with $record..... ?

thanks,

Evgenij

former_member217677
Participant
0 Kudos

one question more:

is it possible to use "parent" to switch from one raw to another in the same table?

Question stays: how to check value from F1 in the coding of F2?

1. parent

2. complete path

3.??

former_member217677
Participant
0 Kudos

issue solved with complete path, like xfa.form.data.#pageSet[0].......

Answers (0)