Why is the formula column returning garbage?

I've set up a query that performs a full outer join on two tables, returning one field from each table. Each of these fields is created by concatenating several other fields from that table, i.e.
Select a.field1 || a.field2 fielda, b.field3 || b.field4 fieldb from tablea full outer join tableb
on a.field5 = b.field5
where (a.field5 = :value or b.field5 = :value)
For any :value one or more records exists in either tablea, tableb, or neither-but never in both. This works fine in SQL*Plus, returning values in fielda, fieldb, or neither-but never in both, just as it should.
I then set up a formula column in the Group for the query, returning either fielda, fieldb, or an empty string depending on :value, i.e. If :value = 'A' then return (:fielda); ElsIf :value = 'B'; then return (:fieldb); Else return (''); End If;
In the layout I set up a repeating frame sourced to the Group, and in the frame I put a field sourced to the formula column. But the field is displaying garbage. Any ideas why?
Thanks.
Edited by: user6931915 on Dec 6, 2010 1:36 PM
OK, it's not returning garbage-it's just not returning the right data. It was appearing as garbage because the field was only large enough for 2 characters & I'd mistakenly left it set to Fixed.

Since I'm so new to OS X Server - I have made many mistakes with it in my home learning environment - and therefore learned quickly to make image backups every step of the way - so restoring to v2.1 was very quick and simple.
I also wanted to point out - this problem is not limited to the main screen of the Wiki.  If you disable the Wiki - but leave the default website enabled - the default website will display - but if you click on the change password link - it should pop up an enter user id, old password new password window and should also automatically switch to a trusted ssl connection - assuming you have a trusted certificate correctly configured.  This functionality works fine in Safari, Firefox and Chrome - but the same behavior occurs on the password change screen in IE9 as it does in the Wiki.
I am now looking into submitting this to bugreport.apple.com.  I will report back after I do that.
~Scott

