View previous topic :: View next topic |
Author |
Message |
arunkumar_e Beginner

Joined: 06 May 2004 Posts: 27 Topics: 16 Location: Bangalore
|
Posted: Sat Apr 29, 2006 12:51 am Post subject: Conditional display of some fields with labels on a map |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Sat Apr 29, 2006 4:11 pm Post subject: |
|
|
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 |
|
 |
Jaya Beginner

Joined: 02 Sep 2005 Posts: 77 Topics: 10 Location: Cincinnati
|
Posted: Tue May 02, 2006 2:31 am Post subject: |
|
|
arunkumar_e,
You can declare the MAP field
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 |
|
 |
Manas Biswal Intermediate

Joined: 29 Nov 2002 Posts: 382 Topics: 27 Location: Chennai, India
|
Posted: Mon May 08, 2006 12:31 pm Post subject: |
|
|
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 |
|
 |
|
|