Result region not displaying values properly from backend table

HI All,
We have a search page wherein we have added a new column called grade range in the table as well as in the search region.The new column is mapped to a altogether new column which
is created in the database table with a default value.The table in the search page has Entity object assosciated with it which is taking care of all the DML operations.
The name of the newly created item in the serach region is grade range which has three value coming from lookup like 12 ,13 and all,and also the new column
created in the database table has default value of all.
When we are trying to query the results in the search page with the filter criteria of any value for grade range, then we are able to see the records in the result table but with the column grade range being null. But When we update any record in the result table , then we are able to see the value for grade range column for updated records after submit.
And this behaviour of the search page is after the data base refresh. Before that, it was working fine.

Hi,
I hope, these two characterstics are from different base cubes. SO you are getting two rows. I hope, it is not possible to display those two rows(what you explained in the example) in a single row. This is very common property of Multi provider. To solve this problem you have to enhance one of DS to include both characterstics and it should feed the data to one cube only. Then you have to built the query directly on that cube.
With rgds,
Anil Kumar Sharma .P

Similar Messages

  • Multi-Select Box Not Displaying Values Passed From Grid?

    Coldfusion 8
    I inherited an application and am trying to maintain and improve it... hit a snag today.
    I have a multi-select box that is not displaying what I expect.  The values come from a ColdFusion grid which is based off a database query.
    Here is the code for the select - does not work - nothing is selected:
    <cfselect name="USER_IDS" multiple="true" queryposition="below" selected="USER_IDS" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    Now if I change the multiselect to a single select like below - it takes the first item in the field list (from the grid) and selects it in the drop down.
    <cfselect name="USER_IDS" multiple="false" queryposition="below" selected="USER_IDS" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    Or if I assign a variable like this and use the multi-select code it seems to work as well.
    testlist = "22,26";
    <cfselect name="USER_IDS" multiple="true" queryposition="below" selected="#testlist#" query="ActiveUsersPlus" disabled="#disabled#" value="G_USER_WORK_UNIT_SK" display="G_USER_ID" >
    </cfselect>
    I have displayed the value of "User_IDs" in the grid and in the data entry part of the screen to see values of:  22,26
    to make sure that wasn't my issue.
    Do grids and multiselects require something additional?  Any advice on how to resolve?

    Problem was related to some javascript for the select box.  There was a function for a single select box but not a multiple select box - this fixed it: 
    if(theForm.elements[i].type == "select-multiple"){
                        var selectBox = theForm.elements[i];
                        var sbname = selectBox.name;
                        cpvalue = String(eval('record.data.' + sbname));
                        var NotifyArray = cpvalue.split(',');
                        for (var j=0; j < selectBox.length; j++) {
                            selectBox[j].selected = false;
                        for (var j=0; j < selectBox.length; j++) {
                            sbvalue = selectBox[j].value;
                            for (var k=0; k < NotifyArray.length; k++){
                                if (sbvalue == NotifyArray[k]){
                                    selectBox[j].selected = true;

  • Filter view with session variable does not display value properly.

    Hi All,
    I have a very unique issue and I am not sure if anyone ran into this before.
    I have a prompt in my dashboard and a link to a report. The session variable default the value to the current value (term)
    when I click the link to the report I get the following value, on the filter view of the report: Term Code Desc is equal to NQ_SESSION.CSA_Analysis_Term
    however if I click the go button in the prompt I get the value: Term Code Desc is equal to 2030 (2011 Spring)
    does anyone have a solution to this issue
    thanks

    Hello,
    Have the same issue. Any solution. Gurus plz help.
    thanks,
    deep

  • Outlook.mailitem - diferent replace result when not displayed

    Hello everybody!
    I am developing an app to generate personalized emails from Excel file and .msg template.
    In the template, I insert "variables" like this: ^name^,
    which means that is is a placeholder for values from "name" column in source
    Excel file.
    this template is saved as .msg file on local disc and used as an argument in.CreateItemFromTemplate()
    after loading the template , it cycles from all the columns and rows of the Excel file and replaces the inserted
    variables:
    loading excel:
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim fpath As String
    OpenFileDialog1.ShowDialog()
    fpath = OpenFileDialog1.FileName
    workbook = APP.Workbooks.Open(fpath)
    worksheet = APP.ActiveSheet
    Dim CellData As String
    Dim LastCol As Long
    Dim LastRow As Long
    Dim bunka As String
    LastCol = workbook.ActiveSheet.UsedRange.Columns.Count
    LastRow = workbook.ActiveSheet.UsedRange.Rows.Count
    objData = worksheet
    DataGridView1.ColumnCount = 1
    DataGridView1.Columns(0).Name = "Column"
    DataGridView1.Columns(0).Width = 130
    For i = 1 To LastCol
    bunka = worksheet.Cells(1, i).Value
    Combo_To.Items.Add(bunka)
    Combo_SaveName.Items.Add(bunka)
    Dim row As String() = New String() {bunka}
    DataGridView1.Rows.Add(row)
    Next
    Dim btn As New DataGridViewButtonColumn()
    DataGridView1.Columns.Add(btn)
    btn.HeaderText = "Use"
    btn.Text = "+"
    btn.Name = "btn"
    btn.Width = 50
    btn.UseColumnTextForButtonValue = True
    btn.CellTemplate.Style.BackColor = System.Drawing.Color.Green
    Combo_To.SelectedIndex = 1
    End Sub
    after that the DataGridView1 loosk like this:
    the "+" buttons are used to insert text variables into the mail body.
    code for inserting is, this works fine:
    Private Sub grdData_CellContentClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
    Dim colName As String = DataGridView1.Columns(e.ColumnIndex).Name
    If e.RowIndex < 0 Then Exit Sub
    If colName = "btn" Then
    Dim variable As String
    variable = "^" & DataGridView1.Item(0, e.RowIndex).Value & "^"
    My.Computer.Clipboard.SetText(variable)
    objOutlookMsgY.GetInspector().Activate()
    SendKeys.Send("^v") 'Paste
    End If
    End Sub
    code for generating email from template:
    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
    Dim sessionName As String
    Dim docas As Object
    Dim variable As String
    Dim dosazeno As String
    Dim SavePath As String
    Dim objOutlookMsgTEMP As Outlook.MailItem
    worksheet = APP.ActiveSheet
    objOutlookMsgY.SaveAs("C:\temp_msg2.msg")
    clip = objOutlookMsgY.HTMLBody
    MsgBox("clip saved")
    sessionName = InputBox("Name this session:", "New Session", Today & "_")
    SavePath = RootFolder & "\" & sessionName & "\_Initial session"
    My.Computer.FileSystem.CreateDirectory(SavePath)
    For radek = 2 To workbook.ActiveSheet.UsedRange.Rows.Count
    ToolStripProgressBar1.Maximum = workbook.ActiveSheet.UsedRange.Rows.Count - 1
    objOutlookMsgTEMP = objOutlook.CreateItemFromTemplate("C:\temp_msg2.msg")
    ' objOutlookMsgTEMP.Display()
    For i = 1 To DataGridView1.RowCount
    variable = Convert.ToString("^" & worksheet.Cells(1, i).value & "^")
    dosazeno = Convert.ToString(worksheet.Cells(radek, i).value)
    'wait(50)
    Debug.Print("*" & variable & "*" & " >>> " & "*" & dosazeno & "*")
    objOutlookMsgTEMP.HTMLBody = objOutlookMsgTEMP.HTMLBody.Replace(variable, dosazeno)
    objOutlookMsgTEMP.HTMLBody = Replace(objOutlookMsgTEMP.HTMLBody, variable, dosazeno)
    'wait(50)
    objOutlookMsgTEMP.To = worksheet.Cells(radek, ToCol + 1).value
    Next
    objOutlookMsgTEMP.SendUsingAccount = accounts(Combo_From.SelectedIndex + 1)
    Dim objDoc As Microsoft.Office.Interop.Word.Document
    Dim objBkm As Microsoft.Office.Interop.Word.Bookmark
    'On Error Resume Next
    objDoc = objOutlookMsgTEMP.GetInspector.WordEditor
    objBkm = objDoc.Bookmarks("_MailAutoSig")
    If Not objBkm Is Nothing Then
    objBkm.Select()
    objDoc.Windows(1).Selection.Delete()
    End If
    objDoc = Nothing
    objBkm = Nothing
    objOutlookMsgTEMP.SaveAs(SavePath & "\" & worksheet.Cells(radek, Combo_SaveName.SelectedIndex + 1).value & ".msg")
    ' objOutlookMsgTEMP.Send()
    ToolStripProgressBar1.Value = radek - 1
    objOutlookMsgTEMP.Close(SaveMode:=Outlook.OlInspectorClose.olDiscard)
    Next
    End Sub
    for replacing is used this:
    .....objOutlookMsgTEMP.Display()
    objOutlookMsgTEMP.HTMLBody = objOutlookMsgTEMP.HTMLBody.Replace(variable, valueFromExcel).....
    or
    .....objOutlookMsgTEMP.HTMLBody = Replace(objOutlookMsgTEMP.HTMLBody, variable, valueFromExcel).....
    after replacing, the new message is saved as .msg or send
    the problem:
    everything works fine when the message is displayed while replacing. But when not displayed, only SOME variables
    are replaced. I don't really understand why there is such difference in the result and why only SOME are
    not replaced. I have tried changing the columns's names but found no connection between it and the result. when the message is displayed it takes like 10 times longer and makes the PC unusable.
    real example:
    the tamplate:
    ^jmeno^
    ^email^
    ^prij^
    ^jmeno3^
    ^sec code^
    result, message displayed:
    Jakub
    [email protected]
    Dxxx
    16
    266548
    result, message not displayed:
    ^jmeno^
    [email protected]
    ^prij^
    4
    449447
    I have also tried adding some Wait functions, didn't help. I would really appreciate if you could help me
    figure this out and explain why this happens. Thank you

    Please also copy the below two vars from the debugger window and paste here as it is.
    Debug.Print("*" & variable & "*" & " >>> " & "*" & dosazeno & "*")
    Also send us you message template, you can send only the section where the two non working vars exist.
    Fouad Roumieh

  • Form does not display all records from table

    Hi guys
    I modified one form that was based on a signle DB table. I removed certain fields from the table and added some extra fields to that table. Then based on the new table I also modified the form and removed the text items related to old fields in the table and added new text items pointing to the new fields now. II have checked all the new items properties and they have don't seem to be wrong or so. But now the problem is the form does not display all the records from the table. before it used to display all records from the table when qureied but not now. It only certain records from the table containing all new data and also old data but the form does not display other records though I don't see any obvious discrepancy. Remember that the before doing the modifications, I have table back for the old, created another table that contained new records for the new fields, and then I inserted the old records and updated the new table data in the new table with these new table values. So this way I have got my new table. Could someone help why the new modified form fails to display all records from the new table updated table though it display some of them successfully.
    Any help will be appreciated.
    Thanks

    hi
    Set the block property of "Query All Records" to "YES"
    hope it will work.
    Faisal

  • Expiration date not displaying after upgrade from 2007 to 2013

    I recently upgraded from MOSS 2007 to 2013.  I have information management set up on a library of InfoPath forms.  For the forms that were created prior to the upgrade, the expiration date is displaying and actually get updated if I modify them. 
    But none of my forms that have been created after the upgrade, are displaying when the expiration date is, which should be one year from modify date.  If I modify the forms created prior to the upgrade, they reflect the new, update date.
    Are these new forms not getting the policy applied to them, and why not?  I am not sure why the older forms are getting updated, but not my new ones.
    Denise E.

    Hi Denise,
    According to your description, my understanding is that the Expiration date column was not displaying values after upgrading from SharePoint 2007 to SharePoint 2013.
    Per my knowledge, we can only use the date column which is added to the library or list or the Declared Recorded date to set the retention policy, so if the Expiration date is used in the retention policy then the Expiration date should be a column in the
    library or list.
    I recommend to check the retention policy in the library and see which column is used in the retention policy as the image below shows:
    After that, go to the Library settings to find this column.
    Could you please provide screenshots of the retention policy and the columns in the Library settings page?
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Chromium not displaying github properly.

    I am on arch linux with the newest chromium.  It does not display github properly, even though I have installed the ttf packages that I read fixed rendering issues.  This is what a github repo looks like on chromium: http://i.imgur.com/pN6QSRp.png  Firefox displays it correctly.  Also, the encoding is set to UTF-8 and the font is droid sans (I tried many fonts)
    Last edited by Aftix (2014-08-12 02:59:35)

    Ok, well that little D2 looking thing after 'OREUtils/' is supposed to be a '+'
    Here is the code that performs that magic:
    <form action="/login?return_to=%2FOpenRedstoneEngineers%2FOREUtilsV2" aria-label="Sign in to make or propose changes" class="js-new-blob-form tooltipped tooltipped-e new-file-link" method="post"><span aria-label="Sign in to make or propose changes" class="js-new-blob-submit octicon octicon-plus" data-test-id="create-new-git-file" role="button"></span></form>
    So, it does not look like a font thing (on the surface).  Let's go look at the js-new-blub-submit class and where does octicon-plus come from...

  • When i go to attach a photo to email or load it to facebook it will not display any photos from my iphoto library and only allows me load ones that are in photo booth or saved on the desktop. Any ideas?

    when i go to attach a photo to email or load it to facebook it will not display any photos from my iphoto library and only allows me load ones that are in photo booth or saved on the desktop. Any ideas what is wrong?

    when i go to attach a photo to email or load it to facebook it will not display any photos from my iphoto library and only allows me load ones that are in photo booth or saved on the desktop. Any ideas what is wrong?

  • Retriving data from backend tables

    Hi All,
    I have one requirement to retrive the data from backend tables.
    Is there any code to retrive only the  first row of table from backend.
    Please provide me any solution for this.
    Thanks in Advance!
    Thanks & Regards,
    Sreelakshmi.

    Hi,
    create a remote enabled rfc with export parameter IT_RESULT TYPE ZSSHDR(transp. table).
    use code :
    DATA: itab type table of  ZSSHDR .
    select * from ZSSHDR into table itab .
    Read table itab into it_result index  1.
    in RFC.
    use this rfc in ur DC.
    Amit

  • Amazon search results do not display properly as of Firefox 33.0

    Hello,
    This one is a bit strange. Lately, I've noticed that many (but not all) search results on Amazon display only eight items per page, even though the Amazon site believes it is showing me 48 results. It is as if the rest of the results are hidden behind the "next page" control.
    To reproduce:
    1) go to amazon.com.
    2) In the search bar, enter a search term that will get lots of results. For example "sweaters women"
    3) On the resulting page, go to the side menu, and choose a sub category - for example, "Women's sweaters".
    4) Look at the resulting page. It will tell you "1-48 of 37,824 results ..." but you will (or at least, *I*) only see eight items -- two rows of four. Directly underneath the second row is the grey bar that shows the pages and the "previous" and "next" links. Underneath *that* is a very large white space, which looks about the right size to contain the remaining rows of results -- but they are not there.
    Do you see what I'm seeing? It's strange, and it just started a short time ago. I'm only now really looking into it, and IE and Safari both show me the search results as I expect.
    I am running Windows 7 and Firefox 33.0.
    Thanks for looking.

    No problems here.
    I do see 48 results as 12 row of each 4 results.
    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • HT1553 I restored my hard drive from time machine. Why is iPhoto not displaying images properly?

    I restored my hard drive from time machine after power blinks corrupted the file system so badly that disk utility could not repair it. Since then, iPhoto has not displayed images correctly. Events are there, and blank squares are shown, but that's all. I rebuilt small and all thumbnails and permissions -- I think the top three or four options in the iPhoto rebuild utility, which took five hours to do but which seems not to have changed anything. The iPhoto library is still more than 100GB, so the photos are there. I didn't choose rebuild from backed up --- whatever the final option on the rebuild menu offers -- because that seems to be appropriate only when a backup is interrupted. Could certainly do it, though. How do I get iphoto behaving again? I have full time machine backups saved automatically and another fairly recent copy on a separate hard drive stored remotely. Thanks for whatever help anyone can provide. I've looked at existing questions and solutions without success so far.

    What version of iPhoto and system are your running?  Since you've tried rebuilding with iPhoto give this a try:
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments. However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    If you have an external HD you might want to have the rebuilt copy created on it unless you have well more than 100 GB available on your boot drive.
    OT

  • Select * from v$asm_disk query results are not displayed in developer

    Hi, executing select * from v$asm_disk query returns below error messages whereas select * from v$asm_diskgroup works fine.
    SEVERE     40     18579     oracle.dbtools.raptor.nls.OracleNLSProvider     Error loading nls:ORA-01219: database not open: queries allowed on fixed tables/views only
    SEVERE     38     0     oracle.dbtools.raptor.utils.Connections     
    SEVERE     37     15     oracle.dbtools.db.DBUtil     Warning, unhandled exception: ORA-15021: parameter "plsql_debug" is not valid in asm instance
    SEVERE     36     0     oracle.dbtools.db.DBUtil     Warning, unhandled exception: ORA-15021: parameter "plsql_optimize_level" is not valid in asm instance
    SEVERE     35     0     oracle.dbtools.db.DBUtil     Warning, unhandled exception: ORA-15021: parameter "plscope_settings" is not valid in asm instance
    Is there any way to get around this issue?
    Thanks
    Pramod

    What product are you using? What version, what database? What user is the query being run by? (It may be a privileges issue)
    This forum is for the product SQL Developer Data Modeler.
    Sue

  • Safari not displaying Facebook properly

    Since yesterday, Safari stopped displaying Facebook properly. I get a white page with no formatting, just a column of links. That is the only site I have problems with. All others seem to work fine and Facebook displays properly if I'm using Firefox. ???

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • KOMK Fields not displaying values in sales order.

    Hi all,
    I have created an additional tab for VA01,02 and 03. I have added fields from VBAP table and KOMK structure.
    Now fields added from KOMK structure are displaying empty fields(no value). The fields areVAT REG NO (KOMK-stceg) and Tax Code (KONP-MWSK1).
    i have added fields with same name, so i have not coded anything. Do i need to code something for these fields?
    Please suggest the possible solution.
    Thanks in advance for your suggestions.
    Regards,
    NarsiReddy cheruku.

    Hi Edgar Soares,
    Thanks for your reply,
    Yes you are right, i am using BADI_SLS_ITEM_SCR_CUS.
    now i have added KNA1-STCEG to screen and in PBO module i coded as follows.
    (In top include i declared Tables kna1 and Tables VBAK.)
    data vat type kna1-stceg.
    data wa type kna1.
    SELECT SINGLE * from kna1 INTO wa.
    vat = wa-stceg.
    But it is not displaying Vat reg num on screen only displaying empty field.
    Please suggest where i went wrong.
    Thanks & Regards,
    NarsiReddy Cheruku.

  • Apache FOP not displaying Cyrillic properly

    Hi,
    I am using apache FOP to generate pdfs' in Russian. I have embedded the fonts into the application but the output is being displayed as html numerical codes.
    The html numerical codes are stored in the database but I am unable to render them properly. I know the fonts are embedded correctly because when I apply the fonts to English text, Russian characters are displayed in the pdf correctly.
    e.g the Russian characters are displayed like this:
    &#1087;&#1088;&#1086;&#1076;... etc
    Why are my codes not displaying properly ? I'm a bit lost at this point.
    thanks in advance

    Hi,
    thanks for the reply.
    To clarify things a bit. My web page is submitting Russian text which is being stored in an Oracle database. This text is being stored in the &#xxxx; format. This formatting is displayed properly in a web browser but I am using Apache FOP to produce a pdf and the Russian text is not being displayed as the Russian characters but as the relative &#xxxx; codes. So these codes are not being translated back into their Russian Cyrillic symbols.
    I have configured FOP and embedded the Cyrillic TTF but these codes are still not displayed. I can apply the Cyrillic font style to English text and Russian characters are displayed so it seems that that cyrillic TTF is embedded properly.
    I am not generating an serialized xml file but rather creating a javax.xml.transform.dom.DOMSource object and with my xsl file I create the pdf code snippet below:
    thanks
    Paul
              //Setup a buffer to obtain the content length
              ByteArrayOutputStream out = new ByteArrayOutputStream();
              // add fonts for Russian and Chinese certificates
              String fontConfig = path + "fonts/fontcfg.xml";
           FopFactory fopFactory = FopFactory.newInstance();
           fopFactory.setUserConfig(fontConfig);
           FOUserAgent foAgent = fopFactory.newFOUserAgent();
              //Setup FOP
              Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF,foAgent , out);
              //Setup Transformer
              Source xsltSrc = new StreamSource(new File(xslFile));
              TransformerFactory tFactory = TransformerFactory.newInstance();
              Transformer transformer = tFactory.newTransformer(xsltSrc);
              //Make sure the XSL transformation's result is piped through to FOP
              Result res = new SAXResult(fop.getDefaultHandler());
              //Setup input
              Source domSrc = new DOMSource(xmlDom);         
           //Start the transformation and rendering process
              transformer.transform(domSrc, res);
              //Prepare response
              response.setContentType("application/pdf");
              response.setContentLength(out.size());
              //Send content to Browser
              response.getOutputStream().write(out.toByteArray());
              response.getOutputStream().flush();

Maybe you are looking for