Building an enterprise app — Challenge 2: Process input text

Esteban Ibarra
1 min readOct 4, 2021

--

The next challenge sounded pretty challenging; make sure both first and last name fields weren’t empty before storing the information into the case variables and moving on to the next screen.

In the UI Manager, I made a holder variable for the next locationPanel and made it and the other holders public just in case. I ran into some issues with them being private so I went the easy route.

Checking to see if the values weren’t empty was easy. Just compare the inputfields.text to “”. If both of them weren’t empty, it would pass the if statements check and run the next few lines.

First, I’d call the UIManager and in the activeCase.name variable, I’d combine the first and last names text. After that, it was just a matter of turning off the client panel and turning on the next location panel.

--

--