Similar Messages

  • Calcualting the formula column total.

    Hi All,
    I am very new to bi publisher..I have a requirement where i need to find the total of the formula column..how can i achieve this?
    and also i need to find the total of balance group by month..here is the sample output what i need.Please help its urgent
    Date Amount CalcAmount Balance
    1-jun-2010 100 150 200
    3-jun-2010 50 50 300
    5-aug-2010 100 50 200
    6-aug-2010 300 60 400
    310
    Jun:500 Aug:600
    How to achive this....where calcamount field is not coming from any input file..this i did manually in rtf template..
    Please help is urgent
    Thanks in Advance
    Bharat

    Hi Ananth,
    i tried with this..Now the calculated column value its showing as NaN.
    my requiremnt is thr is one form value called OPC(reguler text) and the logic inside is <?xdofx:if APPLIED>AMT then to_number(APPLIED- AMT) else 0 ?>
    and as per yous solution i have created one form value below to that i wrote the logic like this <?xdoxslt:set_variable($_XDOCTX,'var', xdoxslt:get_variable($_XDOCTX,'var‘)+ OPC)?>
    and in the total column i have created one more form value and wrote this code <?xdoxslt:get_variable($_XDOCTX, 'var')?>
    so now the total is coming as NaN.
    Please help.
    Thanks
    Bharat

  • Applying order by for the data comming from the formula column

    Dear Friends,
    I am having a report in which some of the columns in which data is comming from the formula columns,but i need the data in asc order.
    How can i do it.
    Please advice.

    I am having a report in which some of the columns in
    which data is coming from the formula columns,but i
    need the data in asc order.Lets say you have this query:
    select empno, sal, comm from emp
    And you have empno, sal, comm and a formula column 'f_percentage' in one group. Add one dummy column in the query, like this:
    select 'temp' temp, empno, sal, comm from emp
    Move this 'temp' column into the second group (drag and drop outside the first group). You don't have to create repeating frame/or need to show this 'temp' column on the report.
    Now if you use break order on formula column, that should work. Make sure you have break order on other columns also. Arrange items (change order) in data model as you needed. Run your report before and after this change and make sure you have same number of rows before and after this change.
    (from reports builder's help)
    "Break Order has no effect on columns that belong to the lowest group of a particular query. Break Order only affects columns in groups that are above the lowest child group of a query"

  • Texting on iPhone 5.  When texting to multiple people why does the contact list return to the "A"s after you select a contact and try to add the next one in order?

    Texting on iPhone 5.  When texting to multiple people why does the contact list return to the "A"s after you select a contact and try to add the next one in order?  This really slows you down when trying to contact 50 people with information.  iPhone 4 worked just fine.  Any suggestions on how to fix this?

    None of my pictures that I uploaded into iPhoto are in my Finder under Pictures.  Should I copy and paste my folders from iPhoto into here, in case something happens to my iPhoto program (in addition to backing them up onto an external hard drive like I already do)?
    No, that's just wasting space.  A back up needs to be on a different disk.
    Your photos are within the iPhoto Library.

  • Why do the bookmark icons return to default when i clear history?

    Why do the bookmark icons return to default (the blue bubbles) when i clear history? This is using os x mavericks.
    OS X Snow Leopard did not do this. It retained the site icon next to my bookmarks.

    The webpageicons database may be corrupted. It can happen.
    Quit Safari.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Safari/WebpageIcons.db
    Click Go then move the WebpageIcons.db file to the Trash.
    Relaunch Safari. It may take a day or two for webpageicons to re populate.

  • Why does the InitVXIlibrary function return -32768 ?

    Why does the InitVXIlibrary function return -32768 ?

    Hello,
    It would be extremely helpful to see a log of what is happening "behind the scenes" with the driver. To do this, you can use a utility called NI-Spy which can be launched from Start >> Programs >> National Instruments >> NI Spy or from the Measurement & Automation Explorer (MAX) utility.
    NI Spy is a Win32 application that monitors, records, and displays National Instruments API calls made by applications. Use NI Spy to quickly locate and analyze any erroneous National Instruments API calls that your application makes, and to verify that the communication with your instrument is correct.
    You can turn the log to file feature on via the Spy >> Options menu in the program. Please attach this log file to this Developer Zone post
    so that we may further help you.
    Best Regards,
    Justin Britten
    Applications Engineer
    National Instruments

  • Forms won't do order by after the formula columns or constants in union all

    i have a big select as :
    select * from
    ( select .....,id doc_id, '1' op from .....
    union all
    select ......., id doc_id, '2' op from .....
    union all
    select ......., id doc_id, '3' op from .....
    ) order by id, op
    where i can have the same id for a number x >1 rows with diffrent values for op.
    lets say 5 rows with values id plus 1,2,1,2,3 for op.
    In a program unit i have a cursor with this select and i fetch every row and write them in a text file type .csv.
    The problems are :
    1) it won't do the order by after op ,
    i say order by id, op but the result is only ordered after id
    ... id op
    ... 1 2
    ... 1 1
    .... 1 2
    2)
    if i modify the select like this :
    select ...., id, op from ---i put the aliases here instead of *
    ( select .....,id doc_id, '1' op from .....
    union all
    select ......., id doc_id, '2' op from .....
    union all
    select ......., id doc_id, '3' op from .....
    ) order by id, op
    in the csv the column op in empty , so i only get the id information
    ... id op
    ... 1
    ... 1
    .... 2
    Any idea ?
    Oh and my screen goes white , the form block sometimes when i have a "difficult "
    select but after a while i get the result i wanted (message or csv file)

    select * from
    ( select .....,id doc_id, '1' op from .....
    union all
    select ......., id doc_id, '2' op from .....
    union all
    select ......., id doc_id, '3' op from .....
    ) order by id, op
    The problems are :
    1) it won't do the order by after op ,
    i say order by id, op but the result is only ordered after id
    select * from
    ( select .....,id doc_id, '1' op from .....
    union all
    select ......., id doc_id, '2' op from .....
    union all
    select ......., id doc_id, '3' op from .....
    ) order by 3,4
    if[u] id is 3 column positions, and '1' op is 4 column positions in UNION-SELECT
    Hope this helps

  • 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

  • How to add a formula column in a report

    Hi
    I have made a report based on a query.
    There are 3 columns in the query and all the 3 are displayed.
    Now I want to add a new column (fomula column) to the report.
    I want to write a query inside the formula column. To execute the query col1, col2 and col3 values are required in the formula column.
    Could you please tell me how to add a formula column in the report and how to pass database column value to inside the formula column
    regards

    Here is how you would create a formula column:
    Open data model of the report.
    Formula column button is on the left side of the tool palette.
    Click on that button.
    Now click in the query group where you want to place the formula column.
    You would see a new field something like CF_1. That is the formula column.
    Double click on the field CF_1. It will open property inspector.
    You would see, Datatype of the formula column is Number. Change this as per your requirement.
    Double click on PL/SQL Formula property. It would open up a editor. Here you can write the code.
    And now to access the data model column here, you can use : and column name. i.e. :col1 or :col2, etc
    And remember you have to return the value back to the formula column. Like this: RETURN(some value).
    You can also take a help from here:
    http://download.oracle.com/docs/html/B13895_01/orbr_howto.htm#sthref1309
    Hope this helps.

  • Formula Column in Report 9i Builder

    Hi,
    I use this configuration
    Report Builder 9.2.0.1.0
    Windows XP Service Pack 1
    NLS_LANG "BRAZILIAN PORTUGUESE_BRAZIL.WE8ISO8859P1"
    When I try to create a formula column that returns number, I have to choose datatype 'Nu'mero' (with accented u)as this is the only avaiable in the combo box. However when I write this PL/SQL code for the column:
    function CF_17Formula return Number is
    begin
    RETURN(1);
    end;
    Reports gives me the message:
    REP-0737: Deve ser uma funcao com retorno do tipo 'nu'mero'.
    In English this message could be
    REP-0737: Should be a function with return type 'nu'mero'.
    I don't have this problem with Character or Date formula columns (these datatypes are called Caracter and Data in Portuguese).
    It seems that Reports is having problems with u' (accented u) character. If I change NLS_LANG to AMERICAN_AMERICA.WE8ISO8859P1 everything works fine because I can choose Number in the Formula Column Datatype in the Property Inspector.
    The problem is in the function declaration not in the Return statement.
    Could anyone help me? Tks.
    Edmar

    Edmar,
    You are right. I could reproduce this issue.
    I have filed a bug to fix it from the development in next patch
    Thanks
    The Oracle Reports Team

  • 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;

  • Oracle 6i Formula Column

    Hi Techies,
    I have an Oracle 6i report which has a parameter form. It takes the argument Contract_Num as an input. Based on the value of the Contract_Num, a formula column displays a string.
    Now I dont want to use the parameter form. I have simply modifed my report group query. I get all the contract_num in the output but the respective string is not displayed as I dont input any Contract_Num in the parameter form. The Formula Column always returns NULL in the all the pages.
    Please advise on how to pass the contract_num to the Formula Column to display the respective string in each page.
    Thanks
    Sri

    Hi Sri,
    As you said you have modified your query, you can directly bind the variable in the formula column as
    : (your variable).
    If your formula is outside your report group. Please place your formula column within that record group and try.

  • 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 too

    cf_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;

  • 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

  • How I can Fixed Length of Formula Column

    Dear All
    I have create a formula column in ORACLE REPORT 6i
    it consist on 15 length but problem is that formula column return output in this form
    123354,000,00
    But I want my formula Column return output just like this
    123354,000,00
    Column values fixed in line Length
    Regard
    Muhammad Nasir

    Hi
    I think you are trying to get a proper format of your output on your report.
    I will try to help you based on this assumption.
    1) Select the field from paper layout
    2) Select Format -> Justify -> Right from the menue.

Maybe you are looking for