Ssrs sum based upon a conditional statement

In an ssrs 2008 r2 report, I have the following code that totals a transaction amount:
=sum(cdec(Fields!TransactionAmount.Value))
Now I need to have different total amounts based upon 'payment type'. The payment_types are either 'check', or 'credit' for credit card. Thus can you show me how to change the code I just listed to sum the amount depending upon the payment type?

You may wish to follow this thread that is exploring a similar question.
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/12e2cdf4-1fd7-4f2a-ba12-ff5c4ec01eeb/sum-values-based-on-condition-in-ssrs?forum=sqlreportingservices
To do this in an SSRS expression just insert an IIf:
=Sum(IIf(Fields!payment_type.Value = "check",cdec(Fields!TransactionAmount.Value),0))
=Sum(IIf(Fields!payment_type.Value = "credit",cdec(Fields!TransactionAmount.Value),0))
In the other thread you will see that sometimes it makes sense to do this kind of work in the dataset since dataset queries run on the datasource and often those systems are robust servers that can crunch and return data very quickly.
"You will find a fortune, though it will not be the one you seek." -
Blind Seer, O Brother Where Art Thou
Please Mark posts as answers or helpful so that others may find the fortune they seek.

Similar Messages

  • SSRS Using Sum and = in a conditional operator

    Hi,
    Still getting to grips with SSRS so any help would be appreciated.
    My aim is to calculate a conditional field using the SSRS expression feature, the datasource is a shared dataset which i can't alter so i can't just go an alter the SQL query or anything.
    In SQL my query would be like this: SELECT COUNT(TotalHours) FROM TableName WHERE TotalHours <= 24
    Is there anyway to combined the Iff and Sum operator's to get a result like the above?
    At present all i managed to come up with is the below but obviously it's not returning the correct amount.
    =IIf(Fields!TotalHours.Value <= "24", Sum(Fields!TotalHours.Value), 0 )
    Please help!
    Edit: Please note that i'm not trying to sum a field based on a condition that relates to another column, i just need a sum of 'TotalHours' that are less than or equal to 24, please also note there is another field called category, each category needs a
    sum of the above.
    Regards,
    Marcus
    Plain_Clueless

    Hi Marcus,
    According to your description, you want to count [TotalHours] when the value of this field is less than 24, right?
    In your scenario, you could use the expression like below:
    =Sum(IIF(Fields!TotalHours.Value<=24,1,0))
    Please note don’t put this expression in the detail rows, you could refer to our test results:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.? I want to alter the formatting (i.e., text and/or cell background color), but not cell content.

    Is it possible to apply conditional formatting to a cell (or range) based upon a LOOKUP query to cell values in another sheet.?
    I want to alter the formatting (i.e., text and/or cell background color), but not the content, of the target cell(s).

    Hi Tom,
    Your LOOKUP formula will return a value that it finds in the "other" table. That value can be used in conditional highlighting rules. (Numbers 3 calls it conditional highlighting, not conditional formatting. Just to keep us awake, I guess, but it works the same).
    Please explain what you are trying to do.
    Regards,
    Ian.

  • Case Statements based on a condition.

    Hi All,
    I have 2 EXEC statements independent of each other which is in the if loop. But based on a condition which I check in the query starting I need to mention whether to execute only @Statment1 or only @Statement2 or both @Statment1  and @Statment2.
    Please let me know if this is not clear.
    IF x<y
    BEGIN
    If SearchCondition = 'Search'
    then EXEC(@Statement1)
    else  
    EXEC (@Statement1)
    EXEC (@Statement2)
    END
    set @x = @x+1 
    Can some one please suggest a way.
    Thanks,
    VSP

    First just define the conditional branching, then fill out the dots:
    IF x<y BEGIN
    IF SearchCondition = 'Search' BEGIN
    END
    else BEGIN
    END
    ELSE BEGIN
    END
    set @x = @x+1
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Calculate SUM based in condition in iTAB

    Hi all,
    I have the ITAB as follows.
    wa_mseg-mblnr = '5000000130'.
    wa_mseg-mjahr = '2008'.
    wa_mseg-bwart = '901'.
    wa_mseg-dmbtr = '00000005000'.
    wa_mseg-bpmng = '00000000100'.
    wa_mseg-ebeln = '1059200855'.
    wa_mseg-ebelp = '00010'.
    APPEND wa_mseg to itab_mseg.
    wa_mseg-mblnr = '5000000131'.
    wa_mseg-mjahr = '2008'.
    wa_mseg-bwart = '902'.
    wa_mseg-dmbtr = '00000002500'.
    wa_mseg-bpmng = '00000000050'.
    wa_mseg-ebeln = '1059200855'.
    wa_mseg-ebelp = '00010'.
    APPEND wa_mseg to itab_mseg.
    wa_mseg-mblnr = '5000000132'.
    wa_mseg-mjahr = '2008'.
    wa_mseg-bwart = '901'.
    wa_mseg-dmbtr = '00000002500'.
    wa_mseg-bpmng = '00000000050'.
    wa_mseg-ebeln = '1059200855'.
    wa_mseg-ebelp = '00010'.
    APPEND wa_mseg to itab_mseg.
    now i want to add the BPMNG for the BWART = 901
                                   DMBTR   for the BWART = 901
    ans same thing  for the BWART = 902.
    how do i calculate the SUM based on condition.

    now i want to add the BPMNG for the BWART = 901
    DMBTR for the BWART = 901
    ans same thing for the BWART = 902.
    how do i calculate the SUM based on condition.
    Hi, you can loop de internal table and do a control cut by "bwart". For doing that the order of the fields of your internal table must change.
    If you have:
    1st.mblnr
    2nd.mjahr
    3rd.bwart
    you have to change to:
    1st.bwart
    2nd.mblnr
    3rd.mjahr
    So in the loop you will can do like this.
    loop at itab.
    aux_sum = itab-BPMNG + aux_sum.
    at end of bwart.
    * Here you will have de SUM for BWART.
    * Then you clear aux_sum for the next different BWART.
    endat.
    endloop.
    hope this help you.
    Andrew83

  • Column value coloring Based on the condition in ssrs 2008

    Hi,
    I need to change color formating based on below conditions
    Red if <=28 days or > 65 days       
    Green if >28 and <=60 days       
    Yellow if > 60 days and <=65 days
    <=0 No color
    I tried with below IIF condition it's not working.
    =iif(Fields!HDSI13.Value<=0,
    "No color",iif((Fields!HDSI13.Value<=28
    or Fields!HDSI13.Value>64),"Red",iif((Fields!HDSI13.Value>29
    and Fields!HDSI13.Value<=60),"Green",iif((Fields!HDSI13.Value>60
    and Fields!HDSI13.Value<=65),"yellow",Nothing))))
    Can any one help me on this.
    Thanks,
    Manasa.
    Thank You, Manasa.V

    hi all,
    When i wrote like this in table report ...woking fine.
    =iif(((Fields!HDSI13.Value<=28
    and Fields!HDSI13.Value>0)
    or Fields!HDSI13.Value>64),"Red",iif((Fields!HDSI13.Value>=29
    and Fields!HDSI13.Value<=60),"Green",iif((Fields!HDSI13.Value>=61
    and Fields!HDSI13.Value<=65),"yellow",iif(Fields!HDSI13.Value<=0,"Nocolor",""))))
    Thank You, Manasa.V

  • Display an image based upon condition A

    I am displaying layers based upon windows username. If User B, then Layer B. If Username A, then Layer A. etc. Do you see that is compatible with Acrobat Reader 9? It would appear as if the OCG methods will not work as Reader doesn't support the setIntent OCG object Maybe with another function like backgrounds or watermarks?
    The only thing the layer contains is a picture. Can we get the pictures to display using another method other then OCG?
    Please advise.

    You can place a picture as a button icon. You can also show/hide buttons with JavaScript.
    George

  • Using SQL Loader to insert data based on conditionally statements

    I would like to use sql loader to insert records from a single text file into an Oracle database table. Sounds easy but the problem is that I need to check the existence of data in another table (Table A) before data can be loaded into Table B.
    Table A has two columns: dept_no (primary key value) and dept_name (char)
    Table B has five columns: emp_no (primary key value), dept_no (foreign key value to Table A), employee (char), job_title (char) and salary (number)
    Text File looks like this:
    Finance Jones President 10000
    HR Smith Admin 2000
    HelpDesk Jenkins Technician 3000
    Problem:
    1. I need sql loader to insert records into Table B by first checking if the first field in the file is in Table A.
    2. If value exists get it's dept_no value.
    3. If value doesn't exist discard record ( I might want to have sql loader insert a new record for this into Table A)
    4. Using value from #2, insert the value in Table B for dept_no column.
    5. Also assign a sequence value for the emp_no value in Table B.
    Any guidance is greatly appreciated.
    Thanks,

    Hello,
    I am not sure this is possible with SQL loader. I would rather use an external table based on your file.
    Then, I would use SQL to load your data into your table, based on your conditions.
    Your request is not very complicated, writing the SQL to do that will be really more simple than trying to do it with SQL loader.
    Hope it will help.
    Regards,
    Sylvie

  • Advance Aggregation based on multiple conditions

    Hi members,
    I have a situation where I need to aggregate data based on multiple conditions. Relevant details of the problem is as follows.
    There is a table (let's call X). It has following columns:
    Transaction_Time (date)
    Transaction_direction (Possible values IN or OUT)
    Column_1
    Column_2
    Based on the columns: Transaction_direction, Column_1, Column_2, the type of the transaction will be derived. For example, if transaction_direction='IN' then transaction type is IN, if 'OUT' then transaction types are Out. Similarly if Column_1=Column_2 then transaction type is Txn_3 otherwise 4.
    Based on date and transaction types the aggregation will happen.The sample output would be:
    Time, Transaction type (IN, OUT, Txn_3, Txn_4), Sum of transactions
    10-June-2013 00:00  IN Transactions  2500
    10-June-2013 00:00  Txn_3 Transactions 3590
    and so.
    IN and Out transactions are easy to be derived using decode() function. However avoiding multiple UNION ALL and write a single SQL for all four conditions is tricky one.
    Hope I clarified.
    Neeraj

    What version of Oracle are you using?
    If you're on 11.x you can use the UNPIVOT feature as follows:
    with t (Transaction_Time, Transaction_direction, Column_1, Column_2) as (
    select date '2013-06-10', 'IN', 1, 1 from dual union all
    select date '2013-06-10', 'IN', 2, 2 from dual union all
    select date '2013-06-10', 'IN', 1, 2 from dual union all
    select date '2013-06-10', 'IN', 3, 4 from dual union all
    select date '2013-06-10', 'OUT', 3, 3 from dual union all
    select date '2013-06-10', 'OUT', 3, 4 from dual
    select * from (
    select
      transaction_time
    , sum(case when transaction_direction = 'IN' then 1 end)  as IN_count
    , sum(case when transaction_direction = 'OUT' then 1 end) as OUT_count
    , sum(case when Column_1 = Column_2 then 1 end)           as Txn_3_count
    , sum(case when Column_1 != Column_2 then 1 end)          as Txn_4_count
    from t
    group by transaction_time
    unpivot (
      txn_count for transaction_type in (
         IN_count as 'IN'
      ,  OUT_count as 'OUT'
      ,  Txn_3_count as 'Txn_3'
      ,  Txn_4_count as 'Txn_4'
    order by transaction_time, transaction_type
    TRANSACTION_TIME TRANSACTION_TYPE TXN_COUNT
    2013-06-10       IN               4      
    2013-06-10       OUT              2     
    2013-06-10       Txn_3            3      
    2013-06-10       Txn_4            3      
    If you're okay with getting one row per date with the 4 counts you can just use the inner select above, i.e.
    select
      transaction_time
    , sum(case when transaction_direction = 'IN' then 1 end)  as IN_count
    , sum(case when transaction_direction = 'OUT' then 1 end) as OUT_count
    , sum(case when Column_1 = Column_2 then 1 end)           as Txn_3_count
    , sum(case when Column_1 != Column_2 then 1 end)          as Txn_4_count
    from t
    group by transaction_time
    order by transaction_time
    TRANSACTION_TIME IN_COUNT OUT_COUNT  TXN_3_COUNT  TXN_4_COUNT
    2013-06-10       4        2          3            3      
    If you want to sum transaction amounts then use the same logic, except in the case statements replace 1 with the column you want to sum.
    Regards,
    Bob

  • Data Selection for report based upon a 'Prompt Value'

    I want to report information in my report based upon a 'user input prompt value'
    for example:
    'Enter Shareholder Selection - A-Active, I-Inactive, B-Both Active and Inactive'
    if the user enters 'A', the report selects only active shareholders
    if the user enters 'I', the report selects only inactive shareholders
    if the user enters 'B' the report selects all shareholders, active and inactive
    the field in the database that this based upon is their total share value.
    if this field is greater than zero (>0) they are considerd 'active'
    if this field is equal to zero (=0) they are considered 'inactive'.
    I have tried creating some type of filter,  but am not having any luck. 
    I saw a few examples within the forums that I have tried without any luck....unfortunately most of the examples I've seen are base one only two choices.
    I'm sure I need to create some type of 'independant varible' but am not sure how to do that either.
    Any suggestions would be appreciated.
    Thanks.

    Hi Daryl,
    I Tried this unsuccessfully in DESKI . We can't Eliminate Rows having Empty Measure Values or Measure with 0 as values using Table Level Filter as FIlter can't FIlter rows based on Prompt value selection dynamically. Filters filter rows at a time and not based on 3 condition as Active, Inactive and Both. thus filters are of no use.
    I Tried this in WEBI, and it is working perfectly you donu2019t have to create any Object in Universe, you can do it using function UserResponse() at report level.
    Hence if you are comfortable using WEBI for Generating this report then Follow the steps.
    1. Create Report With Name and Shares Object. It will display all Shareholder Names and No.of shares they hold.
    2. Use Status Object in Query filter, use condition as u201CEqual Tou201D and Select prompt. It  contains Active, Inactive and Both as values.
    3. Report will Display all Shareholder names and No. of  shares  like 45, 789, 0, 4562 where 0 is inactive Shareholder and all other are active shareholder.
    4. Create Variable using Formula.
    =If(UserResponse("Enter Status:")="Active" And [Shares]>0;[Shares];If(UserResponse("Enter Status:")="Inactive" And [Shares]<=0;[Shares];If(UserResponse("Enter Status:")="Both";[Shares])))
    5. Remove Shares Object from the report and Put Variable created with Names of Shareholders.
    6. Select Table-> Properties-> Display-> Uncheck the Option u201CShow Rows with Empty Measure Valuesu201D
    7. Report will display Value correctly as per your Prompt value selection.
    I Hope this Helpsu2026
    Thanksu2026
    Pratik

  • Using conditional statements stored inside a variable

    I'm trying to store the body of different emails inside of my
    database to use in email sent with cfmail. The content of the
    emails has conditional statements using cfif and other variables
    based on a query running. If I set the content as a variable and
    then place that inside of the cfmail tag it does not process the
    cold fusion code. Is there a way that I can process this code so
    that the final output is what is placed within the cfmail tag or is
    it not possible to do what I'm trying to accomplish? Thanks in
    advance for any ideas.

    Here is a sample taken from the text file. The output created
    by the cfsavecontent tag is identical to the text file.
    Dear <cfif IsDefined(GetData.strFirstName) AND
    GetData.strFirstName IS NOT
    "">#GetData.strFirstName#<cfelse>Member</cfif>,
    Thank you for joining xxxxxxxxx. We're glad to
    have you as a member and appreciate your support. Your
    membership
    application has been processed and your member packet will
    arrive soon.
    Your new membership number is #GetData.strCustomerID#. This
    number is useful
    when buying product from our online store, renewing your
    membership or
    contacting us with questions or comments.
    <cfif GetData.ExpirationDate IS "9999-12-1">We are
    especially grateful for your commitment to xxxxxxxx
    through your Life Membership.<cfelse>Your membership is
    current through #DateFormat(GetData.ExpirationDate, "MMMM
    YYYY")#.</cfif>

  • How to use return value from TestComplete ( using COM) as a variable in the conditional statement (e.g. while loop) in TestStand

    Hi,
    I have setup a COM interface for TestStand(TS) to run certain scripts in TestComplete (TC).  Normally, when TestComplete finishes executing the script, it returns a 0 or 1 to denote pass/fail in the TestStand step (e.g String value test step).  This worked fine.
    However, now I need TestComplete to return a vaule( e.g 32) to TS, and TS need to evalue this value in a while statement. So if TC return value is 32, I'd have some statement in TS ike :                                                                                                 
    While (return value != 30)
    Do something..
    Thanks,
    Solved!
    Go to Solution.

    There are a hundred ways to implement what you are asking.  The hard part is deciding which one would be the best for you.
    What adapter are you using to communicate with TestComplete?  ActiveX?  Is TestComplete running asynchronously (in parallel)?  If so then how is the data getting back to TestStand?
    So here are some options:
    1. You can use the While Step type.  It's in the Flow Control folder in your Step Types pallette.  Look in your examples under UsingFlowControlSteps.seq in the SequenceFlow
    2. You can loop on a step and have the termination for the loop be (return value == 30).  Look in the Step Properties under Looping.  Also in the TestStand help
    3. You could do Post Actions based on a condition and have it jump to another step.  Read about it in the TestStand Reference Manual.
    4. You could use a GoTo step.  I don't really recommend this one.  It makes code hard to maintain.  Also an example in SequenceFlow called gotobeep.seq.
    Hopefully this gets you thinking.  Let me know if you have specific questions about any of these methods.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Got action sequence to "loop" but it shows in all states - conditional statement to fix it?

    Using Flash Catalyst & Notepad (to open and alter the code in the "Main" MXML file) I'm able to "loop" an action sequence on the home state for my swf by changing the code as follows:
    ORIGINAL CODE
    <s:Parallel id="Sequence3">
    ALTERED CODE
    <s:Parallel id="Sequence3" effectEnd="Sequence3.play()">
    The desired effect is a sequence (of 4 images) that loops whenever a user is viewing the home state.  It is activated "On Application Start"
    The PROBLEM is that the loop continues in all other states (it appears in the background - behind the objects that are supposed to show up on the other pages and only begins to show up in each state when the sequence begins another loop).
    I am assuming I need a conditional statement --- something along the lines of:
    while (condition){ statements;}
    ...in other words, ONLY while currentstate = "Home" it should loop the sequence. What would be the correct code for this conditional statement and where would the conditional statement be inserted to loop the sequence as desired???  Or... is there another better way??
    My current code for this action sequence is:
    <s:Parallel id="Sequence3" effectEnd="Sequence3.play()">
                <s:Parallel target="{designlayer1}">
                    <s:Fade alphaTo="0" duration="500" startDelay="2100"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage2}">
                    <s:Fade alphaTo="0" startDelay="2100"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage3}">
                    <s:Fade alphaTo="0" startDelay="2100"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage4}">
                    <s:Fade alphaTo="0" startDelay="2100"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage5}">
                    <s:Fade alphaTo="0" startDelay="1650"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage6}">
                    <s:Fade alphaTo="0" startDelay="1800"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage7}">
                    <s:Fade alphaTo="0" startDelay="1950"/>
                </s:Parallel>
                <s:Parallel target="{designlayer5}">
                    <s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
                    <s:Fade alphaTo="0" startDelay="5300"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage8}">
                    <s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
                    <s:Fade alphaTo="0" startDelay="5350"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage9}">
                    <s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
                    <s:Fade alphaTo="0" startDelay="5350"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage10}">
                    <s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
                    <s:Fade alphaTo="0" startDelay="5350"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage11}">
                    <s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
                    <s:Fade alphaTo="0" startDelay="4750"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage12}">
                    <s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
                    <s:Fade alphaTo="0" startDelay="5000"/>
                </s:Parallel>
                <s:Parallel target="{designlayer6}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
                    <s:Fade alphaTo="0" startDelay="7900"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage13}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
                    <s:Fade alphaTo="0" startDelay="7550"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage14}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
                    <s:Fade alphaTo="0" startDelay="7900"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage15}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
                    <s:Fade alphaTo="0" startDelay="7750"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage16}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
                    <s:Fade alphaTo="0" startDelay="7900"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage17}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
                    <s:Fade alphaTo="0" startDelay="7900"/>
                </s:Parallel>
                <s:Parallel target="{designlayer7}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
                    <s:Fade alphaFrom="1" alphaTo="0" startDelay="11000"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage18}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
                    <s:Fade alphaFrom="1" alphaTo="0" startDelay="11000"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage19}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
                    <s:Fade alphaFrom="1" alphaTo="0" startDelay="11000"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage20}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
                    <s:Fade alphaFrom="1" alphaTo="0" startDelay="11000"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage21}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
                    <s:Fade alphaFrom="1" alphaTo="0" startDelay="10650"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage22}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
                    <s:Fade alphaFrom="1" alphaTo="0" startDelay="10800"/>
                </s:Parallel>
            </s:Parallel>
    Thank you!!!!!!!!

    Figured out my issue...
    I had to select each layer for the 4 photo sequence and "Remove From State" for each layer.  If this is done with all layers except the "Home" state, the images show only where appropriate.
    So...   "Loop an action sequence" is really easy.
    I've seen a lot of complaining that "FC can't do it" but with a very simple code mod, I was able to do it WITHOUT using the video timer method.
    I should also mention that I've never worked with Flash at all before this project and am only self-taught in HTML (basics).  I was able to make a pretty good looking Flash component for a web site and never would have attempted it without FC.  I have to say, while FC is a bit limited, GUI-based Flash is a great add for Adobe and will save me over $2k per year in web admin.
    To edit the document in Notepad as mentioned in the first post:
    the full text can be found here http://www.judahfrangipane.com/blog/2010/09/03/flash-catalyst-jailbreak-for-flex-developer s/
    Editing MXML Documents
    To edit your projects MXML documents we first need to find the path to  the Flash Catalyst workspace. To do this publish your Flash Catalyst  project (CMD / CTRL + ENTER). Now, the browsers URL shows the path to  the project workspace. So in this URL,  "file:///Users/judah/Library/Application Support/Adobe/Flash  Catalyst/workspace/Project/bin-debug/Main.html", the project MXML  documents are located at, "file:///Users/monkeypunch/Library/Application  Support/Adobe/Flash Catalyst/workspace/Project/" when on a Mac.
    Flash Catalyst project files
    Project Files Description
    /src - location of the application source files
    /bin - the location of any additional flex libraries
    /bin-debug - location of testing swf
    /html-template - location of the html template that wraps around your application
    /src/Main.mxml - the main application file. make your application changes here
    /src/Main.css - the css stylesheet of the main application
    /src/components - the location of custom components and component skins
    /src/assets/graphics - location of optimized FXG graphic symbols
    /src/assets/images - location of images
    You can edit these XML documents in any text editor. To apply the  changes you need to save the file and refresh the Flash Catalyst  project. You can do this by opening the changed document in Flash  Catalyst code view. When we do this it will recognize the document has  changed and prompt you to use the newer version of the file. Select Yes.  If the project does not rebuild immediately publish it using CMD +  Enter.

  • Can't get a text field to atuo populate based upon a dropdown selection

    I have a drop down box with 3 values that can be selected:
    Dropdown2 = 101-3 subd.A
                          101-3 subd.B
                          101-3 subd.C
    I am trying to get a text field to auto populate based upon the selection:
    if Dropdown2 = 101-3 subd.A then Text4 = "ValueA"
    if Dropdown2 = 101-3 subd.B then Text4 = "ValueB"
    if Dropdown2 = 101-3 subd.C then Text4 = "ValueC"
    I have tried to create a custom calculation script for Text4:
    var v= getfiled("Dropdown2").value;
    if (v="101-3 subd.A") event.value = "ValueA";
         else if (v="101-3 subd.B") event.value = "ValueB";
         else if (v="101-3 subd.C") event.value = "ValueC";
         else event.value = " ";
    I have entered this script and the syntax appears to be correct.(At least to Acrobat XI.  I'm know programmer and have just enough knowledge to be dangerous).  When I select a value in Dropdown2 nothing happens.  No value appears in Text4.  I have checked the "commit selected value immediately" in the option of Dropdown2 per some google'ing.  I just can not understand why the values do not appear.  Any help would be appreciated.
    Thanks

    I made the changes and added the == to my if statements.  When I select a value in Dropdown2, Nothing appears in Text4.  I don't understand.  Is there something else that I need to do beside event.value="Some Value";?
    I know it has to be something simple that I am missing, but I just can't seem to see it.
    Text4 - Custom Calculation Script:
    var v= getfiled("Dropdown2").value;
    if (v=="101-3 subd.A") event.value = "ValueA";
         else if (v=="101-3 subd.B") event.value = "ValueB";
         else if (v=="101-3 subd.C") event.value = "ValueC";
         else event.value = " ";

  • How to update the price based upon PGI date

    Hi
            I have issue of updation of the Prices and freight based on PGI date in the billing we are using the two billing types for the excsies and tax invoice creation .And in the copy control pricing type is maintained Aas "C" for the billing types with single delivery but someHow MRP in the excise billing has been picked from the condition record thats validity is ended and in Tax invoice it picks up the correct prices
    Both pricing condition types has pricing type "B" from Billing date and in the freight we have maintained as "A" SRD
    But for the some cases specially for the excise related part that is based upon the MRP we are facing this issue
    Pricing date is some how coming from sales document
    Please find the problem details in the attachment

    Hi,
    if you see two condition tabs snap shots you can understand clearly because that two invoices has been created in two different dates and you have maintained the pricing date C-billing date ( KOMK-FKDAT).Due to this,the price of ZMRP is coming differently.After you creation of first invoice then you would have changed ZMRP amount.Now while you are creating second invoice ,system has taken new price of ZMRP in billing level.
    Note:While creating second invoice, PGI date might have come into billing level but someone would be changed billing date manually at header level of billing document.Please check that one also.
    Kindly let me know if you need further help on this.
    Thanks,
    Naren

Maybe you are looking for

  • How to recover from a hung softwareupdate process?

    Hello, This weekend I ran software update via the Server Admin tool on all the nodes in a small cluster of eight Xserves (one master, seven cluster-style nodes). They are all dual processor G4 Xserves with 1 gig of ram, upgrading from 10.4.8 to 10.4.

  • Serious VM Bug

    Hi ppl, In all those years working with Java its the first time I cant find help in internet or in my friends. Im getting a serious trouble in my application that generates the following log: # An unexpected error has been detected by Java Runtime En

  • Itemrenderer in datagrid

    i've the following datagrid code: <mx:DataGrid  id="empdg"   dataProvider="{employeeService.lastResult.employees.employee}"   width="40%" editable="true" itemClick="addRow(event)"> <mx:columns> <mx:DataGridColumn headerText="Reportees" editable="fals

  • Transaction Type for BAPI (fbo1)

    Hi, I am using FM 'BAPI_ACC_DOCUMENT_POST' to post the invoice,when i try to pass asset no bapi requires transaction type.can you any body help me out this thanks, gopal.

  • Invoice not to be passed more than once .

    hello how can i make setting in system that , invoice cannot be verified twice  and system shows a message that invoice already passed . we follow gr based invoice verification . thanks ' vijay