Complex table structure using Nebula [message #993962] |
Wed, 26 December 2012 02:18  |
Eclipse User |
|
|
|
I have a table with multiple rows which will be dynamic. In between these rows i will have summary row to count Sub Total Amount and Final row will be Summary row to populate Total Amount. Each row will contain Amount of particular Item.
For example
Category1 -Item1 -100 USD,
-Item2 -200 USD.
Subtoatal to Category 1 - 300 USD.
Category2 -Item1 -300 USD,
-Item2 -100 USD.
Subtoatal to Category 1 - 400 USD.
Now total Amount row will add subtotal amount of each category i.e 700 USD.
Is there any option to achieve this using Nebulla. Basically i am trying to replicate Webpage Table to SWT/Jface . Attached is the screenshot. Also please note that values in table will be populated from Database
Attachment: Table1.png
(Size: 34.31KB, Downloaded 505 times)
[Updated on: Wed, 26 December 2012 03:31] by Moderator Report message to a moderator
|
|
|
|
Re: Complex table structure using Nebula [message #994961 is a reply to message #993962] |
Fri, 28 December 2012 18:26   |
Eclipse User |
|
|
|
Grid also support col and rowspan!
Tom
Am 26.12.12 03:18, schrieb Prashant p:
> I have a table with multiple rows which will be dynamic. In between these rows i will have summary row to count Sub Total Amount and Final row will be Summary row to populate Total Amount. Each row will contain Amount of particular Item.
> For example
> Category1 -Item1 -100 USD,
> -Item2 -200 USD.
> Subtoatal to Category 1 - 300 USD.
>
> Category2 -Item1 -300 USD,
> -Item2 -100 USD.
> Subtoatal to Category 1 - 400 USD.
> Now total Amount row will add subtotal amount of each category i.e 700 USD.
>
> Is there any option to achieve this using Nat Table. Basically i am trying to replicate Webpage Table to SWT/Jface . Attached is the screenshot. Also please note that values in table will be populated from Database
>
|
|
|
Re: Complex table structure using Nebula [message #995721 is a reply to message #994961] |
Mon, 31 December 2012 00:28   |
Eclipse User |
|
|
|
Thanks Edwin and Thomas. Do you mean Jface Grid Thomas? Also is it possible to populate DB values in Nat Table? 'coz my main intention is to populate table with DB values. And I should be able to add new row on ADD button click and insert values to DB. And also should be able to edit. Why i am asking this is Nat table is like Virtual table.
[Updated on: Mon, 31 December 2012 00:41] by Moderator Report message to a moderator
|
|
|
Re: Complex table structure using Nebula [message #1000673 is a reply to message #995721] |
Tue, 15 January 2013 08:19   |
Eclipse User |
|
|
|
Hi,
quite late reply, but that's because of my vacation AND I mostly check the NatTable forum for NatTable related questions. 
Where the data is stored that should be showed in NatTable is not a matter of the NatTable. You need to implement an IDataProvider that knows about retrieving and writing the data handled in your NatTable. So yes, it is possible to populate DB values in a NatTable. You just need to implement it. 
Yes NatTable is like a virtual table in design. Why should this be an issue?
Greez,
Dirk
|
|
|
|
|
|
|
Re: Complex table structure using Nebula [message #1002219 is a reply to message #1002126] |
Fri, 18 January 2013 07:44   |
Eclipse User |
|
|
|
Quote:Is there any proper code sample available?
There are a lot of code samples and examples out there. Have a look at the examples provided by us in the examples project (click the Try it button).
There are more examples linked here http://eclipse.org/nattable/documentation.php?page=articles ... while the articles are written in German, the corresponding examples are documented in code in English.
Quote:Will Nattable support JFace data binding?
No ... and yes. If you like to add databinding to the NatTable like you do it with a JFace table, then definitely no. This is because the main concepts differ to much. I talked about this on the EclipseCon Europe 2012. You can find a video showing my slides together with the voice record here http://www.youtube.com/watch?v=ws9TdGwZkKc ... hope my English isn't too bad to understand.
But looking at your example screenshot, what you need to do is use JFace databinding for mapping your form fields to your datamodel. And link your datamodel to your NatTable. The only thing you need to do as we didn't support that easily out of the box, is to attach some PropertyChangeListeners so the NatTable gets updated if you change a value in the back. If you use GlazedLists than there is some implementation, but you need to have a closer look. E.g. the BlinkLayer is a good start.
|
|
|
|
|
|
|
Re: Complex table structure using Nebula [message #1003045 is a reply to message #1002219] |
Sun, 20 January 2013 06:14  |
Eclipse User |
|
|
|
Thanks Dirk for your support and patience. My deadline is very short don't know if this R&D will work for me but will try out my best. As you know itz very hard to migrate web based solution to desktop based application on certain aspects.
|
|
|
|
|
Re: Complex table structure using Nebula [message #1003049 is a reply to message #1002219] |
Sun, 20 January 2013 06:14  |
Eclipse User |
|
|
|
Thanks Dirk for your support and patience. :) My deadline is very short don't know if this R&D will work for me :) but will try out my best. As you know itz very hard to migrate web based solution to desktop based application on certain aspects.
|
|
|
|
Re: Complex table structure using Nebula [message #1003052 is a reply to message #1002219] |
Sun, 20 January 2013 06:14  |
Eclipse User |
|
|
|
Thanks Dirk for your support and patience. :) My deadline is very short don't know if this R&D will work for me :) but will try out my best. As you know itz very hard to migrate web based solution to desktop based application on certain aspects.
|
|
|
|
Re: Complex table structure using Nebula [message #1003055 is a reply to message #1002219] |
Sun, 20 January 2013 06:14  |
Eclipse User |
|
|
|
Thanks Dirk for your support and patience. :) My deadline is very short don't know if this R&D will work for me :) but will try out my best. As you know itz very hard to migrate web based solution to desktop based application on certain aspects.
|
|
|
|
Re: Complex table structure using Nebula [message #1003058 is a reply to message #1002219] |
Sun, 20 January 2013 06:14  |
Eclipse User |
|
|
|
Thanks Dirk for your support and patience. :) My deadline is very short don't know if this R&D will work for me :) but will try out my best. As you know itz very hard to migrate web based solution to desktop based application on certain aspects.
|
|
|
|
Re: Complex table structure using Nebula [message #1003061 is a reply to message #1002219] |
Sun, 20 January 2013 06:14  |
Eclipse User |
|
|
|
Thanks Dirk for your support and patience. :) My deadline is very short don't know if this R&D will work for me :) but will try out my best. As you know itz very hard to migrate web based solution to desktop based application on certain aspects.
|
|
|
|
Re: Complex table structure using Nebula [message #1003064 is a reply to message #1002219] |
Sun, 20 January 2013 06:14  |
Eclipse User |
|
|
|
Thanks Dirk for your support and patience. :) My deadline is very short don't know if this R&D will work for me :) but will try out my best. As you know itz very hard to migrate web based solution to desktop based application on certain aspects.
|
|
|
|
Re: Complex table structure using Nebula [message #1003067 is a reply to message #1002219] |
Sun, 20 January 2013 06:14  |
Eclipse User |
|
|
|
Thanks Dirk for your support and patience. :) My deadline is very short don't know if this R&D will work for me :) but will try out my best. As you know itz very hard to migrate web based solution to desktop based application on certain aspects.
|
|
|
|
Re: Complex table structure using Nebula [message #1003072 is a reply to message #1002219] |
Sun, 20 January 2013 06:14  |
Eclipse User |
|
|
|
Thanks Dirk for your support and patience. :) My deadline is very short don't know if this R&D will work for me :) but will try out my best. As you know itz very hard to migrate web based solution to desktop based application on certain aspects.
|
|
|
|
Re: Complex table structure using Nebula [message #1003075 is a reply to message #1002219] |
Sun, 20 January 2013 06:14  |
Eclipse User |
|
|
|
Thanks Dirk for your support and patience. :) My deadline is very short don't know if this R&D will work for me :) but will try out my best. As you know itz very hard to migrate web based solution to desktop based application on certain aspects.
|
|
|
|
Re: Complex table structure using Nebula [message #1003078 is a reply to message #1002219] |
Sun, 20 January 2013 06:14  |
Eclipse User |
|
|
|
Thanks Dirk for your support and patience. :) My deadline is very short don't know if this R&D will work for me :) but will try out my best. As you know itz very hard to migrate web based solution to desktop based application on certain aspects.
|
|
|
Re: Complex table structure using Nebula [message #1003081 is a reply to message #1002219] |
Sun, 20 January 2013 06:14  |
Eclipse User |
|
|
|
Thanks Dirk for your support and patience. :) My deadline is very short don't know if this R&D will work for me :) but will try out my best. As you know itz very hard to migrate web based solution to desktop based application on certain aspects.
|
|
|
Powered by
FUDForum. Page generated in 0.09072 seconds