Set Variable [ $rep ; Get ( ActiveFieldRepetition ) ]
Set Field [ Table::B [ repetition: $rep ] ; Get ( ActiveFieldContents ) ]
which you could combine into a single step:
Set Field [ Table::B [ repetition: Get ( ActiveFieldRepetition ) ] ; Get ( ActiveFieldContents ) ]
That being said: you should really switch to a better data model. Using …
- many Fields..... FIELD1, FIELD2, FIELD3,......FIELD50
… will give you lots of problems, require workarounds and make some thing nigh impossible.
1) your example would give me the content of first repetition of FIELD1 into FIELD_B
When i click on FIELD1 I need to get also its second repetition into FIELD_B
2) what do you mean workaround? each FIELD1, FIELD2, FIELD3,......FIELD50 has specific couple of images
So write it explicitly:
Set Variable [ $fn ; Get ( LayoutTableName ) & "::"& Get ( ActiveFieldName ) ]
Set Field [ Table::B ; GetField ( $fn ) ]
Set Field [ Table::B [ 2 ] ; GetRepetition ( GetField ( $fn ) ; 2 ) ]
Well done, Thanks !