# Perspective Table Column Embedded Drop Down View Disappearing

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-column-embedded-drop-down-view-disappearing/66382>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [November 11, 2022, 4:19am UTC](https://forum.inductiveautomation.com/t/perspective-table-column-embedded-drop-down-view-disappearing/66382 "2022-11-11T04:19:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isaac\_Hodgkins](https://avatars.discourse-cdn.com/v4/letter/i/59ef9b/32.png) [@Isaac\_Hodgkins](https://forum.inductiveautomation.com/u/Isaac_Hodgkins)\
**Post date:** [November 11, 2022, 4:19am UTC](https://forum.inductiveautomation.com/t/perspective-table-column-embedded-drop-down-view-disappearing/66382/1 "2022-11-11T04:19:45Z")

</div>

I have an embedded dropdown menu within a table column. When I click on the dropdown the menu appears for a split second and then instantly disappears before I can select anything. If I hold down the dropdown option it stays and gives me a chance to click an option, but as soon as it populates the table it disappears.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/4/f40bcb4719a0c7193f5e23eb30fe14778eafeff0.png)

column parameters:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/3/234ea695817f470aa36b9c71242405dafa00eb08.png)  
dropdown parameters  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/1/d1508a2a63fde3afc7baadff7769cf74af947d96.png)

dropdown action performed script

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/d/0d1d21db6a4245657bb88a0bbc2dd4dc3a2e8916.png)

```auto
def runAction(self, event):
	"""
	This event is fired when the 'action' of the component occurs.

	Arguments:
		self: A reference to the component that is invoking this function.
		event: An empty event object.
	"""
	column = self.view.params.column
	row = self.view.params.rowIndex
	value = self.view.params.value
	messageType = 'UpdateColumn'
	
	payload = {'column':column, 'row':row, 'value':value}
	
	system.perspective.sendMessage(messageType, payload, scope='page')

```

table Message handler

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/b/6bc1e10cc9f430a16c347baaa23ff7d9d0f28567.png)

```auto
def onMessageReceived(self, payload):
	"""
	This method will be called when a message with the matching type code
	arrives at this component.

	Arguments:
		self: A reference to this component
		payload: The data object sent along with the message
	"""
	column = payload['column']
	value = payload['value']
	row = payload['row']
	
	self.props.data[row][column] = value

```

table on edit complete, although it's my understanding that this shouldn't matter for an embedded view

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/1/4142dbfa8bbe570c405933e31d7be2b1e7de78af.png)

```auto
def runAction(self, event):
	"""
	Fired when a user has effectively committed an edit on a cell via return or
	enter key press.

	Arguments:
		self: A reference to the component that is invoking this function.
		event: An object with the following attributes:
			column (str | int): The column of the edited cell.
			row (int): The unique row index as it is represented in the source
			           data. Also known as the row ID.
			rowIndex (int): The row index as it is represented in the current
			                visible data.
			value (int | float | bool | str): The committed value.
	"""
	#update dataset with edited value
	dataSet = self.props.data
	newDataSet = system.dataset.setValue(dataSet, event.row, event.column, event.value)
	self.props.data = newDataSet

```

Thanks!

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [November 11, 2022, 8:54am UTC](https://forum.inductiveautomation.com/t/perspective-table-column-embedded-drop-down-view-disappearing/66382/2 "2022-11-11T08:54:05Z")

</div>

I wonder if the problem is being caused by the enableColumnSelection being set to False. Try setting it to "true" and see if that corrects the behavior:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/f/1f04d2bef96a49f83bec751aeabd052bf5a23d5e.png)

---

<div class="post-metadata">

**Author:** ![Isaac\_Hodgkins](https://avatars.discourse-cdn.com/v4/letter/i/59ef9b/32.png) [@Isaac\_Hodgkins](https://forum.inductiveautomation.com/u/Isaac_Hodgkins)\
**Post date:** [November 11, 2022, 1:53pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-embedded-drop-down-view-disappearing/66382/3 "2022-11-11T13:53:39Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/5/e53a2d823e8881a2d9648a7f09020580a22576e3.png)  
That's a good guess but it didn't work.

---

<div class="post-metadata">

**Author:** ![Isaac\_Hodgkins](https://avatars.discourse-cdn.com/v4/letter/i/59ef9b/32.png) [@Isaac\_Hodgkins](https://forum.inductiveautomation.com/u/Isaac_Hodgkins)\
**Post date:** [November 11, 2022, 2:40pm UTC](https://forum.inductiveautomation.com/t/perspective-table-column-embedded-drop-down-view-disappearing/66382/4 "2022-11-11T14:40:39Z")

</div>

I found the issue!  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/6/36e2b34279fa077d1a99eeecfcdb665adfe8bfdf.png)  
I had allowEditOn single click, and for whatever reason that makes the dropdown disappear as soon as it opens. If I switch it to double click or long click it works how I would expect it to.

What's weird is that to open the dropdown it only takes a single click, but my other components it takes a double click.

Is it possible to change this setting based on the column so I can only apply the double click to the dropdown? Thanks!
