Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Using Data Objects with standard eclipse scout(Data Objects)
Using Data Objects with standard eclipse scout [message #1859282] Fri, 26 May 2023 08:53 Go to next message
Oueslati Anis is currently offline Oueslati AnisFriend
Messages: 128
Registered: June 2014
Location: Paris
Senior Member
Hello,
How to use Object Data with Eclipse scout standard effectively,

May purpose is to integrate it int server module to populate data

this is how I done :


public class EmployeeService implements IEmployeeService {
	@Override
	public EmployeeTablePageData getEmployeeTableData(SearchFilter filter) {
		EmployeeTablePageData pageData = new EmployeeTablePageData();
		Stream<EmployedRecord> allEmployee = BEANS.get(EmployedRepository.class)
				.getAll();
		Iterator<EmployedRecord> employedIter = allEmployee.iterator();
		while (employedIter.hasNext()) {
			EmployedRecord record = (EmployedRecord) employedIter.next();
			EmployeeTableRowData row = pageData.createRow();
			row.setEmployedId(record.getEmployedId());
			row.setFirstName(record.getFirstName());
			row.setLastName(record.getLastName());
			row.setExternal(record.getExternal());
			pageData.addRow(row);
		}
		return pageData;
	}
}



my question is :
is there any better way to do it ?
how to manaage insert and update ?
Regards
Re: Using Data Objects with standard eclipse scout [message #1859364 is a reply to message #1859282] Fri, 02 June 2023 10:37 Go to previous message
Oueslati Anis is currently offline Oueslati AnisFriend
Messages: 128
Registered: June 2014
Location: Paris
Senior Member
I found it strenge that the program does not create the additionl Do, restriction and reprository classes, the process were much more easier in my opinion.
Previous Topic:Persistent session (e.g. with cookies)
Next Topic:Is table row height configurable?
Goto Forum:
  


Current Time: Thu Mar 28 16:55:49 GMT 2024

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

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

Back to the top