OBIEE Report based on attribute dim or say base attribute value

Hi,
I have OBIEE and Essbase implementation and have set of attribute dimensions. I am trying to understand how can I create reports in OBIEE where I can use the attribute values to filter, group, sum my fact data. For example I have a hierarchy for Dimension Supplier Geography as below -
Geography (Gen1 - Dimension)
(Gen2, Region)
(Gen3, Country)
(Gen4, Supplier Parent)
(Gen5, Supplier) (Attribute as Company Name)
Sample :
Supplier Geography
-- East
-- C1
-- PS1
-- S1 (Comp1)
-- S2 (Comp2)
-- West
-- C2
-- PS2
-- S3 (Comp1)
-- S4 (Comp2)
-- C3
-- PS3
-- S5 (Comp3)
-- S6 (Comp4)
-- North
-- C4
-- PS4
-- S7 (Comp3)
-- S8 (Comp4)
-- South
-- C5
-- PS5
-- S9 (Comp1)
-- S10 (Comp2)
Now, I would like to report where I can display information based on the attribute and display across different level. This would require to create drop down for this attribute values. For example -
A drop down showing values are Comp1, Comp2, Comp3, Comp4. When user selects Comp1 and assume that I have fact as sales amount, it should show report as below -
Comp1
Region Sales Amount
East - 10,000
West - 5,000
South - 7,000
I don't want to add a level as company as it would result in lot of redundant information. Also, I have got almost half million members and it would explode the size if I add more levels. Is there any better way to achieve this? Can I model this using alternate hierarchy? If so how would this exposed in OBIEE again?
Appreciate your inputs.
Thanks

If you are sure of the number of attributes the user will be using as criteria is fixed and will not change, you should able to bind the literals to page items like:
select emp.ename
from emp
join attribute_value a1 on a1.empno = emp.empno and a1.att_name = 'DEPT'
join attribute_value a2 on a2.empno = emp.empno and a2.att_name = 'SALARY'
join attribute_value a3 on a3.empno = emp.empno and a3.att_name = 'HIREDATE'
where a1.att_numeric_value = :P1_dept_value
and   a2.att_numeric_value = :P1_salary_value
and   a3.att_date_value = to_date(:P1_hiredate_value,'YYYY-MM-DD');or
select emp.ename
from emp
join attribute_value a1 on a1.empno = emp.empno and a1.att_name = :P1_att1_name
join attribute_value a2 on a2.empno = emp.empno and a2.att_name = :P1_att2_name
join attribute_value a3 on a3.empno = emp.empno and a3.att_name = :P1_att3_name
where a1.att_numeric_value = :P1_att1_value
and   a2.att_numeric_value = :P1_att2_value
and   a3.att_date_value = to_date(:P1_att3_value,'DD-MM-DD');What happens when your user wants to add another attribute and use it as search criteria. You have to:
1) add a JOIN clause to the SELECT
2) add to the WHERE clause to the SELECT
Warning personal opinion to follow: I would give up binding (i.e.. skipping parsing os the SELECT statement) for the flexibility of generating the SELECT at runtime. If the user adds a new attribute, then the PL/SQL code that assembles the SELECT statement would not have to be changed. All the meta data is stored in the database as to what the new column is and which column in the attributes table to use (ATT_NUMERIC_VALUE or ATT_DATE_VALUE). If your method of displaying the attributes and receiving the user's criteria is dynamic like my example, then you would not have to change the application at all for new attributes.
Just my 2 cents worth of opinion,
Mike

