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
Similar Messages
-
Using Sybase query in Placeholder/Formula columns
Hi,
This is addendum to the post subjected as "JDBC query with Sybase database".
I am working with 9i Reports builder conecting to Sybase db through jdbc-odbc component. I can execute any statement in the form of query / procedure in jdbc query wizard.
I would like to know, how can i give/execute sybase compliant sql statements in placeholder, formula or for that matter any other place in reports builder.
Say, I have selected a column of in char format "020925" which represents a date of 25th Septemeber'2002. I want to give a statement like, "convert(datetime,'020925')", which converts to date format.
How can I specify this statement in a formula column.?? (formula column plsql editor recognize only oracle related statements)
Thanks & Regards
AnandHi Sachin,
So you mean to say, any other feature of Reports builder can't be used along with Sybase db. say triggers, local procedure / functions, etc.,
Is there any workaround to this setback?
Rgds
Anand -
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 -
Can be passed Formula Column value to Procedure/Function?
Below cf_value is return after some calculation by using main query.
Can be directly passed formula column value to procedure without assinged to placeorder?
as below..
f_convert(:cf_value,new_value);
My Procedure is...
PROCEDURE f_convert( val1 in number,val2 in out number) IS
BEGIN
val2 := val1 * 100;
END;
If anyone knows pls reply me....Actually, if there is any other calculations there (In Proceudre)
Can I used is as below??
PROCEDURE f_convert( val1 in number,val2 in out number) IS
BEGIN
val2 := val1 * 100;
return (val2);
END;
----A procedure cannot return a value, the return clause in my previous post was part of the function for formula column.
Suppose you have a formula column say CF_2 then the function for it will be as:
function cf_2formula return number
is
val1 number;
val2 number;
begin
val2 := :cf_1 * 100; -- or val2 := val1 * 100 --parameters not allowed in formula column function
-- All the other code that you need inclusive of calling function, procedure as in any PL/SQL block can be placed
return (val2);
end;So any other calculation can be used in the formula column function -
Formula Column in Hyperion Planning 11.1.2.1
Hi ,
I need to create a Formula Column in web form taking excel sheet as reference for creating the formula.
Excel sheet has formula = iferror((A/B),0,(A/B)), where A and B are columns.I need to create a column C and has to put this excel formula using formula column functionality.
Please let me know all possible solutions for replicating this excel formula in formula column,
Thanks.Here's why this is a bit tricky. You would likely want to use a formula something like this:
IfThen(IsError(Eval([A]/[B])), 0, Eval([A]/[B]))
But here's the problem . . . you can't pass the IsError function a calculation, even when it's enclosed in the Eval function. At least I've never gotten this to work.
So what you have to do is create another column . . . call it column [F] for this example. In that column, place the formula [A]/[B]. Hide this column.
Then for your formula column, use the following formula:
IfThen(IsError([F]), 0, Eval([A]/[B]))
You could alternatively use this:
IfThen(IsError([F]), 0, [F])
The key is to use a hidden column to perform your calculation, and then evaluate whether that hidden column produces an error.
Hope this helps,
- Jake -
Prob with formula column plz help!!!!!
hi
iam working on a finance report
where there is a need for opening balance and closing balance colum, i have designed the column the out put comes but the prob is after displaying the opening balance closing balance it again displays a nil opening balance and closing balance for all the values given as input
its liek this
opening balance=0.00
closing balance=0.00
i have attached the formula which i have written pls help me wats wrong in the formula column
for opening balance
function CF_total_dr1Formula return Number is
begin
IF :cf_total_dr - :cf_total_cr > 0 THEN
RETURN(:cf_total_dr - :cf_total_cr);
ELSE
RETURN( 0 );
END IF;
end;
similarly for closing balance toocf_total_dr is again calculated using a formula.. similarly cf_total_dr
i have specified the formula below, again this debit balance is a formula column
function CF_total_drFormula return Number is
v_bal NUMBER;
BEGIN
v_bal := debit_balance(:p_from_date);
RETURN(v_bal);
END; -
Hi,
I wrote the function in formula column, the return value should show in the separate column.
Thx,
BalajiV908509 wrote:
Hi,
I wrote the function in formula column, the return value should show in the separate column.Please provide details when make any question.
What is your report version ?
Choose this formula column as source of item, which display the data on layout view.
Hope understand. -
Using the 'LOG' Function in a Formula Column
If I write the following SQL statement at the SQL prompt, it works :
SELECT LOG(sal,10) FROM emp ; But, if I write a similar statement in the formula column of a report, then it does not work :
SELECT LOG(sal,10)
INTO x_variable
FROM emp
WHERE empno = :empno ;
return (TRUE) ;
It would be great if someone can help.Try This..
In the formula columns pl/sql place the following:
function cf_1Formula return number is
num number;
begin
num := log(sal, 10);
return ( num );
end;
-- cf_1 is the formula col name
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
If I write the following SQL statement at the SQL prompt, it works :
SELECT LOG(sal,10) FROM emp ; But, if I write a similar statement in the formula column of a report, then it does not work :
SELECT LOG(sal,10)
INTO x_variable
FROM emp
WHERE empno = :empno ;
return (TRUE) ;
It would be great if someone can help. <HR></BLOCKQUOTE>
null -
Function not callable in formula column..
Hi,
I am getting one strange problem..when i call one function in a sql statment in report builder 6i from a formula column, it gives error that this function can not be called from sql but when i run the same sql from plsql dev, it runs fine..Oracle version 9i..
Plz help..Hi,
This is the code block used in the formula column..The formula cloumn datatype is character and size is 15..
function FML_INT_LABLEFormula return Char is
l_int_lable varchar2(15);
begin
select (DBK_C_ADVICES.DBF_C_RET_ADV_TEXT(:PRM_BRCH_CODE, NVL(:PRM_PROD_CODE,' '),'R01',1)||' Rate')into l_int_lable from dual ;
RETURN(l_int_lable);
end; -
Can text be displayed in a formula column using mathematical functions?
I am working with Financial Reports version 11.1.1.3 and I'm trying to accomplish the following scenario:
Column D is a data column
Column E is a text column containing the value "TEXT"
Column F is a formula column with the following formula: IfThen([D]=0,[E],[D])
What I want to see happen is if the value in column D is 0 then I want the value "TEXT" to appear in column F, otherwise; I want to show the data value that is in column D. Is it possible to display text in a formula column and if so, what is the syntax for that? Or does anyone have another way to accomplish this? Any help would be appreciated.
Thanks!Short answer: No.
For your particular issue, I would suggest putting your TEXT value in the #zero and #missing overrides in Report Studio.
In general, Hyeprion Reporting does not do any real text validations or functions like you could use in Excel. -
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 -
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 -
Can we use formula column in lexical parameter in sql query ...
hi
can we use formula column in lexical parameter in sql query ...
as example
i want to give
select * from & c_table
forumula
function c_table
if :p_sort = 1 then
return 'dept'
else
return 'emp'
end;
c_table formula column
is this possible ...
i have such example in oracle apps reports
if i try in ordinary report usinf emp table it show error ..
how we can give formula column...
please help me in this regard...
Edited by: 797525 on Feb 20, 2012 9:31 PMthanks sir,
iam not exactly saying select * from &c_table but some thing that like columns in select stmt also will be populated in user_parameters ,there are lot of table select.......from mtl_demand md, mtl_system_items msi, mtl_txn_source_types mtst, mtl_item_locations loc &C_source_from &C_from_cat
&c_source_from and &c_from_cat formula column and there are defined at report level only ......
pl/sql code &c_source_from is
function C_source_fromFormula return VARCHAR2 is
begin
if :P_source_type_id = 2 then return(',MTL_SALES_ORDERS mkts');
else if :P_source_type_id = 3 then return(',GL_CODE_COMBINATIONS gl');
else if :P_source_type_id = 6 then return(',MTL_GENERIC_DISPOSITIONS mdsp');
else if :P_source_type_id = 5 then
if :C_source_where is null then
return NULL;
else
return(',WIP_ENTITIES wip');
end if;
else if :P_source_type_id = 8 then return(',MTL_SALES_ORDERS mkts');
else if :P_source_type_id is null then
return(',MTL_SALES_ORDERS mkts,
MTL_GENERIC_DISPOSITIONS mdsp,
GL_CODE_COMBINATIONS gl ');
else null;
end if; end if; end if; end if; end if; end if;
RETURN NULL; end;
this is forumula column i hope that you understand what iam saying
please help me in this regard....
thanking you... -
Formula Columns are not working in Reports 10g
Hi,
We converted the reports developed in Reports 6i to Reports 10g. When we run the report in Reports 10g Builder everything works fine. But when we deploy the same report in Oracle Application Server and invoking the report the formula columns are not working ie., the fields/ placeholder columns which are based on the formula column are not displaying any values in the report.
Please, someone help us in this regard.
Thanks & Rgds,
M TWhat version of Reports do you use..???
Greetings... -
Using PL/SQL in a formula column in Oracle Reports Builder.
Hi,
I need to SUM two record from the result of an SQL interrogation.
Here's what it looks like
function CF_1Formula return Number is
nTot1 NUMBER :=0;
nTot2 NUMBER :=0;
begin
select sum(:TOT1) into nTot1 from table(Q1) ;
select sum(:TOT2) into nTot2 from table(Q1) ;
return (nTot1 + nTot2);
end;I'm kind of new to formula column programming any link of interest would be appreciated.
The from table(Q1) part Q1 represents my SQL interrogation name and the group below it is G_MAIN.Hi Hong Kong King Kong,
From looking at that function name (and the group name): Is this an Oracle Reports generated function?
If so, there's also a dedicated Reports forum: Reports
By the way, I like your synonym for 'query'.
I'm sure I'll confuse some of my collegues tomorrow when I will mention 'database interrogation' instead of 'query'. ;)
edit
Doh...I should not underestimate the information that is posted in thread subjects.
Edited by: hoek on May 5, 2010 9:24 PM
Maybe you are looking for
-
Failed to set Subscriptions on the WSUS Server
We are running SCCM 2012 R2; synchronization of updates is not working. The SUP is running on a Windows 2008 R2 server and it is not the Site Server. Below I have some log data. I have already tried uninstalling and reinstalling WSUS. WCM.log Startin
-
Conditionalized text and abutting variables
The content uses two variables: " institution" and " campus." All text regarding campuses needs to be conditionalized. For the most part, I've had complete success with conditionalizing text that includes variable(s). The problem comes in when there
-
Can I translate copy from English to Chinese with In Copy
Hi There Our local designer in Australia creates our marketing collateral. I would like to send this to a team member in China so she can translate the copy in to Chinese. Can she do this with In Copy? thanks
-
I am having a application in Visual Studio 2003 on Windows XP , Now I am Migrating the application in Visual Studio 2005 on Windows-7 . In my Development PC , I was install Measurement Studio 2009 , NI DAQ 7.01 and Field Point 6.05. my application
-
Change Segment in Profit center to which the data has already been posted
Hi, Is it possible to change Segment in a Profit Center to which the transaction data has already been posted. Regards, SAPFICO