Dynamic Formatting

I am interested in creating a report that allows the columns and format of those columns to change dynamically.
For example in one instance the report would contain 3 columns
Name, Address, Phone Number
In this example we may want to highlight the Name column
In another instance the report could contain 2 columns:
Oder Id, Credit Card Type
In this example we don't want any highlighting
In another instance the report would contain 4 columns:
Name, Order Id, Payment Amount, Account Status
In this example we want to display the words GOOD if the Account Status column = 1 and Bad if the Account Status = 0
We have mocked up a report using the Cross Tab type however I am not able to dynamically format each column when the report runs.
I know I could create six separate reports however, that leaves me in a bad position when upgrading the report(s). Also if I need to introduce another report I have to create and maintain yet another report.
Any help would be appreciated.

Hello Wayne;
I'm not sure if you actually want to work with a crosstab report or if that is an idea you have re. the modification. If it is a crosstab, you want to have a look at [this|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note. The note discusses the RAS SDK, but RAS is way more featured than CR, so same applies for CR.
Other than that, if you want to vary the number of columns in a non crosstab report, you'd have two choices;
1) RAS SDK. See the sample links in [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples] wiki (Report Modification heading)
2) Using CR SDK. You'd create a report with a number of empty formulas. Then at runtime populate the formulas with the fields;
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Public Class Form1
Inherits System.Windows.Forms.Form
Dim Report As New CrystalReport1()
Dim FormulaFields As FormulaFieldDefinitions
Dim FormulaField As FormulaFieldDefinition
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FormulaFields = Report.DataDefinition.FormulaFields
FormulaField = FormulaFields.Item(0)
FormulaField.Text = "[formula text]"
CrystalReportViewer1.ReportSource = Report
End Sub
Ludek

