Placeholder column
Friends !
Can anyone tell me the purpose and the difference with others of the following of Report Builder,
PLACEHOLDER COLUMN
REF CURSOR QUERY
EXTERNAL SQL QUERY
EXPRESS QUERY
Actually I want to use these controls but i did not know better about them, as there might be a
situation where i should use these controls instead of FORMULA COLUMN etc.
Anyone's help or better to have examplary code will add a great help.
Many Thanks !
[email protected]
null
If you have a formula column that returns multiple values, e.g. from a select, you would assign them to placeholder columns instead of writing a stand-alone-formula for each value.
Similar Messages
-
Need urgent help how show my placeholder column in my report
hi master
sir
i use report 6i
i am making report with useing emp table i report i need one formula column and one placeholder column i
first i mad report by useing report wizard
after this i go in data modul and select one placeholder column and one formula column i write pl/sql
:cp_1 := :sal;
again run wizard and move
placeholder column and one formula column
in display item
but when i run the report give me this error
rep-1517 column 'cf_1' reffrence column 'sal' which is incompatible frequency
please give me idea how i print my formula result in report
thanking you
aamir
how show placeholder column in my reportHi,
First create a formula column eg CF_1.
Then create a placeholder column eg CP_1.
Write a code in CF_1.
[eg
select bolFrValid into :CP_1 from tablename where condition;
return :CP_1;
Hope u got it -
How to order / group a report by a placeholder column ?
How to order / group a report by a placeholder column populated by the group filter ?
In more detail .....
My Data model editor's select statement brings back (say 1000 rows) from the database.
The group filter decides (on performing certain validations) whether to print a row or not in the report.
Additionally the group filter calculates a "rule type" (just a rule number to say on basis of what rule, the row was selected)
I would like to order/group the report on the placeholder column which was calculated by the group filter ?
Obviously, I won't be able to add the "ORDER BY :CP_RULE_NUMBER" in the sql statement as the placeholer column cp_rule_number
is determined by the group filter level only. (If I do, I get a frequency error)
Any ideas ?
Thanks in advance.
Edited by: user553361 on 8/10/2008 17:35how is the group filter implemented?
If its pure PL/SQL, what about putting the filter-procedure in a stored function into the database? Then you could use the group filter in your query. -
How do I assign the value of a Boilerplate Text Object to a Placeholder Column?
I have a Boiler plate File Link. This references a .txt file. I want to generate XML tags for it.
Is it possible to read the content of the file link object into a Placeholder column so that I can get a tag generated for that?Hi Frank,
The key is already passed from a previous page. To set the scene a little, I have three pages:
1. Project list, has a table listing all projects.
2. Drill down to tasks for a project, passing the project key as a page property. This is a master/detail page. This currently works well.
3. Create a new task for the project from page 2. I want to pass the project key obtained from page 1 to page 3 via page 2, so that the user does not have to re-select a project when creating a task.
Here is my registrydef from page 2 (the tasks for a project):
<bc4j:rootAppModuleDef name="ProjectModule"
defFullName="ProjectPackage.ProjectModule"
configName="ProjectModuleLocal"
releaseMode="stateful">
<bc4j:viewObjectDef name="ProjectsVO1">
<bc4j:rowDef name="ProjectRow" autoCreate="false" usesCurrency="true">
<bc4j:propertyKey name="key"/>
</bc4j:rowDef>
</bc4j:viewObjectDef>
<bc4j:viewObjectDef name="TasksVO2" rangeSize="20"/>
</bc4j:rootAppModuleDef>
This works well, I can display the selected project and then list the tasks in a table.
My problem is that in page 2 the project record is not in a table, so I cannot use a table selection mechanism to set the key value in the event which calls page 3 (see my earlier post for this code). As the key that I need is sittng there in the URL as a page property, I want to pass that instead. How to I reference it from within an event?
Does this make sense or is there a better way of doing it? Do I actually need a new page to create a new task - I don't think I can add new records in a table!
Thanks for the tip on ctrl: , I'm slowly getting the hang of the namespace thing.
Steve -
How to use formula column,placeholder column in data template option
Hi All,
Can you some idea on these concept with example.
Thanks in adv>
formula column,placeholder column
>
it's oracle reports terms?
http://oraclebizint.wordpress.com/2007/08/22/oracle-reports-to-bi-publisher-conversion-utility/
http://eoracleapps.blogspot.ru/2009/04/how-to-convert-oracle-reports-in-bi.html
so convert your oracle reports to bi publisher and you'll see mapping for your case -
Hi everyone,
I am pretty new to oracle reports, if you think this question is too basic, please bear with me.I also tried searching the forum and looked into documentation. Why should we use a formula column to assign value to a placeholder column, why cant it be done directly in the plsql formula portion. Why does it not accept any return values in the plsql formula portion of the placeholder column, when i add the code, it acpets and gets compiled, but does not get reflected during runtime. Can someone help me ab this.
Thanks
SandeepFormula and Placeholder columns work together to give a calculated or processed value. The formula column calculates or processes the data and then assigns the result to the placeholder column. Bit like in PL/SQL when you have a variable (placeholder col) being set by a function (Formula col).
HTH!! -
Help with Formula/Placeholder columns for group totals
I have select that is broken into 2 groups (a COMPANY group and a DETAIL group within company). I need to determine the COMPANY group totals based on values in a column in the DETAIL group. I.E. the column is a transaction description and can have up to 15 different values and it did not appear that a summary column would work for what I need. I have currently set up 15 formula columns in the DETAIL group and check the value of the REASON to accumulate totals and return the total to a PLACEHOLDER column (which is numeric and defined in the COMPANY group).
I then report the Placeholder columns at break of COMPANY. This all works fine if I run only one company. If I run with multiple companies the Placeholder columns are used as a running total.
My question is how do I reset the PLACEHOLDER columns at company break if at all, or is there a simpler way to accomplish what I need.
Any and all assistance would be greatly appreciated.
Tom VereeckeIf you are using one placeholder column in different formula columns just ignore the following solution. It will not work in that case. I will post it here if i find out any way to initialize placeholder columns at different groups or anyother way to solve this issue.
I think if you remove placeholder columns and create summary columns at Company Level, that will work. And formula columns will be changed as follows:
Formula Column:
active_total number(10) := 0;
begin
if :status_1 = 'ACTIVE' then
active_total := active_total + 1;
end if;
if :status_2 = 'ACTIVE' then
active_total := active_total + 1;
end if;
if :status_3 = 'ACTIVE' then
active_total := active_total + 1;
end if;
return active_total;
end;
And in summary columns source will be formula columns. And reset the summary columns at Company.
Hope this helps.
Message was edited by:
fs -
Scope of a placeholder column in Oracle Reports 6i
Hello,
I was under the impression that a placeholder was more like a global variable, i.e., it's accessible throughout the report if defined independently, outside of any group in the layout model?
Well, I am getting this error:
REP-1248 all source columns of placeholder must be in the same group.
Is my understanding incorrect? I really need to have a "global" type variable that's accessible across all groups in the report. How shall I go about it? Please advise.
Regards,
SmitaThanks, but the link didn't help me. Basically, this is the situation:
First, I have a placeholder column independent of any group in the report, which I am trying to access and use as a global variable across multiple groups in the report.
There is a parent group with two child groups. The first child group has a summary columm. I assign the summary column's value to the placeholder column inside a formula column.
In the second child group I decrement the placeholder column's value by one for every record processed in this group inside a formula column. When the placeholder column's value reaches 0, I am doing something in the format trigger on the frame associated with the second child group.
...and I get this error:
REP-1248: All source columns of placeholder 'CP_NumLinesLeft' must be in the same group.
So the placeholder column is really not behaving like a global variable. Please advise as to how I should get around this problem. -
Hi,
I'm working on a multilingual report (Dutch, French and English) and I want to have the labels on the report in the correct language based on user selection.
I already know I can achieve this with placeholder columns.
I also know I can set the values for these columns in the beforereport trigger by reading the correct value for each placeholder column from a table.
This works but I have to make a call for every other placeholder column. If I have a report with 30 or more labels this requires 30 calls or more.
If possible I want to retrieve the values and the columns where the values have put into from a table by using a ref cursor or another cursor in the before reports trigger.
There is no problem wrting the code to get the values but there is one to put the values in the columns.
I want to reference the placeholder columns as variables in my code.
e.g.
select report_col, ml_col from report_labels;
wher ml_col is the value and report_col the bname of the palceholder.
thereafter I want to do the assignment as
:CF_ || treport_col = ml_col;
The closest I can get is by using srw_set_field but this works only if the code is put on a trigger on the column itself.
Is there a way to get to the desired result?ANother way of doing this would be to make a seperate query for the label table which just returns a single row with all label values. Now in Reports layout, insert a top most repeating frame which moves on this label query and set all your label using &column_name.
thanks
rohit -
Placeholder column's "initial value"
Hello,
I have a report with 2 queries, the master query contains some placeholder columns, and the detail query contains a formula column that sets values for these placeholders:
- MASTERQUERY: database columns, PlaceHolder1, PlaceHolder2, PlaceHolder3
|
|
-- DETAILQUERY (linked to MASTERQUERY): database columns, CF_PlaceHolder_Changer (change values of PlaceHolderX)
The problem is: for a particular record of MASTERQUERY, if the DETAILQUERY doesn't have any row then PlaceHolders are not set.
(They will keep the values from previous MASTER record). Is there any way that I can specify "initial value" for placeholder columns?
And another question: what is the formula attached to the placeholder used for?
Please help!You could have a "count" column in the master group that determines how many rows are in the detail group. Then alter the value of the field displaying the placeholder value by adding a format trigger with srw.set_field_char/date/number(0, <initial value>); when the count is '0'.
-
Diff. between Formula column and Placeholder column
Can any one explain me the difference between a formula column and place holder column in Reports.
Place holder columns are used to hold a value and they are populated by formula columns and in the following places.
- the Before Report Trigger, if the placeholder is a report-level column
- a report-level formula column, if the placeholder is a report-level column
- a formula in the placeholder's group or a group below it
(the value is set once for each record of the group)
But Formula columns perform a user defined computation on one or more columns including placeholder columns. You can set the value of placeholder column in a formula column. But you cannot set the value of a formula coulmn in a placeholder column's PL/SQL.
Regards,
Siva B -
PLACEHOLDER COLUMN BY USING THE PARAMETER
hi,
i have to keep a place holder column in the report tiitle.what i should do?
for eg:i have category column USED AS A PARAMETER WHEN I RUN THE REPORT
if the CATEGORY=G
i need to print the report title like GENERAL PARTY REPORT
CATEGORY=C THEN CREDIT PARTY REPORT
URKENT PLZ REPLY.As you said you have one parameter called category (which will be having user passed value). Create one more parameter called P_CATEGORY_DESC set the datatype as VARCHAR2 and length accordingly. Than in reports' trigger AFTER-PARAMETER-FORM use the code as below...
IF :P_CATEGORY='VALUE' THEN
:P_CATEGORY_DESC:='Heading to be displayed on report layout.';
ELSIF :P_CATEGORY='VALUE' THEN
ELSE
END IF;
RETURN TRUE;Than use on layout create one text field and use the source of that field as parameter P_CATEGORY_DESC.
-Ammad -
Getting error while creating placeholder column
i have created the code for placeholder in the following way:
in before i have specified:
function before report return boolean is
begin
if :dno=10 then
:cp_job:='manager';
elsif :dno=20 then
:cp_job:='salesman';
end if;
return(true);
end;after executing i got the following error: rep-fatal plsql error eccoured
ora-6502-numeric or value errorokay. and what is the type and length of cp_job?
when i get that error, it is usually because the variable is the wrong type, or if it is the right type, then the length may be too short.
when do you see the error? when you compile the trigger or when you run the report? -
hello friends,
Can we use formula column into place holder column and vice-versa?
Avinash DeokarWe can store value to placeholder column by using formula column.
placeholder is just like a display item.
regards
rajesh -
Placeholder & Formula Column Functionally
Hi gurus,
Can any one of you please tell me, What is difference between Placeholder
column and Formula Column Functionally.
Any help is highly welcome.Your question is a Report question, please post it in the [url http://forums.oracle.com/forums/forum.jspa?forumID=84]Reports Forum.And before you post your question, just do a little search there and you'll find 100s of answers to your question.
Tony
Maybe you are looking for
-
Opening web pages from address/url bar in new tabs
The primary reason I use Firefox instead of Safari is that I can enter a url in the address bar and the corresponding page will open in a new, foregrounded tab. I seem not to be able to do this in Safari, and neither the Saft nor the Safari Extender
-
Images do not appear in Safari (eBay, blogspot)
I'm having problems viewing images in Safari on eBay (on the search results pages the occasional photo appears but often nothing at all - actual item pages show up fine) and blogspot websites (sometimes it's ok, but most of the time nothing shows up)
-
Lightroom 2.7 and Camera Raw 5.7 Release Candidates now Available
http://blogs.adobe.com/lightroomjournal/2010/04/camera_raw_57_and_lightroom_27.html Regards, Tom Hogarty Adobe Systems
-
Homesite keeps asking for serial number
My Homesite 5.5 was working fine until a few weeks ago. Now it continually asks for the serial number whenever I log in. Even when providing it, the serial number screen will keep flashing until I cancel out. Only after I provide the serial inform
-
Replace: vacationEnabled how do we get rid of this automatic reply?
When sending emails to this account it replies with "replace: vacationEndabled" Can't seem to find a way to eliminate the automatic response.