Page 1 of 1

ISPF PANEL

PostPosted: Sat Mar 09, 2013 12:47 pm
by anand4u237
Hello everyone,

Currently i am working on an enhancement of a tool which submits a job to perform certian task (for Security reasons i cant disclose entire functionality of the tool). For your understanding i am explaining a bit. There are two Panels, the frist one takes the input and verify the entered input and pass it to second
Panel, now the second panel receives the input and submits a job when the user press the "enter" key.

Problem-
When the second panel receive the input from the frist one in it respective fields i see all most all the fields are editable that mean i can change the value in the second panel such as date etc etc. This means that we are messing with the frist panel out put which validates the input and pass to the second panel.

I would like to know is there any way so that i can mask some fields(Ex- Date) of the second screen so that it can't be edited by any means and protecting the validated inputs.

I would appriciate any help from all of you guys.

Thanks
Anand.

Re: ISPF PANEL

PostPosted: Sat Mar 09, 2013 1:58 pm
by prino
anand4u237 wrote:Currently i am working on an enhancement of a REXX tool which submits a job to perform certian task.(for Security reasons i cant disclose entire functionality of the tool)

Security reasons? The words London Underground Limited and Cookies spring to mind... :mrgreen:

anand4u237 wrote:For your understanding i am explaining a bit. There are two Panels, the frist one takes the input and verify the entered input and pass it to second Panel, now the second panel receives the input and submits a job when the user press the "enter" key.

Creating two panels = two sets of billable hours, we understand.

anand4u237 wrote:Problem-
When the second panel receive the input from the frist one in it respective fields i see all most all the fields are editable that mean i can change the value in the second panel such as date etc etc. This means that we are messing with the frist panel out put which validates the input and pass to the second panel.

I would like to know is there any way so that i can mask some fields(Ex- Date) of the second screen so that it can't be edited by any means and protecting the validated inputs.

Submit from the first panel, sheesh, was that so difficult?

Re: ISPF PANEL

PostPosted: Sat Mar 09, 2013 2:23 pm
by anand4u237
Thanks Prino that was an awesome reply and quite effective too. Anyways i understand peoples at your age do act weired.

Thanks for the suggestion.

Re: ISPF PANEL

PostPosted: Sat Mar 09, 2013 5:59 pm
by NicC
Suggest you look in the manual and study ATTRibutes.

Also, as Prino pointed out - what is the point of the second panel if you have all the information from the first.

Re: ISPF PANEL

PostPosted: Sat Mar 09, 2013 9:21 pm
by Pedro
If you do not want to allow user input into a field, change the attribute in the )ATTR section. That is the first choice.

If you sometimes want input and sometimes not, you need to use the .ATTR function in the )INIT section. Set a flag in panel1 and in pane2 check the flag and conditionally use .ATTR.

Re: ISPF PANEL

PostPosted: Mon Mar 11, 2013 10:55 am
by anand4u237
Hi NicC,

As i have already told this is a pre developed application i am doing as i have been told by the clients i still think both the panels can be incorporated in a single panel.

I think Pedro suggesion could work, will update you once i test this solution


Regards, Anand.

Re: ISPF PANEL

PostPosted: Tue Apr 16, 2013 5:44 pm
by anand4u237
frist of all thanks for your valuable input to this post the suggestion provided by pedro worked i had made changes to .ATTR and )INIT section and it worked.

I have another question regarding nagivating panel in the program. The program is invoking ISPEXEC DISPLAY PANEL(CUSTOM2)
after some processing i want the program to return back the control to CUSTOM1 panel again. If i am using ISPEXEC DISPLAY it starting
a new screen. I need to get to the same CUSTOM1 screen. I tried EXIT but i also need to display a message to the CUSTOM1 screen which will be passed from CUSTOM2 program, hence i am not getting the message in but i can succesfully get back to CUSTOM1 screen.

Waiting for your valuable input.

Regards
Anand.

Re: ISPF PANEL

PostPosted: Tue Apr 16, 2013 7:07 pm
by Pedro
i also need to display a message

1. In CUSTOM2, set a variable to the message number.
2. In rexx exec, check the variable and issue SETMSG.
3. Then display panel CUSTOM1. The message will appear there.