control variable in online screens

Answer Posted / sundar selvaraj

A control variable is used to dynamically set attribute and
colour definitions for a field or group of fields depending
upon a program condition. For example, Consider an order
processing screen that allows you to create new contracts,
modify existing contracts and look-up paid-up contracts.
The screen used for all these functions is the same.
However, when a paid-up contract is shown to the user, you
do not expect it to be displayed in a modifiable state. So,
you protect all the fields of the map and show it
like "read only". However, for modifying an existing, non-
paid-up map, you enable certain fields. So, control
variables can be used in scenarios like this to dynamically
set the attributes of the field.

I hope this answers your query.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a hyperdescriptor? How does it work?

621


How can we see the copy book length using file-aid?

538


Define cobol coding sheet?

559


What is the quality process in development?

561


What is the difference between escape(top or bottom) and escape immediate(top or bottom?

548






Explain the difference between external subroutine and subprogram?

605


The natural file converted to PDF file if Yes then explain ?

2644


How to receive data passed through jcl parm parameter in a natural program?

548


Explain control variable in online screens?

543


Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?

585


Explain what happens when you issue a escape routine in a program? Will there be any compilation /run time erro?

555


How to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?

600


Explain difference between read work file 1 and read work file once? Why we are using work file once?

549


Suppose you are processing an input file in a natural program and you want the program to fail if the file is empty. What command you use in natural to force it to fail?

564


Explain why do we use file-aid for seqential files?

570