Skip to Content
0
Former Member
Jun 20, 2016 at 03:05 AM

sap.m.Table refresh items

2599 Views

Hi All,

I have created a simple app which has a view with a SearchField and Table. The search field also has liveChange feature and when the function is called, I call my query to backend system using oModel.read().

In the SearchField, the user can type either a material number or material description and as a result of liveChange, data is displayed in the table below the SearchField

When I delete the typed in text, the search results adjust accordingly, and when the searchfield is empty, no data is shown:

Problem: The problem begins when I start typing in the search field again, it appears that the table has lost its items cells structure.

The above view was created in XML.

I have created the same view in JS and it works fine.

Any suggestions? Please ask for more information and I will provide it as required.

Thanks.

Attachments

Initial Screen.jpg (15.1 kB)
livechange.png (9.9 kB)
nodata.png (6.6 kB)
retype.png (3.8 kB)