Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » show data in table ??
show data in table ?? [message #1505173] Tue, 09 December 2014 22:15 Go to next message
Flash Man is currently offline Flash ManFriend
Messages: 17
Registered: August 2014
Junior Member
Hello, in versio 4 of scout...

how to show data in table...I used to do it with Object[][] returning...

I would return the service and method etc. getAllUsers()

How to do this now?

protected void execLoadData(SearchFilter filter) throws ProcessingException {

}

is generated when I click execLoadData in sidebar

How to handle that? and also in service...


thanks!
Re: show data in table ?? [message #1505806 is a reply to message #1505173] Wed, 10 December 2014 10:21 Go to previous messageGo to next message
Patrick Baenziger is currently offline Patrick BaenzigerFriend
Messages: 96
Registered: September 2011
Member
Hi Flash Man

The way to load the data with Object[][] is still there - you just clicked/overrode the wrong method:

  • execLoadTableData(SearchFilter) : For use with Object[][]
  • execLoadData(SearchFilter): Typically used for bean-based table page data.


The bean based table page data allows you to use beans to transfer the data (type safety Very Happy ) instead of Object[][]. If you want to use it, the JavaDoc of the execLoadData-method provides already a lot of guidance.

[Updated on: Wed, 10 December 2014 10:22]

Report message to a moderator

Re: show data in table ?? [message #1506205 is a reply to message #1505806] Wed, 10 December 2014 17:11 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
Having to similar execLoad*Data() is confusing:

About this topic, have a look at my plan described in Bug 444210.

A new method should be introduced:
importTableData(Object[][] data)


The new method should be similar to:
importPageData(AbstractTablePageData)


When we have this new method, we can deprecate execLoadTableData() [to be removed with the N Release].

Migration will be:

Old:
@Override
protected Object[][] execLoadTableData(SearchFilter filter) throws ProcessingException {
  PersonSearchFormData searchFormData;
  //initialize searchFormData depending on the filter
  return SERVICES.getService(IStandardOutlineService.class).getPersonTableData(searchFormData);
}


New:
@Override
protected void execLoadData(SearchFilter filter) throws ProcessingException {
  PersonSearchFormData searchFormData;
  //initialize searchFormData depending on the filter
  importTableData(SERVICES.getService(IStandardOutlineService.class).getPersonTableData(searchFormData));
}


-----

Until now I have only discussed this with one other scout committer. This is why I appreciate feedback from the community about this change.
icon14.gif  Re: show data in table ?? [message #1507107 is a reply to message #1506205] Thu, 11 December 2014 10:17 Go to previous messageGo to next message
Patrick Baenziger is currently offline Patrick BaenzigerFriend
Messages: 96
Registered: September 2011
Member
Jérémie's suggestion looks good to me.

The two current methods are inconsistent: One operates via the return value, the other is basically a hook where you have to call the correct import statement yourself.
If the suggestion is implemented there should be a deprecation comment with migration information and the javadoc of the execLoadData(SearchFilter) method should be extended such that it mentions the suggested importTableData method as well.
Re: show data in table ?? [message #1507262 is a reply to message #1507107] Thu, 11 December 2014 13:13 Go to previous messageGo to next message
Flash Man is currently offline Flash ManFriend
Messages: 17
Registered: August 2014
Junior Member
Hi, thanks for the answers! Smile

Can you show me some example with beans to transfer data.... I am new to scout, so I am learning now...

For example...

a form that contains DateField, DateTime field, CheckBox, RadioButton....How to show data in form from database (MicrosfotSQL)..How to insert these types of data to MSSQL table usinb beans...store() method...

Thank you in advance

Re: show data in table ?? [message #1513169 is a reply to message #1507262] Tue, 16 December 2014 09:28 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
Bug 444210 will be available with Mars-M4 (Scout version 4.3.x and 4.2.x)

This also this New And NoteworthyEntry: Deprecate execLoadTableData() in table pages

By questions, feel free to ask.
Previous Topic:Set name of Swing component from Scout
Next Topic:Smart-Field - re-initialize
Goto Forum:
  


Current Time: Fri Apr 19 12:13:28 GMT 2024

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

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

Back to the top