How to create placeholder columns?

Answer Posted / sudipta santra

1. In Report's Data model part, click on Placeholder column
from toolbox, then a placeholder column will be created with
default name CP_1 as like if u want u can change the name.
2. Go to the PL/SQL by right clicking on the newly created
placeholder column in data model.
function CP_1Formula return char
begin
return null;
end;
3. Click on Formula column from toolbox, then a formula
column will be created with the default name CF_1/CF_2 as
like that, if u want u can change it's name.
4. Go to the PL/SQL by right clicking on the newly created
formula column in data model.
function CF_1Formula return number
begin
if :stock<10 then
:CP_1:= 'Too less stock';
elsif :stock<50 and :stock>10 then
:CP_1:= 'Average stock';
else
:CP_1:= 'Good stock';
end if;
return 1;
end;

Note: Here the placeholder column is used with the null
carrying result but when the formula be used then the
placeholder will get value and will carry this in report.
And also we can use this anywhere in report as according
application requiremnt needs.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In oracle forms report, what is the maximum length of record group column? What are the different types of record groups?

1083


what is tripstop report?

1569


What is the difference between bind and lexical parameter?

810


in user parameter property we have list of values.can we write select query for binding? for example:: select empno from emp where deptno=:deptnum :deptnum is first parameter it displays distinct dept nos. if i do like this it is giving error:: bind variables are not allowed in the select statement

1929


List out the oracle forms configuration files?

835


what the 'lov of validation' property of an item? Mention what is the difference between lov and list item?

821


Can you convert a bit-mapped report to ASCII (character-mode) Report ? How ?

2092


how do u compile a form i.e .fmb file in Unix or in dos

4374


What is the difference between flex mode and confined mode?

766


Explain the different levels at which oracle form services interact.

821


What is a canvas in oracle forms?

826


What is an SQL FORMS ?

2534


What is an implicit anchor and how is it a different form explicit anchor in a report builder?

917


what are bind variables?

840


What do you understand by oracle forms and why are they required?

800