Linking using formula column
I've tried several ways of doing this, and this seems to be the easiest way. Basically, depending on the type of record, I need to use one of two columns to link to another query. So, if a row in query A has type 1, I need to use column X to link to query B. If a row in query A has type 2, I need to use column Y to link to query B.
I thought the easiest way to do this would be to create a formula column in Query A that was the value of column X or Y as appropriate and then link to Query B using this formula field. However, I can't seem to link queries using a formula.
Does anyone have any ideas how I can accomplish this? I'm new with Oracle reports, so go easy on me :)
Thanks,
Julie.
What error are you getting?
Is it: REP-1297: Data link child column 'CF_1' must be a database column?
If so, the reason is the child column cannot be a formula column. The parent column, on the other hand, can be a formula column.
If I understand your data model correctly, "A" is your parent query/group and "CF_1" is the formula column in query/group "A".
"B" is your child query. "FK_1" (the foreign key column in query "B") is your child column.
You should be able to link "CF_1" in "A" to "FK_1" in "B" by doing:
- click on the link tool
- click on "CF_1" in "A"
- drag to "FK_1" in "B"
- A link should be created. Double click on it to bring up the property palette for that link and you'd see the link properties.
Hope that helps...
Similar Messages
-
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... -
How to make an order on repeating frame using Formula Column?
Hi All,
I have a repeating frame dependent on some query, how to make an order on this repeating frame using a formula column defined in its group and dependet on values from the query?
Note: I'm using Reports 6iPlace your formula column at the top of the itm group and set the BREAK_ORDER to assc.. or desc...
Hope this helps
Hamid
if problem solved, close the thread. -
Howto use formula columns in matrix reports
Hello
How can i use a formula column in matrix report whose function would be
Formula_Column_Result=A-B where A=Cell A
B =Cell B
Regards
FahadHii guys
I solved my problem on my own.
i wrote
SELECT * FROM EMP WHERE EMP.DEPTNO=P_DEPT_NO
and it worked.
Thanks guys..i luv this forum
Regards
Fahad Hameed -
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 -
What is better Data Link or Formula Columns
Hi everybody,
in what case performance is better, to have lot of formula colums in the same query block or to have data linked queries for the same.
appreciate any suggestions.
Thanks
Tariq.Hi Tariq,
Look up the "Tuning Oracle Reports" guide:- go to
http://otn.oracle.com/products/reports
Select "Getting Started..", click Index, and search on "Scalability and Performance"
Take a look at the following topic (page 17 of this guide)
'To Link or Not To Link'
Navneet. -
Hi All....
Hope all had a good weekend......any way
how can i order my results in a report using the formula column
the problem is that i have a query which give me one column(group by) and from the column i'm linking some othe formula column ....and i want to order my report using the formula columns....
Looking forward to hear from you guys.....
Se yahai,
i think u r using formula column in your report.then you can give
break order for this column in the property palete.
bye -
Not able to burst report referring to Formula Column in XML file.
Hello all,
I am using bursting feature to spit single report to multiple pdfs. All is well when I reference column queried from the database in the xml file but I when I give column from Formula column it is doing coredump.
XML File contents:
=====================
<destinations>
<!-- Generate a file for each warehouse -->
<foreach>
<file id="MyFiles" name="/data/reports/pdf/assrt_terr&<file_name>.pdf" format=
"pdf" instance="this">
<include src="report"/>
</file>
</foreach>
</destinations>
=====================
The "file_name" referenced in the above is a formula column. If it is replace with a column from the query it works fine. Please let me know if anyone knows if it is a limitation or any workaround?
Thanks in advance,
ManoharIf I can have that in the query I would have not done a formula column. And I do know that it works if the column is in the query. I would like to know any workaround to make it work from formula column.
I have to take data from sub-group of this query, aggregate it and then concatinate with one of the columns grouped - so i had to use formula column.
Thanks
Manohar -
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 -
Bad Bind Varaibles in FORMULA COLUMN
Hi ,
i am using reports6i. i wanna use formula column.in my layout editor i had two columns named total(cashamt)
and total(creditcardamt).ie f_cashcard and f_creditcardamt.these both bears total of cashamt and creditcard respectively.now i wanna make total of these tow columns,when in formula column.. i write a function..
function ....
temp number;
begin
temp:=:f_cashamt+:f_creditcardamt;
return(temp);
end;
IT GIVES AN ERROR bad bind variables f_cashamt and f_creditcardamt.but these two are in layout editor..
pls help me as soon as possbile.
Thanx in advance..Hello,
Try using the source of the field, rather than the name of the field. You can find the source in the layout editor. Click on the field and then press your F4 key. The properties of that field will come up. Find the source name and use the source name in your formula. Hope this helps.
Martin -
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 -
Trying to use formula column with an nvl. The problem is that if the record is not there the nvl will not work. How do I force the formula column to return something when the record is not there. Below is the formula.
function CF_1FORMULA0028 return Char is
myComments varchar(50);
begin
select nvl(erActRelData.VALUE,'') into myComments
from dpss_gdats.er_activity eractivity,
dpss_gdats.er_activity_relevant_data erActRelData,
dpss_gdats.er_activity_rel_data_name erActRelDataName
where eractivity.er_case_id = :case_number
and eractivity.date_created is not null
and eractivity.ER_ACTIVITY_ID = erActRelData.ER_ACTIVITY_ID
and erActRelData.ER_ACTIVITY_REL_DATA_NAME_ID = erActRelDataName.ER_ACTIVITY_REL_DATA_NAME_ID
and erActRelDataName.NAME = 'Comments';
return myComments;
end;Modify the last statement to
return nvl(myComments,'Null Value'); -
What is the formula to get document link in calculated column for document library ?
Hello,
would you please let me know the formula to get document link in calculated column ?
Thanks and Regards,
Dipti
Dipti Chhatrapatihi Dipti,
there is no column which contains the ItemURL.
if you want a colum to have url than you need to create a workflow
which calculate the ItemUrl and store it in custom column
use the below article to do this
http://www.sharepointusecases.com/2013/05/how-to-show-file-path-inside-a-sharepoint-document-library-view/
Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer -
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 -
How do you use a column title Ina formula in numbers
How do you use a column title in a formula in numbers ie. "cost" vs. F-1?
Have you tried here? This isn't specifically a "Using iPad" question.
Maybe you are looking for
-
Images not displaying in a folder b/c they are already in the library?
This has been driving me nuts and I'm sure it's a simple answer. Perhaps I'm overly used to iView. In LR I add a folder that contains images that don't show up because LR says they are already in the library. Well that may be true, but I still want t
-
Issue in event R402 of Billing & FI
Hello all We had done a development in event R402 for FI in 4.6C version , where we DID NOT pass any data to Y_VKK_DOC_NEW - T_FKKCL[ ] , as it was not required and it was working successfully. But now we have upgraded system to ECC 6
-
Recently erased my entire mac HD do to mavericks update going wrong. I do not have a back up for my music. But my itunes match account has all my music. If i add this computer with my itunes match will it put all the music i had back in my itunes li
-
Migo on purchase order and wm tab
Hello When I receive goods on a purchase order in a wm managed storage location the WM tab appears where I can overwrite the material master proposal for number of storage units calculation. However, in the TO creation the system does not take the ne
-
Help