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

hiding item in report how like that properly,thats manually but at runtime i want to do

2556


hi,dis is Shasi.I'm searhing on cognos.1 want realtime scenarios with solutions.persons having hands on experience in real time plz help me out.and iwant one project with explanation please help me...

1675


What is the difference between bind and lexical parameter?

543


what are the oracle forms services components include?

559


What do you understand by lov?

569






How do u print the data horizantally by using XML report? EX:Suppose there is one table names as SAMPLE in that we have only two columns say empno,ename.I want the output like this,At run time user may enter 3 colums(i.e to data print horizantally). empno ename empno ename empno ename 100 aaa 101 bbb 102 ccc 103 ddd 104 eee 105 fff

1644


In what situation u create the BPA.

1775


What do you understand by oracle forms?

587


where do u put the report file

1651


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

814


What are the various configuration files that are used by oracle forms?

568


i am having a report Jan to Dec are the columns if the present month is Mar only Mar to Dec columns should appear in report output

1569


What is a canvas in oracle forms?

594


difference between global n context sensitive segments?

2210


Explain master-detail relationship with some examples.

586