cancel
Showing results for 
Search instead for 
Did you mean: 

How can I assign value to one element of MII List datatype

shaji_chandran
Participant
0 Kudos

Hello Everyon,

I have created a MII List datatype and would like to assign value to a particular element in the list.

In the expression editor I am trying to access a particular element using {0} this syntax. 0 is the index position

For Example:

Target XPath = Local.UserList{0}

Expression = "User1"

But when I run the transaction I am getting an error as below

  • [ERROR] [Assignment_0] Link ('Local.UserList{0}' [Assign] from ""DemoUser"") execution threw an exception. Exception: [No nodes found in variable 'Local.UserList' and xpath: "0" XML was:one] 
  • [ERROR] [Assignment_0] Action: Runtime threw an exception. Exception: [No nodes found in variable 'Local.UserList' and xpath: "0" XML was:one] 
  • [INFO] [Tracer_0]one 
  • [INFO] Statistics [Load = <1 ms msec, Parse = <1 ms, Execution = 16 ms, Total = 16 ms]

I am using MII 12.1 version

Can any one help me?

Thanks

Shaji

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Shaji,

Use

Target XPath = Local.UserList

Expression = set(Local.UserList,0,"User1")

Regards

Anshul

Answers (0)