Item Property in Lists Depreciated in Inquisit 7


Author
Message
Andrew Papale
Andrew Papale
Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)
Group: Forum Members
Posts: 67, Visits: 239
Dave,

A collaborator has tried to use our script in the new Inquisit 7, but they are getting an error 'item' property has been deprecated, use 'items' property instead.  Is there a reason for this change, as we use the item property extensively.

Thanks,
Andrew
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
Andrew Papale - 1/9/2025
Dave,

A collaborator has tried to use our script in the new Inquisit 7, but they are getting an error 'item' property has been deprecated, use 'items' property instead.  Is there a reason for this change, as we use the item property extensively.

Thanks,
Andrew

The technical reason is that Inquisit 7 adheres to and implements the JavaScript (technically ECMAscript) specification, and JavaScript / ECMAscript does not have collection properties.

That said, the script should still run and work under Inquisit 7 as long ias it is an IQX file written in legacy IQScript / IQML syntax (i.e. NOT in IQJS format and syntax). You'll get only a warning -- not an error -- about the item collection property

Edited 5 days ago @ 1:47 PM by Dave
Andrew Papale
Andrew Papale
Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)Partner Member (994 reputation)
Group: Forum Members
Posts: 67, Visits: 239
Dave - 1/9/2025
Andrew Papale - 1/9/2025
Dave,

A collaborator has tried to use our script in the new Inquisit 7, but they are getting an error 'item' property has been deprecated, use 'items' property instead.  Is there a reason for this change, as we use the item property extensively.

Thanks,
Andrew

The technical reason is that Inquisit 7 adheres to and implements the JavaScript (technically ECMAscript) specification, and JavaScript / ECMAscript does not have collection properties.

That said, the script should still run and work under Inquisit 7 as long ias it is an IQX file written in legacy IQScript / IQML syntax (i.e. NOT in IQJS format and syntax). You'll get only a warning -- not an error -- about the item collection property

How do I tell what syntax my code is written in (it is a standard IQX file).
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
Andrew Papale - 1/9/2025
Dave - 1/9/2025
Andrew Papale - 1/9/2025
Dave,

A collaborator has tried to use our script in the new Inquisit 7, but they are getting an error 'item' property has been deprecated, use 'items' property instead.  Is there a reason for this change, as we use the item property extensively.

Thanks,
Andrew

The technical reason is that Inquisit 7 adheres to and implements the JavaScript (technically ECMAscript) specification, and JavaScript / ECMAscript does not have collection properties.

That said, the script should still run and work under Inquisit 7 as long ias it is an IQX file written in legacy IQScript / IQML syntax (i.e. NOT in IQJS format and syntax). You'll get only a warning -- not an error -- about the item collection property

How do I tell what syntax my code is written in (it is a standard IQX file).

If it runs under Inquisit 6, it's written in IQML / IQScript.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search