Similar Messages

  • How to show the columns dynamically in OBIEE report based on the selection?

    Hi,
    I have a requirement where the columns should be dynamically shown in report based on what we select in propmt page.
    I'm creating a report in OBIEE where i want to give an option to the end user to select the columns whichever he wants to see in the report.
    For example I have the following columns in the report already:
    Customer Name,
    Customer Number,
    Bank Account,
    Address
    I want to give an option to the user to select 'Customer Mail ID' dynamically and see the column to be displyed in the report along with the existing columns.
    Through 'Column Selector' user can select a single column at a time, but if he want to select more than one column, how can we do this ?
    Please help me out in resolving this issue.
    Thanks,
    Chaithanya.

    Hi Chaithanya,
    there's not a straight solution for this. You can create different analysis containing different number of columns and then directing the user to this analysis using Action Links or you can also use View Selector to switch from one view (analysis) to the other. But it's not going to be very flexible nor dynamic.
    J.

  • OBIEE report based on same criteria but different view based on filter

    Hi,
    I am trying to create a report in OBIEE 11.1.1.5 where In the same report using the same criteria, I can have different views which applies different filter.
    Suppose, I have a report criteria as
    Dim1, Dim2, Measure1, Measure 2.
    I want to create two pivot view based on the same data.
    One view will be showing data Dim1="Value1". The other view is duplicate of this view but will show data Dim1="Value2".
    Is it possible in OBIEE?
    basically what I want is work on the same dataset but different representation and show them in the same report. Please share your opinion.
    Regards,
    Tanveer.

    Hi,
    You create a new dim dummy column in criteria and in presentation level create new pivot table view use this dummy dimension column and filter with dim1=value2.
    give updates on this.
    Mark if Helpful/correct.
    Thanks.

  • Selecting a column in Answers report based on user prompt/ apply filter

    I need to do the following in OBIEE Answers report (version 10.1.3.4.1):
    1) Think of a simple table with dim TX_type and some measures like month_jan, month_feb, month_mar
    so the fact table looks like (column names) tx_type, month_jan, month_feb, month_mar
    2) I need to select the measure column based on a user dashboard prompt, prompt populates a presentation variable var_month = jan or feb or mar
    3) I need to select the correct measure (one of these month_jan, month_feb, month_mar) and then apply column filter based on the dim TX_type to split the values of these into multiple columns for report. So the report may look like (in Answers)
    Sales , Tax, overheads
    where Sales may be defined as sum(month_jan) where rows have TX_type = 'sales'
    where Tax may be defined as sum(month_feb) where rows have TX_type = 'tax'
    where overheads may be defined as sum(month_mar) where rows have TX_type = 'overheads'
    IF the user selects jan
    IF user selects Feb then the 3 report columns are based on month_feb and likewise for month_mar
    I cannot use column selector option as the report column further apply filter in column filter definitions in Answers...
    4) When I try to build the column filter using a presentation variable (var_month), the presentation variable is not getting populated in the column filter.
    For e.g. IF var_month = 'jan'
    THEN month_jan (let us assume the logical column name is month_jan too)
    ELSE month_feb and so on...
    However, the var_month always shows 0 in the IF clause. If we used a repository variable instead, it works fine. But since repostory variable cannot be changed on the fly (by user prompt) it is not usable.
    We cannot change fact table defintion....and we have 12 measures column and about 8-10 different colum filter based report columns using this measure.

    Hi shyamvaran,
    have you thought about a SQL statement in the prompt, something like:
    SELECT
    case when 1=0 then Table."Column" else 'Jan' end
    FROM "Subject Area"
    union
    SELECT
    case when 1=0 then Table."Column" else 'Feb' end
    FROM "Subject Area"
    union
    SELECT
    case when 1=0 then Table."Column" else 'Mar' end
    FROM "Subject Area"
    union
    SELECT
    case when 1=0 then Table."Column" else 'Apr' end
    FROM "Subject Area"
    etc...
    Use this to give you the 12 values for your months then give the prompt column a presentation variable name and set a default value in the 'Default To'. Also set the same default value for the filter.
    A couple of points:
    1. If you're transforming the presentation variable from 'Jan' to 'month_jan' you may need to edit the syntax for the filter column (not using the dialog box).
    2. If you're transforming the behaviour of a dimension / measure column in the report, have you specified the syntax correctly, e.g. sum('@{pres_var}')?
    Hope this helps,
    Justin

  • OBIEE: REPORT FROM 2 FACTS WITH ONE SHARED AND ONE UNSHARED DIM; POSSIBLE??

    Hi All,
    We have a typical scenario to build a report from 2 subject areas(ideally from 2 facts)
    Here is the Scenario: Creating a report which based on two facts(2 Subject Area's) and one common dimension and one unshared dimension.
    Example
    ======
    Dimension Date is common between Fact Transaction and Fact Credits.
    Dimension Credit Type is applicable only for Fact Credit.
    We have to build a report with the below mentioned attributes/metrics
    Dim Date. Attribute (*Common Dimension*)
    Fact.Transaction.Metric
    Fact. Credit .Metric
    Dim.Credit Type. Attribute (*Unshared Dimension*)
    Is this is possible in OBIEE..?
    Thanks,
    Govardhana

    Yes, you must use measure levels. Set the column level of each measure from the Transaction Fact to Total for the Credit Type dim.

  • How to find total report based on a particular subject area in OBIEE?

    Hi Everyone,
    I am new to OBIEE. I want to find out all the reports based on a particular subject area as there are many subject areas and lot of reports in OBIEE.
    Please help me out in this issue.
    Thanks
    Regards
    Sohail Dayer

    Sohail,
    Check out the catalogue manager reports :
    http://oraclebizint.wordpress.com/2007/11/19/oracle-bi-ee-catalog-reports/
    If you want this kind of thing automated, I personally am very fond of the ODI -> OBIEE Data lineage solution as provided in Oracle By Example tutorials :
    http://www.oracle.com/technology/obe/fusion_middleware/odi/OBI-ODI_Lineage/OBI-ODI_Lineage.htm

  • OBIEE 11g - Formatting a dahboard/report based on users

    Hi All,
    Could someone please tell me if it is possible to format a report based on different users so that when User1 logs in and clicks Report1, then he/she can view the data with Format1 (lets say value is bold, with green colour in background etc) whereas when User2 clicks Report1, then he/she can view the same data but with Format2 ( value not in bold, with blue colour in background etc).
    I am not sure if we can do something with CSS styling based on users.
    Thanks,
    Sneha

    Hi Sneha,
    Try to use Conditional Formatting.
    1> Pull one extra column in your report along with required columns in report.
    2> In that extra column in fx put user();
    3> In the column where you want bold and background color based on user, set conditional format (Add condition extra column = A, then Bold and BG Color).
    4> Hide that extra column.
    Please let me know whether it resolves your issue.
    Thanks
    Anirban

  • Can I pass parameters from a dashboard via a dashboard prompt and presentation variable to publisher report based on a data model with select statements in OBIEE 11g ?

    I have a publisher 11g (v 11.1.1.7)  report with a single parameter. The report is based on a data model not a subject area.  I created a dashboard put a dashboard prompt and link to the report in separate section on the same page.  The dashboard prompt sets a presentation variable named the same as the parameter in the report. 
    The problem was when I created the dashboard prompt, it forced me to select a subject area which I did (though did not want to) and then I created both a column and variable prompts. But clicking on the
    report link completely ignored the value that I thought would be passed in the presentation variable to the report.
    Side note :  My report uses a pdf template for its layout where I have mapped the columns names from my data model to the form fields on the pdf form.  I noticed that if I create a publisher report based on a subject area, then I do not have the choice to choose a PDF as a template type for my layout.  (I only see BI Publisher Template as a choice). 
    I see some documentation online that suggest it could be done in 10g.
    Thanks
    M. Jamal

    Ok,
    I just tried that and it still doesn't pass anything to the prompt.
    I changed the prompt to an edit field and I made the following weblink but when i click the link from an account it doesn't put anything in the prompt and all data for all accounts is shown.
    This is the URL maybe I messed something up...
    https://secure-ausomx###.crmondemand.com/OnDemand/user/Dashboard?OMTHD=ShowDashboard&OMTGT=ReportIFrame&SelDashboardFrm.Dashboard Type=%2fshared%2fCompany_########_Shared_Folder%2f_portal%2f360+Report&Option=rfd&Action=Navigate&P0=1&P1=eq&P2=Account."Account Name"&P3=%%%Name%%%
    thanks

  • Can i filter a report based on a value of a navigational attribute?

    Hi all,
    i need to filter a report and the characteristic i need it's a navigational attribute that is already present in the infocube, can i use it as a filter or i need to add a new characteristic to the ic?
    thank you

    Hi
    You can use navigational attributes to filter your report. When you switch on the navigational attributes at the cube level, the X table or Y table will be connected to the star schema of cube.
    Navgational attributes behave like a characteristic in the report. You can create variables, filter etc on navgational attributes.
    Hope it helps.
    Regards
    Sadeesh

  • OBIEE Report Export from Dashboard to Excel doesn't suppress the columns as

    OBIEE Report Export from Dashboard to Excel doesn't suppress the columns as expected even after the properties are set to Suppress in the report. In Dashboard it is suppressed Properly but in the excel export it is not suppressed and values for the columns are repeated.
    Added the following to the instanceconfig :
    <Download>
    <Export xsi:type="excel">
    <DataValue>UseFormattedValue</DataValue>
    <RepeatRows>false</RepeatRows>
    </Export>
    </Download>
    But then could not restart services.The following error occured :
    Util Logger] Exception occurred:
         Severity:1
         Type:PKN3saw9ExceptionE
         File:saxreader.cpp
         Line:681
         Message:Sax parser returned an exception.
    Message: The prefix 'xsi' has not been mapped to any URI, Entity publicId: /oracle/ofm/instances/instance1/config/OracleBIPresentationServicesComponent/coreapplication_obips1/instanceconfig.xml, Entity systemId: , Line number: 43, Column number: 26
    Edited by: 887111 on Mar 27, 2013 11:23 PM

    Problem solved!!
    <br><br>
    See this part of the query:
    <br><br>
    if :P15_GESTOR_PROPIETARI='-3' then<br>
    w:= w||' AND (("STASVWREPORT_TASQUES"."GES_GES_ID"=:GESTOR ';<br>
    w:= w||'OR "STASVWREPORT_TASQUES"."GES_GES_ID_ESTA_ASSIGNADA"=:GESTOR)';<br>
    w:= w||'OR ("STASVWREPORT_TASQUES"."AGR_***_***_ID"=<FONT color=red>:P15_CANVI_DE_CLUB</FONT> ';
    w:= w||' AND "STASVWREPORT_TASQUES"."PUBLICA"=''S''))';<br>
    end if;<br>
    <br>
    when instead of :P15_CANVI_DE_CLUB I put a value (say ''EE'') it works correctly, finally I created an application item (ASSOCIAT) and when when I change :P15_CANVI_DE_CLUB I set :ASSOCIAT to the same value and the query is based on this application item:
    <br><br>
    if :P15_GESTOR_PROPIETARI='-3' then<br>
    w:= w||' AND (("STASVWREPORT_TASQUES"."GES_GES_ID"=:GESTOR ';<br>
    w:= w||'OR "STASVWREPORT_TASQUES"."GES_GES_ID_ESTA_ASSIGNADA"=:GESTOR)';<br>
    w:= w||'OR ("STASVWREPORT_TASQUES"."AGR_***_***_ID"=<FONT color=red>:ASSOCIAT </FONT>';<br>
    w:= w||' AND "STASVWREPORT_TASQUES"."PUBLICA"=''S''))';<br>
    end if;<br>
    <br>

  • BI Report based on Age bands?

    Hi all,
    I need to create a simple OBIEE report on the sales made by sales persons based on the age band:
    Eg:
    Sales Person Sales
    Age 25 - 35 --> 30000 units
    Age 36 - 45 --> 10000 units
    Age 46 - 55 --> 5000 units
    Age 56 - 65 --> 20000 units
    I have the "*Date_ of_Birth*" field in the SalesPerson_Dimension and the No_units_sold by a sales person in the Fact table.
    My big question is how to create Age Bands in OBIEE?
    Appreciate your help.

    You create a logical collumn 'Age Band' in a Logical Dim table. Use whatever physical table is holding your DOB columm as the LTS for this dimension. For the mapping to the LTS do something like :
    CASE
    WHEN TIMESTAMPDIFF( SQL_TSI_DAY , CURRENT_DATE , physical_table.dob_column) <= 20 THEN '0-20'
    WHEN TIMESTAMPDIFF( SQL_TSI_DAY , CURRENT_DATE , physical_table.dob_column) <= 30 THEN '21-30'
    ELSE '100+'
    END
    You really want this field in a logical dim as you typically want to group by it. If the DOB column is in a fact table dont worry, just use that fact table as the LTS table and do the ususal complex join for this dimension to the fact as normal in the BMM layer.
    Dont forget a hierarchy, good practice even if no true levels, Total -> Detail with your age band as the detail. Also dont forget your content levels in the LTS content tab.
    So all the logic for assigning the bands is performed on each row.
    If your having probs let us know !
    Cheers
    Alastair

  • Open OBIEE report from web application

    Experts, I want to open OBIEE report from a web application. I have a question regarding the security here. Say I login as 'USER1' in web application, I would have to pass 'USER1' in nquser parameter. Correct? Also, this report has access to 'Sales Group' users only. So, does 'USER1' in web application need to be assigned to 'Sales Group'? Or, any user in the web application can open this report as long as I pass nquser in the GOURL.
    thx,
    parag

    You don't need to specify group details.
    When the report hits OBIEE, it will determine the permissions based on the nquser.
    Hope it helps.

  • How to create a report based on a DataSet programatically

    I'm working on a CR 2008 Add-in.
    Usage of this add-in is: Let the user choose from a list of predefined datasets, and create a totally empty report with this dataset attached to is. So the user can create a report based on this dataset.
    I have a dataset in memory, and want to create a new report in cr2008.
    The new report is a blank report (with no connection information).
    If I set the ReportDocument.SetDataSource(Dataset dataSet) property, I get the error:
    The report has no tables.
    So I must programmatically define the table definition in my blank report.
    I found the following article: https://boc.sdn.sap.com/node/869, and came up with something like this:
    internal class NewReportWorker : Worker
          public NewReportWorker(string reportFileName)
             : base(reportFileName)
    public override void Process()
             DatabaseController databaseController = ClientDoc.DatabaseController;
             Table table = new Table();
             string tabelName = "Table140";
             table.Name = tabelName;
             table.Alias = tabelName;
             table.QualifiedName = tabelName;
             table.Description = tabelName;
             var fields = new Fields();
             var dbField = new DBField();
             var fieldName = "ID";
             dbField.Description = fieldName;
             dbField.HeadingText = fieldName;
             dbField.Name = fieldName;
             dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
             fields.Add(dbField);
             dbField = new DBField();
             fieldName = "IDLEGITIMATIEBEWIJS";
             dbField.Description = fieldName;
             dbField.HeadingText = fieldName;
             dbField.Name = fieldName;
             dbField.Type = CrFieldValueTypeEnum.crFieldValueTypeInt64sField;
             fields.Add(dbField);
             // More code for more tables to add.
             table.DataFields = fields;
             //CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo info =
             //   new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
             //info.Attributes.Add("Databse DLL", "xxx.dll");
             //table.ConnectionInfo = info;
             // Here an error occurs.
             databaseController.AddTable(table, null);
             ReportDoc.SetDataSource( [MyFilledDataSet] );
             //object path = @"d:\logfiles\";
             //ClientDoc.SaveAs("test.rpt", ref path, 0);
    The object ClientDoc referes to a ISCDReportClientDocument in a base class:
       internal abstract class Worker
          private ReportDocument _ReportDoc;
          private ISCDReportClientDocument _ClientDoc;
          private string _ReportFileName;
          public Worker(string reportFileName)
             _ReportFileName = reportFileName;
             _ReportDoc = new ReportDocument();
             // Load the report from file path passed by the designer.
             _ReportDoc.Load(reportFileName);
             // Create a RAS Document through In-Proc RAS through the RPTDoc.
             _ClientDoc = _ReportDoc.ReportClientDocument;
          public string ReportFileName
             get
                return _ReportFileName;
          public ReportDocument ReportDoc
             get
                return _ReportDoc;
          public ISCDReportClientDocument ClientDoc
             get
                return _ClientDoc;
    But I get an "Unspecified error" on the line databaseController.AddTable(table, null);
    What am i doing wrong? Or is there another way to create a new report based on a DataSet in C# code?

    Hi,
    Have a look at the snippet code below written for version 9 that you might accommodate to CR 2008, it demonstrates how to create a report based on a DataSet programmatically.
    //=========================================================================
    +           * the following two string values can be modified to reflect your system+
    +          ************************************************************************************************/+
    +          string mdb_path = "C:
    program files
    crystal decisions
    crystal reports 9
    samples
    en
    databases
    xtreme.mdb";    // path to xtreme.mdb file+
    +          string xsd_path = "C:
    Crystal
    rasnet
    ras9_csharp_win_datasetreport
    customer.xsd";  // path to customer schema file+
    +          // Dataset+
    +          OleDbConnection m_connection;                         // ado.net connection+
    +          OleDbDataAdapter m_adapter;                              // ado.net adapter+
    +          System.Data.DataSet m_dataset;                         // ado.net dataset+
    +          // CR variables+
    +          ReportClientDocument m_crReportDocument;          // report client document+
    +          Field m_crFieldCustomer;+
    +          Field m_crFieldCountry;+
    +          void CreateData()+
    +          {+
    +               // Create OLEDB connection+
    +               m_connection = new OleDbConnection();+
    +               m_connection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + mdb_path;+
    +               // Create Data Adapter+
    +               m_adapter = new OleDbDataAdapter("select * from Customer where Country='Canada'", m_connection);+
    +               // create dataset and fill+
    +               m_dataset = new System.Data.DataSet();+
    +               m_adapter.Fill(m_dataset, "Customer");+
    +               // create a schema file+
    +               m_dataset.WriteXmlSchema(xsd_path);+
    +          }+
    +          // Adds a DataSource using dataset. Since this does not require intermediate schema file, this method+
    +          // will work in a distributed environment where you have IIS box on server A and RAS Server on server B.+
    +          void AddDataSourceUsingDataSet(+
    +               ReportClientDocument rcDoc,          // report client document+
    +               System.Data.DataSet data)          // dataset+
    +          {+
    +               // add a datasource+
    +               DataSetConverter.AddDataSource(rcDoc, data);+
    +          }+
    +          // Adds a DataSource using a physical schema file. This method require you to have schema file in RAS Server+
    +          // box (NOT ON SDK BOX). In distributed environment where you have IIS on server A and RAS on server B,+
    +          // and you execute CreateData above, schema file is created in IIS box, and this method will fail, because+
    +          // RAS server cannot see that schema file on its local machine. In such environment, you must use method+
    +          // above.+
    +          void AddDataSourceUsingSchemaFile(+
    +               ReportClientDocument rcDoc,          // report client document+
    +               string schema_file_name,          // xml schema file location+
    +               string table_name,                    // table to be added+
    +               System.Data.DataSet data)          // dataset+
    +          {+
    +               PropertyBag crLogonInfo;               // logon info+
    +               PropertyBag crAttributes;               // logon attributes+
    +               ConnectionInfo crConnectionInfo;     // connection info+
    +               CrystalDecisions.ReportAppServer.DataDefModel.Table crTable;+
    +               // database table+
    +               // create logon property+
    +               crLogonInfo = new PropertyBag();+
    +               crLogonInfo["XML File Path"] = schema_file_name;+
    +               // create logon attributes+
    +               crAttributes = new PropertyBag();+
    +               crAttributes["Database DLL"] = "crdb_adoplus.dll";+
    +               crAttributes["QE_DatabaseType"] = "ADO.NET (XML)";+
    +               crAttributes["QE_ServerDescription"] = "NewDataSet";+
    +               crAttributes["QE_SQLDB"] = true;+
    +               crAttributes["QE_LogonProperties"] = crLogonInfo;+
    +               // create connection info+
    +               crConnectionInfo = new ConnectionInfo();+
    +               crConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;+
    +               crConnectionInfo.Attributes = crAttributes;+
    +               // create a table+
    +               crTable = new CrystalDecisions.ReportAppServer.DataDefModel.Table();+
    +               crTable.ConnectionInfo = crConnectionInfo;+
    +               crTable.Name = table_name;+
    +               crTable.Alias = table_name;+
    +               // add a table+
    +               rcDoc.DatabaseController.AddTable(crTable, null);+
    +               // pass dataset+
    +               rcDoc.DatabaseController.SetDataSource(DataSetConverter.Convert(data), table_name, table_name);+
    +          }+
    +          void CreateReport()+
    +          {+
    +               int iField;+
    +               // create ado.net dataset+
    +               CreateData();+
    +               // create report client document+
    +               m_crReportDocument = new ReportClientDocument();+
    +               m_crReportDocument.ReportAppServer = "127.0.0.1";+
    +               // new report document+
    +               m_crReportDocument.New();+
    +               // add a datasource using a schema file+
    +               // note that if you have distributed environment, you should use AddDataSourceUsingDataSet method instead.+
    +               // for more information, refer to comments on these methods.+
    +               AddDataSourceUsingSchemaFile(m_crReportDocument, xsd_path, "Customer", m_dataset);+
    +                              +
    +               // get Customer Name and Country fields+
    +               iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Customer Name", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
    +               m_crFieldCustomer = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
    +               iField = m_crReportDocument.Database.Tables[0].DataFields.Find("Country", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault);+
    +               m_crFieldCountry = (Field)m_crReportDocument.Database.Tables[0].DataFields[iField];+
    +               // add Customer Name and Country fields+
    +               m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCustomer);+
    +               m_crReportDocument.DataDefController.ResultFieldController.Add(-1, m_crFieldCountry);+
    +               // view report+
    +               crystalReportViewer1.ReportSource = m_crReportDocument;+
    +          }+
    +          public Form1()+
    +          {+
    +               //+
    +               // Required for Windows Form Designer support+
    +               //+
    +               InitializeComponent();+
    +               // Create Report+
    +               CreateReport();+
    +               //+
    +               // TODO: Add any constructor code after InitializeComponent call+
    +               //+
    +          }+//=========================================================================

  • Generating a report based on two analytics(for ex:PO and PR)

    I have a question regarding generating reports on two analytics.
    In our scenarios,
    We need to generate a report based on Purchase order and Purchase request.Is it possible in OBIA?
    if yes,please provide the solution.
    Thanks in advance

    Hi ,
    Thanks for your valuable time.
    We are in designing phase of the project. we need to know ,Is there any inbuilt dashboards or reports built using both PO and PR repositories?
    I would like to explain with ex:
    Let's say we need a report or dashboard containing few fields from PO and few fields from PR.Let's assume both PO and PR data available at same granularity.
    Do we have any such inbuilt reports or dashboard?
    If not,could we customize the report generation using both PO and PS tables?
    Please provide the solution.
    Thanks in advance.
    Edited by: user3561029 on Aug 31, 2008 9:03 PM

  • Bold a single row in a Report based on SQL Query

    Should be easy? So, how do I bold a single row in a report based on SQL query without creating a new template or writing Java for the page? What is the Tabular Form Element "Element Attributes" field for? Or what am I supposed to put in there to make it do anything?

    One way to do this is to add a hidden column to your report which contains the formatting value, for example:
    select empno
    , ename
    , sal
    , decode(empno,1,'font-weight:bold','font-weight:normal') style
    from emp
    Hide the STYLE column.
    Then you can use this column for each column in Column Formatting > HTML expression in this way:
    <span style="#STYLE#">#SAL#</span>
    Unfortunately you have to do this for each colum you want to appear bold.
    good luck,
    Dirk Dral

