Hello
My methodology is this: I've got an XML Data File (File>Form Properties>Preview) that is like this:
<transaction xmlns...>
<chapter>
<verse>text 1...</verse>
<verse>text 2...</verse>
<verse>text 3...</verse>
....
....
</chapter>
<chapter>
<verse>text 1...</verse>
<verse>text 2...</verse>
<verse>text 3...</verse>
....
....
</chapter>
<chapter>
<verse>text 1...</verse>
<verse>text 2...</verse>
<verse>text 3...</verse>
....
....
</chapter>
....
...and so on.
Now, I have a text field that I would like to populate with a user-requested chapter and verse; e.g., chapter 2 verse 3.
So, in the click event of a button I have this script:
TextField1.rawValue = $record.chapter[1].verse[2].value (this is before using variables in the square brackets):
Now this doesn't work, yet I'm sure that in the past I have entered index values into square brackets via the Object pallett: Object>Binding>Data Binding. The one difference was that I would have used a schema on that form, and Instances (I don't have access to that form anymore).
In any event, am I close to my objective or will I need to find a longer way?
Thanks.