How to create a overall total or sum for structures created?

Dear all expert,
I have a BW query as below.
Rows:
Structures
- Product A
- Product B
- Product C
- Product D
Diameter
Description
Columns:
Storage Location
Key Figures:
- Total Quantity
- Daily Quantity
How can I obtain the total or sum at the rows for all the structures?
Thank You.

Create a formula in the structure as sum of all the elements of the structure. It is not clean and you won't get just a total row below the list of elements of the structure, but that is the best option with structures and characterisitics mixed in the rows.
Thanks
Vineet

Similar Messages

  • How to create a Total in a string column with link?

    I have a VO which has a column varchar2 with numbers. When it is Zero it has a '#'. I need to create a total over this column. I created a class with a static method to convert string in number. The problem is, I dont know where and how I should interact this class with the VO Row methods. If it is in the RowImpl of this VO or VOImpl or AMImpl. My ideia is create an item on the region to show this total and set a URI to another page based on its value. Another question is where and how can I get this total and put on the item on the page. I think it should be in the CO of the page but I still dont know how.
    I dont want to create a VL because I dont want to reexecute the same query just for totals since I am getting each value and showing them... Am I complicating this task?
    Im using jdev 9.0.3.5
    Thank You All in Advance

    Thank You!!! I started the firsts steps of your idea. And now I have more question. :-)
    I have a situation. In my VO I already have an VOImpl that is called by AM.
    I'm using this class in order to add some conditions to my VO WHERE clause.
    Now I created the VORowImpl class to my VO and I put a System.out.println
    just to see each value of the column that I'm supposed to sum.
    What surprises me is, the output has the column values printed twice in the Log Window.
    For example: 1,2,3,4,5 and start again 1,2,3,4,5, but the result on the page is correct.
    Is this happening because I have VOImpl and VORowImpl? Im afraid my total be 2x its value if I sum them in VORowImpl.
    Another question is where I should code total = total + column;?
    In the VORowImpl or VOImpl or AMImpl?
    What I didnt understand is how VORowImpl is called. I can't see any calling in AM in
    a way that I take the advantage of VORowImpl interaction loop and sum to another variable in each interaction.
    Thanks Again

  • Do Any One Can explain How to Create Non-Summing Key Figure??

    Hi Guru's,
    Can Any buddy explain how to create a Non-Summing Key Figure?
    Details:
    I am creating Three Key Figures, One of them are Ticket Number's.
    Ticket Number supposed to be a Characteristic, but I was asked to do it as a Key Figure.
    If I create it as normal KF, then the Ticket Numbers will be summed, isn't it?
    Your Help much appreciated.
    Regards,
    BH

    Hi,
       If you are going to use that keyfigure in ODS, in Update rule you are having the option 'OVERWRITE' .
      choose Overwrite for that keyfigure instead of 'Addition'.
    rgrds,
    v.sen.

  • How to create a grand total

    My query works fine. I am just wondering if I could add another row to create a grand total for all rows returned running this query. please help
    SELECT DISTINCT 'Q'||(TRUNC (TO_CHAR (B.DATELET, 'Q')))||' - ' || :year QuarterYear ,TRUNC (TO_CHAR (B.DATELET, 'Q')) Quarter,
    to_char (sum(l.contamt) OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))) ,   '$999,999,999.99') AwardedDollarAmount ,
           count(P.CPROJNUM) OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))) ProjectAwarded,
         ---  to_char( SUM (MIN (c.calcbtot)) OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))), '$999,999,999.99') AwardedDollarAmount,
           SUM (COUNT (C.VENDOR))OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q'))))  NumberOfBidders,
           to_char(SUM (COUNT (C.VENDOR))OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))) /  count(P.CPROJNUM) OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))), '999.99') AverageNumberOfBidder
        FROM BIDDERS C,
             BIDLET B,
             LETPROP L,
             PROPOSAL P
       WHERE     C.LETTING = B.LETTING
             AND P.CONTID = L.LCONTID
             AND C.LETTING = L.LETTING
             AND C.CALL = L.CALL
             AND l.lcontid IN
                    (SELECT lcontid
                     FROM letprop c, PROPOSAL d
                     WHERE     datestat IS NOT NULL
                            AND UPPER (letstat) <> 'R'
                            AND UPPER (letstat) <> 'B'
                            AND TRIM (UPPER (TIMELET)) = TRIM ('9:30 A.M.')
                            AND c.LCONTID = d.CONTID)
             AND B.DATELET >=
                    ADD_MONTHS (TRUNC (TO_DATE (:year, 'YYYY'), 'YYYY'),
                                (:from_quarter - 1) * 3)
             AND B.DATELET <
                    ADD_MONTHS (TRUNC (TO_DATE (:year, 'YYYY'), 'YYYY'),
                                :to_quarter * 3)
    GROUP BY  TRUNC (TO_CHAR (B.DATELET, 'Q')), P.CPROJNUM, l.contamt
    order by  TRUNC (TO_CHAR (B.DATELET, 'Q'));
    Q1 - 2011     1      $174,950,864.40     71     278        3.92
    Q2 - 2011     2      $196,470,118.71     96     329        3.43
    Q3 - 2011     3       $56,552,583.92     30     116        3.87
    Q4 - 2011     4       $25,497,261.10     17     84        4.94
    Total  Amount:            35000047800.00       214           807******************************Here is what I would like to create a new row to show grand total.Edited by: 893601 on Dec 30, 2011 12:07 PM

    Hi,
    Can you please try this.. check this before you execute.. may be u need to change the datatype of the second half of union all statement
    WITH tmp AS
    (SELECT DISTINCT 'Q'
    || (TRUNC (TO_CHAR (b.datelet, 'Q')))
    || ' - '
    || &year quarteryear,
    TRUNC (TO_CHAR (b.datelet, 'Q')) quarter,
    TO_CHAR
    (SUM (l.contamt) OVER (PARTITION BY (TRUNC
    (TO_CHAR
    (b.datelet,
    'Q'
    '$999,999,999.99'
    ) awardeddollaramount,
    COUNT (p.cprojnum) OVER (PARTITION BY (TRUNC
    (TO_CHAR
    (b.datelet,
    'Q'
    )) projectawarded,
    --- to_char( SUM (MIN (c.calcbtot)) OVER (PARTITION BY (TRUNC (TO_CHAR (B.DATELET, 'Q')))), '$999,999,999.99') AwardedDollarAmount,
    SUM (COUNT (c.vendor)) OVER (PARTITION BY (TRUNC
    (TO_CHAR
    (b.datelet,
    'Q'
    numberofbidders,
    TO_CHAR
    ( SUM (COUNT (c.vendor)) OVER (PARTITION BY (TRUNC
    (TO_CHAR
    (b.datelet,
    'Q'
    / COUNT (p.cprojnum) OVER (PARTITION BY (TRUNC
    (TO_CHAR
    (b.datelet,
    'Q'
    '999.99'
    ) averagenumberofbidder
    FROM bidders c, bidlet b, letprop l, proposal p
    WHERE c.letting = b.letting
    AND p.contid = l.lcontid
    AND c.letting = l.letting
    AND c.CALL = l.CALL
    AND l.lcontid IN (
    SELECT lcontid
    FROM letprop c, proposal d
    WHERE datestat IS NOT NULL
    AND UPPER (letstat) = 'R'
    AND UPPER (letstat) = 'B'
    AND TRIM (UPPER (timelet)) = TRIM ('9&30 A.M.')
    AND c.lcontid = d.contid)
    AND b.datelet >=
    ADD_MONTHS (TRUNC (TO_DATE (&year, 'YYYY'), 'YYYY'),
    (&from_quarter - 1
    ) * 3
    AND b.datelet <
    ADD_MONTHS (TRUNC (TO_DATE (&year, 'YYYY'), 'YYYY'),
    &to_quarter * 3
    GROUP BY TRUNC (TO_CHAR (b.datelet, 'Q')), p.cprojnum, l.contamt
    ORDER BY TRUNC (TO_CHAR (b.datelet, 'Q')))
    SELECT *
    FROM tmp
    UNION ALL
    SELECT 'Total Amount: '
    || SUM (awardeddollaramount)
    || ' '
    || SUM (projectawarded)
    || ' '
    || SUM (numberofbidders)
    || ' '
    || SUM (averagenumberofbidder)
    FROM tmp;
    --------------------------------------------------

  • How to create a custom measure for each level of a dimension

    Hi all!
    Can Anyone please explain me with an example, how to create a custom measure for each level for a dimension? I dont mine if you use
    one or more measures.
    thanks in advance
    hope someone helps me.

    For example:I create a dimension for product_dim witch has 4 levels:total, class, family and item:
    d_aben18
    n1_aben18
    n2_aben18
    n3_aben18
    n4_aben18
    herarchy:h_aben18
    cube:cubo_aben18
    measure:med_aben18
    I create this code to fetch the data to the dimension:
    TRAP ON CLEANUP
    SQL DECLARE c1 CURSOR FOR SELECT-
    total_product_id,1,'N1_ABEN18',total_product_dsc,-
    class_id,1,'N2_ABEN18',total_product_id,class_dsc,-
    family_id,1,'N3_ABEN18', class_id, family_dsc,-
    item_id,1,'N4_ABEN18',family_id,item_dsc-
    FROM PRODUCT_DIM
    "OPEN THE CURSOR
    SQL OPEN c1
    "FETCH THE DATA
    SQL FETCH c1 LOOP INTO-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N1_aben18_LEVELDEF,:D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N2_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N3_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    :APPEND D_ABEN18, :D_ABEN18_H_aben18_HIERDEF,:D_ABEN18_N4_aben18_LEVELDEF,:D_ABEN18_parentrel,-
    :D_ABEN18_long_description,-
    "SAVE THE CHANGES
    UPDATE
    COMMIT
    CLEANUP:
    SQL CLOSE c1
    SHOW 'KK2'
    Then I create a cube with use compression off, and in rules sum for example.
    After, I create a measure and I select Override the aggregation specification for the cube, in rules I put nonadditive and I would like to create aprogram to assign distinct values to each level of the dimension. For example, I put 1, 2 3, and 4 values, but at the end I would like to put count(distinct(values)).
    for that I create another program:
    VRB D_RETURN DECIMAL
    if D_ABEN18_N1_ABEN18_LEVELDEF eq 'N1_ABEN18'
    then D_RETURN = 1
    if D_ABEN18_N2_ABEN18_LEVELDEF eq 'N2_ABEN18'
    then D_RETURN = 2
    if D_ABEN18_N3_ABEN18_LEVELDEF eq 'N3_ABEN18'
    then D_RETURN = 3
    if D_ABEN18_N4_ABEN18_LEVELDEF eq 'N4_ABEN18'
    then D_RETURN = 4
    else d_return=26
    return d_return
    "SHOW D_RETURN
    cubo_aben18_med_aben18_stored=d_return
    but it doesnt work.I dont know how to put to assign or to see what I want.
    I report the measure, or I report the program, but then how can I see the values of the measure?
    thanks in advance

  • How to create business charts in Forms 10g?

    In the old days, before and in 8i, we can still create business charts using Graphics Builder with the following graph types. How can we build business charts in forms 10g?
    Column: Shows discrete values using vertical columns
    Bar: Shows discrete values using horizontal bars
    Gantt: Shows task or project scheduling information using horizontal bars
    High-Low: Shows multiple Y-axis values for each X-axis point
    Line: Shows data values as points connected by lines to show trends
    Mixed: Combines a column and line chart
    Pie: Shows how individual data values contribute to an overall total
    Scatter: Plots 2 sets of potentially related data to identify possible trends
    Table: Shows text data in a table
    Double-Y: Shows a column or line chart with multiple values for the same X-axis value

    On the samples page on OTN there is a piece on how to use BI beans to achieve business charts. Search for "BI bean Graphs in Forms".

  • How to calculate % based on totals of a characteristic

    HI BI query goeroes,
    I have following query:
    Sales org - S&OP - Channel - PSI - KeyFigure1 - % S&OPKF1 - % Channel KF1
    S100--SAA---1010/60--
    10/30
    S100--SAB---2020/60--
    20/30
    total  ChannelA--
    30
    S100--SBA---1515/60--
    15/30
    S100--SBB---1515/60--
    15/30
    total  ChannelA--
    30
       total S&OP S                                 60
    Question is how to calculate the last two colums.
    First colum should calculate the Keyfigure1 percentage based on the overall total of S&OP per salesorg (keep in mind that we have multiple sales orgs).
    Last colum should calculate the Keyfigure1 percentage based on the total of Channel per salesorg/s&op group.
    Can anyone please assist me how to do this?
    I am using the BI7.0 query designer.

    Hi,
    To Calculate % Channel KF1 you can use  'Percentage of Result'(KeyFigure1).
    To calculate % S&OPKF1 you can use ' Pecentage of Overall Result' (Keyfigure1).
    These are functions are available in the Percentage Functions when you create a formula or a CKF.
    Hope this helps.

  • How to create compute field

    Hi,
    Does anybody know how to create a compute field based on other input fields and data retrieved from the database in the same page ?
    I use an interactive form and report which has 2 input fields, 1 drop-down list containing identifiants and a kind of total field which has to be calculated from the 2 first input fields, 1 value retrieved from the database by the identifiant seleted that i may put in a hidden field. On form submit (click on the create button), the value calculated in this compute field has to be inserted into database as any other input field.
    I've tried many things : button , process, computations after regions and so on but nothing works. I wonder if i can put some pl/sql or expression in the default value of the compute field ?
    As i'm new in apex, can somebody tell me how do these objects work together ? how to refer to a field in the form with an 'apex expression' ?
    Thks a lot

    Hi,
    I've tried 2 solutions. The first one, with calculations performed by trigger, works well but i can't see the total before inserting into DB.
    The second is what i prefer but impossible to get it work.
    So if someone has an idea, please help
    in my pdetail_modele page_
    I have
    - 2 input fields P28_X and P28_Y
    - 1 compute field P28_CTP
    - a button "compute CTP" which has to display, for example, the sum of P28_X and P28_Y in the P28_CTP field.
    Here is what i did
    - process (before regions) create_mod_collection:
    begin
    if apex_collection.collection_exists(p_collection_name=>'MODELE') = false then
    apex_collection.create_collection(p_collection_name=>'MODELE');
    else
    for x in (select n001, n002 from apex_collections where collection_name='MODELE')
    loop
    :P28_X := x.n001;
    :P28_Y := x.n002;
    end loop;
    end if;
    end;
    - P28_X and P28_Y : nothing in source field
    - P28_CTP source value or expression : select nvl(:P28_X,0) + nvl(:P28_Y,0) from dual;
    - Button Compute_CTP action : redirect to page in this application with p_detail_modele in page field.
    - process (after regions) add_modele_collection :
    apex_collection.add_member(p_collection_name=> 'MODELE', p_n001=>:P28_X, p_n002=>:P28_Y);
    Thks
    Edited by: user469717 on Apr 23, 2013 11:33 AM

  • How to create  BALANCE..I have no idea!

    Hi,
    I can't figured how to create a balance formula. Okay this is the scenario. I have clients that give me a deposit of the total amount of the project. What I would like to do is this:
    *Total Cost:* $XXX
    Deposit: $XXX
    Payment 1: $XXX
    Payment 2: $XXX
    Payment 3: $XXX
    Payment 4: $XXX
    Payment 5: $XXX
    *BALANCE LEFT:*$xxx
    I want the BALANCE to change every time I insert a payment. How can I do that?
    Thank you so much for your time.

    Hi Kilombo,
    I very simple approach would be to have a separate table for payments and another table for Total cost, Deposit and Balance. Here's an example:
    This solution assumes that the balance due is the Total Cost minus the Deposit minus the sum of the Payments. What you wrote isn't exactly this, but I think this is what you meant. If I'm wrong, I'll try better to understand.
    Jerry

  • How to create a simple calculated measure ?

    Hello,
    I'm having difficulties creating a very simple calculated measure within OBIEE administrator. Let's say I have a dimension "product" with attribute "product price" and a measure "sales count". I'm trying to define in the "Business Model" layer the calculated measure "total sales". In order to do that I defined it as as a Logical Column with expression "product price" * "sales count".
    However OBIEE doesn't compute what I'm expecting, it does in fact a cartesian product of the products and the grand total sales, which doesn't make sense. To alleviate that I tried to define the measure as associated to the Product level, then I get the computations right but the sales by product are not summed into a grand total.
    Anyway this seems like a very basic thing to do but I've not been able to find any documentation about it; the internal "Help" documentation is extremely limited. Is there another source of documentation that I'm not aware of ?
    Thanks for your help,
    Chris

    Hi there again,
    I'm coming back to you regarding the calculated measure above. As advised, I defined it using physical columns and am - almost - able to get the correct results. However I notice that the measure is not correctly aggregated over the "product" dimension. More specifically what happens is that the products are organized into a level-based hierarchy; only the leaf elements have an attibute "price"; the upper nodes in the hierarchy group different products together with different prices.
    The "total price" measure for such a node should be the sum of "product price" * "sales count" for all underneath nodes in the hierarchy, which is the way it is done for instance in AWM. However with the measure defined as above, I only get NULL values for upper nodes, due to the fact that "product price" is NULL for those levels and thus yields a NULL result.
    I've tried to circumvent the problem by associating the measure to the leaf level of the "product" hierarchy in the Properties -> Levels tab, however this doesn't seem to do what I want, it only forces the computation to happen at the lowest level of the hierarchy. What I would like is for the measure to aggregate to upper levels just as it would were it defined directly in AWM.
    Do you know how to do that ?
    Thanks for your help!
    Chris

  • 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+
    +               //+
    +          }+//=========================================================================

  • How to create a drop down box and text box in screen painter?

    Hi i am totally new to this concept of screen painter..please can any tell me
    how to create drop down box in screen painter?
    How to create or display default date and time values?
    How to create text box for giving comments?
    How to store the records that we are entering in a table?
    Please can any one send me the procedure for creating all these its very urgent useful information will be surely rewarded.

    Hi,
    Check all these.
    1.how to create drop down box in screen painter?
    To get Drop Drown Box on screen .
    Follow these steps.
    1.
    Go to T.Code SE51 and Select Laypout for the Screen.
    2.
    Double click on the field for which u want Dropdown box.
    3.
    Then U will see Name ,Text ,DROPDOWN.Click on that and select List Box or ListBox with key . Better to to select first one.
    4.
    Save and Activate ur screen .
    5.
    Enter the following piece of code in the PBO of the screen.(Change for ur requirement).
    6.
    The following code should be written under PROCESS BEFORE EVENT in the MODULE.
    TYPE-POOLS :vrm.
    DATA:
      i_natio TYPE vrm_values, "-->Table that is passed through FM vrm_set_values
      w_natio LIKE LINE OF i_natio.
    DATA:
    BEGIN OF i_t005t OCCURS 0,
        land1 TYPE t005t-land1,
        natio TYPE t005t-natio,
    END OF i_t005t.
    IF i_t005t[] IS INITIAL.
      SELECT land1 natio
         FROM t005t
           INTO TABLE i_t005t
       WHERE spras = sy-langu.
      IF sy-subrc = 0.
      LOOP AT i_t005t .
          w_natio-key = i_t005t-land1.
          w_natio-text = i_t005t-natio.
          APPEND w_natio TO i_natio.
          CLEAR w_natio.
      ENDLOOP.
      ENDIF.
    ENDIF.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
                          id = 'I_IT0002-NATIO' "-->Field for which dropdown is needed.
                    values = i_natio
    EXCEPTIONS
       id_illegal_name = 1
                OTHERS = 2.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    2.1.How to create or display default date and time values?
    1.
    create input field for DATE and TIME on screen.ex. DATE1 and TIME1 are screen field names .
    2.
    Just assign SY-DATUM to DATE1 and SY-UZEIT to TIME1 under PROCESS BEFORE EVENT.
    3.How to create text box for giving comments?
    1.
    Define one variable in the TOP include with type STRING means Global variable.
    2.
    Create one input field by giving screen field name which u have defined in the above step.
    4.How to store the records that we are entering in a table?
    For this case.. Create one table control. you can select one record and create record in the Z table by pressing button on Application toolbar..
    Check the following steps to handle Table control.
    1).
    U should take one variable in your internal table or in structure which
    is used for table control fields
    ex :
    data :
    begin of itab occurs 0 ,
        mark type c , "This is to select the record.
        matnr like mara-matnr ,
        matkl like mara-matkl,
        maktx like makt-maktx,
    end of itab .
    Controls: TABC types TABLEVIEW using screen 100.
    2).
    This mark variable should be given in Table control properties.
    follow the path
    double click on the table control-->attributes .->select
    w/SelColumn and in that itab-mark. Check in the figure.
    [Table control properties screen|http://bp2.blogger.com/_O5f8iAlgdNQ/R99gOUH8CXI/AAAAAAAAA9I/d3gOum1fJ6s/s1600-h/pic28145-796618.jpg]
    3).
    After that. Take this example.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT ITAB WITH CONTROL tabc
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    LOOP AT ITAB.
       Module read_table_control.
    ENDLOOP.
    module user_command_0100.
    In this Module read_table_control, You should write the following code
    MODULE read_table_control INPUT.
    MODIFY itab INDEX tabc-current_line."( This will update the
    "ITAB table MARK field with 'X ' whatever we have selected
    "on table control.)
    ENDMODULE.
    4)
    If you want to Delete some of the records from Table control
    follow this code …Create one pushbutton and give Fucnction code to that
    and write below code
    CASE OKCODE.
    WHEN 'CREATE'.
    LOOP AT itab WHERE mark = 'X'.
    "Use UPDATE statement to create new record.
    ENDLOOP.
    ENDCASE.
    I hope that you will get something.
    Regards,
    Venkat.O

  • How to show the break totals and NOT the report totals in an SQL report

    APEX 4.0.1
    In an normal SQL report (Not interactive) with a break applied on the first column, how do you just show the break totals and NOT the extra full report totals?
    Next, Is it possible to display only some of the row totals and not for all columns that have the sum option checked against them?
    PaulP

    PaulP wrote:
    APEX 4.0.1
    In an normal SQL report (Not interactive) with a break applied on the first column, how do you just show the break totals and NOT the extra full report totals?Instead of using the APEX break feature, try doing all of this in the query using <tt>GROUPING SETS</tt> or <tt>ROLLUP</tt> to get the break rows, and <tt>GROUPING_ID</tt> in the <tt>HAVING</tt> clause to suppress the unwanted rows.
    Next, Is it possible to display only some of the row totals and not for all columns that have the sum option checked against them?Don't really understand what's meant here?

  • How to create multiple modules in quizzes in single file?

    Hi,
    Can someone guide me how to create a multiple module quizzes under one captivate file ( captivate 5.5 ver)
    I have a quiz.cptx file with 50 questions from different chapters A,B,C,D,E with 10 questions in each chapter.
    The scenario
    Note : min 80% score  per chapter is the passing criteria
    1. Start the quiz after login and password
    2. Start the quiz for chapter A ( 10 questions)
    3. score for chapter A should be displayed
    4. If "cpQuizInfoPointsscored"'s  value < = 40 ; ie 80 % for chapter A
             review of the failed questions in the chapter
             OR
             retake quiz for that chapter should be triggered,
       else goto chapter B
    5. Start the quiz for chapter B ( 10 questions)
    3. score for chapter B should be displayed
    5. If "cpQuizInfoPointsscored"'s  value < = 40 ; ie 80 % for chapter B
             review of the failed questions in the chapter
             OR
             retake quiz for that chapter should be triggered,
       else goto chapter C
    6. //rly with other chapters
    7. After passing all chapters the result should be printer based on the scores.
    Is there any better ideas to crack the steps 4 - 6, bcz i am not able to reset the value of "cpQuizInfoPointsscored"; which is incremented as each question is completed.

    Welcome to the forum,
    Agree totally with Rod, this can be done with advanced actions (have some examples on my blog), but it is a lot of work. And the Quizzing system variables such as cpQuizINfoPointsscored are all read only, no way to change them by advanced actions at all.
    If you want to transfer variable values from one file to another, like from the different quiz files to a main file (to take decisions over there about possible branchings), you should have a look at Michael Lund's Save & Load Data widget:
    Save & Load Data widget
    Lilybiri

  • How to create a group mailing list?

    how to create agroup mailing list?

    i have followed instructions on "how to create a group mailing list" & get a total blank when i hit return after entering the group name in addressee column.   this is after i created a new group under address book, & then drug over individual names into the group.   what am i doing wrong?

Maybe you are looking for

  • Can't load iTunes and Apps in my iPhone after upgrading to OS5.

    So, I updated my iPhone late last night to the new IOS5.  It downloaded everything and went through all the permutations my iPhone went through with each OS upgrade. But after the update and sync were complete, I no longer have any Apps on the phone

  • Which is Better?: Add to multiprovider; Create new ODS; Create new Cube

    Which is a better choice: Add to multiprovider; create additional ODS; create additional Cube? I have this data flow: 5 ODSes which are aggregated into a single Cube1. A multiprovider then sits on the Cube1. I run Report1 against the multiprovider an

  • XML database query through Java

    Hi all. I am collecting information about a little application i am trying to build: I have an XML database with records divided in a lot of subdirectory (with three or four .xml files); directories' names are defined by date in format "yyyymmdd", th

  • EOIO - cross client

    Hi all I have a situation where I need data to be processed EOIO. The problem is that i only whant to process one message a time pr. client (I have multiple business systems (clients) on the same system). How can i achieve this? My scenatio is file -

  • Regarding Role Authorisation and Obejcts

    Hello Experts, I have requirement from the basis team they want to know the object names for the particular transaction like MMBE and also they have request that they want to restrict to view the stock for plant 1000 for particular user, so they need