Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Note to the "Scout/Tutorial/4.0/Minicrm/Add a form to edit the data"(Note to the section: "Pass the primary key and reload page" )
Note to the "Scout/Tutorial/4.0/Minicrm/Add a form to edit the data" [message #1427448] Sat, 20 September 2014 07:11 Go to next message
barust Mising name is currently offline barust Mising nameFriend
Messages: 57
Registered: February 2014
Member
Hi,

By the tutorial http://wiki.eclipse.org/Scout/Tutorial/4.0/Minicrm/Add_a_form_to_edit_the_data
I noticed that the auto-generation of code :
form.setCompanyNr(getCompanyNrColumn().getSelectedValue());

occurs only when the primary key for the column in Object Properties section is selected, otherwise this code is not generated. So as is not specified in the tutorial about marking primary key column in Object Properties section, it may lead to manual entry of a code.
For clarity:
http://i58.tinypic.com/10fbytx.png

[Updated on: Sat, 20 September 2014 07:21]

Report message to a moderator

Re: Note to the "Scout/Tutorial/4.0/Minicrm/Add a form to edit the data" [message #1427476 is a reply to message #1427448] Sat, 20 September 2014 08:17 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
Hi,

Thank you for this input. I have tried to see what we could improve:
* Add a form to edit the data > Pass the primary key and reload page
There is an extra line "Notice the following line" in the code bloc.

* Write the first page > Add colums to the table
There is a table telling which properties need to be set. Important is CompanyNrColumn: primaryKey = yes

Feel free to discuss what we could improve in the mini-crm tutorial.
Re: Note to the "Scout/Tutorial/4.0/Minicrm/Add a form to edit the data" [message #1427532 is a reply to message #1427476] Sat, 20 September 2014 10:27 Go to previous message
barust Mising name is currently offline barust Mising nameFriend
Messages: 57
Registered: February 2014
Member
Hi Jérémie,

with the rapid creation of table pages often forget to mark the primary key field in the table page. And if in the tutorial accentuate attention to it, such as you have pointed out here: https://wiki.eclipse.org/Scout/Tutorial/4.0/Minicrm/Write_the_first_page#Add_colums_to_the_table , I think it will help in the future not to make mistakes.

With regards,
Bakhtiyor.
Previous Topic:Bundle cannot be resolved
Next Topic:Standalone Client Application
Goto Forum:
  


Current Time: Fri Apr 26 14:47:33 GMT 2024

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

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

Back to the top