Book a Demo

Author Topic: Attribute sequence in Code Generation Template  (Read 2456 times)

tinna

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Attribute sequence in Code Generation Template
« on: November 25, 2008, 06:34:02 pm »
Does anyone know how to get the value of attribute sequence in custom template of attribute? I could not find the answer in document. My expected result of generated code will look like the following:

item.id = dataReader.getvalue(0)
item.desc = dataReader.getvalue(1)
item.um = dataReader.getvalue(2)

the 0,1,2 is sequence number of fields in a table but I don't know how to get sequence value from any macro to variable.