Passing more than one value between windows
-
I posted in here the other day about getting a result from a popup window holding a calendar and the reponse I had was very helpful and that is since working. I am now moving on to the next section. This is where the user can select multiple things in a pop up window and pass them back or just one, or all. I have set it up so a list box displays all the areas that they can chose from and then along the bottom are the options to select all, or they can select individual items from the list box and click ok. The all bit is working fine as that’s just a matter of passing back a string that says all, which is similar to that of passing back the calendar date. However the multiple selection option is proving more difficult so far I have it set up so each item that they have selected is saved into an ArrayList. Is it then possible to pass back the ArrayList and populate a multiline text box with the values in the array list, I presume the passing back of the ArrayList would be fairly similar. It’s the displaying of the values with in it I am having trouble with. Any help as always is greatly appreciated.
"When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson
-
I posted in here the other day about getting a result from a popup window holding a calendar and the reponse I had was very helpful and that is since working. I am now moving on to the next section. This is where the user can select multiple things in a pop up window and pass them back or just one, or all. I have set it up so a list box displays all the areas that they can chose from and then along the bottom are the options to select all, or they can select individual items from the list box and click ok. The all bit is working fine as that’s just a matter of passing back a string that says all, which is similar to that of passing back the calendar date. However the multiple selection option is proving more difficult so far I have it set up so each item that they have selected is saved into an ArrayList. Is it then possible to pass back the ArrayList and populate a multiline text box with the values in the array list, I presume the passing back of the ArrayList would be fairly similar. It’s the displaying of the values with in it I am having trouble with. Any help as always is greatly appreciated.
"When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson
Nice to know that yestradys code working fine. and i was confident on that. :) any way , can you me more specefic on your problem. i am not getting actually. please confirm. I will try my best to help you !@@
cheers, Abhijit Check My Latest Article
-
Nice to know that yestradys code working fine. and i was confident on that. :) any way , can you me more specefic on your problem. i am not getting actually. please confirm. I will try my best to help you !@@
cheers, Abhijit Check My Latest Article
I have a list box in a popup window wher ethe user can select area's then when they click ok it passes the area's they have selected on the main window. so they open the popup select say (area1, area 3, area7) outs of a possible list of ten. Then when they click ok on the original screen that they opened the popup from it displays... you selected... area1 area3 area7 as a simple example. however when the user selects all the areas via the button "All". its will just show you selected... all I currently have the all bit working following your example with the calendar. Its getting the multiple values working. I orginally thought of adding the value of each one they have selected to an array and then passing the array back. Its then getting it to display the values that are stored in the array i.e area1, area3, area7. Thanks for the help. :)
"When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson
-
I have a list box in a popup window wher ethe user can select area's then when they click ok it passes the area's they have selected on the main window. so they open the popup select say (area1, area 3, area7) outs of a possible list of ten. Then when they click ok on the original screen that they opened the popup from it displays... you selected... area1 area3 area7 as a simple example. however when the user selects all the areas via the button "All". its will just show you selected... all I currently have the all bit working following your example with the calendar. Its getting the multiple values working. I orginally thought of adding the value of each one they have selected to an array and then passing the array back. Its then getting it to display the values that are stored in the array i.e area1, area3, area7. Thanks for the help. :)
"When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson
you can add the elected iteam a string with some Delemiter and pass it to main window and the just split the string with the delemiter.
cheers, Abhijit Check My Latest Article
-
you can add the elected iteam a string with some Delemiter and pass it to main window and the just split the string with the delemiter.
cheers, Abhijit Check My Latest Article
-
Thank you i was just looking into this cheers for the help. :)
"When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson
great!!!! did you read my today article. ?
cheers, Abhijit Check My Latest Article
-
great!!!! did you read my today article. ?
cheers, Abhijit Check My Latest Article