Skip to main content

Hello,

 

I am trying to use the same screen section for several purposes. In a case all input fields must be available to the user, and in another case some fields must be protected and not visible. Of course the change in the field attribute has to be done at run time. 

I tried to play around with the ACCEPT CONTROL clause, I simply move "PROTECT" to a variable previously linked to the CONTROL clause in the SCREEN SECTION. 

Result: The field is effectively protected but the cursor stop on it when I hit tab from the previous field!!! 

Is somebody knows if there is a way to avoid the cursor to pause on it? 


#VisualStudio
#ACCEPT
#VisualCOBOL

Hello,

 

I am trying to use the same screen section for several purposes. In a case all input fields must be available to the user, and in another case some fields must be protected and not visible. Of course the change in the field attribute has to be done at run time. 

I tried to play around with the ACCEPT CONTROL clause, I simply move "PROTECT" to a variable previously linked to the CONTROL clause in the SCREEN SECTION. 

Result: The field is effectively protected but the cursor stop on it when I hit tab from the previous field!!! 

Is somebody knows if there is a way to avoid the cursor to pause on it? 


#VisualStudio
#ACCEPT
#VisualCOBOL

In fact this is not the move "PROTECT" who make the field not visible... It's the fore/background color that I both set to 0 (black/black). I can not find in the documentation how to make the field hidden and stop the cursor to pause on it. 


Hello,

 

I am trying to use the same screen section for several purposes. In a case all input fields must be available to the user, and in another case some fields must be protected and not visible. Of course the change in the field attribute has to be done at run time. 

I tried to play around with the ACCEPT CONTROL clause, I simply move "PROTECT" to a variable previously linked to the CONTROL clause in the SCREEN SECTION. 

Result: The field is effectively protected but the cursor stop on it when I hit tab from the previous field!!! 

Is somebody knows if there is a way to avoid the cursor to pause on it? 


#VisualStudio
#ACCEPT
#VisualCOBOL
I can find no way to do what you wish with the same screen definition. The PROTECT simply makes a field so that you cannot enter data into it. It does not control the ability to tab to the field.

I would recommend that you create a second screen that has the attributes set that are required and use it for your altered screen handling.

Somebody else may have a better approach to solving this issue so I will let them chime in...

Hello,

 

I am trying to use the same screen section for several purposes. In a case all input fields must be available to the user, and in another case some fields must be protected and not visible. Of course the change in the field attribute has to be done at run time. 

I tried to play around with the ACCEPT CONTROL clause, I simply move "PROTECT" to a variable previously linked to the CONTROL clause in the SCREEN SECTION. 

Result: The field is effectively protected but the cursor stop on it when I hit tab from the previous field!!! 

Is somebody knows if there is a way to avoid the cursor to pause on it? 


#VisualStudio
#ACCEPT
#VisualCOBOL

That exactly what I was thinking to do, but it is pretty ugly (no offence).

I have the same issue when I have a list of items on the screen (occurs). Sometime the screen is full (all occursed lines hold data), but when the bottom lines are empty, my users can still go with the cursor on an empty line (see line 4 on column Act in picture). It is ugly and not user friendly.  


Hello,

 

I am trying to use the same screen section for several purposes. In a case all input fields must be available to the user, and in another case some fields must be protected and not visible. Of course the change in the field attribute has to be done at run time. 

I tried to play around with the ACCEPT CONTROL clause, I simply move "PROTECT" to a variable previously linked to the CONTROL clause in the SCREEN SECTION. 

Result: The field is effectively protected but the cursor stop on it when I hit tab from the previous field!!! 

Is somebody knows if there is a way to avoid the cursor to pause on it? 


#VisualStudio
#ACCEPT
#VisualCOBOL

I found a solution to skip a protected field. In ADIS configuration file you can change a setting to do exactly that. The parameter is in "Configurable ACCEPT/DISPLAY Options", Option "30. Control of whether concealed fields are skipped".

More information about ADIS configuration file here : https://supportline.microfocus.com/documentation/books/nx30books/ciadcfcn.htm