Skip to Content

setTableBindingPath issue in SmartTable when the Binding Changes

Hi,

I had defined below SmartTable in the XML View

<smartTable:SmartTable id="idSmartTableAll" tableType="ResponsiveTable" useVariantManagement="false" useTablePersonalisation="true" persistencyKey="SmartTableAnalytical_Explored" enableAutoBinding="true" demandPopin="true" useExportToExcel="false" showFullScreenButton="true" ignoredFields="" initiallyVisibleFields="Transformer_Name,Transformer_Type,Rated_Capacity,Load_Priority,Reason_Description1">

Below Code is in the Controller where i am passing the FromDate and ToDate as Parameter to the function loadEquipment2 and first Time SmartTable is displaying based on the FromDate and ToDate and second time for example i had passed different Dates and now the issue is there is no change in SmartTable and it is displaying with the previous Dates only and in the Network call there is no call is happening for the second time.

The Refresh of the SmartTable is not working.

loadEquipment2: function (FromDate, ToDate)

{

var that = this;

var oView = that.getView().byId("idSmartTableAll");

var url = "/LoadMain(IP_DATE_FROM='" + FromDate + "',IP_DATE_TO='" + ToDate + "')/Results";

oView.setTableBindingPath(url);

oView.setEntitySet("TLMView");

}

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.