Use Data Table From Instance with a record watcher

Xif
Kilo Contributor

Hi Snow Community, 

Is it possible to use the widget Data Table widget from instance with a recordwatcher ? 

I'm actually inserting record though a button on our portal, and my list below display my data, but I have to refresh my page to see what I inserted

I cloned the widget Data Table From Instance and I added this into the client script but its not working

	spUtil.recordWatch($scope, "u_item_list", "", function(name, data) {
		spUtil.update($scope);
	});

Any one has a clue ? 

1 ACCEPTED SOLUTION

Your code seems correct. You may have to also take into account of the filters and order because they may need to be reset. I've attached my update set also if you can't get it working. 

View solution in original post

5 REPLIES 5

Hello @LJ Hazel , 

 

I still have one huge problem, with your update set, the real time works perfectly, 

But when I clicked on a record, nothing happened, I tried to debugg during hours but didnt find how...

Could you help ? Thanks a lot in advance,