Need help on Conditional Formating

Hi All,
I have hierearchy as Region to Series and Series to Model. I have created report with following fields Actual Sales, Objective Sales, % of Objective by Region. My requirement is i need to draw a line 100% Objective in chart and need to show the %of Objective values in Green when >=100% and in Red when < 100%.
Am able to see the above conditional formating at the Region level properly. When am drilling from one particular region to Series level conditional formating is not applying.
Any suggestions to achieve above formating will be appreciated.
Regards,
Rajkumar.

Hi Rajkumar,
nice one. :)
First part of the solution: you need to make it yourself a little bit easier by adding an extra column and hide this column.
Add a column with the follow formula:
CASE WHEN % of Objective >= 100 THEN 'Green' ELSE 'Red' END
Second part of the solution: add a pivot table view to your report.
Put the extra column on the Rows Section. Hide it.
Then add the pivot table chart to the pivot table view. If wanted you can remove the pivot table.
Then add the conditional formatting to your chart. I would use line bar combo for this.
Regards,
Stijn

Similar Messages

  • Need help with conditional query

    guys this is just an extension of this post that Frank was helping me with. im reposting because my requirements have changes slightly and im having a hell of a time trying to modify the query.
    here is the previous post.
    need help with query that can look data back please help.
    CREATE TABLE "FGL"
        "FGL_GRNT_CODE" VARCHAR2(60),
        "FGL_FUND_CODE" VARCHAR2(60),
        "FGL_ACCT_CODE" VARCHAR2(60),
        "FGL_ORGN_CODE" VARCHAR2(60),
        "FGL_PROG_CODE" VARCHAR2(60),
        "FGL_GRNT_YEAR" VARCHAR2(60),
        "FGL_PERIOD"    VARCHAR2(60),
        "FGL_BUDGET"    VARCHAR2(60)
      )data
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','00','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','1','0');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','11','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7200','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('360055','360055','7600','4730','02','10','1','400');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7600','4730','02','10','14','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','14','200');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','10','2','100');
    Insert into FGL (FGL_GRNT_CODE,FGL_FUND_CODE,FGL_ACCT_CODE,FGL_ORGN_CODE,FGL_PROG_CODE,FGL_GRNT_YEAR,FGL_PERIOD,FGL_BUDGET) values ('240055','240055','7240','4730','02','11','2','600');
    I need to find the greatest grant year for the grant by a period parameter.
    once i find the greatest year i need to check the value of period 14 for that grant for the previous year and add it to the budget amount for that grant. however if their is an entry in the greatest year for period 00 then i need to ignore the period 14 of previous year and do this calculation current period +(current period - greatest year 00)
    hope that makes sense so in other words with the new data above. if i was querying period two of grant year 11. i would end up with $800
    because the greatest year is 11 it contains a period 0 with amount of $400 so my total should be
    period 2 amount $ 600
    period 0 amount $ 400 - period 2 amount of $600 = 200
    600+200 = $800
    if i query period 1 of grant 360055 i would just end up with 800 of grnt year 10.
    i have tried to modify that query you supplied to me with no luck. I have tried for several day but im embarrased to say i just can get it to do what im trying to do .
    can you please help me out.
    here is the query supplied by frank kulash who gracefully put this together for me.
    WITH     got_greatest_year     AS
         SELECT     fgl.*     -- or whatever columns are needed
         ,     MAX ( CASE
                     WHEN  fgl_period = :given_period
                     THEN  fgl_grnt_year
                    END
                  ) OVER ()     AS greatest_year
         FROM     fgl
    SELECT     SUM (fgl_budget)     AS total_budget     -- or SELECT *
    FROM     got_greatest_year
    WHERE     (     fgl_grnt_year     = greatest_year
         AND     fgl_period     = :given_period
    OR     (     fgl_grnt_year     = greatest_year - 1
         AND     fgl_period     = 14
    ;Miguel

    Hi, Miguel,
    Are you waying that, when the greatest year that has :given_period also has period='00' (or '0', or whatever you want to use), then you want to double the budget from the given_period (as well as subtract the budget from the '00', and not count the pevious year's '14')? If so, add another condition to the CASE statement which decides what you're SUMming:
    WITH     got_greatest_year     AS
         SELECT       TO_NUMBER (fgl_grnt_year)     AS grnt_year
         ,       fgl_period
         ,       TO_NUMBER (fgl_budget)     AS budget
         ,       MAX ( CASE
                       WHEN  fgl_period = :given_period
                       THEN  TO_NUMBER (fgl_grnt_year)
                      END
                    ) OVER ()     AS greatest_year
         FROM       fgl
    ,     got_cnt_00     AS
         SELECT     grnt_year
         ,     fgl_period
         ,     budget
         ,     greatest_year
         ,     COUNT ( CASE
                       WHEN  grnt_year     = greatest_year
                       AND       fgl_period     = '00'
                       THEN  1
                         END
                    ) OVER ()          AS cnt_00
         FROM    got_greatest_year
    SELECT       SUM ( CASE
                        WHEN  grnt_year     = greatest_year                    -- New
                  AND       fgl_period     = :given_period                    -- New
                  AND       cnt_00     > 0            THEN  budget * 2     -- New
                        WHEN  grnt_year     = greatest_year
                  AND       fgl_period     = :given_period       THEN  budget
                        WHEN  grnt_year     = greatest_year
                  AND       fgl_period     = '00'            THEN -budget
                        WHEN  grnt_year     = greatest_year - 1
                  AND       fgl_period     = '14'     
                  AND       cnt_00     = 0            THEN  budget
                    END
               )          AS total_budget
    FROM       got_cnt_00
    ;You'll notice this is the same as the previous query I posted, except for 3 lines maked "New".

  • Need help on ammount formating with num{$z,zzz,zz9.99}

    Hi All
    Need help in formating the amount fields.
    Currently I am using num{$z,zzz,zz9.99} Its working fine for positive ammount value.
    But for negative amount its giving output as $-18,970.50
    Expected out is -$18,970.50
    need '-' sign before $
    Thanks,
    Abhijit

    issue resolved by setting pattern as  = num{z$z,zzz,zz9.99}

  • Need help w/ JSP formating a page.

    Ok. I need to make the following code work. I think it needs help w/ formating is all. Below is the JSP page I would like it in as well as where I think the code should go. Not shure how to get it to display the output though.
    var fullSessionName;
    Function startHODSession(sessionName) {
    var i = document.HODApplet.startSession(sessionName);
    if (i == 0) {
    fullSessionName = sessionName + document.HODApplet.getSessionID();
    I need to run that part of code and display the output on a webpage. Any help would be awosme as I am lost w/ JSP more of a vb kind of guy. but learning quickly. Thanks for any help or advice.
    Thanks
    My JSP file:
    <%--
    Document : index
    Created on : Oct 7, 2008, 7:14:58 AM
    Author : tl01mjf
    --%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@page import ="java.applet.Applet" %>
    <%@page import = "ibm.eNetwork.HOD.BaseApplet" %>
    <%@page import = "ibm.eNetwork.HOD.HostOnDemand" %>
    <%@page import = "ibm.eNetwork.HOD.JSHostOnDemand" %>
    <%
    CODE GOES HERE
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h2>Hello World!</h2>
    <input type="text" name="AgentID" value="" />
    <input type="submit" value="Push IT" name="id"/>
    </body>
    </html>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Great catch on the aplet and maybe that is where I am going wrong. So let me back up a little and maybe you can get me out of my bind.
    Basically what I want for a test app is: a little text box w/ a button. type in an number and click the button.
    the button will then send the info to a terminal emulator. (ibm host on demand)
    So that is what the 3 include statements where for. I got that from the API example.
    so what I really need the page to do is print the list of connections.
    so I need to get the latest session ID:
    var fullSessionName;
    Function startHODSession(sessionName) {
    var i = document.HODApplet.startSession(sessionName);
    if (i == 0) {
    fullSessionName = sessionName + document.HODApplet.getSessionID();
    Then run:
    public int sendKeys1 (String text)
    The string being what was put in the box.
    for right now i do not need error checking and i know the screen will be on the right spot to accpet the input.
    so if there is a better way to make it work using an applet....Im all for it.
    any ideas would be great.
    thanks

  • NEED HELP...FORMATING SIZE PROBLEM

    I've been succesfully building and formating projects that only lasted 30 minutes.
    I'm having some problems with my latest project (1 hour and 20 minutes)...
    I did compress with "90 minutes best quality".
    and when I import in dvdsp, the file size is 6 GB.
    Now it won't format into a blank dvd-R.
    I am kinda new at this and need to put it on a dvd for a client.
    Could somebody tell me what should I do ?
    Should I compress again or can I still burn it with another form of blank dvd?
    I need help...
    Thank you.

    Make sure to select A.Pack/Dolby (make sure that file is made) and use that in the project, not the .aif file

  • Urgent help on conditional formatting using XML publisher

    Folks can any one help me. I am trying to do conditional format in my xml publisher rtf template and I am having issues to render data in specific format. Please see the sample xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <ColTrn:CollegeTranscript xmlns:AcRec="urn:org:pesc:sector:AcademicRecord:v1.0.0" xmlns:ColTrn="urn:org:pesc:message:CollegeTranscript:v1.0.0" xmlns:UseExt="urn:org:pesc:useextensions" xmlns:core="urn:org:pesc:core.CoreMain:v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:org:pesc:message:CollegeTranscript:v1.0.0 http://www.regents.state.oh.us/articulation_transfer/AT/ATC/XML/Standards/Postsecondary/Transcript/v1.0.0/CollegeTranscript_v1.0.0.xsd urn:org:pesc:useextensions http://www.regents.state.oh.us/articulation_transfer/AT/ATC/XML/Standards/Postsecondary/Transcript/v1.0.0/OBRExtensions_v1.0.0.xsd">
    <Student>
    <Person>
    <SchoolAssignedPersonID>0001567740</SchoolAssignedPersonID>
    <Name>
    <FirstName>WENDELL</FirstName>
    <MiddleName>ROBERT</MiddleName>
    <LastName>MORRISON</LastName>
    </Name>
    </Person>
    <AcademicRecord>
    <AcademicAward>
    <AcademicAwardLevel>2.4</AcademicAwardLevel>
    <AcademicAwardDate>2004-03-20</AcademicAwardDate>
    <AcademicAwardTitle>BACHELOR OF SCIENCE IN EDUCATION</AcademicAwardTitle>
    <AcademicCompletionIndicator>true</AcademicCompletionIndicator>
    <AcademicCompletionDate>2004-03-20</AcademicCompletionDate>
    <AcademicAwardProgram>
    <AcademicProgramType>Major</AcademicProgramType>
    <AcademicProgramName>INTEGRATED SOCIAL STUDIES (BS6308)</AcademicProgramName>
    </AcademicAwardProgram>
    <AcademicAwardProgram>
    <AcademicProgramType>Minor</AcademicProgramType>
    <AcademicProgramName>PSYCHOLOGY (OR4101)</AcademicProgramName>
    </AcademicAwardProgram>
    <NoteMessage>EDUCATION AND HUMAN SERVICES</NoteMessage>
    <AcademicSummary>
    <AcademicSummaryType>SenderOnly</AcademicSummaryType>
    <AcademicSummaryLevel>Undergraduate</AcademicSummaryLevel>
    <GPA>
    <GradePointAverage>2.835</GradePointAverage>
    </GPA>
    <ClassRank>408</ClassRank>
    <ClassSize>533</ClassSize>
    </AcademicSummary>
    </AcademicAward>
    <AcademicAward>
    <AcademicAwardLevel>2.4</AcademicAwardLevel>
    <AcademicCompletionIndicator>false</AcademicCompletionIndicator>
    <AcademicAwardProgram>
    <AcademicProgramType>Minor</AcademicProgramType>
    <AcademicProgramName>HISTORY (OR4211)</AcademicProgramName>
    </AcademicAwardProgram>
    </AcademicAward>
    </Student>
    </ColTrn:CollegeTranscript>
    I am trying to generate the output in the below format -
    [ The University Degrees Conferred section is printed if  /AcademicRecord/AcademicAward/AcademicCompletionIndicator = true and  AcademicProgramType = 'Major' Then ]
    ********** UNIVERSITY DEGREE(S) CONFERRED ******************
    DATE : Mar 20, 2004 => <AcademicAwardDate>
    COLLEGE : EDUCATION AND HUMAN SERVICES => <NoteMessage>
    DEGREE : BACHELOR OF SCIENCE IN EDUCATION => <AcademicAwardTitle>
    PROGRAM(S) : INTEGRATED SOCIAL STUDIES (BS6308) => <AcademicProgramName>
    ACCUM GPA : 2.835 => AcademicSummary/GPA/GradePointAverage
    GRAD RANK : 408 IN TOTAL OF 533 => <ClassRank> and <ClassSize>
    [ The below section should print if the student has AcademicProgramType = 'Minor' and Academiccompletionindicator = true ]
    ******OTHER UNIVERSITY PROGRAM(S) COMPLETED******
    DATE Mar 16, 2002 PROGRAM : PSYCHOLOGY (OR4101) => <AcademicProgramName> where AcademicProgramType = 'Minor'
    [ The below section should print if Academiccompletionindicator = false print all majors and minors.
    CURRENT PROGRAM(S) OF STUDY
    PROGRAM(S) : HISTORY (OR4211)
    => AcademicProgramName where AcademicAward/AcademicCompletionIndicator = 'false'
    Please help me guys. I really appreciate your help.
    Thanks
    Pradeep

    I have sent you a modified template. Please take a look.
    Assign points and close out the thread if you are satisfied.
    Thanks,
    Bipuser

  • Help Regarding Conditional Formatting

    Hi Gurus,
    Brief background about the report, we have all the items in the inventory segregated into 3 classes "High", "Medium" and "Low" and also there is Calculated Measure called "Percent Accurate". Now we want to use Conditional Formating on the particular Item either RED or GREEN and following are the conditions to define the colour
    High -> Green = 100%; Red = X<100%
    Medium -> Green = X >= 98%; Red = X < 98%
    Low -> Green = X >= 97%; Red = X < 97%
    In the above condition the perecent refers to Percent Accurate.
    How do I acheive this kind of condition.
    Thanks in advance.
    Chary

    Hi Create a new Percent column in repository so the answers coding will be simplified.
    Percent = 100.00 *( (Cycle_Count_Entries.COUNT_QUANTITY_CURRENT - Cycle_Count_Entries.SYSTEM_QUANTITY_CURRENT) / Cycle_Count_Entries.SYSTEM_QUANTITY_CURRENT )
    ...... or whatever your definition is
    Then use a column in answers with following formula :
    Case
    when table.class = 'High' then
    Case when table.percent = 100 then 'Green' else 'Red' end
    when table.class = 'Medium' then
    Case when table.percent &gt;= 98 then 'Green' else 'Red' end
    when table.class = 'Low' then
    Case when table.percent &gt;= 97 then 'Green' else 'Red' end
    end
    * If you do not have access to repository, replace table.percent in above formula with the percentage formula that you have.
    Then your conditional formatting will be simplified as you will need to refer to only the above column.

  • Help on conditionally Formatting Field in a Cross Tab

    Hi all,
    I like to conditionally format a number field in a cross tab, ie. on a certain column the number should show 2 decimal places, otherwise no decimal places.  I have tried a formula in the Decimals of the Format Field, If {Command.COL_TITLE}= "G"
    Then
    2
    else
    0.
    Column G is the one that is to display the number in 2 decimal places.  The formula runs, but it never  {Command.COL_TITLE}= "G" is never true, ever.  COL_TITLE is the columns of the Cross Tab.
    Any ideas ?
    Thanks
    Austin

    Austin,
    If you are trying to format a column then try using the GridRowColumn function.
    In the Customize Style tab highlight the column field and check what the alias for formula is. Then format the decimal places for the summarized field with a formula similar to the following;
    If  GridRowColumn("Alias for formula value") = "G" then 2 else 0

  • Help for conditional formatting of a chart query!!!!!

    Dear Gurus,
    can Anyone give me a step by step for conditional formatting on the chart?
    I want my charts in my queries to be for example:
    green color when actual data <= version,
    Yellow if actual > version & 101%, red if actual >=101%.
    Thank You very much for sharing your Knowledge.

    Hi Des,
    You can achieve this through exceptional reporting. Choose your query & execute the report. click on the 'Exceptions & Conditions' button. create the exception you wish to have by choosing version & your key figure, in your case. when you click 'Transfer' it automatically gets activated & you can be able to view the colors set by you.
    Revert back for any modifications.
    Manoj

  • Need help in date formatting

    Hi,
    I need to print date in the following format:
    Jan 21, 2007
    11:23 AM 21/01/2007
    21-01-2007 18:23
    Now as per condition of assignment the year, month, day and hour, min, sec all are entered as separate integer values.
    my code:
    import java.util.*;
    import java.text.*;
    public class stringToDate
    // Integer value of date and time variables
    int day=21;
    int month = 1;
    int year=07;
    int hour=18;
    int min=23;
    int sec=14;
    // Converting integer value into date
    public void convertIntoDate()
         String strTmp= day+"/"+month+"/"+year+" "+hour+":"+min+":"+sec;
         System.out.println("String: " + strTmp);
         DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
         try
              Date outDate = dateFormat.parse(strTmp);
              System.out.println("Converted: " + dateFormat.format(outDate));
         catch(Exception e){ System.out.println("Exception: " + e);}
    public static void main(String args[]) {
         stringToDate dF = new stringToDate();
         dF.convertIntoDate();
    }Now as per my code i am able to print in the following format:
    String: 21/1/7 18:23:14
    Converted: 21/01/0007 18:23:14
    But if i try to print in other formats it gives me following error message:
    Exception: java.text.ParseException: Unparseable date: "21/1/07"
    Please help me....

    vinee wrote:
    Hi,
    I tried different output format but still i'm facing the same issue
    Following the complete code and error message....
    import java.util.*;
    import java.text.*;
    public class stringToDate
    // Integer value of date and time variables
    int day=21;
    int month = 1;
    int year=07;
    int hour=18;
    int min=23;
    int sec=14;
    // Converting integer value into date
    public void convertIntoDate()
    DateFormat dateFormat;
    Date outDate=null;
    String strTmp= day+"/"+month+"/"+year+" "+hour+":"+min+":"+sec;
    System.out.println("Entered string for date: " + strTmp);
         // Format 01/01/0070 15:24:14
         dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
         try
         outDate = dateFormat.parse(strTmp);
         System.out.println("Converted into Date(dd/MM/yyyy HH:mm:ss): " + dateFormat.format(outDate));
         catch(Exception e){ System.out.println("Exception in format 1: " + e);}
         // Format Jan 21, 2007
         dateFormat = new SimpleDateFormat("EEE, MMM d, ''yyyy");
         try
         outDate = dateFormat.parse(strTmp);
         System.out.println("Converted into Date(EEE, MMM d, ''yyyy): " + dateFormat.format(outDate));
         catch(Exception fe)
         {System.out.println("Exception in format 2: " + fe);}
    public static void main(String args[]) {
              stringToDate dF = new stringToDate();
              dF.convertIntoDate();
    }Following is the error message:
    Entered string for date: 21/1/7 18:23:14
    Converted into Date(dd/MM/yyyy HH:mm:ss): 21/01/0007 18:23:14
    Exception in format 2: java.text.ParseException: Unparseable date: "21/1/7 18:23:14"
    Now as per the above error message format one is working fine but format 2(// Format Jan 21, 2007) have some issues...kind suggest.
    Edited by: vinee on Oct 2, 2008 4:23 AMPlease re-read my last reply.
    Once again : see [http://java.sun.com/docs/books/tutorial/i18n/format/simpleDateFormat.html]
    And your:
    int year=07; // should be:
    int year=2007;

  • Need help with adding formatted text and images to Crystal Report?

    Here's my scenario:
    I have a customer statement that's generated as a crystal report and that has a placeholder for advertisement. The advertisement is mixture of formatted text and images. Until now we only had one advertisement that was always used on the report. The new requirement is that we would have a pool of hundreds of advertisements and would need to display one specific advertisement on the customer statement based on various marketing criteria. They key is that the advertisement content will be determined programmatically and cannot be hardcoded into the report. I'm using Crystal2008 with .net SDK.
    Here are the solutions I thought of, but I'm still rather lost and would appreciate your help/opinion.
    1) Pass HTML or RTF to the report
    Not really sure if this is possible and how to get it done. Also how would I pass in images? Would display formatting be reliable when exporting to PDF?
    2) Create each add as a subreport and append it programatically
    I actually have this working, but I only know how to append a new section to the end of the report and then load the subreport to the section. I have no other controll of the placement. Is there a way to dynamically load a subreport to a predefined section in the main report? How about adding a dummy subreport in the main report as a placeholder and then replacing it with a different subreport? How could I do this?
    3) Pass an Image to the report
    I would create each advertisement as an image and then would somehow add the image to the report. How would I load the image and control the placement? Could I somehow define a placeholder for the image in the main report-maybe a dummy image to be replaced?
    Thank you.

    Hello Pavel,
    I would got the third way.
    You can use dynamic images in your report.
    Just by changing the URL to the image the image can be changed.
    Please see the [Crystal Manual|http://help.sap.com/businessobject/product_guides/cr2008/en/xir3_cr_usergde_en.pdf] and search for images.
    or directly here
    [Setting a Dynamic Graphic Location Path on an Image Object|https://boc.sdn.sap.com/node/506]
    [Dynamic image and HTTP://|https://boc.sdn.sap.com/node/3646]
    [codesample for .NET|https://boc.sdn.sap.com/node/6000]
    Please also use
    [Crystal Reports 2008 SDK Documentation and Sample Code|https://boc.sdn.sap.com/developer/library/CR2008SDK]
    [Crystal Reports 2008 .NET SDK Tutorial Samples|https://boc.sdn.sap.com/node/6203]
    Hope this helps
    Falk

  • Need Help W/ Conditional Statement...

    Hi guys,
    I have a project uploaded at:
    http://www.jasonfraziercreativedesign.com/client_sites/kimyarbrough2/
    After everything has loaded into place, and you click on -- say MODELING -- the photos slide away, the separator bars disappear, and the particular (sample) content is loaded in.  This works wonderfully for all the buttons (MODELING, ACTING, MUSIC, SCHEDULE and ABOUT KIM) -- but only when you click on them when the site first loads.
    If you try to click on the buttons again, when you're IN a section -- it will cycle through the animation again.
    I know I need some kind of conditional statement that says if you're ALREADY LOOKING AT A SECTION (i.e. the sourceLoader.source = a section) then don't cycle through the animation again -- just get rid of the current content and display the appropriate new content.
    If you're IN the MODELING SECTION, for instance and you click MODELING again -- I don't want Flash to do ANYTHING (ie NULL).  But if you're in MODELING, and you click on ACTING -- I just want the MODELING stuff to go away and present the ACTING stuff (no animation).
    Here's the pertinent AS that I have currently -- any help about where to place the proper CONDITIONAL (if/else) statement would be so appreciated:
    function swap_photos_place_content(theSection:String):void {
    // ANIMATE THE 4 PANEL PHOTOS LEAVING THE CONTENT AREA
    var photo1Tween:Tween = new Tween(kim_photo1_mc, "y", Regular.easeOut, kim_photo1_mc.y, 620, 2, true);
    var photo2Tween:Tween = new Tween(kim_photo2_mc, "y", Regular.easeOut, kim_photo2_mc.y, -600, 2, true);
    var photo3Tween:Tween = new Tween(kim_photo3_mc, "y", Regular.easeOut, kim_photo3_mc.y, 620, 2, true);
    var photo4Tween:Tween = new Tween(kim_photo4_mc, "y", Regular.easeOut, kim_photo4_mc.y, -600, 2, true);
    // AFTER THE LAST PHOTO HAS MOVED OUT, FADE UP THE CONTENT MASK
    photo4Tween.addEventListener(TweenEvent.MOTION_FINISH, fadeup_content_mask);
         function fadeup_content_mask(event:TweenEvent):void {
         var main_mask_fadeoutTween:Tween = new Tween(main_mask_mc, "alpha", Regular.easeOut, 1, 0, 1, true );
         var content_mask_fadeupTween:Tween = new Tween(content_mask_mc, "alpha", Regular.easeOut, 0, 1, 1, true);
    // AFTER THE CONTENT MASK FADES UP, THE STAGE IS READY TO LOAD IN THE CONTENT
    content_mask_fadeupTween.addEventListener(TweenEvent.MOTION_FINISH, load_in_content);
              function load_in_content(event:TweenEvent):void {
    // BEFORE LOADING IN THE NEW SECTION, TAKE AWAY THE OLD SECTION
    sectionLoader.source=null;
    trace("ready to load in content");
    sectionLoader.source=theSection;
    // ADD LISTENERS FOR THE SECTION-CONTENT CLICKS
    inv_modeling_button.addEventListener(MouseEvent.CLICK, modeling_click);
    function modeling_click(event:MouseEvent):void {
    trace("modeling_click");
    swap_photos_place_content("modeling.swf");
    inv_acting_button.addEventListener(MouseEvent.CLICK, acting_click);
    function acting_click(event:MouseEvent):void {
    trace("acting_click");
    swap_photos_place_content("acting.swf");
    inv_music_button.addEventListener(MouseEvent.CLICK, music_click);
    function music_click(event:MouseEvent):void {
    trace("music_click");
    swap_photos_place_content("music.swf");
    inv_schedule_button.addEventListener(MouseEvent.CLICK, schedule_click);
    function schedule_click(event:MouseEvent):void {
    trace("schedule_click");
    swap_photos_place_content("schedule.swf");
    inv_aboutkim_button.addEventListener(MouseEvent.CLICK, aboutkim_click);
    function aboutkim_click(event:MouseEvent):void {
    trace("aboutkim_click");
    swap_photos_place_content("aboutkim.swf");

    One thing you can do is create a function that removes all the event listeners for all the buttons.  Then when you click a button run that function then add event listeners for all other buttons.

  • Need help in Import format

    Hi Guys,
    I have a requirement where if the Account field carried a value "100" only then Cost Center will appear. but all the Res.Pvartemp1 to 5 are used in for different purpose
    20101117 IMP Value 100 AB12CD 243.34
    20101117 IMP Value 200 142.00
    20101117 IMP Value 300 1234 100.00
    20101117 IMP Value 100 AB12ED 540.00
    The record looks like above, where AB12DC and AB12ED are the cost centers that I need to pick when the account is 100.
    Can you help if all the Res.Pvartemp variable are already in use, how to do it?
    Thank you

    Darrel Plant has written an importer for .ai and .eps files.
    You can get
    it at:
    http://www.moshplant.com/direct-or/ps2vs/
    Haven't used it for a while but it works pretty good.
    Downside is that it creates multiple members because Director
    can't
    (couldn't?) handle multiple-line vector members.
    Dsotm wrote:
    > I am trying this topic again in the hope of help. I need
    to import drawings in
    > a vector format for printing. These drawings will be
    cast members not sprites.
    > I have tried printing a swf version via Printomatic but
    it cannot print Flash
    > members. My questions are:
    > 1. Is therre any way to print a swf cast member (not a
    sprite)
    > 2. How can I import an EPS file? - I have heard that it
    can be done but every
    > version I have tried seems to fail
    >
    Manno Bult
    [email protected]

  • Hi need help in paragraph format

    hi,
    in scripts while defining the paragraph format,we have to give tab space also,there why we need to define five tabs,how can we use those in editor.
    Thanks,
    mohan rao.

    Hi..,
    In the <b>Standard</b> attribute group, you find the general attributes that can be defined in paragraph formats:
    <b>Description </b>
    Precise explanation of your paragraph tag, so that the user can immediately identify it.
    <b>Left or right margin </b>
    Amount of space between the paragraph and the left or right border of the form window.
    <b>Indent first line </b>
    Indent of the first line of a paragraph. If the value is positive, it is indented to the right, if it is negative, it is indented to the left.
    If you specify a negative value, then you must place the minus sign after the number: 1- .
    <b>Space before and space after</b>
    Space before and space after control the amount of space between paragraphs. The actual space between paragraphs results from the space after the preceding paragraph and the space before the following paragraph.
    <b>
    Alignment </b>
    Alignment of a paragraph.
    <i>Left-aligned    -
         Right-aligned
    LEFT   -
    RIGHT
    Centered
    CENTER
    Justified
    BLOCK </i>
    <b>
    Line spacing </b>
    Spacing between the lines. The default value is 1 line; the LPI value (lines per inch) in the header data is used to calculate the line spacing.
    <b>No blank lines </b>
    Suppression of blank lines. You can control whether the blank lines of a paragraph should be suppressed in the printout or not:
    <i>No entry -- blank lines not suppressed
    X-- blank lines suppressed</i>
    <b>
    Page protection </b>
    Cohesion of a paragraph. It is possible to determine whether or not a paragraph can be divided by a page break.
    <i>No entry--no page protection (default)
    X--all lines of the paragraph are on one page</i>
    <b>
    Next paragraph same page </b>
    Cohesion of two adjacent paragraphs. Here you can define whether the subsequent paragraph should begin on the same page (that is, at least the first line of the subsequent paragraph must be on the same page).
    <i>No entry
    subsequent paragraph is output on the same page or the next page, depending on the amount of space (default)
    X--subsequent paragraph begins on the same page</i>
    <b>TABS</b>
    You can define as many tab positions as you require for each paragraph format. The text can be aligned in different ways:
    Left-aligned with LEFT
    Right-aligned with RIGHT
    Centered with CENTER
    At the sign with SIGN
    At the comma or decimal point with DECIMAL
    You can control the tab feed in a paragraph with tab positions. The tab stops you define in the paragraph format replace the tab spacing you defined in the header data of the form. However, this depends on the extent to which you have defined tab stops in the paragraph format. If there are fewer tabs in the paragraph formats than in the header data, the tab stops of the header data are used for the rest of the line. The tab stops are represented as , , in the text editor.
    <b>reward all helpful answers,
    sai ramesh</b>

  • Need help with Conditional Audio

    Hello again! So early on into a course, after a couple intro slides, I have a sorting slide to direct users to other parts of a course (self-led learning in a way). However, I have an audio narration that plays on entry to that slide (not slide audio, it plays via advanced actions). I'm trying to figure out a way so that once they have viewed that slide once and heard that audio the first time, any time they get sent back to this sorting slide, they don't hear the audio again. How might this be done?
    What I have already tried: I've tried two things, first I set up a variable called Sort_Audio. On exit of the slide previous, Sort_Audio would be assigned a value of 10. On entry to the sorting slide, an advanced action would check if Sort_Audio is equal to 10. If it is, it plays audio (and clears another variable that is unrelated, I just needed to do both things, so I combined them). I have On Exit from the sorting slide an advanced action that resets Sort_Audio to 0 so that when a user gets sent back to that sorting slide, it would theoretically not star the audio. Problem with this in the first place is for some reason it won't even play the audio the first time.
    The other thing I tried was quite similar, but instead of assigning values to slides I tried cpInfoLastSlideViewed and equalled it to the name of the previous slide, as well as doing the same thing for cpInfoPreviousSlide. Neither seemed to work.
    Any help would be much appreciated! Thanks!

    The problem is resolved. Using TTS, the audio went onto the slide. I had not removed it from the slide audio so that the Advanced Action could work. Lieve, I got it to work by being extra careful to get each step correct and complete and assuring that the slide didn't have audio attached to it. Rod, I could not get the test project to work with audio attached to a smart shape. I believe it is because I am not controlling visibility of the smart shape--a logic test for another project and another day.
    Here is what I finally got to work:
    I created a project to get the procedure working before I put it into the big project. Here is a description of the test project.
    Slide one has a smart shape (not used as a button) and a button which goes to the next slide. There is slide audio that plays when the slide is viewed.
    Slide two has a smart shape that is used as a button to go back to slide one.
    First Test with simple Advanced Action (no increment of variable):
    Variable used is called "v_visit"
    Conditional advanced action is called "checker"
    If v_visit is equal to 0
    Then Play Audio "text to audio X" (created with TTS. I also tested it with recorded voice in a second test, "RecordingX.wav")Assign v_visit with 1
    Else Continue
       Slide one, on enter, execute Advanced Action "checker"
                        on exit, No Action
    Second Test with different Advanced Action (variable increments):
    Variable called "v_counter"
    Advanced Action (conditional) called "menuAudioChecker"
    First condition ("setCounter")
    If 1 is equal to 1
    Then Expression v_counter = v_counter + 1
    (Else not used)
    Second condition ("checkCounter")
    If v_counter is equal to 1
    Then Play Audio "Text to AudioX" or "RecordingX.wav"
    (Else not used)
    Slide one, On Enter Execute Advanced Action "menuAudioChecker"
    On Exit, No Action
    On this "Second Test" I added a smart shape to display the contents of v_counter and it counts as expected. As Lieve has indicated in other posts, if one desired a different audio to play based on the value of v_counter this would allow that to happen. In my case in the production project I could play audio associated with section 6 when they return to the menu after completing section 6.
    Thank you for patiently working with me to resolve this issue (mostly due to my own oversights).
    Most importantly, thank you for the excellent Advanced Action model to use for the project.
    Michael

Maybe you are looking for

  • ExternalException was unhandled : A generic error occurred in GDI+.

    I am try to save this bitmap as jpg file for every 5 sec. It works fine at another application, before I move this method to another app. The error message shows ExternalException was unhandled : A generic error occurred in GDI+. I do not know if it

  • Down load into excel file

    Hi gurus,              I wanna generate a report that should download the data from the internal table to the presentation server in word formart, but the length of the word file should not be greater than 156 characters as the downloaded data is sen

  • Iphone 5 has error during iOS 8 update in iTunes & now can't use phone!

    i really need help! my iPhone is stuck in limbo, plugged into the computer to iTunes and trying to do the iOS 8 update. now i can't use my phone at all! what do i do?

  • Facetime privacy issue...

    Ok, I fess up - I did something truly stupid.  I was in a local staples, and playing around with an ipad2, I entered my apple ID in facetime to video chat with someone, figuring I could log out, and it would all be good.  I could log out allright, bu

  • Running MRP (my Center) considering free stock in the subcontract.

    Hi all! When I run MRP (for one of my Centers') the standard algoritm does not take into account, the free stock I have in the subcontract. Due a requisit of an internal client, I need to include in the algoritm, the free stock in the subcontract. EX