Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Set SearchForm-Field from the TablePage-Value
Set SearchForm-Field from the TablePage-Value [message #1764947] Sun, 04 June 2017 15:54 Go to next message
Source Deposit is currently offline Source DepositFriend
Messages: 13
Registered: March 2017
Junior Member

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 12:16 Go to previous messageGo to next message
Matthias Otterbach is currently offline Matthias OtterbachFriend
Messages: 19
Registered: August 2015
Location: Munich
Junior Member
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 13:32 Go to previous message
Source Deposit is currently offline Source DepositFriend
Messages: 13
Registered: March 2017
Junior Member

Thank you very much ...

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

:-))
Previous Topic:[Neon] - insert dynamic image into menu without being icons.
Next Topic:[Blog Post] Machine Learning with Deeplearning4j and Eclipse Scout
Goto Forum:
  


Current Time: Mon Sep 24 13:55:11 GMT 2018

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

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

Back to the top