How to intercept variables in report's formula field via TOAD?

I have a case in this report. I have a report that generates a list of items with info of their initial stock, stock movements and final stock. no problem for the in and out stock movements.
but there's a slight problem with the initial stock. I wrote a formula field that executes several select queries to obtain the inital stock. The XML report format roughly looks like this:
Item_Name Initial_Stock Stock_In Stock_Out Final_Stock
<?Item_name?> <?CF_Init?> <?In?> <?Out?> <?CF_Final?>
As you can see, the Initial Stock and Final stock data is obtained through a formula field. And the select queries I mentioned above are employed in the formula fields. The rest of the fields are obtained directly from the SQL field in the report. Right now the report generates all items, whether their initial stock is zero or not. What I'm trying to do is not displaying items whose initial stock, stock in, stock out and final stock are zero. thanks
Edited by: 801264 on Oct 14, 2010 9:22 PM
Edited by: 801264 on Oct 14, 2010 10:39 PM

Well you could try upgrading to a more recent Java runtime for starters.
This is a native crash, which means something went wrong outside of Java code. The trouble is that you can't know WHERE it happens; The JVM itself is only a client of the machine it runs in and can be made unstable by outside influence. Under Linux it takes only one wonky shared library. It could be a driver. It could be a problem in the kernel. It could be another process. It could be anything.
It could also be a bug in the JVM of course, but the only way you have a right to report it as a bug is if you try to see if the problem persists under the latest update.

