Skip to Content
0

JSON data to smart table; after using personalization Result is not updating

Feb 19, 2017 at 12:40 PM

183

avatar image
Former Member

I have create table using Smart Table control and I am binding data using JSON to table item. As soon I use personalization feature of Smart Table, Control stop refreshing data on UI. Can you please help me. Please find my code snipex with smart table.

I am binding json model as table Item level. Can you please help me. Reason for selecting smart table was to support variant management.

Best Regards,

Utkarsh

				<smartTable:SmartTable id="table" editable="false" entitySet="SearchResults" showRowCount="false"
								useVariantManagement="false" useTablePersonalisation="true" header="{i18n>xfld.SearchResults}" useExportToExcel="true" tableBindingPath="{/modelData}"
								enableAutoBinding="false" initialise="onInitialized" showFullScreenButton="true" demandPopin="true">
								<smartTable:customToolbar>
									<OverflowToolbar height="2em">
										<ToolbarSeparator/>
										<variant:VariantManagement id="tableVariant" select="onSelect" save="onSave" enabled="true" manage="onManage"
											variantItems="{path: 'varTable>/OP_VARIANTSET'}">
											<variant:variantItems>
												<variant:VariantItem text="{varTable>VARIANTNAME}" key="{varTable>VARIANTID}" labelReadOnly="true"/>
											</variant:variantItems>
										</variant:VariantManagement>
										<ToolbarSpacer/>
										<Button enabled="{appView>/isProposeAllowed}" id="candidate" press="onPress" text="{i18n>xfld.addCandidate}"/>
										<Button enabled="{appView>/isCompareAllowed}" press="toCompareApp" text="{i18n>xfld.compare}"/>
										<Button enabled="{appView>/isStaffAllowed}" id="staff" press="toStaff" text="{i18n>xfld.staff}"/>
										<Button enabled="{appView>/isGanttAllowed}" press="toGantt" text="{i18n>xfld.gantt}"/>
									</OverflowToolbar>
								</smartTable:customToolbar>
								<smartTable:customData>
									<core:CustomData key="p13nDialogSettings"
										value='\{"columns":\{"visible": true, "payload": \{"visibleItemsThreshold": 10\} \},"filter":\{"visible": false\},"sort":\{"visible": false\},"group":\{"visible": false\}\}'/>
								</smartTable:customData>
								<Table id="pTable" items="{/modelData}" mode="MultiSelect" width="100%" inset="false">
									<columns>
										<Column>
											<customData>
												<core:CustomData key="p13nData" value='\{"columnKey": "Id", "leadingProperty":"Id"}'/></customData><Text text="Id"/></Column>
										<Column>
											<customData>
												<core:CustomData key="p13nData" value='\{"columnKey": "Avalibility", "leadingProperty":"Avalibility"}'/></customData><Text text="Available"/></Column>
										<Column>
											<customData>
												<core:CustomData key="p13nData" value='\{"columnKey": "UserPreferenceScore", "leadingProperty":"UserPreferenceScore"}'/></customData><Text text="User Score"/></Column>
										<Column>
											<customData>
												<core:CustomData key="p13nData" value='\{"columnKey": ["Firstname","Lastname"], "leadingProperty": ["Firstname","Lastname"]}'/></customData><Text text="{i18n>xfld.table.name}"/></Column>
										<Column>
											<customData>
												<core:CustomData key="p13nData" value='\{"columnKey": "Experience", "leadingProperty":"Experience"}'/></customData><Text text="{i18n>xfld.table.experience} "/></Column>
										<Column>
											<customData>
												<core:CustomData key="p13nData" value='\{"columnKey": "Organization", "leadingProperty":"Organization"}'/></customData><Text text="{i18n>xfld.table.organization}"/></Column>
										<Column>
											<customData>
												<core:CustomData key="p13nData" value='\{"columnKey": "EmployeeType", "leadingProperty":"EmployeeType"}'/></customData><Text text="{i18n>xfld.table.employeeType}"/></Column>
										<Column visible="false">
											<customData>
												<core:CustomData key="p13nData" value='\{"columnKey": "Role", "leadingProperty":"Role"}'/></customData><Text text="{i18n>xfld.table.role}"/></Column>
										<Column visible="false">
											<customData>
												<core:CustomData key="p13nData" value='\{"columnKey": "Grade", "leadingProperty":"Grade"}'/></customData><Text text="Grade"/></Column>
										<Column visible="false">
											<customData>
												<core:CustomData key="p13nData" value='\{"columnKey": "MatchingSkills", "leadingProperty":"MatchingSkills"}'/></customData><Text text="Matching Skills"/></Column>
										<Column>
											<customData>
												<core:CustomData key="p13nData" value='\{"columnKey": "WorkingTime", "leadingProperty":"WorkingTime"}'/></customData><Text text="{i18n>xfld.table.availability} "/></Column>
										<Column>
											<customData>
												<core:CustomData key="p13nData" value='\{"columnKey": "Score", "leadingProperty":"Score", "type":"numeric"}'/></customData><Text text="{i18n>xfld.table.overallMatch}"/></Column>
									</columns>
									<items>
										<ColumnListItem>
											<cells>
												<Text text="{Id}"/>
												<Text text="{Availability}"/>
												<Text text="{UserPreferenceScore}"/>
												<Text text="{Firstname} {Lastname}"/>
												<Text text="{Experience}"/>
												<Text text="{Organization}"/>
												<Text text="{EmployeeType}"/>
												<Text text="{Role}"/>
												<Text text="{Grade}"/>
												<Text text="{MatchingSkills}"/>
												<ProgressIndicator displayValue="100" id="f1n" percentValue="{WorkingTime}%" showValue="true" state="Success" width="150px"/>
											<!--	<RatingIndicator class="sapUiSmallMarginBottom" maxValue="5" value="{path:'Score', type:'sap.ui.model.type.Float'}"/>  -->
											</cells>
										</ColumnListItem>
									</items>
								</Table>
							</smartTable:SmartTable>
<br>
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers