Skip to main content


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 13:58 Go to next message
Stefan Milchram is currently offline Stefan MilchramFriend
Messages: 33
Registered: September 2012
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 12:35 Go to previous message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 396
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:Google Maps Integration
Next Topic:[ANN] RAP 2.2 M2 is available
Goto Forum:
  


Current Time: Thu Sep 26 00:49:01 GMT 2024

Powered by FUDForum. Page generated in 0.03255 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top