Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Clienscripting filter list on client
Clienscripting filter list on client [message #1125433] Fri, 04 October 2013 09:58 Go to next message
Stefan M is currently offline Stefan M
Messages: 29
Registered: September 2012
Junior Member
Hi,

In our application we have a textcontrol and a table beneath it.
When the user types into the textcontrol the table gets filtered according to the textcontrol-text.
The RCP-variant using keylistener would generate a lot of traffic.
We thought about using clientscripting to add a keylistener in jscript and pass the widget id of the table to the clientlistener (like it is done in the clientscripting-demo plugin).
Unfortunatly when i retrieve the object using
rap.getObject("w4")
i get only
Object {}
.
Is there a way in RAP 2.1 to filter a table via clientscripting?

Thanks in advance
Re: Clienscripting filter list on client [message #1128190 is a reply to message #1125433] Mon, 07 October 2013 08:35 Go to previous message
Tim Buschtoens is currently offline Tim Buschtoens
Messages: 382
Registered: July 2009
Senior Member
Hi.

The Table is not (yet) scripting enabled because it relies too much on
server side code to function. The feature you describe would require to
create and dispose TableItems on the client, which would be difficult
thing to enable for Scripting. The List widget isn't scripting enabled
either, but since the List items are only strings it would be much more
feasible to support in the near future

I think the best solution would currently be using the Modify Listener
(on the server), which creates much less traffic than key events.

Greeting,
Tim

Am 04.10.2013 15:58, schrieb Stefan M:
> Hi,
>
> In our application we have a textcontrol and a table beneath it. When
> the user types into the textcontrol the table gets filtered according to
> the textcontrol-text.
> The RCP-variant using keylistener would generate a lot of traffic.
> We thought about using clientscripting to add a keylistener in jscript
> and pass the widget id of the table to the clientlistener (like it is
> done in the clientscripting-demo plugin).
> Unfortunatly when i retrieve the object using rap.getObject("w4") i get
> only Object {}.
> Is there a way in RAP 2.1 to filter a table via clientscripting?
>
> Thanks in advance

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Client error: TypeError: ObjectManager.getEntry(...) is undefined
Next Topic:Change background-color of systemmessage-dialog
Goto Forum:
  


Current Time: Sat Aug 30 12:38:50 EDT 2014

Powered by FUDForum. Page generated in 0.02094 seconds