Similar Messages

  • How to set a new value for formula field in crystal reports xi?

    <p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text =  "&#39;Subreport Formula&#39;"  or</p><p>crxSubreport.FormulaFields.Item("description").Text =  "&#39;Subreport Formula&#39;"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • How to use the distinct key in formula field in SAP Crystal Reports

    I want to use the distinct key in formula field in SAP Crystal reports.
    When i'm using it shows an error.
    Please suggest me....

    Hi,
    Use DistinctCount keyword directly for your calculation instead of count(distinct(....
    Alternatively, if you want to avoid duplicate records, under "File" > "Report Options" make the 'Select Distinct Records' as True.
    Thanks,
    Raghavendra

  • How to copy sap standatd report to add fields and to make it work

    Hi experts,
        Can you tell me how to copy the sap standard report to add fields.
    I copied regular way including all includes also, but the porgram not activated and also every field started with %
    exp : data %dtab type standard table of /1BCDWB/IQ000000008078 with header line.
    Thanks

    Local object yes.
    I realise you're not an abaper, but if you got one in, he could simply create a subclass of /SAPPSSRM/CL_FY_NUMBER  (assuming it's not been made final) and override only the method that needs changing.  ( if it is final, then you have to use composition, but again, that's pretty straight forward ).  The point is, that copy a class rarely, if ever, needs to be done.  That's one of the major points about using classes.  If you use subclassing or composition, only small amounts of code need to be copied - which means if SAP change other bits in a new release, you automatically get them, thereby reducing the risk of an upgrade mucking up your cloned class.
    I'd be extremely nervous about having any code that had been implemented by a non-developer, being put into productive use.
    matt

  • Data missing in Crosstab report with calculated field via case when

    I use the Oracle 10g discoverer. When I create a crosstab report with a calculate field via function case when and put it as datapoint, some of the data is not showing. I tried to not use the case when function for the calculate field, then all the data show.
    I really do not the reason. Could anybody help me out with many thanks?

    Let me explain more.
    I have the original data below.
    Work order, Team, Hours_worked, date
    800001, S1, 5, 2012/01/01
    800001, S1, 15, 2012/01/10
    800001, S2, 4, 2012/01/04
    800002, S1, 3, 2012/01/15
    There are multipul records for the same work order, team on the same day or different.
    Finally I want to set the start date and end date as the parameter to create a crosstab report format like
    start date>=2012/01/01 and close date<=2012/01/05
    Team
    Total hours total hours within the range
    Work order S1 S2 ... S1 S2 ...
    800001 20 4 5 4
    800002 3 0 0 0
    in order to do it, I create two parameters independently start date and close date. Then I create a calculate field hours_worked_withinrange via
    Case when date>=:start date and date<=:end date then Hours_worked else 0 end
    This calculated field is correct in the tabular format report in discoverer desktop. But when I duplicate the list as crosstab. Some data is missing in crosstab data point.
    I checked once I change the calculate field defination not use case when. (For example, C1=hours_worked*2). Then everything runs correct.

  • How to group a report by formula field.

    Hi,
    I need to create a report based on the following report:
    http://s464.photobucket.com/albums/rr8/einas121809/
    This new report should be grouped by days and status. Then, each group should display the details of each record such as Report No, Open Date , Due Date and Summary.
    It is not a problem to display the report details, but I need to know how to group them since it involve calculation.
    Thank you in advance,
    Regards,
    einas.

    Hello,
    Right what you want to do is to get a crosstab which can be found in your toolbar or under Insert menu Insert --->Crosstab.
    You might need to use a working day formula something like this
    WhileReadingRecords;
    Local DateVar Start := {StartDate};   // place your Starting Date here
    Local DateVar End := {EndDate};  // place your Ending Date here
    Local NumberVar Weeks;
    Local NumberVar Days;
    Local Numbervar Hol;
    DateVar Array Holidays;
    Weeks:= (Truncate (End - dayofWeek(End) + 1
    - (Start - dayofWeek(Start) + 1)) /7 ) * 5;
    Days := DayOfWeek(End) - DayOfWeek(Start) + 1 +
    (if DayOfWeek(Start) = 1 then -1 else 0)  +
    (if DayOfWeek(End) = 7 then -1 else 0);  
    Local NumberVar i;
    For i := 1 to Count (Holidays)
    do (if DayOfWeek ( Holidays<i> ) in 2 to 6 and
         Holidays<i> in start to end then Hol:=Hol+1 );
    Weeks + Days - Hol
    If you need to calculate bank holidays then you have to create an array like this
    //Holiday Listing formula to go into the report header of the report.
    BeforeReadingRecords;
    DateVar Array Holidays := [
    Date (2003,12,25),
    Date (2003,12,31)
    0
    The workingdays formula needs to go into the Row and then distinct Count your orders. That should give you how many orders took x amount of days.
    Then you need to further develop your formula so that it shows <20 days, more than 20 days etc.
    Create something like this first and then ask further questions if you are stuck.
    Hope this helps
    Regards
    jehanzeb

  • How to create Variables in Reporting

    Hi All,
    I want to create Variables and processing types how to create in BI 7.0.
    could u Please provide me solutions step-by-step.
    Please ASAP.
    Thanks & Regards,
    Vijaay.

    Hi Vijay,
    Variables can be created for -
    Char Values
    Texts
    Formula elements
    hierarchy and its nodes
    For Characteristic Values -
    These are used to be filled by user in the query selection screen
    1.In the filter tab of QD, select the characteristic for which you want to create a variable,right click - >Restrict
    2.Select variabes from drop down
    3.Click Create new variable and then define its properties like "Processing By",Settings in Details tab etc and save it
    4.Move it to the right side and click ok
    Now you have created a variable and used it as a placeholder for that characteristic for which user can enter the value to act as dyanmic entry.
    Regards,
    Vineeth

  • Fin Rpt Studio - How to pull variables into report

    Hello,
    I have Hyperion Fin Rpt Studio version: 9.3.0.502
    In the header of the report I need to include the following information: DAY X OF Y
    The report will be run on business days during the fiscal period.
    DAY Y - # days in the current fiscal period
    DAY X - current day # for the fiscal period
    ie Day 3 of 25 would indicate we are in the 3rd day of a fiscal period with 25 days.
    Any ideas how I could do this?
    My outline does not have any time period dimensions. It is not a Planning outline.
    I thought about trying to use substitution variables. But can't quite figure out how that would work.
    I really do not want to add any more dimensions to the outline. But I will if I have to.
    Thanks,
    Dave

    I assuming a couple of things
    1) that since you don't have time periods in your cube it can only be run with the most current set of information and not run for say Day 2 of the fiscal period even though you are in Day 5
    2) that you are obviously using Essbase behind FR (cause there could be other databases)
    I also dont believe there is a date format that out of the box would do it for you.
    Here could be a simple trick if you want
    And I could come up with others (as I'm sure others will).
    First I thought about poluting your existing cube with the data. Then decided against it (but this same concept could be done with your existing cube)
    Then I came up with something simple
    Create a cube with 2 dimensions (cause you have to have at least 2)
    Dimension one Year
    Dimensino two Period
    In Year simply create 1 member Year1
    In Period create 2 member Day and FiscalPeriod
    Load through a tool (for example smartview
    Day Year1 = 3
    FiscalPeriod Year1 = 25
    Next create a grid2 in your fR report
    Year in column
    Day and FiscalPeriod in row
    Next hide this grid2
    Next use celltext in your header to reference these 2 cells Day <<celltext(grid2,1)>> of <<celltext(grid2,2)>> ( i believe I have the syntax right for celltext but play with it if I didn't)
    And there you go. Each day just update your data in this mini cube with the current day and you are set (you could create some sort of script to update automatically if you want to get crazy)
    Again other approaches may work as well.

  • How to open a sub report by formula

    Hi All,
    I have a sub report in my main report that is a conformity document but only needs to be generated with the report when it is requested,
    Is there a formula/parameter you can for example
    Does this report need conformity?
    Yes (Generates subreport)
    No (doesn't generate sub report)
    I'm sure one of you Guru's will be able to help me!
    Best regards and thanks in advanced,
    Gavin

    Hi Gavin,
    Here's what you need to do:
    1) Add a Static Parameter from the Field Explorer with these values:
    Yes
    No
    2) Go to the Section Expert > Select the section that holds the Subreport > Click the formula button beside 'Suppress' and use this code:
    {?Prompt} = "No"
    -Abhilash

  • How to use variables in Report?

    Good Day All,
    I am new to PlSql. So please bare with me.
    I have a report that runs on SSRS.
    Here's what I need it to do:
    When the report is executed:
    1st of the month : It extracts the previous months data.
    16th of the month: Extracts 1st of current month to 15th.
    I am trying to use a case statement to find the correct date & then use that value for ReportDate.
    ReportDate is a column in the database.
    --Find 1st of month
    SELECT
    CASE
    WHEN SYSDATE > last_day(add_months(SYSDATE, -1))
    AND SYSDATE < last_day(add_months(SYSDATE, -1))+2
    THEN
    ReportDate = last_day(add_months(SYSDATE, -2))
    ELSE
    SYSDATE
    END ReportStartDate,
    Using 10G.
    Again, I'm fairly new to this, so go easy. Let me know if I can provide any other details.

    Hi,
    Welcome to the forum!
    1009545 wrote:
    Good Day All,
    I am new to PlSql. So please bare with me.Certainly not! This is not that kind of a site!
    Did you mean "please *bear* with me"?
    I have a report that runs on SSRS.
    Here's what I need it to do:
    When the report is executed:
    1st of the month : It extracts the previous months data.
    16th of the month: Extracts 1st of current month to 15th.What if it's run on some other day of the month?
    The query below uses looks at the previous month when it is run anytime from the 1st through the 15th of a month, inclusive, and looks at the 1st-15th of the current month when it is run on the 16th or later.
    I am trying to use a case statement to find the correct date & then use that value for ReportDate.
    ReportDate is a column in the database.
    --Find 1st of month
    SELECT
    CASE
    WHEN SYSDATE > last_day(add_months(SYSDATE, -1))ADD_MONTHS (SYSDATE, -1)       will always be some time in the previous month, so
    LAST_DAY (ADD_MONTHS (SYSDATE, -1)       will also be in the previous month, but
    SYSDATE       is always in the current month, therefore
    SYSDATE > ADD_MONTHS (SYSDATE, -1)       will always be TRUE.
    AND SYSDATE < last_day(add_months(SYSDATE, -1))+2
    THEN
    ReportDate = last_day(add_months(SYSDATE, -2))That's 2 months in the past. Are you ever interested in stuff that old? Areen't you always interested either in 1 month ago, or the current month?
    ELSE
    SYSDATE
    END ReportStartDate,
    Using 10G.
    Again, I'm fairly new to this, so go easy. Let me know if I can provide any other details.Whenever you have a problem, post CREATE TABLE and INSERT statements for a little sample data, and the results you want from that data.
    See the forum FAQ {message:id=9360002} It only takes a few minutes to read, and can really help you get the most out of this forum.
    I think you want something like this:
    WITH     period_of_interest     AS
         SELECT     CASE
                  WHEN  TO_CHAR (SYSDATE, 'DD') &lt; '16'
                                           -- should be '16' above.  See note
                  THEN  TRUNC ( ADD_MONTHS (SYSATE, -1), 'MONTH')
                  ELSE  TRUNC (             SYSDATE    , 'MONTH')
              END     AS period_start
         ,     CASE
                  WHEN  TO_CHAR (SYSDATE, 'DD') < '16'
                  THEN  TRUNC (SYSDATE, 'MONTH')
                  ELSE  TRUNC (SYSDATE, 'MONTH') + 16
              END     AS period_end
         FROM    dual
    SELECT     ...
    FROM     table_x              x
    JOIN     period_of_interest  p  ON  x.transaction_date >= p.period_start
                          AND x.transaction_date <  p.period_end
    ;Period_end is a slightly misleading name for the column; it's actually the first DATE after the period ends; that's why I used &lt; (and not &lt;=) when comparing it to x.transaction_date.
    I'm not sure what ReportDate is in your description. This is one example of shy you need to post CREATE TABLE and INSERT statements for a little sample data. It could be that ReportDate is just what I called transaction_date above.
    Edited by: Frank Kulash on Jun 3, 2013 4:55 PM
    This site is garbling my code. It seens to think the   in the first
    WHEN TO_CHAR (SYSDATE, 'DD') < '16'indicates some kind of markup, and won't display the '16', even if I put it on a separate line by itself.
    Edited by: Frank Kulash on Jun 3, 2013 5:09 PM
    Used &amp;lt; to correct garbling, after Sentinel below.

  • CUIC Report definition Formula field

    Hello
    I want to get a max value from two different columns in a custom report. Anyone have an idea how to do it. I tried the following but it doesn't work, formula is invalid:
    max(${max_outbound_ipcc_calltime},${max_outbound_nonipcc_calltime})
    max(values(${max_outbound_ipcc_calltime}),(${max_outbound_nonipcc_calltime}))
    Finnur

    You'll have better luck posting this question here:
    http://developer.cisco.com/web/ccr/home
    david

  • How to create an excel report and send it via email using a BPEL process ?

    Hi Experts,
    I have a requirement to develop a xl report based the data in the DB table. I will have to query the list of records entered / processed during previous day, generated the xl based report and send to users via email.
    I talked to one the experts, he asked me to use the following Adapter and BPEL activities to accomplish it.
                   DBAdapter --> {BPEL  process} --> Java Embedding --> Email Activity.
    Can someone please help me to pass the information retrieved by DBAdapter to Java Embedding and then to email import? I have created DBAdapter and Java Embedding. I don't know, how to retrieve the data read / sent by DBAdapter using Java Embedding. Also please help me to pass the xl attachment to Email Activity.
    Thanks for your help in advance!
    Thanks,
    Harisudhan Selvaraj

    I would suggest something like:
    DBAdapter --> Bpel Process --> File Adapter --> write file to location (you can write in csv which can be imported into xls)
    Read Location --> FileAdapter --> Bpel Process --> Email Activity
    Regards,
    Anshul

  • How to use variables POST and personalize the fields form names

    Hi friends, I need to send POST values to a external URL from APEX application to proccess a credit card and later receive the POST values to save the transaction, also the fields require have a personalized name, APEX create the field with standar names properly from APEX.
    Any one can help me to solve this problem?
    Thanks
    Libio Balbin

    I'm assuming you mean that you will be posting your page form to an external URL. This also means that the items in the form will need to have the element name be a certain name expected by the external URL. Look at Re: item name isn't what i specified to how to do this.
    Basically, in the page HTML Header add a javascript function to change the name of the page items and then change the submit to go to the external website. Add to the On Load section to call the javascript when the page is loaded.

  • How to get elements in a multi-value field via javascript?

    The following will set variables.variable1 to variables.variable2 when the "Script Link" component is clicked...
    <Field>
    <Display class='Javascript'>
    <String>
    function myScript() {
    el=getElement(document.mainform,"variables.variable1");
    el2=getElement(document.mainform,"variables.variable2");
    el.value=el2.value;
    </String>
    </Display>
    </Field>
    <Field name='Script Link'>
    <Display class='Link'>
    <Property name='URL'>
    <String>javascript:myScript();submitCommand(document.mainform,%20'Recalculate');</String>
    </Property>
    </Display>
    </Field>
    My issue is, if variables.variabl2 is a list / multivalued, i get errors trying to traverse through the "array".
    How can i read and set an a list element via javascript function above? I've tried things like get() , and variables.variable2[0] .
    any help would be appreciated....
    is there an API somewhere i can reference?

    Hi,
    thanks for your reply!
    If I have the parameters in the URL and use the method GET it works all right.
    but I need the method to be POST. I suppose, I have the wrong way identifying the parameter name
    This is from VB
    varTarget = "http://localhost:9090/gm/getData" ' getData is my servlet
    xmlSendStr = "SQLStmt=SELECT TCPD_Cars.* From TCPD_Cars WHERE (((TCPD_Cars.CarIdent)=45));"
        xmlHttp.Open "POST", varTarget, True   'True means asynchronous
        xmlHttp.Send xmlSendStrthis is part of my Servlet
         protected void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              response.setContentType("text/html");
              PrintWriter writer  = response.getWriter();
              String SQLStmt = request.getParameter("SQLStmt") ;
            //make the database query and get the returns
            writer.println(GetSQLData(SQLStmt));
            //close the write
            writer.close();                    
         }I would appreciate any suggestions

  • How to [b]update[/b] [b]sdo_geometry[/b] field via [b]Database Link[/b]

    I need to update a geom field(defined as mdsys.sdo_geometry) of a remote table via database link,but I failed; This is the SQL statement and the error;
    update [email protected] set shape=mdsys.SDO_GEOMETRY(2002, NULL, NULL, mdsys.SDO_ELEM_INFO_ARRAY(1, 2, 1), mdsys.SDO_ORDINATE_ARRAY(2340411, 749349.375, 2340505.75, 749663.25, 2340571.75, 749924.813))
    where objectid=1;
    ORA-22804: remote operations not permitted on object tables or user-defined type columns
    How could I update geometry field of a remote table?
    Is there any method available ?
    Thanks!!

    Hi Percy,
    Oracle distributed does not support objects. If you are using 9i there might be just enough functionality to support what you want to do (replication required some distributed support, which might be enough for you).
    If it doesn't work then you may be out of luck with respect to distributed support, but you can connect to the remote database and update it that way.

Maybe you are looking for

  • Activation of Update Rule in BW 7.0

    Hi Gurus,             We just upgraded BW 3.5 to 7.0. One of the load is failing because update rule is disabled in BW 7.0. Please tell me how to re activate the update rule in BW 7.0. Regards, Anil

  • IPod touch 5th gen jack problem

    Hello, So here's the problem. I have a 32gb iPod touch 5th gen and it's working fine until I plugged it into a portable speaker. (THe ones used in PC) The sound that came out had a static background. Now, every time I plug Apple's default earphones i

  • Advantages of using Oracle JVM over JPDA for Remote Debugging?

    What are the "additional features" that the documentation hints at when using the Oracle JVM for remote debugging vs. the JPDA protocoL? Can a member of the JDEV briefly address this? What exactly am I losing when using JPDA?

  • For update with order by

    Hello all, Does anyone know if "order by" has precedence over "for update"? In other words, using the following query. Will the resulting rows be sorted first and then locked or they will be locked first and then sorted? SELECT /*+ cardinality(al 1)

  • Mega Stick 511

    I'm having a problem with my mega stick.  accidentally erased some settings from it and now I don't have any of those fun startup logos. Help!!!