| Problem with passing primary key to modify form [message #1118547] |
Fri, 27 September 2013 10:17  |
Silvan Zuppiger Messages: 27 Registered: July 2012 |
Junior Member |
|
|
Hello,
I'm currently generating a search Form similar to the tutorial
http://wiki.eclipse.org/Scout/Tutorial/3.9/Minicrm/Add_a_form_to_edit_the_data#Load_the_data_for_the_form
At some point I have to pass the primary key with the following code:
public void execAction() throws ProcessingException {
CompanyForm form = new CompanyForm();
// Notice the following line
form.setCompanyNr(getCompanyNrColumn().getSelectedValue());
form.startModify();
form.waitFor();
if (form.isFormStored()){
reloadPage();
}
}
My Problem is with the mentioned "following line". It is not generated automatically - ok no problem was my thought, I do it on my own. But then the "form.setCompanyNr()" method is missing - there is no useful quickfix available.
I clicked on "create method" but then i was a bit helpless where to set the data...
So do I have to generate the "setCompanyNr" method on my own - or should it be done automatically and I made something wrong. In case I have to write it manually do you have a hint for me, where to set the key in this method.
Regards Silvan
|
|
|
|
Powered by
FUDForum. Page generated in 0.02062 seconds