Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Complex table structure using Nebula (Complex table structure using Nebula )
Complex table structure using Nebula [message #993962] Wed, 26 December 2012 02:18 Go to next message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
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 496 times)

[Updated on: Wed, 26 December 2012 03:31]

Report message to a moderator

Re: Complex table structure using Nebula [message #994909 is a reply to message #993962] Fri, 28 December 2012 16:03 Go to previous messageGo to next message
Edwin Park is currently offline Edwin ParkFriend
Messages: 124
Registered: July 2009
Senior Member
Hi Prashant,

I answered your question on the NatTable forum here: http://www.eclipse.org/forums/index.php/t/443734/

Cheers,
Edwin
Re: Complex table structure using Nebula [message #994961 is a reply to message #993962] Fri, 28 December 2012 18:26 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
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]

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 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2903
Registered: July 2012
Senior Member
Hi,

quite late reply, but that's because of my vacation AND I mostly check the NatTable forum for NatTable related questions. Wink

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. Wink

Yes NatTable is like a virtual table in design. Why should this be an issue?

Greez,
Dirk
Re: Complex table structure using Nebula [message #1001668 is a reply to message #1000673] Thu, 17 January 2013 07:05 Go to previous messageGo to next message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Hi... Attached is the look n feel of Table i am looking for. I am trying to get this in Nat table but not able to achieve this.
  • Attachment: Table1.png
    (Size: 34.31KB, Downloaded 470 times)
Re: Complex table structure using Nebula [message #1001675 is a reply to message #1001668] Thu, 17 January 2013 07:20 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2903
Registered: July 2012
Senior Member
Why not? This should be an easy one. If it's only about styling, you need to override the styling configuration of the ColumnHeaderLayer and the body layer stack you are using.

Have a look here on how to configure styling http://eclipse.org/nattable/documentation.php?page=styling
Re: Complex table structure using Nebula [message #1002112 is a reply to message #1001675] Fri, 18 January 2013 00:32 Go to previous messageGo to next message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk... Smile. Is there any proper code sample available? 'coz i searched i din fine any accept for Nebula. Also i have one more Question.. will Nattable support Jface data binding. 'coz my application is completly SWT/JFace based, just for this table purpose i am using Nattable. Values in Table will be mapped to Form Field on click of any row item in table, this require databinding between Table and Form field.And table should be editable as well.

[Updated on: Fri, 18 January 2013 00:44]

Report message to a moderator

Re: Complex table structure using Nebula [message #1002126 is a reply to message #1002112] Fri, 18 January 2013 01:31 Go to previous messageGo to next message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Hi Dirk, I have attached sample application screenshot of SWT/JFACE which i am trying to achieve with Nattable as i said in above explaination
  • Attachment: Example.png
    (Size: 45.19KB, Downloaded 981 times)
Re: Complex table structure using Nebula [message #1002219 is a reply to message #1002126] Fri, 18 January 2013 07:44 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2903
Registered: July 2012
Senior Member
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 #1003037 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous messageGo to next message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience Smile. The thing is that my deadline is very short Sad n i have to do invest more time don know if i will be successful in achieving this. Smile
Re: Complex table structure using Nebula [message #1003039 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous messageGo to next message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003041 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous messageGo to next message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003043 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous messageGo to next message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003045 is a reply to message #1002219] Sun, 20 January 2013 06:14 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk for your support and patience. Smile My deadline is very short don't know if this R&D will work for me Smile 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 #1003046 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003048 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003049 is a reply to message #1002219] Sun, 20 January 2013 06:14 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
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 #1003051 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003052 is a reply to message #1002219] Sun, 20 January 2013 06:14 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
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 #1003054 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003055 is a reply to message #1002219] Sun, 20 January 2013 06:14 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
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 #1003057 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003058 is a reply to message #1002219] Sun, 20 January 2013 06:14 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
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 #1003060 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003061 is a reply to message #1002219] Sun, 20 January 2013 06:14 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
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 #1003063 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003064 is a reply to message #1002219] Sun, 20 January 2013 06:14 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
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 #1003066 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003067 is a reply to message #1002219] Sun, 20 January 2013 06:14 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
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 #1003071 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003072 is a reply to message #1002219] Sun, 20 January 2013 06:14 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
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 #1003074 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003075 is a reply to message #1002219] Sun, 20 January 2013 06:14 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
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 #1003077 is a reply to message #1002219] Sun, 20 January 2013 05:55 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
Thanks Dirk again for you explanation and patience :). The thing is that my deadline is very short :( n i have to do invest more time don know if i will be successful in achieving this. :)
Re: Complex table structure using Nebula [message #1003078 is a reply to message #1002219] Sun, 20 January 2013 06:14 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
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 Go to previous message
Prashant p is currently offline Prashant pFriend
Messages: 57
Registered: October 2012
Member
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.
Previous Topic:Using GridViewer with checkboxes
Next Topic:Non Working Days in Gantt chart
Goto Forum:
  


Current Time: Sat Nov 09 02:12:02 GMT 2024

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

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

Back to the top