Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple if else

 
Wael Reslan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
Just started playing around with J2ME using Netbeans
Very simple application, a data entry screen, once all fields are filled build a string and send it as an SMS, if a certain field is left out empty then an alert pops up asking the user to fill out the required fields
Am using the Flow View, got my screens designed, got the if method there too with the following code in the "Condition Code" = textFieldName.equals("")
Logic is pretty simple, if the textFieldName is empty go to the alert, else go to some other form which i call FormResult
Well clean & build and run, but it is as if the if-else is not even there, am always redirected to FormResult !!
Any ideas ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please PostRealCode; it's difficult to know what problem you're having without really knowing what you're doing.
 
Wael Reslan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I just dropped using the visual designer and wrote all the code myself and it's working fine
Thank you
 
Lalit Mehra
Ranch Hand
Posts: 384
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please post the original code ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic