This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

generating error message

 
Amritha Ganga
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I had a question. In my application, if i select home address from a drop down menu and click "get home address" check box , the system autopopulates home address for me. If i select something else, abd tries to submit it, the system generates an error saying line 1 should be given if it is not the home address. I have created another checkbox for Office visit, which generates office address. But i have a problem with the following code (this is the one which generates error).
How can i include code so that the system will generate error if i select any other option from drop down other than home and "office". Basically i need to add office visit error also to this one (HOME_VISIT "or" OFFICE_VISIT")



Please help me friends..
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amritha,

What exactly the error are you getting? I would go as follows.



Hope this helps!
 
Amritha Ganga
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.. That did help

Amritha
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool! My pleasure
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic