0

繰り返しグループの innerTexts を取得しようとしていますが、外観属性またはヒントを取得できません。取得できる他の 2 つのヒント タグ。ポインタはありますか?

<group>
              <label ref="jr:itext('/data/question0/question3/question6:label')" />
                <appearance>Evil</appearance>
                <hint>Stuff</hint>
              <repeat nodeset="/data/question0/question3/question6">
                <input ref="/data/question0/question3/question6/question7">
                  <label ref="jr:itext('/data/question0/question3/question6/question7:label')" />
                    <hint>I work</hint>
                  <hint ref="jr:itext('/data/question0/question3/question6/question7:hint')" />
                </input>
                <input ref="/data/question0/question3/question6/question8">
                  <label ref="jr:itext('/data/question0/question3/question6/question8:label')" />
                    <hint>So do I</hint>
                  <hint ref="jr:itext('/data/question0/question3/question6/question8:hint')" />
                </input>
              </repeat>
4

1 に答える 1

0

「innerTexts を取得する」とはどういう意味かわかりませんが、次の手順で発生している問題が明確になる可能性があります。

外観は、フォーム コントロール要素とグループ要素の属性としてのみサポートされています。http://opendatakit.github.io/odk-xform-specも参照してください(ただし、外観属性については十分に説明されていません)。

ヒント要素はグループ要素の子としてサポートされていないと思います。フォーム コントロール要素の子としてのみサポートされます。

于 2015-09-30T20:10:41.197 に答える