# \[Bug-13088,13252\]Popup Views Fail To Interpret Parameters Which Are Objects Or Arrays

**URL:** <https://forum.inductiveautomation.com/t/bug-13088-13252-popup-views-fail-to-interpret-parameters-which-are-objects-or-arrays/23247>\
**Category:** Ignition Early Access\
**Created:** [March 12, 2019, 12:03pm UTC](https://forum.inductiveautomation.com/t/bug-13088-13252-popup-views-fail-to-interpret-parameters-which-are-objects-or-arrays/23247 "2019-03-12T12:03:44Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [March 28, 2019, 9:50pm UTC](https://forum.inductiveautomation.com/t/bug-13088-13252-popup-views-fail-to-interpret-parameters-which-are-objects-or-arrays/23247/22 "2019-03-28T21:50:23Z")

</div>

Right, but you’re supplying a `Model.ShiftInstanceBreak` object.

```auto
my_dict = dict()
my_dict['duration'] = 10
my_dict['name'] = 'Morning'
params = dict()
params['test_object'] = my_dict
system.perspective.openPopup("tLEtjaMm", "Test", params)

```

would send your data through.

---

<div class="post-metadata">

**Author:** ![guganathan.r](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@guganathan.r](https://forum.inductiveautomation.com/u/guganathan.r)\
**Post date:** [April 12, 2021, 12:17pm UTC](https://forum.inductiveautomation.com/t/bug-13088-13252-popup-views-fail-to-interpret-parameters-which-are-objects-or-arrays/23247/23 "2021-04-12T12:17:23Z")

</div>

Hi All, Is this problem solved? I’m on version 8.1.2 and I couldnt pass dataset as a parameter to a popup window.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [April 12, 2021, 2:35pm UTC](https://forum.inductiveautomation.com/t/bug-13088-13252-popup-views-fail-to-interpret-parameters-which-are-objects-or-arrays/23247/24 "2021-04-12T14:35:02Z")

</div>

Datasets as popup parameters was repaired in 8.1.4. (Bug #1083 for reference) See [this post](http://forum.inductiveautomation.com/t/bug-1083-perspective-script-not-fully-executing-in-client-but-does-in-designer/43451/9).

---

<div class="post-metadata">

**Author:** ![guganathan.r](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@guganathan.r](https://forum.inductiveautomation.com/u/guganathan.r)\
**Post date:** [April 12, 2021, 3:09pm UTC](https://forum.inductiveautomation.com/t/bug-13088-13252-popup-views-fail-to-interpret-parameters-which-are-objects-or-arrays/23247/25 "2021-04-12T15:09:11Z")

</div>

Thats great. Thanks.

---

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [October 26, 2021, 3:04pm UTC](https://forum.inductiveautomation.com/t/bug-13088-13252-popup-views-fail-to-interpret-parameters-which-are-objects-or-arrays/23247/26 "2021-10-26T15:04:27Z")

</div>

Hi,

I have the same problem with jsonEncode function passing in an array variable to prepare an INSERT SQL.  
Error concern the try statement.

```auto
jsonConfig = system.util.jsonEncode(config)
						
try:
	insert_params=[
		inputs['usage_basic']['title'],
		inputs['usage_basic']['description'],
		inputs['project_id'],
		inputs['physical_output']['physical_id'],
		inputs['usage_basic']['usage_basic'],
		inputs['isUserUsage'],
		inputs['service'],
		jsonConfig
					
	]
except:
	return {'state':False,'message':u"Une variable d'insertion est manquante.","outputs":[], "meta":features.msgMeta(False)}

cols="("
values="VALUES("

insertCols=['title','description','project_id','physical_id','usage_basic','isUserUsage','service','config']
			
for col in insertCols:				
	cols=cols+col+","
	values=values+"?,"
			
cols=cols[:-1]+") "
values=values[:-1]+")"
			
			
query="INSERT INTO admin.usages_used "+cols+values

usage_id=system.db.runPrepUpdate(query,insert_params,tx=txId,getKey=1)

```

[Previous page](https://forum.inductiveautomation.com/t/bug-13088-13252-popup-views-fail-to-interpret-parameters-which-are-objects-or-arrays/23247.md?page=1)
