Passing parameter to an xsl template from BI Publishe
Hi,
I have a requirement where I need to pass a parameter directly from BI Publisher to the xsl template.
XML files are used as Datassource here. The requirement is that the user needs to pass on a value that is not present in this XML file for eg ( a word like "
"Google" or "Yahoo" or "BIP" and I need to take that value and construct an url out of it. The url would be "www.google.com" or "www.yahoo.com" or "www.BIP.com".
The parameter passed would in no way be used to filter out any data coming from the xml files, and is used only for building this url.
I have used parameters to filter out data for report template where the datasource is Sql. The parameter passed would be used to filter out data . I donot know how we can pass a parameter value without filtering out the result set, but use it in the report.
Basically I need my BI Publisher report to have 2 datasource,
1) the xml data file and the template uploaded would use this to generate the report, and
2) the value passed by the user declared as parameter in BI Publisher which would be used to generate the url.
Please let me know if this is possible
Regards
Sujith
Use data template, Check datatemplate, how to pass parameter. - search this forum, i have answered it many times.
create parameter and say , include parameter as true. it will be added to the xml in the top.
You dont have to use it necessarily in the sql query.
The parameter will there in the xml, and you can use in any template type.
Similar Messages
-
How do I pass parameter to different portlet regions from another page?
How do I pass parameter to different portlet regions from
another page?
I have a page that with two regions. Each region has a report
that uses the same information to generate its report.
Individually running the reports, I can use p_arg_names and
p_arg_values to get what I want. However, when I run the page
that has both portlets, my .show is gone and I cannot get it to
use the p_arg_names, etc. Do you have any idea how to overcome
this? Thanks for any help.How do I pass parameter to different portlet regions from
another page?
I have a page that with two regions. Each region has a report
that uses the same information to generate its report.
Individually running the reports, I can use p_arg_names and
p_arg_values to get what I want. However, when I run the page
that has both portlets, my .show is gone and I cannot get it to
use the p_arg_names, etc. Do you have any idea how to overcome
this? Thanks for any help. -
Passing parameter to the i18n text from xml view in fiori app
Hi,
Could somebody let me know how to pass parameter to get the i18n text inside xml view of a Fiori app.
For e.g. inside my i18n properties file i have a entry like:
PEC_ISSUE={0}issues of total{1}
inside xml i use it like {i18n>PEC_ISSUE}
but now how do i pass those 2 parameters to this ??
i know in javascript it works with , (comma) but does not work in xml. Any help...
Thanks,
AshishHi Michele,
I found it. Below is the example from my coding.
<Text text="{parts: [{path: 'i18n>PEC_to'}, {path: 'promoprocsteps>RetailPromotionSalesFromDate_E'},
{path:'promoprocsteps>RetailPromotionSalesToDate_E'}],
formatter: 'retail.promn.promotioncockpit.utils.Formatter.formatDatesString'}" />
So you have to create a formatter and pass all the strings to the formatter and then do it inside JS.
In JS you do it in this way:
i18n.getText(i18String, [newString, string2]);
i hope this helps.
Regards,
Ashish -
Problem passing parameter to crystal report subreport from *.aspx page
Background:
I am developing a .NET web application using Visual Studio 2005. The code behind is in VB.net. One of my asp.net pages calls a report, which is invoked when the user clicks a Print button. I have developed this report using the Crystal Reports software that is bundled with Visual Studio 2005. I am passing one parameter from the asp.net page (utilizing the VB.net code-behind on the Print button) to the Crystal report. The report consists of a main report and 5 subreports. Both the main report and the subreports use the same parameter. Both the main report and the subreports are bound to stored procedures, each of which require a parameter.
Problem:
For some reason, the parameter is not being passed from the asp.net page to the report. I am receiving the following error: "CrystalDecisions.CrystalReports.Engine.ParameterField.CurrentValueException: Missing Parameter Values." However, when I remove the subreports, the parameter gets passed, and the report is invoked with no problem.
I have read in other forums that there may be an issue with the Crystal Reports software that is causing this problem. I have downloaded and run the suggested hotfix, but the problem remains unresolved. I have tried changing the linking of my main report to the subreport, but that doesn't help either. It is possible that I am doing something wrong with the linking, as this is the first time I have developed a report with Crystal Reports. I need a workaround or definitive solution. Below is the aspx code used to call the report:
Imports System
Imports System.Collections.Specialized
Imports System.Collections.ObjectModel
Imports System.Collections
Imports System.Text
Imports System.Configuration
Imports System.Data.SqlClient
Imports System.Data
Imports System.Data.SqlClient.SqlDataAdapter
Imports System.Web.Configuration
Imports Crystaldecisions.crystalreports.engine
Imports Crystaldecisions.reportsource
Imports Crystaldecisions.shared
Partial Class OACIS_Award_or_Deny_BudgetSummary_PrintRpt
Inherits System.Web.UI.Page
Dim paramFields As ParameterFieldDefinitions
Dim paramField As ParameterFieldDefinition
Dim paramValue As ParameterValues
Dim paramDiscreteValue As New ParameterDiscreteValue
Public Shared idCase, nameRpt As String
Private PrintRpt As ReportDocument
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Try
idCase = Request.QueryString("id")
nameRpt = Request.QueryString("prtName")
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
Dim file As String = settings.File
Dim dSource, iCatalog, userIs, passUser, appString As String
dSource = Nothing
iCatalog = Nothing
userIs = Nothing
passUser = Nothing
appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
Dim AppArray() As String = Split(appString, ";")
Dim arrayLgth As Integer = AppArray.Length
Dim i As Integer
For i = 0 To arrayLgth - 1
Dim pairIs() As String = Split(AppArray(i), "=")
Dim firstItem As String = pairIs(0)
Dim secondItem As String = pairIs(1)
If firstItem = "Data Source" Then : dSource = secondItem : End If
If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
If firstItem = "UID" Then : userIs = secondItem : End If
If firstItem = "PWD" Then : passUser = secondItem : End If
Next
Dim crReportDocument As ReportDocument
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim crconnectioninfo As ConnectionInfo
Dim crDatabase As Database
Dim crtables As Tables
Dim crtable As Table
Dim crtablelogoninfo As TableLogOnInfo
Dim Fname As String
Dim Prtname As String
Dim FPath As String
Dim crSection As Section
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
Dim subRepDoc As New ReportDocument
FPath = Server.MapPath("") + "\"
Dim rptIs As String = nameRpt
crReportDocument = New ReportDocument
Prtname = FPath
Prtname = Prtname + rptIs
crReportDocument.Load(Prtname)
Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
crconnectioninfo = New ConnectionInfo
crconnectioninfo.ServerName = dSource
crconnectioninfo.DatabaseName = iCatalog
crconnectioninfo.UserID = userIs
crconnectioninfo.Password = passUser
crDatabase = crReportDocument.Database
crtables = crDatabase.Tables
For Each crtable In crtables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
Response.Write(ex)
Exit Sub
End Try
Next crtable
For Each crSection In crReportDocument.ReportDefinition.Sections
For Each crReportObject In crSection.ReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
crSubreportObject = CType(crReportObject, SubreportObject)
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
For Each crtable In subRepDoc.Database.Tables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
End Try
Next
End If
Next
Next
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
Dim parIDCase As ParameterValues = New ParameterValues
Dim disIDCase As ParameterDiscreteValue = New ParameterDiscreteValue
disIDCase.Value = idCase
parIDCase.Add(disIDCase)
crReportDocument.DataDefinition.ParameterFields("@ID_CASE_NMBR").ApplyCurrentValues(parIDCase)
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
System.IO.File.Delete(Fname)
Catch ex As Exception
lblMessage.Visible = True
lblMessage.Text = "Error Load
" & Convert.ToString(ex)
End Try
End Sub
End Class
Your help is greatly appreciated!Thanks for your help!
I've now gotten past the "missing parameter values" error, and the report renders fine in the report viewer. However, I've encounted another problem. The data in my main report displays correctly, but the data in my subreport does not display. Of course, when I view the report in the designer, both the main report and subreport display correctly. What am I doing wrong? Below is my vb.net code:
Try
idCase = Request.QueryString("id")
nameRpt = Request.QueryString("prtName")
Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
Dim file As String = settings.File
Dim dSource, iCatalog, userIs, passUser, appString As String
dSource = Nothing
iCatalog = Nothing
userIs = Nothing
passUser = Nothing
appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
Dim AppArray() As String = Split(appString, ";")
Dim arrayLgth As Integer = AppArray.Length
Dim i As Integer
For i = 0 To arrayLgth - 1
Dim pairIs() As String = Split(AppArray(i), "=")
Dim firstItem As String = pairIs(0)
Dim secondItem As String = pairIs(1)
If firstItem = "Data Source" Then : dSource = secondItem : End If
If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
If firstItem = "UID" Then : userIs = secondItem : End If
If firstItem = "PWD" Then : passUser = secondItem : End If
Next
Dim crReportDocument As ReportDocument
Dim crExportOptions As ExportOptions
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
Dim crconnectioninfo As ConnectionInfo
Dim crDatabase As Database
Dim crtables As Tables
Dim crtable As Table
Dim crtablelogoninfo As TableLogOnInfo
Dim Fname As String
Dim Prtname As String
Dim FPath As String
Dim crSection As Section
Dim crReportObject As ReportObject
Dim crSubreportObject As SubreportObject
Dim subRepDoc As New ReportDocument
FPath = Server.MapPath("") + "\"
Dim rptIs As String = nameRpt
crReportDocument = New ReportDocument
Prtname = FPath
Prtname = Prtname + rptIs
crReportDocument.Load(Prtname)
Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
crconnectioninfo = New ConnectionInfo
crconnectioninfo.ServerName = dSource
crconnectioninfo.DatabaseName = iCatalog
crconnectioninfo.UserID = userIs
crconnectioninfo.Password = passUser
crDatabase = crReportDocument.Database
crtables = crDatabase.Tables
For Each crtable In crtables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
Response.Write(ex)
Exit Sub
End Try
Next crtable
For Each crSection In crReportDocument.ReportDefinition.Sections
For Each crReportObject In crSection.ReportObjects
If crReportObject.Kind = ReportObjectKind.SubreportObject Then
crSubreportObject = CType(crReportObject, SubreportObject)
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
For Each crtable In subRepDoc.Database.Tables
Try
crtablelogoninfo = crtable.LogOnInfo
crtablelogoninfo.ConnectionInfo = crconnectioninfo
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.SetDataSource(Prtname)
crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
crtablelogoninfo.ConnectionInfo.UserID = userIs
crtablelogoninfo.ConnectionInfo.Password = passUser
crtable.ApplyLogOnInfo(crtablelogoninfo)
crtable.Location = iCatalog + ".dbo." + crtable.Name
Catch ex As Exception
End Try
Next
End If
Next
Next
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = Fname
crExportOptions = crReportDocument.ExportOptions
With crExportOptions
.DestinationOptions = crDiskFileDestinationOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.PortableDocFormat
End With
crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase)
crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase, "MemberName")
crReportDocument.Export()
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
System.IO.File.Delete(Fname)
Catch ex As Exception
lblMessage.Visible = True
lblMessage.Text = "Error Load<br>" & Convert.ToString(ex)
End Try
Edited by: LaShandra Knox on Sep 17, 2008 7:59 PM -
Passing parameter values to powershell function from batch file
Hello ,
I haven't used powershell for a while and getting back to using it. I have a function and I want to figure out how to pass the parameter values to the function through batch file.
function Check-FileExists($datafile)
write-host "InputFileName : $datafile"
$datafileExists = Test-Path $datafile
if ($datafileExists)
return 0
else
return -100
<#
$datafile = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_011.txt"
$returncode = Check-FileExists -datafile $datafile
Write-Host "ReturnCode : $returncode"
$datafile = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"
$returncode = Check-FileExists -datafile $datafile
Write-Host "ReturnCode : $returncode"
#>
The above code seems to be work when I call it. But when I try to call that script and try to pass the parameter values, I am doing something wrong but can't figure out what.
powershell.exe -command " &{"C:\Dev\eMetric\PreIDWork\PowerShell\BulkLoad_Functions.ps1" $returncode = Check-FileExists -datafile "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"}"
Write-Host "ReturnCode : $returncode"
$file = "C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile_01.txt"
powershell.exe -file "C:\Dev\eMetric\PreIDWork\PowerShell\BulkLoad_Functions.ps1" $returncode = Check-FileExists -datafile $datafile
Somehow the I can't get the datafile parameter value being passed to the function. Your help would be much appreciated.
I90RunnerI am not sure about calling a function in a script like how you want to. Also I see you are setting the values of the parameters, this is not needed unless you want default values if nothing is passed. The values for the parameters will be passed via the
batch file. So for me the easiest way is as indicated.
param
[string]$DataFile
function Check-FileExists($datafile)
write-host "InputFileName : $datafile"
$datafileExists = Test-Path $datafile
if ($datafileExists)
return 0
else
return -100
Write-Host "Return Code: $(Check-FileExists $DataFile)"
Then you create a batch file that has
start powershell.exe
-ExecutionPolicy
RemoteSigned -Command
"& {<PathToScript>\MyScript.ps1 -DataFile 'C:\Dev\eMetric\PreIDWork\PreIDFiles\SampleInputFile.txt'}"
Double click the batch file, and it should open a powershell console, load your script and pass it the path specified, which then the script runs it and gives you your output
If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
Don't Retire Technet -
Pass parameter to report paramater form from a form
I defined parameter in a form. I am trying to pass the parameters to a report's parameter form. Is there any way to accomplish this?
Thank you!Maybe this example will help. This can be added in a when button pressed event to run the report.
DECLARE
pl_id ParamList;
subheader varchar2(1000);
BEGIN
** Check to see if the 'tmpdata' parameter list exists.
pl_id := Get_Parameter_List('tmpdata');
** If it does, then delete it before we create it again in
** case it contains parameters that are not useful for our
** purposes here.
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
** Create the 'tmpdata' parameter list afresh.
pl_id := Create_Parameter_List('tmpdata');
** Add 1 data parameters to this parameter list
*/ -- subheader is a parameter created in Oracle Reports
subheader := :variable.txt_message_yes;
Add_Parameter(pl_id,'SUBTITLE',TEXT_PARAMETER,subheader );
**Pass a Parameter into PARAMFORM so that a parameter dialog will not appear
**for the parameters being passing in.
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
** Run the report synchronously, passing the parameter list
*/ -- ABC is the report name
Run_Product(REPORTS, 'ABC', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
END;
null -
Passing parameter to function on stage from symbol
I have a symbol on the stage: symbol1
Inside symbol1 I have an image: symbol1_image1
I have another symbol on the stage: symbol2
Inside symbol2 I have an image: symbol2_image2
in composition.ready I have an action on the mouseout for symbol1:
var theTarget = sym.getComposition().getStage().getSymbol('symbol2').$('symbol2_image2');
sym.getComposition().getStage().doMouseoutGS(theTarget);
In composition.ready i have the following function defined
sym.doMouseout = function (colorTile){
sym.$(colorTile.show());
I cannot get this to work and I am not understanding why.
If I do an alert on the mouseout function for
alert($(colorTile).attr("id"));
I get the correct referenc to the element I want to show but it does not actually happenHi Marlene,
As I already mentionned in a preceding reply in another of your threads, you should use the event object e that gives you access to the target (e.target), without the need to explicitly build a theTarget variable.
For example, say you want to factorize in a symbol (stage) function the rollover behavior shared by a certain number of buttons :
• btn<i>.mouseover
sym.getComposition().getStage().globalFunction( e);
• document.compositionReady
sym.globalFunction = function( eBtn)
console.log( eBtn.target.getAttribute(“id“));
Then, using Firebug or Chrome dev. tools, you'll see in the console the id of each of the buttons you hover over.
Gil -
Using Go URL to Pass parameter between dashboard
Hi All,
I am trying to pass parameter using GO URL functionality from one dashboard analysis field to another dashboard.
The navigation is working properly but the parameter is not getting passed, I am not sure why.
The Called dashboard has a analysis which has IS PROMPTED filter attached to it for the passing filter. I tried various ways to make this work
Option 1
In the calling analysis, I am using a Narrative View and inside I have used the below code.
<a href="saw.dll?Go&Path=/shared/MI/_portal/Client-MI&Page=Supplier%20Detail%20Tab&Action=Navigate&P0=1&P1=eq&P2=Dim%20Supplier.Supplier%20Name%20Current&P3=1+%22STR%20LTD%22"> @2[br/]
This one navigate but filtering is not happening
Option 2 (My first preference will be this option)
Also I tried to provide custom Data Format under the column Properties
[html]"<font class="nav" onclick=\"JavaScript:GoNav(event, '/shared/MI/_portal/Client-MI/Supplier Detail Tab','Dim Supplier','Supplier Name Current','"@"');\">"@"</font>
This ends up giving error
Type mismatch of catalog object /shared/MI/_portal/Client-MI/Supplier Detail Tab -- expected , got .
Error Details
Error Codes: UVWDR6UA
Also, both the tabs (Called and Calling are under the same Dashboard)
Can anyone please let me know, were I am making mistake. I tried refereeing Oracle documentation but still no result.
ThanksLooks like you've got it almost right - just an extra unneeded "
<a href="two.jsp"?ant=<%= ant %>"><%=antName%></a>
which should render on the page as something like
My Ant Task
When you click the link, it should pass that parameter, and you can get it via request.getParameter(). -
Passing Values to a BW Template through Java - Dynpage
Hello All!
-I have one Java-Dynpage Application. I have created an
Iview from that PAR file.
-This Dynpage accepts some input from user(say his employee number) and displays some data from SQL server.
-Now I want that when the user enters the input and clicks submit button, these values should be passed to a BW template to execute the BW report based on this input.
-In other words, i want to display another Iview which will display a BW report based on the values passed from my Dynpage.
<b>Is it possible to pass the values to a BW template from java?</b>
If yes, how do i do it?
Any suggestions are welcome....You can have two Iviews:
1.Your existing Java Iview
2. Standard BW Report as an Iview.
when submit button is hit on Iview1. Use EPCF to pass values to Iview2.Then build your new bw url based on the values you get from iview1 thru EPCF.
Search for EPCF on sdn.
So , yes it is possible to pass values to a BW template from Dynpage or JSP using EPCF.
regards,
P. -
Error in processing XSL template
Hi I am trying to build an report by using XSL template in BI Publisher 10g integrated with siebel. When i uploaded the template to run the report I am getting the following error
Caused by: oracle.xdo.parser.v2.XPathException: variable not defined: ' _XDONFSEPERATORS'
at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
... 49 more
Please help me out with this issue
ThanksDo not enter the line number and also do not enter the doc total on the header. B1 will calculate this based on line totals.
RecordKey--DocEntry--CardCode-DocDate--DocNum-DocTotal--
DocType
1--C000120090610-10--
dDocument_Service
For Document_Lines
RecordKey-----LineNumAccountCode--TaxCode--
LineTotal
1--1010101001V4--
10000 -
Passing Parameter to XSL document (in XDK forPL/SQL)
Here i' trying to pass parameters to my XSL document.But the value is not getting populated in the final document, can anyone help me on this.,.?
// This is how i 'm passing parameter value to the XSL
xslprocessor.setParam (styles,'p_batch_name','batch1');
// Applyting stylesheet(xsl) with XMLdoc and storing it in a DOM node
docn := xmldom.makeNode(xslprocessor.processXSL(engine,styles,doc));
My XSL is like this
<INSERT xsl:version="1.0" xmlns:xsl ="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="p_batch_name"/>
<ROWSET table="abc">
<xsl:for-each select="rowset/row">
<ROW>
<batch_name>"{$p_batch_name}"</batch_name>
</ROW>
<xsl:for-each>
</ROWSET>
<INSERT>
But in the final document, the value (batch1) is not getting
populated. it is coming as null .
Can anyone help me ...
nullThis does not work because of the following two things:
[list=1]
[*]The value of a parameter is interpreted as an XPath expression. Passing a value of batch1 will be interpreted as the XPath expression batch1 that will try to match any <batch1> child elements of the root of the source document. You need to include the value in quotes to have it be interpreted as a literal string:xslprocessor.setParam (styles,'p_batch_name','"batch1"');[*] The setParam method can only set the value of "top-level" stylesheet parameters. In your stylesheet, you've illegally used <xsl:param> inside a template. You need to switch from the "simple form" of a stylesheet to the "normal form" of the stylesheet to use a top-level parameter. So instead of:<INSERT>
</INSERT>
[code]
you need instead:
[code]
<xsl:stylesheet>
<xsl:template match="/">
<INSERT>
</INSERT>
</xsl:insert>
</xsl:stylesheet>[list]
null -
Passing parameter for the bean function that deletes record from DB
I need to delete some record from the DB without updating the reset of the user screen.
I use commandButton with immediate attribute as true, because validation should be skipped.
So, I can't rely on backing bean values being updated, but need to pass a param to the function that does the delete (deleteTemplate) function below.
The value of this param is selected value in another comboBox called "template".
Code below is not parsing. Could you advise how to do it?
<a4j:commandButton id="deleteTemplate" value="Delete"
action="#{qtBeanParam.deleteTemplate(param['piPerformanceReturnsForm:template'])}" immediate="true" reRender="template,templateList,templateOwner,templateOwnerList"
styleClass="blue-button">
</a4j:commandButton>Error Parsing: #{qtBeanParam.deleteTemplate(param['piPerformanceReturnsForm:template'])}Thank you for your reply.
Could I pass the value that is entered in some other field as a "parameter" though?
<f:param name="anyName" value="parameter" />
For example the value from the following comboBox?
<rich:comboBox id="template" width="250" value="#{qtBeanParam.templateName}" enableManualInput="true"
converter="#{templateConverter}" valueChangeListener="#{qtBeanParam.changeTemplate}" >
<a4j:support event="onselect" reRender="template,templateList" ajaxSingle="true" />
<a4j:support event="onchange" reRender="template,templateList" ajaxSingle="true" />
<f:selectItems id="templateList" value="#{qtBeanParam.templateList}" />
</rich:comboBox> -
How to call a rtf template from another rtf template by passing a value
Hi Gurus,
Its about calling a rtf template from another rtf template by passing a value.
My requirement is like:
I got a quote report from Siebel, based on the product PartNumber I need to pull product description or literature from another database database.
My approach is something like; get a partnumber from quote report pass it to another rtf template which uses the partnumber and get the data from table using DataSource. When user pull a quote report from siebel this new rtf template should attach to the quote at the end.
I've gone through all available blogs about sub-reports and white papers from Oracle they are not much helpful since I need step-by-step.
http://www.adivaconsulting.com/adiva-blog/item/36-working-with-rtf-sub-templates.html
bip-subtemplate-1-132933.pdf
I'm using 10g obiee integrated with Siebel.
Just started learning BIP.
Thanks in advance.
Edited by: 911927 on Apr 2, 2013 8:56 AM
Edited by: 911927 on Apr 2, 2013 8:57 AMHow to call a rtf template from another rtf template by passing a value try in main template create hyperlink of url with parameters for another template
http://bipconsulting.blogspot.ru/2010/02/drill-down-to-detail-or-another-report.html
When user pull a quote report from siebel this new rtf template should attach to the quote at the end.it'll be only another report
IMHO you can not attach it to main. it'll be second independent report
you can try subtemplate but it's not about rtf from rtf by click
it's about call automatically rtf subtemplate from main rtf based on some conditions
for example, main template contain some data and if some condition is true then call subtemplate and place it instead of its condition -
How to call a BW WEB template from R/3 and pass parameters to the report
Is it possible to call a BW web template from an R/3 system, through an abap program?
I have a BW WEB report template. This works very good, and i have 3 variables in the query.
Now, i need to invoke the BW web template from inside of an abap in R/3..
And i want to pass 3 variables from the R/3 ABAP to the BW WEB TEMPLATE.....
Is possible to call BW web templates from R/3??
PLEASE!!! HELP ME..
Carlos E. España
ADATSA
[email protected]Thank you very much for your valuable help, i checked your suggestion and looks great. But i need to pass 3 parameters from an ABAP to the wad query report.
How can i pass the parameters to the web template???
another issue: My WAS (Web Application Server 6.20) is not public, is currently working for a local area network.
The access to this report is from outside of the office, so we need to access this through the PORTAL. -
Post Author: usaitconsultant
CA Forum: JAVA
Would you know if there's a way to mimic Deski
document from BOXI server(CMS) to local machine, pass parameter, execute and
save in a mutiple report format then store in a local drive or network
drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only and not desktop intelligence. Please let me know your ideas. I would really appreciate your help. Thanks.Post Author: usaitconsultant
CA Forum: JAVA
Hi Ted,
Thanks for the reply.The file is not available in the server. Though, I checked CMS and I found an instance in history tab and the status is failed with error below.
Error Message:
A variable prevented the data provider Query 1 with BANRRD30 from being refreshed. (DMA0008).When I checked my codes, I found out that the object Im using is for web intelligence data provider. However, I cannot find any documentation and example for passing parameter values in desktop intelligence data provider. Any idea on this? You think this is not suported by Report Engine SDK?Thanks.
Maybe you are looking for
-
My Photoshop CS5 crashes - need help reading crash report
Hi, I am running Mac OS 10.8.5 with Photoshop CS5 (all updates performed). Suddenly my PS crashed by opening the mor than one file. I would appreciate someone's help to read my crash report - as to what software is causing it. Thanks! Here is the cra
-
DVD Player in Mac 10.6.8
I am testing out a brand-new External Optical drive ASUS SDRW-08D2S-U for use with my Mac OS X 10.6.8. The Mac recognizes the new drive, and when I insert a DVD into it, the Disk with its title appears on my desktop. Also, QuickTime Player is activa
-
I can't go to any websites and keep getting this message above...
-
How to put minimise, maximize buttons on jDialog box
I have a dialog box whose default option is close button provided at top, i have to put minimize, maximize(Restore) buttons.
-
help me sing into mail