MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Conditional display of some fields with labels on a map

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
arunkumar_e
Beginner


Joined: 06 May 2004
Posts: 27
Topics: 16
Location: Bangalore

PostPosted: Sat Apr 29, 2006 12:51 am    Post subject: Conditional display of some fields with labels on a map Reply with quote

Hi All,
I am new to CICS, i hav this requirement.

1. I have a map already. Lets say it has following fields.

Name: Place:

2. I want to add a new field with label on the map. Lets say

Name: Place:

AGE:

3. Now Age is retrieved in the program from a table, for some rows in the table AGE may be present, for some it may not.

4. Now if the AGE is present i want the map this way.

Name: ARUN Place: Bangalore

AGE: 27

5. If the AGE is not there then i want it this way.

Name: ARUN Place: Bangalore

AGE itself shudnt come on the Screen.



If this question is asked earlier, i am sorry to bring it up again.Please let me know the thread, 'cas i cudnt find 1.

Thanks,
Arun
_________________
Arun
"Genius is one percent inspiration and ninety-nine percent perspiration." -- Thomas A. Edison
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Sat Apr 29, 2006 4:11 pm    Post subject: Reply with quote

arunkumar_e,

There is no way to hide the fields without defining 2 Maps. Define 2 maps one with age and another without age. Use the appropriate map depending on the data.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jaya
Beginner


Joined: 02 Sep 2005
Posts: 77
Topics: 10
Location: Cincinnati

PostPosted: Tue May 02, 2006 2:31 am    Post subject: Reply with quote

arunkumar_e,

You can declare the MAP field
Quote:
AGE:

as a variable field on the MAP and populate it dynamically in the program with the value 'AGE:' or spaces depending on the age value present in the table.

Thanks,
Jaya.
_________________
"Great spirits have always encountered violent opposition from mediocre minds."
-Albert Einstein
Back to top
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Mon May 08, 2006 12:31 pm    Post subject: Reply with quote

Or else move the proper attributes to the attribute byte of the field definition depending on your program logic. There is an attribute of DRK-ASKIP (pls check up the exact attribute) which effectively hides the field and skips over it, if not needed.

HTH...Regards,
Manas
_________________
There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948)
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group