getting information from a different view in javafx - javafx

i have a main view with a combo box and its controller, and a second view which gets loaded when a button is clicked on the main view.
the second view contains a button and a label and has its different controller.
what i want to do is, when the button on the second controller is clicked, the selected item on the combo box on the main view should be displayed on the label..
so that when i go back and change the item on the combo box and go back and click the button on the second view ,the text on the label would be changed to the currently selected item.
any help..???
thanks

Related

navigation item not showing on first time

I am using navigation controller for each tab, and the first controller in each tab not showing any item in the navigation, but if I click on cell and return back the items on the navigation shows normally.
Why?
Thanks,

what is the solution for show different pop up with same button?

i have a choice list with different action (add file or add comment) and a button OK.
The button will show pop up according to action select. My question is how i do this in same button?
I create two pop up's but i don't know how to invoke them after.
You could change the text on the button per pop up window. Then when the button is clicked, pick your pop up based off of the text on the button. For example, initial state of the button says open, then when its clicked you display a pop up and change the button text to close. Then when the button is clicked again you close the window and change the button text to open.

QML: redraw TableView when context menu shown

I show context menu when user right clicks on row at TableView and select clicked item:
downloadContextMenu.popup()
tableView.selection.clear()
tableView.selection.select(row)
but TableView show selection only if I will move mouse to something else (i.e. button) after it. So, how to update TableView in this case?
downloadContextMenu is Menu
P.S. If I will do it by this:
tableView.selection.clear()
tableView.selection.select(row)
downloadContextMenu.popup()
I will have the same problem, but after next opening of context menu (open menu, then click outside to close it, then open again)

update panel for each row in grid view

I have an asp grid view which contains a text box and button.I have set a required field validator for the text box .But on clicking the button the required field validator doesn't shows up for the text box for the button i clicked(when the textbox is empty).Is there anyway to show the validator for text box based on the button i clicked?
also when i click on the button the command which is set for the button executes even when the text box is empty.
also i have place the item template in update panel so that the page does not refereshes.

Change text of label in parent page by clicking button inside child page within a radtabstrip

My application contains a page "PageA.aspx" with a radtabstrip. One of the tab is associated with a radpageview whose contenturl is "PageB.aspx" which means if I select that particular tab, I will see content of PageB underneath the tab. There is a label in pageA and a button in pageB. I want to change the text of label in PageA when i press button inside page B. Can anyone tell whether this is possible or not? If so, how can I do this?
ya...It is Possible in javascript...use Window.parent Property...you can get that label object from that you can change label text...

Resources