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

Similar Messages

  • Display image based on conditions.

    Hi every one.
    We have to display image (circle) based on three conditions.
    Example; if employee is < 1000 small circle, if salary is > 1000 and < 10000 medium size circle and >10000 big size circle.
    And second condition if employee location is East coast fill black color in that circle, west coast red color central green color.
    Third condition is if employee joining date is less than two years I should display * (Star symbol) in that circle.
    I am trying to create conditional format but it is possible to display only one image .
    My question is how can I change size and color if the image based on conditions and display start symbol with in the image.
    I think I have to create different own images to display for every conditions.
    Is there any way to create my report?
    Thank you very much for your time and help.

    Hi,
    If you want to display everything in one image for end user you need to do some trick.
    sal orginal     region orginal      Joining date     Sal decode value     Region decode value     Joining date decode value      ImageCode
    100     east     20\2\2008     1     10     100     111
    200     WEST     20\2\2008     1     20     100     121
    300     NORTH     20\2\2009     1     30     200     211
    300     NORTH     20\2\2008     1     30     100     131
    100     east     20\2\2008     1     10     100     111
    2000     west     20\2\2009     2     20     200     222
    30000     south     20\2\2009     3     40     200     243
    Create few more columns in your answers, as following
    Salary decode value: based on your original salary decode it to 1 or 2 or 3
    region decode value: based on your regions decode it to 10 or 20 or 30 or 40
    joining date decode value: based on joining date decode it to 100 or 200
    Image code add all of decoded values ie 1+10+100 = 111
    In report show image based on image code
    i.e from above table row1 image code is 111 (small black circle), last record BigCircle Red with Star.
    Pain full thing is you need to create 24 images on your own(3(salary range)*4(regions)*2(join dates) =24) and place all 24 conditions in that column.
    --Hope it helped you
    Thanks
    Srinivas Malyala

  • How to give color to the display of keyfigure based on condition using exception.

    Dear Friends.
       I am trying to color "BAD3" in exception based on condition but my problem is in exception I can have only formula variable to compare the value, How to assign a value to formula variable in BEx Query designer.
    What I am trying to do is :
       in Query designer :
       I have PO Quantity and Delivered Quantity. 
      if PO Qnantity > Delivered Quantity
        then Delivered Quantity field should be colored as "BAD3" in exception.
    but here proble is in exception
      I have alert level , operator, and  value fields for Delivered Quantity keyfigure ( Under definition tab - Exception is defined on = Delivered Quantity ).
    but for value field I dont have PO Quantity for that I have to supply one formula variable,
    When I created a forumula  and did this way
    FV_PO_QUANTITY = PO_QUANTITY formula editor throws errors. I dont understand How to assign a value of key figure to formula variable and use it in EXceptions.
    Please help me How I can solve my problem
    I will greatly appreciate your any help.
    Thanking you
    Regards
    Naim

    Thank you so much for your replies,
      I did following way and it helped me to solve my issues.
      I created one formula and under formula I use boolean < funtion to compare the values.
    like following way.
    ( 'PO Quantity' > 'Delivered Quantity' ) * ( FV_PO_QNT + PO_QUANTITY')
    here fv_po_qnt is formula variable I supply that variable to exception and since I have the value in it.. it compares with Delievered Quantity value and colored the perticular cell.
    Thanks again for your replies
    Regards
    Naim

  • Adobe form- Images based on conditions

    HI Experts,
    I have to put 2 logos which are based on company codes.
    Logo1 condition:- Standard Logo for each company code except for BREEZ, where the MAIN standard logo will be placed.
    Logo2 condition:-  Standard Logo for BREEZ, if other company code no logo will be displayed.
    where to do coding for the same
    Do i need to upload the logos or we reach it with scripting.
    Regards,
    Nik

    hi
    you can write code logic in the interface used in the adobe form.
    in the interface screen, below you will have two tabs, select the conditions tab and pass the condition variable, use the availabe operators and thus the logic for the logo can be set in 'form interface'.
    check this link:
    saptechnical->Tutorials->AdobeForms->Exercise1
    regards
    mano

  • How to not display certain items based upon certain criteria (Edit Form)

    I have a Edit form which was created from an interactive report I generated.
    There are 10 item fields which are listed which can be changed.
    Sometimes I want to see just 9 of the fields on the form based on what the value is of another field in the record.
    When I display the fields on the Interactive report I can filter this out by using a case statement, but how
    do I do this with the edit form as the query is not there.
    Thanks for your time in advance,
    Anon

    Use Conditions to control whether the item appears or not.
    In the item definition is a Conditions section where a large number of different types of condition can be used to determine whether the item is rendered. These include comparisons of the value of the item, or another item, items being null, and a lot of other options. Conditions are widely used throughout APEX&mdash;sometimes in subtle or noninuitive ways&mdash;so it's worthwhile studying how they're used.

  • To get the sum of column of SAPScript based upon condition

    Hi,
    I was first asked to get two new columns in ZF140_ACC_STAT_01 script with ZRFKORD10 print program. I did so by the writing the below code. Now, based on Document-Type (RV,DR,DZ,SA), all the amount with same Document Type are needed to be summed and assigned to separate variables.
    How to get that done????? Please help me out.
    PRINT-PROGRAM:-
    FORM sep_amt_open TABLES in_par STRUCTURE itcsy
                         out_par STRUCTURE itcsy.
    DATA: wf_temp_amt_open TYPE string,"rf140-wrshb,
           amount_open TYPE string,
           amt_shkzg_open TYPE bsid-shkzg,
           doc_desc TYPE t003t-ltext.
    READ TABLE in_par WITH KEY name = 'RF140-BELEGNUM'.   " document no
       IF SY-SUBRC = 0.
       SELECT SINGLE SHKZG FROM BSID INTO (amt_shkzg_open)
         WHERE BELNR = IN_PAR-VALUE.
    ENDIF.
    READ TABLE in_par WITH KEY name = 'T003T-BLART'.     " document description
       IF sy-subrc = 0.
        SELECT SINGLE LTEXT FROM T003T INTO (doc_desc)
          WHERE SPRAS = 'E' AND BLART = IN_PAR-VALUE.
       IF sy-subrc = 0.
         READ TABLE out_par WITH KEY name = 'DOC_DESC'.
          IF SY-SUBRC = 0.
            OUT_PAR-VALUE = DOC_DESC.
            MODIFY OUT_PAR INDEX SY-TABIX.
          ENDIF.
       ENDIF.
      ENDIF.
      READ TABLE in_par WITH KEY name = 'RF140-WRSHB'.    " Amount
        IF sy-subrc = 0.
         wf_temp_amt_open = in_par-value.
       ENDIF.
      call function 'CONVERSION_EXIT_ALPHA_INPUT'
        exporting
          input         = wf_temp_amt_open
       IMPORTING
         OUTPUT        = amount_open
    IF amt_shkzg_open = 'S'.
        READ TABLE out_par WITH KEY name = 'DEBIT_OPEN'.
         IF SY-SUBRC = 0.
           out_par-value = amount_open.
           MODIFY out_par INDEX sy-tabix.
           CLEAR out_par.
         ENDIF.
    ELSEIF amt_shkzg_open = 'H'.
        READ TABLE out_par WITH KEY name = 'CREDIT_OPEN'.
         IF SY-SUBRC = 0.
           out_par-value = amount_open.
           MODIFY out_par INDEX sy-tabix.
           CLEAR out_par.
         ENDIF.
      ENDIF.
    ENDFORM.
    SAPSCRIPT:-
    /:DEFINE &DEBIT_OPEN& = ' '
    /:DEFINE &CREDIT_CLEAR& = ' '
    /:DEFINE &DOC_DESC& = ' '
    /:PERFORM SEP_AMT_OPEN IN PROGRAM ZF27_DRIVER_PROGRAM
    /:USING &RF140-BELEGNUM&
    /:USING &T003T-BLART&
    /:USING &RF140-WRSHB&
    /:CHANGING &DEBIT_OPEN&
    /:CHANGING &CREDIT_OPEN&
    /:CHANGING &DOC_DESC&
    /:ENDPERFORM
    T1 &RF140-BELEGNUM&,,&BSID-BLDAT&,,&T003T-BLART&,,&BSID-WAERS&,,&DOC_DESC&
    =  ,, &DEBIT_OPEN&,,&CREDIT_OPEN&,,
    T1 ,,&BSID-SGTXT&
    Thanks & Regards,
    Rakesh Nair

    If you are mentioning about table/advanced table region you can enable totalling in those regions. Please check the Table / Advanced Table section as appropriate in Chapter 4 of the dev guide.
    If it is not a table / advancedTable then you will have to programmatically total the column value and display it in the appropriate cell.

  • How to disable and enable Check box based upon condition

    Hi,
    I wants to disable/hide the check box field before the required field is filled.   Kindly help me

    Hi Mohammed,
    Try to use customize InfoPath form, add rules. Go to list tab, click customize Form, then this opens the list form in InfoPath
    format.
    1.Select the check box field control, click add rules, select if is blank, show validation error action.
    2.Then go to conditions, click column name is blank, change it to the required column you want.
    3.Go to rule type, click validation, change it to formatting, select hide this control.
    4.Publish the InfoPath form.
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • Group by based upon condition

    Database : SQL Server 2000 Enterprise Edition
    OS : Windows Server 2003
    Huh?  Every one will ask me why I am posting SQL Server question in Oracle forum ?  I shall reply something like this :
    Actually my friend is SQL Server DBA and he is getting problem to solve the below query.  He asked me to solve in Oracle 9i (Because since he is using SQL Server 2000, so I guess it is almost similar level) and/or through pure SQL; but I am really very poor in SQL (need to read docs more times); I failed to help him.  He just asked me how to solve in Oracle and if it is solve in Oracle then he will try to solve in by looking similar function in SQL Server's functions etc.  Even though, I have posted the question in two SQL Server forums, but probably there is less activity, so I am posting here :
    create table student
    rollno int,
    name varchar(30),
    class varchar(20)
    insert into student values (1,'Robert','IT');
    insert into student values (2,'John','Arts');
    insert into student values (2,'Hussain','IT');
    insert into student values (1,'David','Science');
    insert into student values (3,'Polo','IT');
    insert into student values (2,'Jonathan','Science');
    insert into student values (4,'Joseph','History');
    insert into student values (1,'Richard','History');
    insert into student values (1,'Michel','Commerce');
    insert into student values (1,'Albert','Geography');
    SQL> select * from student;
        ROLLNO NAME                           CLASS
             1 Robert                         IT
             2 John                           Arts
             2 Hussain                        IT
             1 David                          Science
             3 Polo                           IT
             2 Jonathan                       Science
             4 Joseph                         History
             1 Richard                        History
             1 Michel                         Commerce
             1 Albert                         Geography
    10 rows selected.
    SQL>
    Required Output :
    rollno  name        class
    1        Robert      IT
    2        Hussain     IT
    3        Polo        IT
    4        Joseph      History
    Logic behind required ouput : Rollno should be unique from all the classes giving priority to :
    1.IT
    2.Science
    3.Arts
    4.Commerce
    5.Geography
    6.Anyone
    means, if suppose we are going to fetch a unique roll number (x), and if it is exists in all the classes then first it should be from IT, and if it is not in IT class then it should search in Science Class, if it is not in IT and Science class, then it should search in Arts class, if it is not in IT, Science,Arts then it should search in Commerce Class; like wise. All existing roll numbers must be unique from all classes giving priority to IT, Science, Arts, Commerce, Geography and if that unique roll number is not from above 5 classes, then it may be of any one class.
    Kindly let me know, if I am unclear in my question and/or needs to provide more details. Since my friend is using SQL Server 2000, so I would like to request to please help me/him by using simple SQL please.
    Thanks and Regards
    Girish Sharma

    Probably need more test cases:
            SELECT ROLLNO, NAME, CLASS
      FROM (SELECT a.*,
                   RANK ()
                   OVER (
                      PARTITION BY rollno
                      ORDER BY
                         (CASE
                             WHEN class = 'IT' THEN 1
                             WHEN class = 'Science' THEN 2
                             WHEN class = 'Arts' THEN 3
                             WHEN class = 'Commerce' THEN 4
                             WHEN class = 'Geography' THEN 5
                             ELSE 6
                          END))
                      rnk
              FROM student a)
    WHERE rnk = 1;
    ROLLNO NAME CLASS
    1 Robert IT
    2 Hussain IT
    3 Polo IT
    4 Joseph History
    Cheers,
    Manik.

  • Duplicate rows based upon condition

    Oracle 11.2.0.1
    Windows
    create table regsales (billno number,itemno number,paymode varchar2(10));
    insert into regsales values (12345,10,'cash');
    insert into regsales values (12345,11,'cash');
    insert into regsales values (12346,11,'cash');
    insert into regsales values (12347,10,'credit');
    insert into regsales values (12348,14,'cash');
    insert into regsales values (12348,15,'cash');
    insert into regsales values (12345,12,'cash');
    insert into regsales values (12349,10,'cash');
    insert into regsales values (12345,10,'credit');
    insert into regsales values (12350,11,'cash');
    insert into regsales values (12351,12,'cash');
    insert into regsales values (12352,11,'cash');
    insert into regsales values (12350,11,'credit');
    Required Output please :
        BILLNO     ITEMNO PAYMODE
         12345         11 cash
         12345         11 credit
         12350         10 cash
         12350         10 credit
    i.e. in which same billnos same itemno has been sold in cash and credit.
    Thank you.

    Hi,
    So, you need to know how many different paymodes there are in a group of rows.  That sounds like a job for COUNT (DISTINCT ...)
    Here's one way:
    WITH   got_cnt      AS
         SELECT  billno, itemno, paymode
         ,       COUNT (DISTINCT paymode)
                     OVER ( PARTITION BY  billno
                            ,             itemno
                          )  AS cnt
         FROM    regsales
    SELECT    billno, itemno, paymode
    FROM      got_cnt
    WHERE     cnt  = 2
    ORDER BY  billno, itemno, paymode
    Can there be other paymodes besides 'cash' and 'credit'?  If so, the same basic idea will still work, but the details may be a little messier, depending on your requirements.

  • Getting Acrobat to display raster images in pdf's "As Is"

    I hate the way acrobat resamples raster images on a monitor when it's not displaying it at its exact size. It looks like crap, not surprisingly, since it doesn't do resampling using opengl like photoshop does.
    Let's say I create an image for viewing purposes only (I just want a client to open a pdf and be able to view my work as is), I save it as a 900x700 pixel image at 72dpi, but when I open the pdf it will always upscale it even when I edit the document properties and select "actual size" on initial display. I don't want any resizing, as the only way to display the image in pristine condition is if it's showing at its native resolution (ie 900x700 pixels).
    Is there any way to control how a pdf will display an image on a client's machine? Or should I rather just build an offline web page and skip the pdf entirely?

    The format in which a bitmap image is stored has no bearing whatsoever on the size it appears on screen.
    Phillip Jones wrote:
    That may not be so helpful either. Because depending upon Monitor size anything on a web page is Contracted or expanded as well. Example what on say a 27" screen is going to look much different than on a 17"  If its saved as a Jpeg image you will always have this.
    If save as a PNG it will Remain the same shape and detail just get larger or smaller

  • Problems displaying an image on Adobe Reader 8.1.2

    Hi guys,
    We are trying to display a JPG image in an InteractiveForm. So, we set an Image (StaticImage) to be loaded using the following Formcalc script on Page Initialize event:
    StaticImage1.value.image.href = $record.ImageURL
    On our last project, we could display a JPG image with Adobe Reader 6 (with some alert messages), 7 and 8 (7 and 8 fully functional). But in this one, the same solution doesn't work. The unique difference between both solutions is the URL format. Last project displays an image based on a normal URL ("http://app.client.com/photo/1234.jpg"), and in the current project we create a PNG or JPG image based on a JFreeChart, generating an URL to access it ("http://server1:54321/webdynpro/resources/vendor.com/..(long)../graph43211234.jpg").
    When we load it using a computer with Adobe Reader 7.0.x installed, the bellow message is displayed requesting an action:
    "Acrobat is attempting to connect to the site:
    http://server1:54321/webdynpro/resources/vendor.com/..(long)../graph43211234.jpg
    If you trust the site click "Allow", otherwise click "Block".
    Possible actions: Block, Allow and a check "Remember my action for the site: server1"
    Allowing the connection, the images are displayed. But, in a machine with Adobe Reader 8.1.2 installed, sometimes it asks for permission to access the URL, sometimes not. And, in both cases, in this version it doesn't display the images...
    Can anyone shed any light on this? Also, is there a way to block this annoying message?
    Regards,
    Douglas Frankenberger
    P.S.:
    1 - The Image is not marked as Embedded. This option don't seems to make any difference, as on our last project the StaticImage was not flaged as Embed, but the JPG file was embeded in the PDF anyway...
    2 - Interactive Form display type: native. Mode: updateDataInPDF
    3 - In current project, when we set the same image the we had set on the old project, it loads successfully. Also, the generated JFreeChart image is fully accessible when displayed directly in IE using its URL.
    4 - Versions:
      - Client: Windows XP Professional
      - NWDS 7.0.10
      - Adobe Livecycle 7.0.50519.0
      - Adobe Reader: 7.0.8, 7.0.9 and 8.1.2

    Hi Amita.
    We already tried it (checked / unchecked), but it seems to make no difference. There is a strange behavion on this:
    - When I set it checked, on a computer disconnected from the web and running Adobe Reader 7.0.9, it asks for permission to access a resource (as I said before). In this case, even disconnected, it shows up my image independent of allowing/blocking the access to the external resource. In other words, it is embedded (I think...), but continues asking for access anyway.
    - The same scenery above, but using Adobe Reader 8.1.2 instead of 7.0.9.... sometimes it asks for permission, sometimes not. But in both cases, it doesn't display the images...
    Regards,
    Douglas Frankenberger

  • ALV rows coloring based on condition

    Hai ,
    I want Color the rows in the list based on some condition ..
    Hope to get the helpful suggestion s on this asap
    regards,

    Hi shishupalreddy,
    1. Not only the full row color,
      we can also manipulate the color in each cell,
      based upon conditions.
    2.
    IMPORTANT THINGS
    a. Extra field in internal table
    clr TYPE slis_t_specialcol_alv,
    (this field will contain the colour codes)
    b. assign fieldname to alv layout
    alvly-coltab_fieldname = 'CLR'
    c. work area for colour
    DATA : clrwa TYPE slis_specialcol_alv.
    d. Populating the color
    Once again
    Loop at ITAB.
    *********logic
    if itab-field < 0 "---negative
    clrwa-fieldname = 'FIELDNAME'. "<--- FIELDNAME FOR COLOR
    clrwa-color-col = 6. <------- COLOUR 0-9
    APPEND clrwa TO itab-clr.
    MODIFY ITAB.
    endif.
    ENDLOOP.
    5. just copy paste in new program
    6.
    REPORT abc .
    NECESSARY / MUST
    TYPE-POOLS : slis.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA : alvly TYPE slis_layout_alv.
    ITAB DECLARATION
    DATA : prg TYPE sy-repid.
    DATA : BEGIN OF itab OCCURS 0.
    INCLUDE STRUCTURE t001.
    DATA : clname(3) TYPE c,
    clr TYPE slis_t_specialcol_alv,
    END OF itab.
    DATA : clrwa TYPE slis_specialcol_alv.
    PARAMETERS : a TYPE c.
    DATA : flname TYPE slis_fieldname.
    SELECT
    START-OF-SELECTION.
    SELECT * FROM t001
    INTO CORRESPONDING FIELDS OF TABLE itab..
    LOOP AT itab..
    IF SY-TABIX <= 5.
    itab-clname = 'C50'.
    ELSE.
    itab-clname = 'C30'.
    ENDIF.
    MODIFY itab.
    ENDLOOP.
    LOOP AT ITAB.
    check itab-bukrs = '1000'
    clrwa-fieldname = 'BUTXT'.
    clrwa-color-col = 6.
    APPEND clrwa TO itab-clr.
    MODIFY ITAB.
    clrwa-fieldname = 'LAND1'.
    clrwa-color-col = 4.
    APPEND clrwa TO itab-clr.
    MODIFY ITAB.
    ENDLOOP.
    prg = sy-repid.
    flname = 'CLNAME'.
    alvly-info_fieldname = 'CLNAME'.
    alvly-coltab_fieldname = 'CLR'.
    LOOP AT ITAB.
    if sy-tabix = 3.
    clrwa-fieldname = 'BUTXT'.
    clrwa-color-col = 6.
    APPEND clrwa TO itab-clr.
    MODIFY ITAB.
    clrwa-fieldname = 'LAND1'.
    clrwa-color-col = 1.
    APPEND clrwa TO itab-clr.
    MODIFY ITAB.
    endif.
    ENDLOOP
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = prg
    i_internal_tabname = 'ITAB'
    i_inclname = prg
    CHANGING
    ct_fieldcat = alvfc
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    minimum
    *CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    it_fieldcat = alvfc
    TABLES
    t_outtab = itab
    EXCEPTIONS
    program_error = 1
    OTHERS = 2
    extra
    sy-uname = 'XYZAB'.
    prg = sy-repid.
    Excluding
    DATA : excl TYPE slis_t_extab.
    DATA : exclwa TYPE slis_extab.
    exclwa = '&OUP'.
    APPEND exclwa TO excl.
    exclwa = '&ODN'.
    APPEND exclwa TO excl.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    it_fieldcat = alvfc
    i_callback_program = sy-repid
    is_layout = alvly
    i_callback_user_command = 'ITAB_USER_COMMAND'
    it_excluding =
    excl
    i_save = 'A'
    TABLES
    t_outtab = itab
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    *& Form itab_user_command
    text
    -->WHATCOMM text
    -->WHATROW text
    FORM itab_user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
    slis_selfield.
    BREAK-POINT.
    ENDFORM. "itab_user_command
    regards,
    amit m.

  • How to conditional display Report Region based on number of rows returned

    I have a page with two Report Regions.
    One Region should display if the Query returns 0-1000 rows. The other should display if the same Query returns more than 1000 rows.
    The only way I can figure out how to do this is have ANOTHER query in the conditions field for each Region to Select count(*) from etc.
    I know there is a #TOTAL_ROWS# value but that is only available after the Region is displayed. Is there some other built-in variable that can be used to put in the Conditions field or is doing duplicate SQL queries the only way?
    Any help would be appreciated.

    Rather than running your query 4 times (by embedding it in your condition), you can have a region that is not displayed, with a hidden item, and set the value of the item in a before header computation to the count of your query. Now you can conditionally display based upon the value of that item.
    -- Sharon

  • Selectively display link based upon userID

    I know how to add security to tabs, etc. in Portal, but I have a jsp portlet that contains various links and images. I want to selectively display some of these items based upon the user currently viewing the page. Is it possible to add security at this level?
    Thanks in advance.

    The links and images on the jsp portlet are not Portal items, I do not think you can use portal security to
    secure them. But for links and images on portal pages, each of them can be secured.
    Why not create a page, put your links and items to it, and set the item level security. Then expose the page
    as a portlet, this page portlet can be include on other pages.

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

Maybe you are looking for