Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Set SearchForm-Field from the TablePage-Value
Set SearchForm-Field from the TablePage-Value [message #1764947] Sun, 04 June 2017 11:54 Go to next message
Eclipse UserFriend
I'm calling a TablePage. When calling the TablePage, a local variable is set.

Depending on the content of this variable, a search-field is to be assigned (the SearchForm belonging to the TablePage).

Concrete one could ...

@Override
protected void execInitField() {

	if (<<[Here the Value from TablePage.this.localeVariable]>> = 1) {
		setValue("yeaha");
	}else{
		setValue("?whats wrong?");
	}
	 
	super.execInitField();
}


... but how do you get the value from the TablePage?



I think a transfer from the TablePage to the SearchForm can somehow not take place since the SearchForm is just using ...

	@Override
	protected Class<? extends ISearchForm> getConfiguredSearchForm() {
		return xxxSearchForm.class;
	}


... is called.
Re: Set SearchForm-Field from the TablePage-Value [message #1765689 is a reply to message #1764947] Tue, 13 June 2017 08:16 Go to previous messageGo to next message
Eclipse UserFriend
It is also possible to overwrite the createSearchForm() method in subclasses (= your table pages).

By doing so the value of getConfiguredSearchForm() is not used anymore and you are on your own to return an instance of the search form. Of course you could also pass further parameters (maybe constructor parameters) there.

But be aware, this method is probably just called once during setup of the table page or first setup of the search form.

Re: Set SearchForm-Field from the TablePage-Value [message #1766717 is a reply to message #1765689] Mon, 26 June 2017 09:32 Go to previous message
Eclipse UserFriend
Thank you very much ...

I believe that I will let the problem go even further ... maybe there is another solution variation ...

:-))
Previous Topic:Neon: jaxws-maven-plugin error in an Mars.2 IDE
Next Topic:[Blog Post] Machine Learning with Deeplearning4j and Eclipse Scout
Goto Forum:
  


Current Time: Thu Jul 03 20:45:15 EDT 2025

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

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

Back to the top