Sei sulla pagina 1di 26

Welcome to the learning unit on ‘Creating B Tree And Hidden Field Enquiries ‘.

At the
end of this learning unit you will know to add more elements to the enquiry output for
display purpose.

Enquiries-Hiding-B Change-R13 1
The conventions used in this learning unit are,

1. Applications in T24 are represented in bold uppercase letters.

2. The fields in the applications are mentioned in uppercase letters.

3. This learning unit is example based. First an example output will be shown then
you will be taught the steps to create the Version. At the end of each section a
workshop is given to test your level of understanding.

Enquiries-Hiding-B Change-R13 2
At the end of this session you will be able to,

1. Hide or display columns in the enquiry output

2. Display a break change in the enquiry output

3. Display headers and footers in the output of the enquiry

4. Explain Start tree and End tree enquiries

5. Calculate the sum of values of a particular column using the keyword


TOTAL

Enquiries-Hiding-B Change-R13 3
1. Enquiry is a query that you ask T24 about the data it has stored.

2. In technical terms, it is a ‘SELECT’ executed in order to fetch data from T24

3.Enquiries are created using the ENQUIRY application in T24 .

4. Enquiries can display data in various formats.

Enquiries-Hiding-B Change-R13 4
This Learning unit is based on examples. First an example output will be shown then
you will be taught the steps to create the Enquiry. At the end of each module a
workshop is given to test your level of understanding.

1. Create an Enquiry based on the LD.LOANS.AND.DEPOSITS application with the


following fields - @ID, CURRENCY and AMOUNT.

2. Sort the records based on the CURRENCY field and introduce a line break when
the currency value changes

3. Calculate the total amount for the set of records that fall under the same currency

Enquiries-Hiding-B Change-R13 5
The Enquiry is based on the LD.LOANS.AND.DEPOSITS application with three fields
namely @ID,CURRENCY and AMOUNT.

Enquiries-Hiding-B Change-R13 6
In order to introduce the break change use the OPERATION field. A break change has
to be introduced when the value in the CURRENCY field changes

OPERATION - Specify B C CURRENCY here. B C specifies Break Change. Here you


tell the system to give a line break when the CURRENCY changes.

Next you calculate the sum of amount for the set of records that fall under the same
currency. TOTAL is the keyword which is used, specify TOTAL AMOUNT in the next
multi-value of the OPERATION field.

Enquiries-Hiding-B Change-R13 7
You can see the break change between currency EUR & GBP . The total of amount for
records with EUR as currency is also calculated.

Enquiries-Hiding-B Change-R13 8
In your Enquiry report you can have headers and footers . This learning module
teaches you to display headers and footers in Enquiry report.

1. Create an enquiry based on the LD.LOANS.AND.DEPOSITS application. It must


display a list of all the loan accounts of a customer (run time selection). Fields that
need to be displayed are @ID, CATEGORY, CURRENCY and AMOUNT.

1.1 In the HEADER part of the enquiry report, display the short name and the
date.
1.2 In the FOOTER display the text ‘END OF REPORT’
1.3 The header for the AMOUNT field should be hidden

2. You can see a sample output of the designated task.

Enquiries-Hiding-B Change-R13 9
You will create an enquiry to display header and footer for your report.

Retrieve records that has a positive working balance. Make CUSTOMER as the
mandatory selection field in your Enquiry. Now you will specify the details of the
header to be displayed,

OPERATION : In the OPERATION field you will give a text as ‘REPORT OF ‘. This
free text will be displayed in the header position of your enquiry report.
COLUMN : X,Y format is used when you need to print values in the header region of
the output.
SECTION : Set the option to ‘HEADER’ as this is the header for your report. The
header that you display is a section header.

Data which are to displayed as part of the header are CUSTOMER.ID and DATE . So
multi-value the FIELD.NAME field.
FIELD.NAME : Specify the field name which is part of the header.
OPERATION : MNEMONIC of the CUSTOMER.ID is taken from the CUSTOMER
application using a conversion routine.
COLUMN : Specify the value as thirty-five, two(35,2).

In the OPERATION field you can also display the values for some common variables.

Enquiries-Hiding-B Change-R13 10
DATE and UESER are examples of common variables. Specify !TODAY which allows the
value of the common variable to be printed in the enquiry output.

Enquiries-Hiding-B Change-R13 10
Specify the required set of fields to display @ID,CATEGORY , CURRENCY and
AMOUNT fields.

SECTION - To hide the column header for the AMOUNT field ,set the SECTION field
to ‘NODISPLAY’. This will hide the column label. This Works only for the last column in
an enquiry.

To display the footer set the values in the following fields as shown,
FIELD.NAME – Give any free text here.
OPERATION – Specify the text that has to be displayed as footer. Enclose the text in
quotes.
DISPLAY.BREAK - END is a built in display break. END signifies the end of the
enquiry output.
SECTION – Set it to ‘FOOTER’.

