Search This Blog

Saturday, May 18, 2013

Overview of Registring a Component

This is the final stage of the Development.

Development Steps: Fields --> Records --> Pages --> Component --> Registration.

Once Registration step is completed the page will be available in the browser. The user can start transactions.

Registration can be done 2 ways:
1. Through Application Designer.
2. Through PIA

Pre-Requisites before Registration:
1. Menu should be created already to which the component is added.
2.Permission list should be created already which will be used to assign security to component.
3. Folder should be created to which this component is placed under the Menu.

Every component created in App Designer will be attached to a content reference.
Conten Reference is nothing but a URL which references a transaction page. The URL contians all parameters which are required to access the component.

Can we have same component available at multiple places in the online portal?

We can have same component registered more than once provided the component are added to different Menus.

Monday, May 6, 2013

Writing SQR Program Part 1

SQR --- Structured Query Reporting tool.

SQR Program is divided into 3 parts.

1. Header Section -- Report Title/Report Time/Report Name etc fit into this section.
2. Body   Section  -- Main Program logic goes into this section.
3. Trailer Section  -- Page Number etc will go in this section.

Remember Line 1 of Header section is different from Line 1 of Body section. That means each section of the program has its own memory area.

Lets see how to write program with these sections.

BEGIN-HEADER
END-HEADER

BEGIN-PROGRAM
END-PROGRAM


BEGIN-FOOTER
END-FOOTER

Example:
Reference of below program is from peoplebooks.
begin-program
   print 'Hello, World.' (1,1)
end-program
begin-heading 1
   print 'Tutorial Report' (1) center
end-heading
begin-footing 1
   ! print "Page n of m" in the footing
   page-number (1,1) 'Page '
   last-page   () ' of '
end-footing

begin-heading 1 means Header requires 1 line of space for printing Title.