How to assign a variable value to crystal report viewer formula with CR2008
Hi ,
I am using crystal reports 2008 and i am not able to find how to assign variable value to crystal report viewer formula.
In CR 8.5 , i used to have crystalreport1.Formulas(0) = variable1
crystalreport1.Formulas(1) = variable2
but, i don't find similar kind in crystal reports 2008.
How can i achieve the same functionality using crystal reports 2008.
Thanks in Advance
Regards,
Ramnath
Hi,
Can i anyone help me out with this.
I am generating crystal reports in vb6 using CR 8.5 and vb6 and below is the code snippet for the same
CrystalReport1.Formulas(0) = "PrintTitle= '" & strMyTitle & "'"
CrystalReport1.Formulas(1) = "FromDate= '" & MskFromDate.Text & "'"
CrystalReport1.Formulas(2) = "ToDate= '" & MskToDate.Text & "'"
Please let me know how the same functionality can be achieved in VB.Net using Crsytal reports 2008
Any code snippet would be of great Help.
Thanks in Adnvance.
Ramnath
Similar Messages
-
How to use a connection ODBC in crystal reports viewer?
Hi Guys!
I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in crystal reports viewer?Hi Guys!
I need to know if for update a report in crystal reports viewer, is necessary, have a connection SAP Business Objects Business Intelligence. How to use a connection ODBC in crystal reports viewer? -
How to print directly to Printer from Crystal Report Viewer ?
Hi All,
We are integrating our Java Web Application with Crystal report XI, currently using JRC and export to PDF for user to preview and print to local printer.
Now there is new requirement :
Some clients is using thin client terminal (no harddisk, only has OS +Browser in ROM), so I cannot install Acrobat Reader for them to preview&print the report.
So I am looking at Crystal Report Viewer, the question is : Can I print from Crystal Report Viewer directly to local printer without first converting it to PDF (because I can't have acrobat reader installed) ??
Thank you very much,
Krist
IndonesiaHi,
It can't be achieved through XI.
JRCXI R2 SDK offers the ability to print the report server side
using the PrintOutputController using printReport(PrintReportOptions printReportOptions) method.
Here is the code(for XIR2):
import="com.crystaldecisions.reports.sdk.*"
import="com.crystaldecisions.sdk.occa.report.lib.*"
import="com.crystaldecisions.sdk.occa.report.document.*"
try {
final String REPORT_NAME = "Inventory.rpt";
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(REPORT_NAME, 0);
//Create and set print options.
PrintReportOptions printOptions = new PrintReportOptions();
//Note: Printer with the 'printer name' below must already be configured.
printOptions.setPrinterName("
10.10.45.220
BOBJ 2C");
printOptions.setJobTitle("Sample Print Job from JRC.");
printOptions.setPrinterDuplex(PrinterDuplex.horizontal);
printOptions.setPaperSource(PaperSource.auto);
printOptions.setPaperSize(PaperSize.paperLetter);
printOptions.setNumberOfCopies(1);
printOptions.setCollated(false);
PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange(1,1);
printOptions.addPrinterPageRange(printPageRange);
//NOTE: If parameters or database login credentials are required, they need to be set before.
//calling the printReport() method of the PrintOutputController.
reportClientDoc.getPrintOutputController().printReport(printOptions);
reportClientDoc.close();
out.println("Successfully sent report to the printer.");
catch(ReportSDKException ex) {
out.println(ex);
Please revert in case you have any query.
Thanks,
Neeraj -
Crystal Report Viewer integration with Sharepoint 2010
We had a requirement in our project to view crystal report off an hyper link embedded into sharepoint web part developed using ASP .NET. The report accepted few parameters from the sharepoint page and passed those on to the SQL server to retrive data and
display the data in the report. The challenge was to open the report in the web browser.
The first difficulty was to find the right control to use, the report viewer tool that comes with Visual Studio 2010 is not the right one to use to view Crystal reports, I realised this after spending half a day trying to figure out why wouldn't the report
load. I then downloaded the Crystal Report Viewer for VS 2010 Standard from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp. After you install this, you get the crystal report viewer in your toolbar. All you have to do is drag and drop it on
to the web part and configure it to use your report. If any one needs help with this let me know I will show how to do that.
So far so good. The biggest challenge was to deploy this on to the production server which took better part of 3 days to figure out how its done. If you deploy the WSP file as it is expecting that the crystal DLLs would be embedded in it then be ready to
expect a rude shock because it isn't. Here are the steps -
1. Deploy the WSP to the sharepoint server
2. Install the crystal dlls used in the project (CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.ReportSource.dll, CrystalDecisions.Shared.dll, CrystalDecisions.Web.dll) into the GAC using GacUtil command
3. Add following entries to Web.Config file (C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.congif)
<SafeControl Assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.CrystalReports.Engine" TypeName="*" Safe="True" SafeAgainstScript="False"
/>
<SafeControl Assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.ReportSource" TypeName="*" Safe="True" SafeAgainstScript="False" />
<SafeControl Assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Shared" TypeName="*" Safe="True" SafeAgainstScript="False" />
<SafeControl Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TypeName="*" Safe="True" SafeAgainstScript="False" />
4. Install crystal redistributable package which can be downloaded from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp (
SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit))
5. Copy aspnet_client folder from C:\>inetpub\wwwroot and overwrite it on C:\>inetpub\wwwroot\wss\VirtualDirectories\80
And we are done. Fingers crossed it should all work.
Prasad Matkar MCP, MCTSHi Mahesh,
How are you loading the report in your webpart? This is what I have done. I have tried to explain what I am doing in the program comments. Hope this helps. Good luck.
SPSite mySite = new SPSite(SPContext.Current.Site.Url.ToString());
SPWeb thisSite = mySite.OpenWeb();
// Writing to event log after every step in debug mode so that you get to know if there was a failure what step the failure occured after.
EventLog.WriteEntry("Reports", "Inside PAge Load ", EventLogEntryType.Error);
SPFolder folder = thisSite.GetFolder("Reports");
if (folder.Exists)
// get collection of Crystal Reports rpt files in the document library
SPFileCollection files = folder.Files;
// open the rpt file and get the contents
SPFile srcfile = files[reportToLaunch];
byte[] content = srcfile.OpenBinary();
// make a temporary folder
DirectoryInfo dir2 = new DirectoryInfo("~/temp");
if (!dir2.Exists)
dir2.Create();
if (File.Exists("~/temp/temp.rpt"))
File.Delete("~/temp/temp.rpt");
// write the report definition to a temporary file
// EventLog.WriteEntry("Reports", "Before Creating temp report ", EventLogEntryType.Error);
//EventLog.WriteEntry("Reports", "Before Create ", EventLogEntryType.Error);
BinaryWriter bw =
new BinaryWriter(File.Open("~/temp/temp.rpt", FileMode.Create));
bw.Write(content);
bw.Close();
// EventLog.WriteEntry("Reports", "After Create ", EventLogEntryType.Error);
// set up the crystal report
ReportDocument reportDoc = new ReportDocument();
reportDoc.Load("~/temp/temp.rpt");
EventLog.WriteEntry("Reports", "after report load ", EventLogEntryType.Error);
ConnectionInfo connection = new ConnectionInfo();
connection.ServerName = "SQLServerName";
connection.DatabaseName = "SQLDatabase";
connection.UserID = "sqluser";
connection.Password = "sqlpassword";
TableLogOnInfo logon = new TableLogOnInfo();
logon.ConnectionInfo = connection;
reportDoc.SetParameterValue("@Parameter1", parameter1);
reportDoc.SetParameterValue("@Parameter2", parameter2);
EventLog.WriteEntry("Reports", "after assigning parameters ", EventLogEntryType.Error);
foreach (CrystalDecisions.CrystalReports.Engine.Table t in reportDoc.Database.Tables)
t.ApplyLogOnInfo(logon);
EventLog.WriteEntry("Reports", "after applying login info ", EventLogEntryType.Error);
// and the Crystal report Viewer
CrystalReportViewer1.ReportSource = reportDoc;
EventLog.WriteEntry("Reports", "Before delete ", EventLogEntryType.Error);
// clean up
File.Delete("~/temp/temp.rpt");
EventLog.WriteEntry("Reports", "after delete ", EventLogEntryType.Error);
Prasad Matkar MCP, MCTS -
How to set Default DateTime values in Crystal Reports 2008
Hi All,
I'm using Crystal Reports 2008. I have two fields FromDate and ToDate in reports. While running report, FromDate field should be displayed with CurrentDate + 00:00:00 in the UI and for ToDate it should be displayed with CurrentDate + 23:59:59 format.
I have tried the below things, But still I want to set CurrentDate + 00:00:00 time in DateTime field.
"In CR 2008 you would set the time portion to 00:00:00 in this way:
1) Edit the date/time parameter and look for the 'Default Value' option; it would be blank
2) Set this to 00:00:00
This would default the calendar to 12/30/1899 00:00:00. The only worry here is, when you click on the calendar icon you would be presented with the calendar for the year 1899 and it is painstaking to scroll all the way to the current year."
I found one solution in SAP forum and I have added the below lines in Record Selection formula,
{@FromDate} = date(@CurrentDate)+time(00,00,00)
{@ToDate} = date(@CurrentDate)+time(23,59,59)
When I run the report, I still getting the empty values in the input parameters screen.
Am I missing anything? Kindly help
Thanks,
Ramesh Kumar G.See the following for samples:
Java (Crystal Reports for Eclipse) SDK - Business Intelligence (BusinessObjects) - SCN Wiki
BusinessObjects Enterprise / SAP BusinessObjects Business Intelligence Platform 4.x Java SDK Applications
Business Objects / BI Unmanaged Java RAS SDK Sample Applications
Developer Help Files:
Crystal Reports SDK
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
How to pass Presentation Variable Value from Main Report to Detail Report
Hello,
I've 2 reports that is attached to each other. In my main report i've several report prompts and i am using i"s prompted" on my detail report to attach them.
But 2 of my report prompts are presentation variables(Names : FIRST, SECOND). Both are in date format. I've a filter in my main report like;
"ASSIGNMENTS_F"."EFFECTIVE_START_DATE" BETWEEN @{FIRST} AND {SECOND}
It works fine when i run the main report. But when i click on the numbers, i see that i can not filter my detail report with the chosen values for 2 presentation variables. It just shows all the dates.
I've tried adding both presentation variables in both reports as columns and adding 'is prompted' filter to them. But did not work either.
I just cant pass the written values for presentation variable prompts to detail report..
Please help :)Hi,
What you can try is refer the filte condition in the main report to the detailed report with the option--> Filter based on another request.
Or you try creating another intermediate report which will refer the main report filters and pass the filters to the detailed report.
Hope this helps.
Regards
MuRam -
How to set default export format in Crystal Reports Viewer
When Viewing Crystal Reports, the top left button can choose export file format, how to set it default to Excel?
If we can only go with hidden the button, and create a new button, any one can kindly provide how to?
The BOE version is XI R2 SP2.
Thanks in advance!
Jenniehi all , i have same problem like i want only 1 report to be generated like for ex:only PDF should be generated n all others has to be disabled. my jsp is as follows:
<%@page import="com.abc.def.crystalReports.JRCHelper,
com.crystaldecisions.reports.reportengineinterface.*,
com.crystaldecisions.report.web.viewer.CrystalReportPartsViewer,
com.crystaldecisions.report.web.viewer.CrystalReportViewer,
com.crystaldecisions.reports.sdk.ReportClientDocument,
com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
com.crystaldecisions.sdk.occa.report.reportsource.IReportSource,
com.crystaldecisions.report.web.viewer.*,
com.crystaldecisions.sdk.occa.report.exportoptions.*,
java.sql.Connection,
java.sql.DriverManager,
java.sql.ResultSet,
java.sql.SQLException,
java.sql.Statement,
java.util.ResourceBundle"%><%
// This sample code calls methods from the JRCHelperSample class, which
// contains examples of how to use the BusinessObjects APIs. You are free to
// modify and distribute the source code contained in the JRCHelperSample class.
try {
ResourceBundle messageBundle = ResourceBundle.getBundle("resources.ApplicationResources");
String reportName = messageBundle.getString("report.path");
ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
if (clientDoc == null) {
// Report can be opened from the relative location specified in the CRConfig.xml, or the report location
// tag can be removed to open the reports as Java resources or using an absolute path
// (absolute path not recommended for Web applications).
clientDoc = new ReportClientDocument();
// Open report
clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
// ****** BEGIN CHANGE DATASOURCE SNIPPET ****************
String connectString = "jdbc:oracle:thin:@****:db;
String driverName = "oracle.jdbc.driver.OracleDriver";
String JNDIName = "";
String userName = "root"; // TODO: Fill in database user
String password = "root"; // TODO: Fill in password
// Switch all tables on the main report and sub reports
JRCHelper.changeDataSource(clientDoc, userName, password, connectString, driverName, JNDIName);
// ****** END CHANGE DATASOURCE SNIPPET ****************
// Store the report document in session
session.setAttribute(reportName, clientDoc);
// ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
// Create the CrystalReportViewer object
CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
ReportExportControl exporter = new ReportExportControl();
// set the reportsource property of the viewer
JPEReportSourceFactory rptSrcFactory = new JPEReportSourceFactory();
IReportSource reportSource = (IReportSource)rptSrcFactory.createReportSource(reportName,request.getLocale());
Boolean b1 = new Boolean(messageBundle.getString("Toggle.Group.TreeButton"));
Boolean b2 = new Boolean(messageBundle.getString("Has.ExportButton"));
Boolean b3 = new Boolean(messageBundle.getString("Has.SearchButton"));
Boolean b4 = new Boolean(messageBundle.getString("Display.GroupTree"));
Boolean b5 = new Boolean(messageBundle.getString("Has.Logo"));
Boolean b6 = new Boolean(messageBundle.getString("Display.Toolbar"));
crystalReportPageViewer.setHasToggleGroupTreeButton(true);
crystalReportPageViewer.setHasExportButton(true);
crystalReportPageViewer.setHasSearchButton(false);
crystalReportPageViewer.setDisplayGroupTree(false);
crystalReportPageViewer.setHasLogo(false);
crystalReportPageViewer.setOwnPage(true);
crystalReportPageViewer.setOwnForm(true);
crystalReportPageViewer.setReportSource(reportSource);
crystalReportPageViewer.processHttpRequest(request, response, application, null);
IReportSource reportSource = (IReportSource)rptSrcFactory.createReportSource(reportName,request.getLocale());
//CharacterSeparatedValuesExportFormatOptions csvOptions = new CharacterSeparatedValuesExportFormatOptions();
ExportOptions exportOptions = new ExportOptions();
//exportOptions.setExportFormatType(ReportExportFormat.characterSeparatedValues);
//exportOptions.setExportFormatType(ReportExportFormat.PDF);
exportOptions.setExportFormatType(ReportExportFormat.characterSeparatedValues);
exporter.setReportSource(reportSource);
exporter.setExportOptions(exportOptions);
//exporter.setExportAsAttachment(true);
exporter.processHttpRequest(request, response, application, null);
// ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************
} catch (ReportSDKExceptionBase e) {
out.println(e);
%>
if i want to add custom button where to add -
How to display the print dialogbox in crystal reports viewer for visualstudio 2013 in wpf?
Hi,
In my wpf application when i click on print button i want to display the print dialog box for current report.
Here i have written like as follows.
1.MyCrystalReportsViewer.ViewerCore.ReportSource = reportDocument;
2. MyCrystalReportsViewer.ViewerCore.PrintReport();
The above two statements is executed and displayed the report in CrystalReportViewer, but it doesn't show any print dialogbox.
MyCrystalReportsViewer is name of the CrystalReportsVIewer control.
Can any one help me to solve this one using code.Hi Sandeep,
Did you download CR for VS SP 13 from this link?
http://scn.sap.com/docs/DOC-7824
First link is to integrate CR into VS.
If you did then I suggest you do a Repair on both VS and CR for VS.
Also, VS must be Pro or higher, CR will not work in VS 2013 Express.
Do you have printers installed? Do not use Windows XPS printer, it has problems.
Don -
Open programatically Crystal Report Viewer XI to display rpt file
Thank you in Advance!!!
I got the following VBA code.
1) What library do I need to include to access Crystal Report Viewer XI?
2) How do I declare CRViewer11 to open Crystal Report Viewer XI and a created report?
Please look at ***???
Dim crrpt As New CRAXDRT.Report
Dim crapp As New CRAXDRT.Application
***???Problem here: Dim CRViewer11 As New CrystalActiveXReportViewer
Dim myParamField As CRAXDRT.ParameterFieldDefinition
Dim intCounterPartyId, intNoCreditLimit, intAllAccounts, intOpenTrades, intOpenFail, intOpenOver As Integer
Dim dtFirstDayOfYear As Date
Dim dblCreditUsed, dblYTDAmount As Double
Dim db As Database, rs As Recordset, strSql, strFileName, strMsg As String
Dim strAttachDir, strAttachment, strReportDir, strCrReport As String
'Set db = CurrentDb
strAttachDir = "T:\Work\"
'open crystal report(rpt)
strReportDir = "T:\Work\"
strCrReport = "TimeDetailwithData.rpt"
Set crrpt = crapp.OpenReport(strReportDir & strCrReport)
strFileName = Format(Now(), "YYYY-MM-DD-HHMM") & "-TimeDetail.rpt"
strAttachment = strAttachDir & strFileName
crrpt.DiscardSavedData
'SET PARAMETER FIELDS
Set myParamFields = crrpt.ParameterFields
For Each myParamField In myParamFields
With myParamField
Select Case .ParameterFieldName
Case "StartPeriod"
.SetCurrentValue CDate("2008-7-16")
Case "EndPeriod"
.SetCurrentValue CDate("2008-7-17")
Case "Org - Comp"
.SetCurrentValue "2WV"
Case "Org - Dpt"
.SetCurrentValue "300"
Case "Org - Fac"
.SetCurrentValue "01302"
End Select
End With
Next
crrpt.EnableParameterPrompting = False
crrpt.ExportOptions.FormatType = crEFTCrystalReport70
crrpt.ExportOptions.DestinationType = crEDTDiskFile
crrpt.ExportOptions.DiskFileName = strAttachment
crrpt.Export False
Set CRViewer11 = crapp.OpenReport(strAttachment)
***???Problem here: CRViewer11.ReportSource = strAttachment
***???Problem here: CRViewer11.ViewReportHi, Rocio;
In the future, please submit programming type questions to our SDK Forums.
The component you are looking for is the Crystal Report Viewer Control x, where x is your version of Crystal Reports.
You can also browse to the file, it is crviewer.dll.
Regards,
Jonathan -
Open programatically Crystal Report Viewer XI from MS Access 2003
Thank you in Advance!!!
I got the following VBA code.
1) What library do I need to include to access Crystal Report Viewer XI?
2) How do I declare CRViewer11 to open Crystal Report Viewer XI and a created report?
Please look at ***???
Dim crrpt As New CRAXDRT.Report
Dim crapp As New CRAXDRT.Application
***???Problem here: Dim CRViewer11 As New CrystalActiveXReportViewer
Dim myParamField As CRAXDRT.ParameterFieldDefinition
Dim intCounterPartyId, intNoCreditLimit, intAllAccounts, intOpenTrades, intOpenFail, intOpenOver As Integer
Dim dtFirstDayOfYear As Date
Dim dblCreditUsed, dblYTDAmount As Double
Dim db As Database, rs As Recordset, strSql, strFileName, strMsg As String
Dim strAttachDir, strAttachment, strReportDir, strCrReport As String
'Set db = CurrentDb
strAttachDir = "T:\Work\"
'open crystal report(rpt)
strReportDir = "T:\Work\"
strCrReport = "TimeDetailwithData.rpt"
Set crrpt = crapp.OpenReport(strReportDir & strCrReport)
strFileName = Format(Now(), "YYYY-MM-DD-HHMM") & "-TimeDetail.rpt"
strAttachment = strAttachDir & strFileName
crrpt.DiscardSavedData
'SET PARAMETER FIELDS
Set myParamFields = crrpt.ParameterFields
For Each myParamField In myParamFields
With myParamField
Select Case .ParameterFieldName
Case "StartPeriod"
.SetCurrentValue CDate("2008-7-16")
Case "EndPeriod"
.SetCurrentValue CDate("2008-7-17")
Case "Org - Comp"
.SetCurrentValue "2WV"
Case "Org - Dpt"
.SetCurrentValue "300"
Case "Org - Fac"
.SetCurrentValue "01302"
End Select
End With
Next
crrpt.EnableParameterPrompting = False
crrpt.ExportOptions.FormatType = crEFTCrystalReport70
crrpt.ExportOptions.DestinationType = crEDTDiskFile
crrpt.ExportOptions.DiskFileName = strAttachment
crrpt.Export False
Set CRViewer11 = crapp.OpenReport(strAttachment)
***???Problem here: CRViewer11.ReportSource = strAttachment
***???Problem here: CRViewer11.ViewReportYou will have to use the Crystal Reports Report Designer Component (craxdrt.dll). Before you do however, it may be good to know that CR XI r2 is the last version of CR that includes the craxdrt.dll as this is considered to be a retired technology in CR 2008. This may impact your efforts as the life cycle of the app may be limited(?).
Here is a link to more details of the RDC lifecycle:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80bd35e5-c71d-2b10-4593-d09907d95289
A bit of code help:
https://smpdl.sap-ag.de/~sapidp/012002523100006013432008E/rdc_vba.exe
A note on connecting to databases:
https://smpdl.sap-ag.de/~sapidp/012002523100006008462008E/crxir2.zip
Help file:
rdcsdk_com_dg.chm
C:Program FilesBusiness ObjectsCrystal Reports 11.5Helpen
dcsdk_com_dg_docdoc
Ludek -
How to Assign a Field value to a Variable??
Dear All,
Kindly let me know, if <b>"HOW TO ASSIGN A FIELD VALUE TO A VARIABLE????"</b>
Situation is, we have a Field (OBJK-TASER) in which 2 tables (SER01 & SER03) are stored. And we want to access names of the Tables which are there in the field(TASER) in (OBJK) table to a variable and then passing that variable to the sql query as a table name to get data accessed dynamicaly.try this
select TASER from OBJK into table it_table.
loop at it_table.
select field1 field2 from (it_table-table) into table it_fields.
endloop -
How to pass session variable value with GO URL to override session value
Hi Gurus,
We have below requirement.Please help us at the earliest.
How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
Please provide step by step solution.No vague answers.
I followed below steps mentioned.
RPD:
****-> Created a session variable called STATUS
-> Create Session Init block called Init_Status with SQL
select 'ACTIVE' from dual;
-> Assigned the session variable STATUS to Init block Init_Status
authenticationschemas.xml:
Added
<RequestVariable source="url" type="informational"
nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
Report
Edit column "Contract Status" and added session variable as
VALUEOF(NQ_SESSION.STATUS)
URL:
http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
Issue:
When I run the URL above with parameter EXPIRED, the report still shows for ACTIVE only. The URL is not making any difference with report.
Report is picking the default value from RPD session variable init query.
could you please let me know if I am missing something.Hi,
Check those links might help you.
Integrating Oracle OBIEE Content using GO URL
How to set session variables using url variables | OBIEE Blog
OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
Thanks,
Satya -
How to Assign a Constant Value to a Dim. Member when pulling Master Data?
BPC Gurus:
I am trying load Vendor and Customer Master data into BPC dimension. My Dimesnion has memebrs: ID, EVDESCRIPTION, PARENTH1, TYPE. I have successfully pulled the ID and the description from 0CUSTOMER and 0VENDOR. However, I
need to have a ttext value for 'PARENTH1' and 'TYPE'. For Customers, I want to add a FIXED value "'CUSTOMER' for every
Customer ID pulled in and also for "TYPE", I want a value of "CUSTOMER". When I maintainthe Dimension, I want to see
th followingvalues:
ID EVDESCRIPTION PARENTH1 TYPE
0000000001 WALMART CUSTOMER CUSTOMER
0000000002 TARGET CUSTOMER CUSTOMER
and so ON
Since we have Vendor Numbers in the same Diemsnion, when I pull Vendors, I need to have similar values as:
ID EVDESCRIPTION PARENTH1 TYPE
0000005050 ABC Supply Inc. VENDOR VENDOR
0000005051 BASF VENDOR VEDOR
and so ON
How can assign a Fixed value to the member Propert? Can I achieve it in Conversion file....?
( My atempts failed...).
Any suggestion recommendation would be gretaly appreciated.
Munna.Hi,
For adding fixed values to the properties, you can use the transformation file. In the mapping section, you can specify a constant value. This value will be written to properties of all the members while importing master data. However, for parenth, its a bit different. First thing is that, you need to have a member called CUSTOMER, then only you can have CUSTOMER in the parenth column. Even if you add it and use the mapping section for this purpose, then it will write CUSTOMER to parenth for all the members (even to CUSTOMER member). And this will be wrong. So, you will need to write it manually.
Hope you got the idea. -
How to set a variable value on the BPC Data Manager
Hello BPC Experts,
I'm creating a BPC10 NW version demo environment for our prospect customer.
I made a data manager to import BW data into BPC model from BW cube.
I need to import just one month data into BPC from the BW cube that has more than one month data.
When I run the data package manually, I can select a member of the time dimension prompt and I can import specific month data I want.
But, in a case where the program (data manager) runs by JOB monthly,
I can't select a member of the time dimension prompt manually.
So I want to know how to set a variable value to the time dimension prompt from a system date etc. automatically.
Are there any way to set a variable value to the time dimension prompt on the data manager automatically from a system date?
Or, do you have any other solution to import just one month data into BPC from the BW cube that has more than one month data by the data manager running on JOB ?
(without selecting a member of the time dimension prompt of the data package manually)
Thanks in advance,
KeisukeHi Gersh
Sorry for my late reply and thanks for your helpful information.
I tried the second way of your information and I could configure it.
And I 'll try first way of your information.
Regards,
Keisuke -
How to clear the variable value in session store?
I'll try to build form for search. There are LOV and
search button on form. When user don't select anything then push
search button, I'd like the report to show query everything. I
mean the report will show like condition where id like '%'.
And I send variable between form to report by using session
store.
I select nothing in LOV but value that return by LOV is
not null. It's in stead of old value of LOV.
Please tell me.. How to clear the variable value in
session store? I'd like to set it to null. If you have greater
way to do like this, please tell me.
Thank you.Please suggest on this..
Thanks.
Maybe you are looking for
-
Why can't I use find my iphone?
Hello, so, I have an iPhone 4S with ios 7. Very nice. I also have find my Iphone installed, and iCloud enabled. All well. So I lost my iPhone 4S, thought to track it down with find my iPhone as I could still call my iPhone. My girl friend uses my old
-
Change background color in pages app
Hey (; I'm really sorry if my question shouldn't be at this forum , How can I change the background color of my document in pages app on my iPad . I saw this in apple's iCloud commercial ... Int he commortiL she just touches the background and than f
-
CS3 OS Leapord 10.5 quits unexpectedly: Illustrator InDesign
I recently updated 2 computers, PowerbookG4 and G5 with OS 10.5 I did an upgrade install on both. The powerbook appears to be issue free. The G5 (pre-intel dual processor) is having issues with Illustrator and InDesign. Illustrator quits unexpectedly
-
Version file property... can I change it?
I'd like to be able to change a file's Version property... Possible? m
-
My question is the details.