Enquiries-Hiding-B Change-R13 11
1. Execute your enquiry using the ENQ command. As soon as you execute, it will
display a selection criteria box where only the CUSTOMER field is displayed to the
user. Unless you enter a valid customer number you will not be able to view the
enquiry report. CUSTOMER is a mandatory selection criteria field.

2. The generated report has MNEMONIC of the Customer and DATE displayed in
the header region. You can also see that the column header is hidden for
AMOUNT field. The footer section shows ‘ END OF REPORT’ to mark the end of
the report.

Enquiries-Hiding-B Change-R13 12
1. Create an Enquiry based on the FUNDS.TRANSFER application with the following
fields - @ID, TRANSACTION.TYPE, DEBIT.ACCT.NO,
DEBIT.CURRENCY,DEBIT.AMOUNT & CREDIT.ACCT.NO

2. Sort the data based on the DEBIT.CURRENCY field and display it in a expandable
tree format. Display the currency value as the label for each node

3. In the header region of the report display the Report of FT

4. In the footer region display the text ‘END OF REPORT’

Enquiries-Hiding-B Change-R13 13
1. Create an enquiry based on the LD.LOANS.AND.DEPOSISTS application

2. Fields to be part of the enquiry output are - @ID, CUSTOMER, AMOUNT ,


MATURITY.DATE , and INTEREST.RATE

3. The field CUSTOMER is a mandatory selection field of the enquiry output

4. Header for the field INTEREST.RATE should be hidden in the enquiry output

5. The selection criteria box should not be displayed as part of the enquiry result

Enquiries-Hiding-B Change-R13 14
1. Create an enquiry based on the LD.LOANS.AND.DEPOSITS application with the
following fields – CUSTOMER.NO , @ID , AMOUNT

2. A surcharge of 1000 rupees is added to customers whose amount is in the range of


100000 to 200000. This correction in the amount has to be done in your Enquiry.

3. The corrected value of the amount must be displayed in the last column of the
Enquiry.

Enquiries-Hiding-B Change-R13 15
You need to add the surcharge of thousand (1000) rupees to the customer’s Amount .
The sum of the two values should be represented in the last column.

1. You will select all loan account records that has AMOUNT in the range 100000 –
200000. Specify this condition in the FIXED.SELECTION field.

2. Specify all the required fields of your enquiry.

3. The Surcharge of thousand (1000) rupees is mentioned as a constant in the


OPERATION field. Do not forget to mention the constant value within quotes.

4. OPEARTION – The last multi-value field OPERATION you specify the condition to
add two values. Specify the condition as ‘CALC AMOUNT + Surcharge ’. Make
sure there is space between ‘AMOUNT’, ‘+’, and ‘Surcharge’.

In the OPERATION field you can manipulate values using the CALC keyword. The
operations allowed using CALC are addition, subtraction , multiplication and division.
You can also append two fields using CALC keyword.

Enquiries-Hiding-B Change-R13 16
You can view the modified value of Amount in the last column of your enquiry. It is the
total of amount and the surcharge.

Enquiries-Hiding-B Change-R13 17
1.Create an enquiry based on the LD.LOANS.AND.DEPOSITS application. Display
the fields @ID, CATEGORY ,CURRENCY, MATURITY.DATE, AMOUNT (hide this
from view)

2. The field Working Balance is hidden from the normal view in your report.

Enquiries-Hiding-B Change-R13 18
To hide the AMOUNT field’s value , set ‘HIDDEN’ in the ATTRIBS field . This will hide
the values from the view. By default this field is blank. However you can click on the
icon and view the AMOUNT.

Enquiries-Hiding-B Change-R13 19
1. The enquiry report does not display the AMOUNT field’s value.

2. Click on the greater than icon and can see the values of AMOUNT field.

Enquiries-Hiding-B Change-R13 20
1. Create an Enquiry based on the ACCOUNT application with the following fields :
CUSTOMER, CATEGORY & CURRENCY

2. From the CUSTOMER application retrieve the value for SHORT.NAME

3. In the last field of your enquiry append and display the values of CATEGORY and
SHORT.NAME

Enquiries-Hiding-B Change-R13 21
1. False

2. True

3. False

4. True

5. True

Enquiries-Hiding-B Change-R13 22
1. FIELD.DISP.TYPE - To display data in expandable tree formats use the
‘STARTTREE’ and ‘ENDTREE’ options.

2. SECTION- Using this field you can display headers and footers in your enquiry. It
provides three options namely HEADER,FOOTER and NODISPLAY.

3. You can hide column values by using the ATTRIBS field in enquiry.

You can now display data in collapsible tree format. You know to hide column values
in the enquiry output .

You have also learnt to create B Tree And Hidden Field Enquiries.

Enquiries-Hiding-B Change-R13 23
You have now learnt to add various elements to your enquiry output for display
purpose. You will now be able to,

1. To display a break change in the enquiry output

2. To display Start tree and End tree enquiries

3. Calculate the sum of values of a particular column using the keyword TOTAL

4. To display headers and footers in the output of the enquiry

Enquiries-Hiding-B Change-R13 24
Enquiries-Hiding-B Change-R13 25

Potrebbero piacerti anche