I'm trying to read some data from my XML dataset attached to my job-file.
This is the path I need to use to fetch the data:
[Metadata.Text:Path="/dn:Workbook/dn:Worksheet[1]/dn:Table[1]/dn:Row[2]/dn:Cell[1]/dn:Data",Dataset="Xml",Model="XML",Before="_"]
The position of the 2 (.....Row[2]....) needs to be dynamic and needs to be replaced by the number in the JobState variable.
So what I actually want is this:
[Metadata.Text:Path="/dn:Workbook/dn:Worksheet[1]/dn:Table[1]/dn:Row[[Job.JobState]]/dn:Cell[1]/dn:Data",Dataset="Xml",Model="XML",Before="_"]
But Switch doesn't like breaking up the pathcode with an other variable.
Does anaybody has a suggestion to get my variable in there?
An important detail is that we can't use the scriptingmodule, so I have to script it in the normal metadata menu's etc..
Thanks in advance!
Greetings from Holland
