Skip to Content
0
Dec 06, 2021 at 11:17 AM

how to get a cell click event of a custom cell in a ui.table?

157 Views

Hello,

i got following code:

	<t:Table id="SeqSubTable" selectionMode="MultiToggle"  rowSelectionChange="onSelChangeSeq" cellClick="selectText" rowActionCount="2"
				visibleRowCountMode="Auto" >
				
				<t:rowSettingsTemplate></t:rowSettingsTemplate>
				<t:rowActionTemplate>
					<t:RowAction></t:RowAction>
				</t:rowActionTemplate>
		
				<t:Column width="100px" sortProperty="Yield"	>
					<t:customData useSmartField="true">
						<core:CustomData key="p13nData"
							value='\{"columnKey": "Yield", "autoColumnWidth": \{ "visibleProperty": "Yield" }, "columnIndex": 3, "leadingProperty": "Yield", "sortProperty": "Yield", "description": "Gutmenge", "displayBehaviour": "descriptionOnly", "width": "360px"}' />
					</t:customData>
					<t:label>
						<Text text="Gutmenge"/>
					</t:label>
					<t:template>
						<Input id="yield" value="{ path: 'Yield', type: 'sap.ui.model.type.Float',  formatOptions: {minFractionDigits: 3}, columnIndex: 3}" editable="true" onfocusin="selectText" />
					</t:template>
				</t:Column>

How can i manage to get the Cellclick? I simply want to select the text in the clicked cell (Input)?

The normal CellClick Event works JUST for the predefined fields - but not for the custom ones.

Thanks

Andreas