Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » How to use the template?
icon3.gif  How to use the template? [message #1700385] Thu, 02 July 2015 10:01 Go to next message
marco giudici is currently offline marco giudiciFriend
Messages: 204
Registered: February 2013
Location: Italy
Senior Member
Hi,
I define one template following the tutorial, I added it to my form without problem.
The template is composed by one smart-field and three string-field.
index.php/fa/22374/0/
Now my problem consist in set a default value for these fields when the user press a button and I don't understand exactly how access at each field and set the value that I want.

Thanks in advance for any help
  • Attachment: Template.PNG
    (Size: 5.75KB, Downloaded 178 times)
Re: How to use the template? [message #1700548 is a reply to message #1700385] Fri, 03 July 2015 12:55 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
I assume you have a form (MyForm) containing this template.
It has somewhere maybe in the MainBox, following inner-class:
public class MyConnField extends AbstractConnDetailsBox {
    //Maybe some configuration like getConfiguredLabel() ...
}


In your form, you should be able to do:
getMyConnField().getDriverField().setValue(myDriverValue);


I hope it helps.
Re: How to use the template? [message #1700553 is a reply to message #1700548] Fri, 03 July 2015 15:24 Go to previous message
marco giudici is currently offline marco giudiciFriend
Messages: 204
Registered: February 2013
Location: Italy
Senior Member
Hi Jeremie,
thanks for the suggestion it's very useful and your assumption is correct.
I apply this suggestion and works fine
Previous Topic:missing checkboxes on SDK
Next Topic:Scout with SQLite
Goto Forum:
  


Current Time: Fri Apr 26 07:18:02 GMT 2024

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

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

Back to the top