Similar Messages

  • Dynamic formatting of Process Success Message

    I have read through some of the threads that have already been raised re dynamic formatting of the process message and haven't seen how/if I can do what I would like.
    I have a form with multiple process buttons which call a package and return an error code and message.
    I then wrote a function to take the error code and message and a couple of other fields to format an appropriate response.
    The process may return successfully but still have the error codes set (or may be null). I did note that could raise_application_error but would still have to go through some process to format the response.
    But when I use the function as the response message it is just treated as a text string.
    So for example I get
    Action Processed.nva_batch_validate.format_response( 'VALIDATE', VALID, , );
    rather than
    Action Processed - Validation Successful
    or
    Action Processed.nva_batch_validate.format_response( 'SUBMIT', 'APPROVED','-20004' , ' Some error with submission' );
    rather than
    Action Processed - Submit failed Some error with submission
    How can I get the Process Success Message to recognize that this is a function not text?
    Or can I have another process which just uses my format_response that would put message into the Action Processed.
    I don't want to have to go done the raise_application_error as I'd have to format the response within each procedure that is called and who knows what other issues this would raise.

    anonymous - Create an item, say P1_MSG and set its value in your page process, after your API calls, like :P1_MSG := Action Processed.nva_batch_validate.format_response( 'VALIDATE', VALID, , );
    Then put &P1_MSG. in the process success message field.
    Scott

  • Dynamic formating in smartforms

    I'm just curious if there is a possible to create a dynamic formatting in Smartforms. What I mean saying dynamic? Lets imaging that I've a strucure where I've following information;
    LINE_NUMBER
    TEXT
    This structure is used to build a table, where I can assign one or more text to one line.
    So my example data in this table will be:
    LINE_NUMBER | TEXT
    1 | my first item
    1 | first item description
    1 | some other text
    2 | second item
    2 | second item extended name
    2 | second item additional text
    2 | second item summary text
    and so one...
    So I can have varying texts number assigned into one line (max 8).
    Now I want to use paragraph, with 8 prepared tabs.
    Now the problem comes, how to pass this texts into tableline inside smartform and do not prepare separate lines for 1,2,3... elements?
    Any idea? It is possible to prepare data in variable which looks like:
    1,,my first item,,first item description,,some other text
    and display this data in such way, that commas will be recognized as tabs formatting in paragraph instead displaying them?

    hi..try this...
    create table->create a line type as required.
    loop at itab containing ur data.
    in the main area of the table create a row:
    right click on main area->table line
    in the output options of the row assign the line type from the drop down. in the condition of the row give the condition wa-LINE_NUMBER = 1.
    similarly create other rows(table lines) giving the conditions 1 to 8.
    that is you will have 8 table lines with conditions:
    row1 condition -> wa-LINE_NUMBER = 1
    row2 condition -> wa-LINE_NUMBER = 2
    row3 condition -> wa-LINE_NUMBER = 3
    row8 condition -> wa-LINE_NUMBER = 8
    so if line_number = 1 then row 1 will be use..
    if its 8 then row 8 will be used......
    inside the rows u can use different text elements with different para formats...

  • HP2000-299 laptop hard drive dynamic format

    Working on a hp2000-299 laptop, restored the hard drive to factory.  Everything works alright. Went to back it up and find the restore is done in the dynamic format which makes it pretty much useless for backing up.
    How does one convert dynamic to basic disk format?.  Is there an option when restoring that i missed?
    Have only come across 3-4 dynamic formats in last 10 years.  Anyway i need to convert it
    Any info welcome

    When you look at the hdd in Windows using Disk Management how is the hdd shown?
    If the hdd shows as dynamic in Disk Management,boot with a utilty cd to convert it. Download the Bootable CD iso here .Get ImgBurn here to burn the image to cd.
    Ghost has always had problems with HP's partitioning scheme in my use,even before the newer 4 primary partition layout but I have seen owners use Paragon with no problems.
    If you haven't burned a Recovery DVD set I would do that before too much messing around with partitions.Changing the hdd partitions will break the F11 recovery function.Create a set of operating system recovery discs
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Regarding dynamic formatting on column

    Hi All,
    i have a requirement from client.
    He selects column from prompt and one of the report column changes dynamically.
    i have to do different data formatting for different column .
    so how to do dynamic formatting on same column that, shows different value on basis of prompt selection.
    Please reply.
    Regards,
    manoj

    Hi Manoj,
    generally you can achieve dynamic changes in your dashboard by creating a presentation variable prompt as part of your dashboard prompt and then using the prompt value to change your report.
    For example, you can create a prompt with values 5,10,25 in it and based on it create a report where you can switch between the top 5,10 or 25 records, depending on your selection.
    Because you did not specify what sort of formatting you require, it is hard for me to be more specific.
    Again, generally, if you cannot achieve the desired effect with Presentation Variables, you should resort to JavaScript, assuming the result is worth the effort.
    Cheers,
    Janis R

  • Dynamic Formatting of jsp

    How do i format elements in a jsp dynamically in a jsp.
    For ex
    <td width=100% colspan=18>
    <%= titleName %>
    </td>Instead of specifying colspan as 18, i want it to automatically adjust according to the length of the word (titleName).
    Thank You

    Use EL.
    colspan=${someDynamicValue}And replace that scriptlet by EL. Writing raw Java code in JSP files is a bad practice.

  • BeX Analyzer 7.0 dynamic formatting

    Hello,
    we have the BeX Analyzer 7.0 and want to format the workbook like highliting the Characteristic names. It is okay when the grid stay as during the formatting. But if someone will change the view by adding anothe characteristic the formatting is lost.
    Is there any way formatting it dynamically.
    And is there any way for many sheets with a lot of data providers refresh the queries seperatly?
    I hope that anyone can help me.
    Kind regards, Manuela

    Hello all,
    In order to keep changes in workbook you must deselect the settings in query designer on query properties display tab "Adjust formatting after refresh".
    Then you set changes to workbook - for example, if you want to set style for hierarchy you must set cursor on a any cell with hierarchy nodes (same for filters or any other element), and then go to excel menu Format -> Styles. Here you will get SAPBex* style depending on a cell on which you are positioned. You can go to modify and change the layout.
    After changing styles, you can go to workbook settings, themes tab, make a new theme, and press button "Apply" to update theme from a workbook. Then press Save to save a theme. After saving theme you must select settings "Apply New Styles" on the same tab.
    Save the workbook, pressing save on Bex toolbar.
    Now the changes should not be lost
    Hope this helps

  • Dynamic Format Input Field

    Hi,
    I have a table and within an input field. Dependent of a flag I would like to set the format dynamically, concret the decimal places:
    row 1 -> no decimals
    row 2 -> decimals allowed
    row 3 -> no decimals
    row 4 -> no decimals
    row 5 -> decimals allowed
    It would be very usefull, that the conversion starts directly without clicking any button or doing any navigation.
    Thanks
    Best regards
    My actual idea: 2 attributes in context node. At runtime I bind the input field to attribute 1 or attribute 2
    But how?

    Stefan Kagelmacher wrote:
    Thanks for answering,
    >
    > this solution works not fine or I do not understand it correctly. I create a node within my node. This new node has supply function and an attribut "MENGE". But how should I format the value? The value of the input field is not moved in supply funktion, value is empty.
    You have to bind the "menge" to your inputfield . This will trigger a supply function. Supply function has parameters like parent and node.
    Get the values from the Parent attributes.. calculate them and set value for menge field.
    Supply function has template code already generated. You only have to modify them.

  • Dynamically format colors in lists

    I would like to dynamically set a color for a single in a list.
    Ie rather than code:
    If var = 'x'. write l_field color col_negative.
    elseif var = 'y' write l_field color col_total.
    elseif var = 'z' write l_field color col_group.
    endif.
    I would like to code it as follows:
    data: l_color(10) type c.
    if l_var = 'x'.
    move 'col_negative' to l_color.
    elseif l_var = 'y' move 'col_total to l_color.
    elseif l_var = 'z' move 'col_group' to l_color.
    endif.
    write: l_field color l_color.
    The color command does not seem to like being passed a variable, rather it has to be told explicitly what the color should be set at.
    Is there a way around this?

    Check this report...You might find it helpfull:
    REPORT Z_ATG_DUMMY.
    DATA I TYPE I VALUE 0.
    DATA COL(15) TYPE C.
    WRITE:/9 'INTENSIFIED ON',27 'INTENSIFIED OFF',48 'INVERSE'.
    SKIP 2.
    WHILE I < 8.
      CASE I.
        WHEN 0. COL = 'COL_BACKGROUND '.
        WHEN 1. COL = 'COL_HEADING '.
        WHEN 2. COL = 'COL_NORMAL '.
        WHEN 3. COL = 'COL_TOTAL '.
        WHEN 4. COL = 'COL_KEY '.
        WHEN 5. COL = 'COL_POSITIVE '.
        WHEN 6. COL = 'COL_NEGATIVE '.
        WHEN 7. COL = 'COL_GROUP '.
      ENDCASE.
      FORMAT INTENSIFIED COLOR = I.
      WRITE: /(4) I, AT 7 SY-VLINE,
      COL, SY-VLINE,
      COL INTENSIFIED OFF, SY-VLINE,
      COL INVERSE.
      I = I + 1.
    ENDWHILE.
    Greetings,
    Blag.

  • Reading a String with dynamic format.

    Hello,
    I'm learning Java and I'm relatively new to the scene. I decided to make a small free utility with the hope that it will help somebody. The utility is a Game Server (Call of Duty 4) connector that will help Administrators to connect to the server and execute commands without the need of running the game.
    I have made a progress so far by searching these (very useful) forums but I came across a point that I can't by pass.
    The only way to learn "Who Is" from the server is the rcon command "status". Using this command the server returns you the current map and the players playing with all their information. This is the part of the code that I need help at:
    public static void StatusReader(String StatusInput) throws IOException {
                     ArrayList line = new ArrayList();
                        BufferedReader br = new BufferedReader(new StringReader(StatusInput));
                       String s = null;
                       int l=0;
                  dokimi = StatusInput.split("\n");
             //    for(int j=0;j<9;j++){
              //        int i=0;
              //        dokimi2 = new String[0][0];
              //        dokimi2[0][0] = dokimi[0];
              //        System.out.println(dokimi2[0][0]);
                  System.arraycopy(dokimi, 0, dokimi2, 0, 1);
                for(int i=0;i<(dokimi.length/9);i++){
                        for(int j=0;j<9;j++){    
                       dokimi2 = new String[i][j];
                       System.arraycopy(dokimi, 0, dokimi2[i][j], 0, 1);
                       System.out.println(dokimi2[i][j]);
             //     while ((s = br.readLine()) != null)
                  //     line.add(s);
                   //  StatusOutput = new String[line.size()][];
                  //     for (int i = 0; i < StatusOutput.length; i++) {
                  //               s = (String) line.get(i);
                       //          StringTokenizer st = new StringTokenizer(s, "");
                  //               String[] arr = new String[st.countTokens()];
    //                       for (int j = 0; j < arr.length; j++)
      //                                arr[j] = st.nextToken();
            //               StatusOutput[i] = arr;
               //          for (int i = 0; i < StatusOutput.length; i++) {
          //                    for (int j = 0; j < StatusOutput.length; j++)
    //                         System.out.print(StatusOutput[i][j] + " ");
         //                    System.out.println();
    }I've been messing a lot with the code. +_What I want to do is to read this string that the server is sending,split it, and then place it in a 2D Array that I will attach on a table._+ So far I've made the StringTokenizer method to be able to , kind of, sort that String and put it in an array. However I usually get outofbounds errors because not always the lines have the same length. This is an example of the format that the server sends after executing the "status" command:map: mp_crossfire
    num score ping guid name lastmsg address qport rate
    2 1 84 b5e9d93e88670c6f811a033a7f925117 Davis^7 0 84.185.183.210:-1482 21249 25000
    4 15 100 e0d7c91fa7ba9549444ccab3a0e3de62 =HPX= Anogianos^7 0 91.140.25.93:28960 -10752 25000
    5 5 68 5d68298d9e16d7491d5700e6e236214f AsChIkUtAbU^7 50 84.60.215.190:17502 26401 25000
    6 115 44 cc503f50d990e27eeb990826c2cf1193 Donnergroll^7 50 91.64.153.240:28960 10086 25000
    7 141 79 cbd095d37abdc728671e2923296aa9cf souL^7 50 87.78.179.242:-10509 8432 25000
    8 116 83 4d0d1a067179516e209ef89cb0a79755 suodeth^7 0 84.250.214.156:27185 -29970 25000
    9 11 117 fc3c6777b3d9bf99df1e55b321b75e9e shpalman^7 50 62.101.126.209:-17420 -25455 25000
    10 5 82 fb2f20a9f46a212b896baf9ab4ea3eb0 =HPX=Gringo^7 50 213.5.170.94:-619 20175 25000
    11 95 68 d3d542b17ab56d9fbf107da39f245269 aga^7 50 78.2.42.253:28960 22173 25000
    12 10 100 8e6d08aec08591fb319081d0b40dedd2 madmax^7 0 79.166.47.145:2960 -7933 25000
    13 110 77 4fc4d0e24faa634dbce5c4bb4131bc4a Thunderstorm^7 50 87.78.113.218:28960 4512 25000
    14 55 67 f789227fcb95853b857115e68741df8d Robbino^7 0 89.217.12.113:28960 -192 25000
    15 118 85 b7be8ce58324d0f25c45f5cb372b30a1 Paranoid^7 50 78.1.26.32:28960 27294 25000
    16 11 90 38b59f3bbd3aa0ce3c95fccb26858931 $Hockz^7 50 87.181.101.96:-2984 24219 25000
    19 16 45 720f2abf81189890851d3e41fcbe4e21 ERASER^7 50 83.236.63.150:-32135 24704 25000
    20 145 37 a78f43bc3d3705743a190de45d37fc6a KintaKunte^7 50 88.68.237.239:28960 23539 25000
    21 60 49 a96d6a55049d11c5d7cd1c35c4d497c3 #sD|-HaZarD-^7 50 87.78.179.242:-10509 8432 25000
    8 116 83 4d0d1a067179516e209ef89cb0a79755 suodeth^7 0 84.250.214.156:27185 -29970 25000
    9 11 117 fc3c6777b3d9bf99df1e55b321b75e9e shpalman^7 50 62.101.126.209:-17420 -25455 25000
    10 5 82 fb2f20a9f46a212b896baf9ab4ea3eb0 =HPX=Gringo^7 50 213.5.170.94:-619 20175 25000
    11 95 68 d3d542b17ab56d9fbf107da39f245269 aga^7 50 78.2.42.253:28960 22173 25000
    12 10 100 8e6d08aec08591fb319081d0b40dedd2 madmax^7 0 79.166.47.145:2 0 91.3.110.248:-1185 6274 25000
    23 116 109 bfffdf9ff93425d284796532ef214bd0 ze_meedles^7 50 85.243.221.116:28960 24936 25000
    95853b857115e68741df8d Robbino^7 0 89.217.12.113:28960 -192 25000
    15 118 85 b7be8ce58324d0f25c45f5cb372b30a1 Paranoid^7 50 78.1.26.32:28960 27294 25000
    16 11 90 38b59f3bbd3aa0ce3c95fccb26858931 $Hockz^7 50 87.181.101.96:-2984 24219 25000
    19 16 45 720f2abf81189890851d3e41fcbe4e21 ERASER^7 50 83.236.63.150:-32135 24704 25000
    20 145 37 a78f43bc3d3705743a190de45d37fc6a KintaKunte^7 50 88.68.237.239:28960 23539 25000
    21 60 49 a96d6a55049d11c5d7cd1c35c4d497c3 #sD|-HaZarD-^7 50 87.78.179.242:-10509 8432 25000
    8 116 83 4d0d1a067179516e209ef89cb0a79755 suodeth^7 0 84.250.214.156:27185 -29970 25000
    9 11 117 fc3c6777b3d9bf99df1e55b321b75e9e shpalman^7 50 62.101.126.209:-17420 -25455 25000
    10 5 82 fb2f20a9f46a212b896baf9ab4ea3eb0 =HPX=Gringo^7 50 213.5.170.94:-619 20175 25000
    11 95 68 d3d542b17ab56d9fbf107da39f245269 aga^7 50 78.2.42.253:28960 22173 25000
    12 10 100 8e6d08aec08591fb319081d0b40dedd2 madmax^7 0 79.166.47.145:2As you can see the problem is that the server sends some information twice *but* it splits them with a blank line. In addition some nicknames contain spaces something that makes me wonder how I can set the nicknames to belong to the same position of the array. Something that i know is that all nicknames end with "^7" which is the in-game colour definition. Any help would be much appreciated. Thanks in advance.
    Edited by: m33ts4k0z on Dec 21, 2007 11:36 AM
    Edited by: m33ts4k0z on Dec 21, 2007 11:43 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    m33ts4k0z wrote:
    Hello DeltaGeek and thanks for your answer.
    I have 2 questions for you since you mentioned what the real problem is. The first question is how can I join 2 cells that will contain the 2 parts of the nickname in case of a space? Can I just check if the cell number x,y contains "^7" and then just copy that cell the x,y-1? Ive tried that but then I also have to move the rest of the columns to y-1 as well. Any idea how to do that?
    I was assuming you'd be processing the split string anyways, and not just tossing it into your 2-d structure. If you want to use .split(), yes. you would need to merge those cells into the original name. System.arrayCopy() would likely be useful for doing most of the heavy lifting.
    Another option you have is to tokenize the string using Scanner. That would let you pull each column out of the string individually. You'll need to populate the array manually (instead of just using what .split() gives you), but allows you to change the token delimiter between pulls.
    As for the junk lines, I can just check if they don't much the tokens number and then just not add them to the array I suppose, am I right or....?That's certainly one option. I don't know what's being given back to you, it may be important.

  • Dynamic Format mask for attribute in a JTable

    I've a JClient app.
    I need to define format and color of a field at runtime depending on some row informations.
    I've the same problem in a Form and In a JTable.
    Could someone suggest how can I do that ?
    TIA
    Tullio

    Format and other UIHints (ControlHints) are not looked up per row but are considered like static metadata for a given row/object type. So, there's no one chokepoint in Bc4J to override the control-hint apis like label/format/tooltip etc.
    In DataBinding side, you can override
    public Object getAttributeFromRow(Row row, AttributeDef def)
    and
    public void setAttributeInRow(Row row, AttributeDef def, Object value, boolean handleException)
    methods that perform the format/unformat implementation on a particular control-binding.

  • TEXT_IO-Dynamic formating

    I have used Text_io to export a datablock to csv, is there a way i can automatically set the text once in csv to Bold, or even change the colour?

    Text_IO DOES work on the web - its running on the application server. If you want to read files on the client machine we have
    and example which shows you the technology -see the file upload bean on the samples page.
    Regards
    Grant Ronald
    Forms Product Management

  • Dynamic layout formatting in Oracle BI Publisher reports

    We are creating a planning report in BI Publisher, where in we have a requirement of dynamic formatting based on the month we are running the report. In the report we have different months as columns which displays the values for different KPIs (displayed in the rows).. Now, we need the current month data be highlighted down the column for all KPIs. This means that if it is April, April would be highlighted for all KPIs. Next month when we are currently in May, April would no longer be highlighted and May would be highlighted for all KPIs.. How can we achieve this via BI Publisher? Any help regarding this is really appreciated.

    Hi;
    When we are runnng BI Publisher reports, in the output of reports all the time if any Hypahan symbol comes then it automatically converting into question mark.You got hit this when you are printing?
    Regard
    Helios

  • Dynamic attachment name in receiver mail adapter

    Hi  all,
    i am doing a receiver mail scenario (PI 7.1). my requirement is like this :
    Receiver file need to be send in receiver mail attachment and attachment name should be dynamic
    format for the attachment name should be like this
    R+value from a particular field in payload +Timestamp
    for example my file name should be like this  R001_510815021009062532.xml  
    which is     R+ 001_510815 + 021009062532 + .xml
    can anybody suggest me how to go for this requirement? is ther any UDF or should i go for adapter module developement?
    Thanks
    sandeep sharma
    Edited by: sandeep sharma on Oct 13, 2009 8:55 AM

    Hi K Fatima,
    I read your solution.I have a similar requiement but I need to send the entire output payload as an attachment,so I am using XSLT to send the payload as an attachment.
    I am creating the file name through dynamic configuration in XSLT but the name of attachment is not as required but its any random generated name:
    *code used:*
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:map="java:java.util.Map"
      xmlns:dyn="java:com.sap.aii.mapping.api.DynamicConfiguration"
      xmlns:key="java:com.sap.aii.mapping.api.DynamicConfigurationKey">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" />
    <xsl:output indent="yes" />
    <xsl:param name="inputparam"/>
    <!-- mail parameters -->
    <xsl:template match="*">
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
    <xsl:variable name="new-value" select="Shipment/InternalShipmentNum"/>
    <Subject>Mail</Subject>
    <From>xyz</From>
    <To>abc</To>
    <xsl:variable name="dynamic-conf" 
            select="map:get($inputparam, 'DynamicConfiguration')" />
        <xsl:variable name="dynamic-key"  
            select="key:create('http://sap.com/xi/XI/System/File', 'Directory')" />
        <xsl:variable name="dynamic-value"
            select="dyn:get($dynamic-conf, $dynamic-key)" />
        <xsl:variable name="new-value"    
            select="concat($dynamic-value, 'subfolder\')" />
        <xsl:variable name="dummy"
            select="dyn:put($dynamic-conf, $dynamic-key, $new-value)" />
    <!--Content type -->
    <Content_Type>application/xml</Content_Type>
    <!Content Description>
    <Content_Disposition>attachment;filename "<xsl:copy-of select="$new-value"/>"</Content_Disposition>
    <!--Content Disposition -->
    <Content_Description><xsl:copy-of select="$new-value"/></Content_Description>
    <Content>
    <xsl:copy-of select=".">
    <xsl:apply-templates/>
    </xsl:copy-of>
    </Content>
    </ns:Mail>
    </xsl:template>
    </xsl:stylesheet>
    Please suggest ! I need the value in "Shipment/InternalShipmentNum" as name of attachment.
    Thanks in advance!
    Indu Khurana

  • Edit Report option freezes and Formatting Vanishes in EPM 10.0

    Hi,
    While creating a report in EPM 10.0 which i have selected as 'Use as Input form', i created Active X buttons and did dynamic formatting as well. All seems to be fine but as i Close and Reopen, or i Refresh the template, formatting vanishes and Edit Report option also gets disabled.
    I am working on EPM 10.0 SP07 Patch 02. Please guide me on this.
    Thank you.
    Rgds,
    Poonam

    Hi Poonam,
    This is probably happening because the report/input schedules is not getting connected. Please check the connections once.
    Also if you had named the report in "Edit Report" earlier, say for example "Sales Report", once the report is open you should be able to see this name on the EPM context pane, right side under Current Report: Connected to "Your Model" and below that in the drop down the default selection should be "Sales Report". This means that the report is connected and the Edit Report option is active.
    Hope this helps.
    Regards,
    Bhairavi

Maybe you are looking for