Ticket #147 (closed enhancement: fixed)

Opened 15 months ago

Last modified 11 months ago

Include array acces in variable expansion

Reported by: dumoulin Owned by: dumoulin
Priority: normal Milestone: 0.3
Component: core.methods Version: 0.2
Severity: normal Keywords:
Cc:

Description

If I define an input structure like:

  • input : Complex \ array : Double[] \ elements : Complex[]

\ attribute : Double

How to use these data with for example a template file ? I would be able to use ${input.array[2]} and ${input.elements[5].attribute}.

The solution is to modify the line 67 in the VariableExpansion class.

It would also nice to be able to use variable in array index as ${input.array[i]}.

Attachments

Change History

Changed 15 months ago by thierry

  • status changed from new to closed
  • resolution set to fixed

resolved by r2246 commit

Changed 15 months ago by dumoulin

  • status changed from closed to reopened
  • resolution fixed deleted

I prefer to leave the ticket opened until we can use variable for the index, like ${input.array[i]}.

Changed 11 months ago by dumoulin

  • status changed from reopened to closed
  • resolution set to fixed

fixed in the 0.3 branch, variable can be expressed with groovy script

Add/Change #147 (Include array acces in variable expansion)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.

logo cemagref

logo iscpif

logo lifegrid

logo region auvergne

logo patres project