Maybe you are looking for

  • Error 13019 when trying to sync my Ipod Touch 3rd generation

    For the past two days, I have not been able to sync music unto my Ipod. It started when I tried to sync two new albums onto my Ipod, but one album would not sync (the other album did). Every time I tried to sync it, an "unknown error 13019" popped up

  • Need Spool output file in Excel format

    Hi, We have background job , which creates a spool output in Internet Explorer format. Customer needs this in Excel format. Wondering, if any authorizations to be changed for file type? or this is a set in program level? Thanks, Sam

  • Troubles with the equalizer presets

    Each and every song in my library have a saved equalizer preset, so that different music genres will have different equalizer preset, but it doesn't work completely. If I click on song #1, a jazz song, it will have a jazz preset, but when I let that

  • Logic quits after time compression/expansion

    Logic Pro 8 quits EVERY TIME after I use a time compression/expansion plug-in in the sample editor. It does not matter if I use Logic's own plug-in or if I use Serato Pitch 'n Time LE. I am currently spending all my time in core audio as opposed to D

  • Saving a Title Created in Premiere CS5

    When I worked with Premiere Pro 1.5 and made a title, it would automatically be saved in the Adobe folder located in My Documents so I could use it for another project if I wanted to in the future or delete it at my leisure. With Premiere CS5, I crea