Creating Dynamic Reports

I'm working on designing a reporting module that will create requested reports in PDF format that can be viewed or printed. We have a tool to generate the PDF called ITEXT. The goal is to make the formatting very flexible to avoid recompiling Java code when they want to modify a header or change a column name and to keep the formatting information in 1 place where several Web Servers can access them without restarting the servers (using Corba).
We have 10 different reports to create but they can choose various paremeter when viewing each report (date range, by family member, etc...).
I have reviewed several third party freeware tools such as JasperReports and DataVision. Just wondering if there are any tools out there that can help (that are free).

Hi bobbassen
You can take a look at the new Preferences API that is shipped along with JDK 1.4. This should help you in saving report structures in one place and help you modify it through a GUI without re-compilation.
see : http://java.sun.com/j2se/1.4/docs/guide/lang/preferences.html
Keep me posted on your progress.
Good Luck!
Eshwar R
Developer Technical Support
Sun microsystems
http://www.sun.com/developers/support

Similar Messages

  • Is it possible to create dynamic reports using iReports in netbeans ?

    Hi
    I want to know that is it possible to create dynamic reports using netbeans? Dynamic reports means based on user selection(for eg. say by selecting values from combo boxes) some query will be genatated and fetch the query result from data base and displayed results in iReports only my problem is i am working on Netbeans IDE and i have installed iReports as plugins in netbeans IDE. and i am not able to find any tutorial that show me how to work with iReports under netbeans IDE. and how to create dynamic reports in iReports. If u know any such tutorial then can you send me link plz...!
    Thanks

    What do you mean by "in Start Menu"? Do you mean Live tile? See https://msdn.microsoft.com/en-us/library/windows/apps/hh465403.aspx
    https://msdn.microsoft.com/en-us/library/windows/apps/dn468032.aspx
    Best Regards,
    Please remember to mark the replies as answers if they help

  • Creating Dynamic Report - facing error REP-498

    Hi guys,
    Facing problem Creating Dynamic Reports.
    Error : REP-498: Number of columns selected by the query is incompatible with report definition.
    Could you please show me where do i have to changed my query to get rid of this error message?
    Thanking you in advance.
    --dynamic query
    select a.yr_no
    &columname_1
    from authorized_utilization_s a,
    tblservicecategory b, tblnetworkplanrptgroup c,tblreportgroup e
    &wherecl_1
    &groupby_1
    union
    select a.yr_no
    &columname_2
    from authorized_utilization_s a,
    tblservicecategory b, tblnetworkplanrptgroup c,tblreportgroup e
    &wherecl_2
    &groupby_2
    &orderby
    ------after parameter form function
    FUNCTION afterpform
    RETURN BOOLEAN
    IS
    BEGIN
    IF :report_type = 'C' -- C represent Carrier Report
    THEN
    :columname_1 := ',a.qtr_no,b.rptservicecatid, sum(a.sum_svcschedulerate)/1000 planamount ';
    :wherecl_1 := ' where e.reportgroupid = c.reportgroupid '
    ||' and e.reportgroupid NOT IN (180,188,191,203,206,227,228, '
    ||' 229,230,231,232,233,234,235,236,237,238,365,366,550,644,645)'
    ||' and e.reportgroupclassid = '|| :p_reportgroupid
    ||' and a.planid = c.planid '
    ||' and a.yr_no = '||:p_year
    ||' and a.qtr_no <= '|| :p_quarter
    ||' and rtrim(a.servicecatid) = rtrim(b.servicecatid) ' ;
    :groupby_1 := ' group by a.yr_no,a.qtr_no,b.rptservicecatid ';
    :columname_2 := ', a.qtr_no,b.rptservicecatid, sum(a.sum_svcschedulerate)/1000 planamount';
    :wherecl_2 := ' where e.reportgroupid = c.reportgroupid '
    ||' and e.reportgroupid NOT IN (180,188,191,203,206,227,228, '
    ||' 229,230,231,232,233,234,235,236,237,238,365,366,550,644,645)'
    ||' and e.reportgroupclassid = '|| :p_reportgroupid
    ||' and a.planid = c.planid '
    ||' and a.yr_no = '||:p_year||' - 1 '
    ||' and a.qtr_no >= '||:p_quarter
    ||' and rtrim(a.servicecatid) = rtrim(b.servicecatid) ';
    :groupby_2 :=' group by a.yr_no,a.qtr_no,b.rptservicecatid ';
    :orderby :=' order by yr_no, qtr_no, rptservicecatid ' ;
    ELSIF :report_type = 'Q'
    THEN -- Q represent Quarter Report
    -- second condition will be here for 'Q'
    ELSIF :report_type = 'A'
    THEN -- A represent Annual Report
    --third condition will be here  for 'A'
    ELSE
    :tablename := '';
    :wherecl := '';
    END IF;
    RETURN (TRUE);
    END;
    ----final query for report type 'C' should looks like this and WHICH IS WORKING FINE FROM SQL*PLUS.
    select a.yr_no
    ,a.qtr_no,b.rptservicecatid, sum(a.sum_svcschedulerate)/1000 planamount
    from authorized_utilization_s a,
    tblservicecategory b, tblnetworkplanrptgroup c,tblreportgroup e
    where e.reportgroupid = c.reportgroupid
    and e.reportgroupid NOT IN (180,188,191,203,206,227,228,
    229,230,231,232,233,234,235,236,237,238,365,366,550,644,645)
    and e.reportgroupclassid = :p_reportgroupid
    and a.planid = c.planid
    and a.yr_no = :p_year
    and a.qtr_no <= :p_quarter
    and rtrim(a.servicecatid) = rtrim(b.servicecatid)
    group by a.yr_no,a.qtr_no,b.rptservicecatid
    union
    select a.yr_no
    , a.qtr_no,b.rptservicecatid, sum(a.sum_svcschedulerate)/1000 planamount
    from authorized_utilization_s a,
    tblservicecategory b, tblnetworkplanrptgroup c,tblreportgroup e
    where e.reportgroupid = c.reportgroupid
    and e.reportgroupid NOT IN (180,188,191,203,206,227,228,
    229,230,231,232,233,234,235,236,237,238,365,366,550,644,645)
    and e.reportgroupclassid = :p_reportgroupid
    and a.planid = c.planid
    and a.yr_no = :p_year - 1
    and a.qtr_no >= :p_quarter
    and rtrim(a.servicecatid) = rtrim(b.servicecatid)
    group by a.yr_no,a.qtr_no,b.rptservicecatid
    order by yr_no, qtr_no, rptservicecatid ;

    The problem is with initial values of your lexical parameters. They should be so that even before obtaining their desired values in the trigger, they would create syntactically correct SQL returning as many columns and of appropriate types, as you expect the final SQL to produce. You can not manipulate the number and types of columns using lexical parameters, just the real mapping to the table columns. The number, the type, and the order of selected columns should be defined by initial values of lexical parameters.

  • Create dynamic report or query for piece count

    Hi abaper's
    This is a very straight forward requirement. so please give me code
    First you have to get the corresponding plant from table T320 for the given warehouse numbers in the selection screen. 
    1.     Get the sum of order qty of sales orders from the sales order tables      for the given warehouse(Plant), distribution channel and the give date      range.
    2.     Get the confirmed transfer orders qty from the TO master table where      TO confirmation date is in the given date range and WH number.
    3.     Get the total PGIed qty from the delivery master table where PGI'ed      date in the given date range, shipping point is in the corresponding      plant of the WH and for the given distribution channel.
    As you are going to use the major tables please try to write the select commands effectively to avoid further performance issues.

    How to improve the performance fo this code.....this very urgent.
    & Issue Number          : 22199                                    &
    & Programmer            : Anjaneyulu.Pabba                         &
    & Transport Number      : D01K962471                               &
    & Date of Creation      : 19/03/2008                               &
    & Description           : Dynamic report or query for piece count  &
    & Requested By          : Parvati.Polisetty                        &
    REPORT  ZR_SD_PIECE_COUNT_ALV no standard page heading
                                  line-size 255
                                  line-count 65.
                          TABLES DECLARATION
    *TABLES: T320,   "Assignment IM Storage Location to WM Warehouse Number
          VBAK,   "Sales Document: Header Data
          VBAP,   "Sales Document: Item Data
          TVKOV,  "Org. Unit: Distribution Channels per Sales Organization
          LTAK,   "WM transfer order header
          LTAP,   "Transfer order item
          LIKP,   "SD Document: Delivery Header Data
          LIPS.   "SD document: Delivery: Item data
                          TYPE-POOLS DECLARATION
    TYPE-POOLS: SLIS .
         Internal Table Declaration
    DATA : BEGIN OF TY_T320,
            WERKS TYPE WERKS_D,
            LGNUM TYPE LGNUM,
           END OF TY_T320.
    DATA : BEGIN OF TY_VBAK,
            VBELN  TYPE VBELN_VA,
            VTWEG  TYPE VTWEG,
            WERKS  TYPE WERKS_D,
            KWMENG TYPE KWMENG,
            VSTEL  TYPE VSTEL,
           END OF TY_VBAK.
    DATA : BEGIN OF TY_LTAK,
            LGNUM TYPE LGNUM,
            TANUM TYPE TANUM,
            VISTA TYPE LTAP_VISTA,
           END OF TY_LTAK.
    DATA : BEGIN OF TY_LIKP,
            VBELN TYPE VBELN_VL,
            WERKS TYPE WERKS_D,
            LFIMG TYPE LFIMG,
           END OF TY_LIKP.
    DATA : BEGIN OF TY_ITAB ,
    LGNUM  TYPE LGNUM,    "Warehouse Number / Warehouse Complex
    WERKS  TYPE WERKS_D,  "Plant
    VBELN  TYPE VBELN_VA, "Sales Document
    VTWEG  TYPE VTWEG,   "Distribution Channel
    KWMENG TYPE KWMENG,  "Cumulative order quantity in sales units
    TANUM  TYPE TANUM ,     "Transfer Order Number
    VISTA  TYPE LTAP_VISTA, "Source actual quantity in alternative
                                                 unit of measure
    LFIMG  TYPE LFIMG,  "Actual quantity delivered (in sales units)
    END OF TY_ITAB .
    DATA: T_T320 LIKE STANDARD TABLE OF TY_T320 INITIAL SIZE 0 WITH HEADER
                                                                   LINE,
          T_VBAK LIKE STANDARD TABLE OF TY_VBAK INITIAL SIZE 0 .
    DATA: T_LTAK LIKE STANDARD TABLE OF TY_LTAK INITIAL SIZE 0 WITH HEADER
                                                                    LINE.
    DATA :T_LIKP LIKE STANDARD TABLE OF TY_LIKP INITIAL SIZE 0 WITH HEADER
                                                                    LINE.
    DATA:T_ITAB LIKE STANDARD TABLE OF TY_ITAB INITIAL SIZE 0 WITH HEADER
                                                                   LINE .
    *&      Fieldcatalog Declaration
    DATA : T_FCAT TYPE SLIS_T_FIELDCAT_ALV,
           W_FCAT TYPE SLIS_FIELDCAT_ALV.
    DATA : W_LAYOUT TYPE SLIS_LAYOUT_ALV.
    ********Global Data Declaration***
    DATA :G_REPID        LIKE SY-REPID,
         G_EXIT(1)      TYPE C,
         GX_VARIANT     LIKE DISVARIANT,
         X_SAVE,                          "for Parameter I_SAVE
         GS_VARIANT TYPE DISVARIANT.      "for parameter IS_VARIANT
    data: g_lgnum type t320-lgnum,
          g_vtweg type vbak-vtweg,
          g_erdat type vbak-erdat.
    *&      Selection-Screen
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_LGNUM FOR  g_lgnum, "Warehouse Number
                    S_VTWEG FOR g_vtweg, "Distribution Channel
                    S_ERDAT FOR g_erdat ."Date on which the record was
    **********"created
    SELECTION-SCREEN END OF BLOCK B1 .
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETER: P_VARI LIKE DISVARIANT-VARIANT.  "Layout
    SELECTION-SCREEN END OF BLOCK B2.
    *&       INITIALIZATION EVENT
    INITIALIZATION.
      CLEAR GS_VARIANT.
    'gs_variant' must at least contain the report-id to allow
    saving a variant.
      G_REPID = SY-REPID.
    § 2.At least field REPORT of this structure has to be filled!
      GS_VARIANT-REPORT = G_REPID.
    § 3.Determine saving options.
      X_SAVE = 'A'.   "The user may save all types of variants
    *******Validating selection-screen values**********************
    getting F4 value for display variant field
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI.
      PERFORM F4_FOR_VARIANT.
    ****validation of F4 value of display variant
    AT SELECTION-SCREEN.
      PERFORM PAI_OF_SELECTION_SCREEN.
    *&      Start-Of-Selection
    START-OF-SELECTION.
    *****Subroutine to  select Plant from T320
      PERFORM FIND_PLANT .
    *****Subroutine to select Order Quantity from VBAP
      PERFORM ORDER_QUANTITY .
    *****Subroutine to select Transfer Order Quantity from LTAK and LTAP
      PERFORM TRANSFER_ORDER_QUANTITY.
    *****Subroutine to select TDelivery Quantity from  LIKP and LIPS
      PERFORM DELIVERY_QUANTITY.
    *&      End-Of-Selection
    END-OF-SELECTION.
    *****Subroutine for Fieldcatalog
      PERFORM FIELDCATALOG .
    *****Subroutine for Final Output
      PERFORM DISPLAY_OUTPUT .
    *&     Subroutine Implementaion
    *&      Form  FIND_PLANT
          text
    -->  p1        text
    <--  p2        text
    FORM FIND_PLANT .
      SELECT  WERKS
              LGNUM
              FROM T320
              INTO  TABLE T_T320
              WHERE LGNUM IN S_LGNUM.
    ENDFORM.                    " FIND_PLANT
    *&      Form  order_quantity
          text
    -->  p1        text
    <--  p2        text
    FORM ORDER_QUANTITY .
      SELECT VK~VBELN
             VK~VTWEG
             VP~WERKS
             VP~KWMENG
             VP~VSTEL
             INTO TABLE T_VBAK FROM VBAK AS VK
             INNER JOIN  VBAP AS VP
             ON VKVBELN = VPVBELN
             FOR ALL ENTRIES IN T_T320
             WHERE VK~VTWEG IN S_VTWEG
             AND   VK~ERDAT IN S_ERDAT
             AND   VP~WERKS = T_T320-WERKS.
    ENDFORM.                    " order_quantity
    *&      Form  Transfer_order_quantity
          text
    -->  p1        text
    <--  p2        text
    FORM TRANSFER_ORDER_QUANTITY .
      SELECT LK~LGNUM
             LK~TANUM
             LP~VISTA
             INTO TABLE T_LTAK FROM LTAK AS LK
             INNER JOIN LTAP AS LP
             ON LKLGNUM = LPLGNUM
             WHERE LK~KQUIT = 'X'
             AND   LK~BDATU IN S_ERDAT
             AND   LK~LGNUM IN S_LGNUM.
    ENDFORM.                    " Transfer_order_quantity
    *&      Form  Delivery_QUANTITY
          text
    -->  p1        text
    <--  p2        text
    FORM DELIVERY_QUANTITY .
      SELECT  VBELN WERKS LFIMG FROM LIPS
              INTO TABLE T_LIKP
              FOR ALL ENTRIES IN T_T320
              WHERE WERKS = T_T320-WERKS
              AND ERDAT IN S_ERDAT
              AND VTWEG IN S_VTWEG.
    ENDFORM.                    " Delivery_QUANTITY
    *&      Form  fieldcatalog
          text
    -->  p1        text
    <--  p2        text
    FORM FIELDCATALOG .
      W_FCAT-COL_POS       = '1' .
      W_FCAT-FIELDNAME     = 'LGNUM' .
      W_FCAT-REF_TABNAME   = 'T320'.
      W_FCAT-REF_FIELDNAME = 'LGNUM' .
      APPEND W_FCAT TO T_FCAT.
      CLEAR W_FCAT.
      W_FCAT-COL_POS       = '2' .
      W_FCAT-FIELDNAME     = 'VTWEG' .
      W_FCAT-REF_TABNAME   = 'VBAK'.
      W_FCAT-REF_FIELDNAME = 'VTWEG' .
      APPEND W_FCAT TO T_FCAT.
      CLEAR W_FCAT.
      W_FCAT-COL_POS       = '3' .
      W_FCAT-FIELDNAME     = 'KWMENG' .
      W_FCAT-REF_TABNAME   = 'VBAP'.
      W_FCAT-REF_FIELDNAME = 'KWMENG' .
    *w_fcat-seltext_m     = '# of Orders'.
      APPEND W_FCAT TO T_FCAT.
      CLEAR W_FCAT.
      W_FCAT-COL_POS       = '4' .
      W_FCAT-FIELDNAME     = 'VISTA' .
      W_FCAT-REF_TABNAME   = 'LTAP'.
      W_FCAT-REF_FIELDNAME = 'VISTA' .
    *w_fcat-seltext_m     = '# of Pcs Picked'.
      APPEND W_FCAT TO T_FCAT.
      CLEAR W_FCAT.
      W_FCAT-COL_POS       = '5' .
      W_FCAT-FIELDNAME     = 'LFIMG' .
      W_FCAT-REF_TABNAME   = 'LIPS'.
      W_FCAT-REF_FIELDNAME = 'LFIMG' .
    *w_fcat-seltext_m     = '# of Pcs Shipped'.
      APPEND W_FCAT TO T_FCAT.
      CLEAR W_FCAT.
    W_FCAT-COL_POS       = '6' .
    W_FCAT-FIELDNAME     = 'TANUM' .
    W_FCAT-REF_TABNAME   = 'LTAK'.
    W_FCAT-REF_FIELDNAME = 'TANUM' .
    **w_fcat-seltext_m     = '# of Pcs Shipped'.
    APPEND W_FCAT TO T_FCAT.
    CLEAR W_FCAT.
    W_FCAT-COL_POS       = '7' .
    W_FCAT-FIELDNAME     = 'WERKS' .
    W_FCAT-REF_TABNAME   = 'T320'.
    W_FCAT-REF_FIELDNAME = 'WERKS' .
    **w_fcat-seltext_m     = '# of Pcs Shipped'.
    APPEND W_FCAT TO T_FCAT.
    CLEAR W_FCAT.
    ENDFORM.                    " fieldcatalog
    *&      Form  display_output
          text
    -->  p1        text
    <--  p2        text
    FORM DISPLAY_OUTPUT .
      LOOP AT T_T320 INTO TY_T320.
        TY_ITAB-WERKS = TY_T320-WERKS.
        TY_ITAB-LGNUM = TY_T320-LGNUM.
        READ TABLE T_VBAK INTO TY_VBAK WITH KEY WERKS = TY_T320-WERKS.
        IF SY-SUBRC = 0.
        TY_ITAB-VBELN  = TY_VBAK-VBELN.
        TY_ITAB-VTWEG  = TY_VBAK-VTWEG.
        TY_ITAB-KWMENG = TY_VBAK-KWMENG + ty_itab-kwmeng.
        ENDIF.
        READ TABLE T_LTAK INTO TY_LTAK WITH KEY LGNUM = TY_T320-LGNUM.
        IF SY-SUBRC = 0.
        TY_ITAB-TANUM = TY_LTAK-TANUM.
        TY_ITAB-VISTA = TY_LTAK-VISTA + ty_itab-vista.
        ENDIF.
        READ TABLE T_LIKP INTO TY_LIKP WITH KEY WERKS = TY_T320-WERKS.
        IF SY-SUBRC = 0.
        TY_ITAB-LFIMG = TY_LIKP-LFIMG + ty_itab-lfimg.
        ENDIF.
        APPEND TY_ITAB TO T_ITAB.
      ENDLOOP.
    Function Module for Displaying Final Output ********
      W_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM = SY-CPROG
          IS_LAYOUT          = W_LAYOUT
          IT_FIELDCAT        = T_FCAT[]
        TABLES
          T_OUTTAB           = T_ITAB.
    ENDFORM.                    " display_output
    *&      Form  f4_for_variant
          text
    -->  p1        text
    <--  p2        text
    FORM F4_FOR_VARIANT .
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          IS_VARIANT = GS_VARIANT
          I_SAVE     = X_SAVE
        IMPORTING
          E_EXIT     = G_EXIT
          ES_VARIANT = GX_VARIANT
        EXCEPTIONS
          NOT_FOUND  = 2.
      IF SY-SUBRC = 2.
        MESSAGE ID SY-MSGID TYPE 'S'      NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        IF G_EXIT = SPACE.
          P_VARI = GX_VARIANT-VARIANT.
        ENDIF.
      ENDIF.
    ENDFORM.                    " f4_for_variant
    *&      Form  pai_of_selection_screen
          text
    -->  p1        text
    <--  p2        text
    FORM PAI_OF_SELECTION_SCREEN .
      IF NOT P_VARI IS INITIAL.
        MOVE GS_VARIANT TO GX_VARIANT.
        MOVE P_VARI TO GX_VARIANT-VARIANT.
        CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
          EXPORTING
            I_SAVE     = X_SAVE
          CHANGING
            CS_VARIANT = GX_VARIANT.
        GS_VARIANT = GX_VARIANT.
      ELSE.
        PERFORM VARIANT_INIT.
      ENDIF.
    ENDFORM.                    " pai_of_selection_screen
    *&      Form  variant_init
          text
    -->  p1        text
    <--  p2        text
    FORM VARIANT_INIT .
      CLEAR GS_VARIANT.
      GS_VARIANT-REPORT = G_REPID.
    ENDFORM.                    " variant_init

  • Creating Dynamic Reports at Runtime Using JRC

    <p><span class="PSEDITBOX_DISPONLY">I am trying to integrate Crystal Reports into our web application.  Our application currently provides the ability to create custom reports on any field(database column) in the application, including custom fields created by the user.  Each customer&#39;s database will be different.  Is there a way in Crystal Reports to dynamically build a report based on a custom query?  I would need the ability to do this programmatically, through JSP, by adding and removing fields from a Crystal Report.  My plan is to push the results of a query to a report viewer, but I need the ability to add, remove, resize, format or hide fields at runtime.  I would also need the ability to modify the field headers and Group Header fields.  Is this possible?  Any suggestion or code samples would be greatly appreciated. </span></p><p><span class="PSEDITBOX_DISPONLY">I&#39;ve read that RAS gives you some greater functionality creating and modifying reports at runtime.  Does the RAS SDK include the functionality that I&#39;ve described above?</span></p><p><span class="PSEDITBOX_DISPONLY">Thanks,</span></p><p><span class="PSEDITBOX_DISPONLY">Alan </span></p>

    Hi bobbassen
    You can take a look at the new Preferences API that is shipped along with JDK 1.4. This should help you in saving report structures in one place and help you modify it through a GUI without re-compilation.
    see : http://java.sun.com/j2se/1.4/docs/guide/lang/preferences.html
    Keep me posted on your progress.
    Good Luck!
    Eshwar R
    Developer Technical Support
    Sun microsystems
    http://www.sun.com/developers/support

  • Creating dynamic report on a join

    I'd like to create a dynamic report on something like this
    select a.name, b.gender
    from employees a, gender b
    where a.gender_id=b.gender_id;
    to get this
    NAME GENDER
    bob male
    fred male
    sally female
    instead of this which is not that useful to the end user...is it possible?
    SQL> select name, gender_id from employees;
    NAME GENDER_ID
    bob 1
    fred 1
    sally 2

    Hello:
    >
    I'd like to create a dynamic report on something like this
    select a.name, b.gender
    from employees a, gender b
    where a.gender_id=b.gender_id;
    >
    Why not simply use this query for the report ? What needs to be 'dynamic' here ?
    Varad

  • Creating dynamic reports with overflowing columns

    I'm working on designing a reporting module that will create reports in PDF format that can be viewed or printed. The reports will have overflowing columns and rows. The user will be able to specify the columns and will also be able to justify placing of logos in the header.
    I am reviewing several tools like Dynamic PDF Generator for Java, and was wondering if there other tools that can help. The tools can either be free or paid.

    Hi John,
    It's a lot of processing but using the formula on the position of the column may work for you... Right click on the field and select Size and Position and then click on the X2 button and then write a formula based on some logic that determines if and where the column is displayed.
    If the second column is always there then just hide the 3rd column... but if the 3rd column needs to be moved to the second columns position then you have to determine if the value is true or false and if the second column does exist etc....
    Sorry I don't have any samples but I'm sure someone out there does.... Or can provide details if you need them.
    Thank you
    Don

  • Create Dynamic reports

    Post Author: Thomas Gyllencreutz
    CA Forum: Crystal Reports
    Hi!In Crystal Reports 8.5 there is 2 functions AddTextObject and AddFieldObject that allows me to add objects on-the-fly on a blank report. I cant find these methods anywhere in Business Objects XI Release 2. Is there another way of adding objects text and field objects at runtime?The problem is that I dont know what data the dataset will contain at design-time. The dataset is filled with data based on a user created SQL string  and the user is allowed to decide what outpfileds they want in the report. And the final thing is to generate a report that they can preview and maybe print/export to pdf or whatever they wanna do with it.I have scanned the forum and web and found lots of articles that describes almost everything but this problem. Any suggestions what to do?Im using: Visual Studio 2005Business Objects XI R2The solution has to be 100% VB .NET (no activex components)The application is a Client application (no serverside generated reports)RegardsThomas Gyllencreutz

    Post Author: turz
    CA Forum: Crystal Reports
    Hi I am trying to do something very similar, and I have found that you can create objects in Crystal Reports XI R2 SP2 and later.  I am currently using SP3 and have found a way to create report objects, but I am relativly new to Crystal Reports and I am not sure how to set the values.   You create the object by using classes found in the CrystalDecisions.ReportAppServer.ReportDefModel namespace. You can then add the object to the report through the ReportClientDocument.   If anyone knows how to set the values of Report objects, such as text objects, please point me in the right direction.ThanksChris

  • Dynamic Reports in java application

    Hi,
    I want to create dynamic reports in an java standalone application, I have downloaded the Jfreereport <http://sourceforge.net/projects/jfreereport>
    I'm not sure, whether it could get data from a JDBC source. (or is there anyother solution to generate dynamic reports in a java application?).
    Thanks in advance,
    Payam

    I generate reports from a webserver ( Tomcat ) in PDF using iText ( www.lowagie.com/iText ). It works great. JFreereport is also using this iText and you shouldn't have any problems using JDBC. Try to read the tutorial first about iText first. This will give you an idea how JFreereport works.
    - Dieter

  • How to create Dynamic Webi 3.1 filename in Publication

    I have a webi 3.1 report that is being called from a publication used for bursting using the eFashion universe.  I want the file name to be dynamic, based on the profile.  Within the webi report I created a free standing cell that I set to "Western States" or "Eastern States" based on the states in the report at the time of the run (set by the profile).  This works correctly.  But there does not seem to be a way to get the report to use the free standing cell value as part of the report name.  From the publication, properties, destinations, use specific name I can only pick title and document name.  Neither of these is the free standing cell in the report.  I saw that version 4.0 has this ability but I can't upgrade for another year and deski is not an option.  Any suggestions?  Thank you.

    I figured out how to create dynamic report names with 2 fields within the Publication tool.  I padded fullname and  email in dynamic recipients to be the two fields I wanted from the report.  Then in Destinations, File Name:, Use specific name I picked userfullname and email address to create the report name.   But that would not work if I actually needed to use the email address to send the report to.  We don't have Java programmers and may have to find other options.  Thanks.

  • Dynamic report Generation INSERT REPORT/INSERT TEXTPOOL

    hi,
    I have problem while creating dynamic report I have a text file Containing all the lines of a Program If i download the text then the Pgm should be dynamically creted with text elements. i cant Copy text element alone in the text file So i used two lines of statements,
    1.one to insert lines of Program
    INSERT REPORT repname FROM code.
    2. To insert Text elements of that Particular Pgm
    INSERT TEXTPOOL repname FROM text2 LANGUAGE langu2.
    I want to know how to combine this both..
    or is there any other method to dynamically insert the report with textelements.
    Plz give me suggestions
    Hema

    It is soleved by declaring the text in file format

  • How to create a report with dynamic columns

    Hi all,
    I am using Apex 4.0 with Oracle 10g
    I am creating a report and I need to display columns dynamically based on the item values.
    example:
    I have a table employee with columns name, designation, sal
    In the report page i have a select list with designations and when I select a designation from the select list,
    I need to display the names of the employees horizontally,
    like each name as a new column in the report with that particular designation. and same has to continue when I select different designations.
    Can some one help me how we can do that.
    I appreciate your answer
    Thanks,
    Rik

    Essentially you want to write a pl/sql function which returns a varchar2 string. The contents of the string must be a valid sql statement.
    Once you have done this, you need to add a report region as type sql report and you will have the option of writing it as a query or as a function returning query. Choose function returning query and enter in the function call.
    Note your function must be valid, and must be executable by your apex parsing schema.
    example:
    create or replace
    function test_report(   p1_tablename       in varchar2)
    return varchar2
    is
    v_query varchar2(4000);
    begin
    v_query  :=
    'SELECT * from '||p_tablename;
    return v_query;
    end test_report;Edited by: Keith Jamieson on Aug 15, 2011 4:50 PM

  • Creating crystal report file dynamically.

    Post Author: malcomstewart115
    CA Forum: General
    Hi, everybody.
    I have one problem.
    How to create crystal report file(*.rpt)  in php dynamically.
    I mean, I want to create the "*.rpt" file with php code.
    Please help me. thanks everybody.

    Post Author: PWilkens
    CA Forum: General
    It sounds like you're defeating the power and purpose of Crystal Reports, or replace it with pure PHP (which I suppose could be done... but why?)
    What exactly are you trying to do?
    If you're trying to make certain parts of the report hide or reveal or change depending on variables settings in the PHP file, that's easy enough to accomplish by sending parameters with your PHP values into the report.  But the dynamic actions really need to be done within the report itself, accomplished through ample use of the section and field settings provided within the Report Designer.

  • How to create dynamic Invoice report based on Tax calculations

    Hi Ppl,
    I have an invoice report requirement. There are multiple line items in invoice and each line item will have a tax % and discount associated with it. Discount has to be applied at line item level. Tax will be applicable on resultant amount which respect to tax share on total amount. Below is example
    Part# Tax     Qty     UnitPrice Amount     Discount     Net Value
    1     12.5%     40     10          400          100          300
    2     12.5%     50     20          1000          200          800
    3     4%     10     30          300          50          250
                             SubTotal                    1350
                             VAT 12.5% on 1100(300+800)     137.50
                             VAT 4% on 250               10
                             Total Amount               1497.5
    I have created a static rtf which does all calculations correctly. I have hardcoded 12.5 and 4 % tax values for calculations. But issue is that taxes are changeable in future so I want to create dynamic template which takes care for tax calculations. I thought of to create an array to store distinct tax values from XML data and then to perform calculation but don’t know how to do that.
    Can some body help me out as this is very critical and urgent?
    Note: Tax calculation can be done at line item level itself but there are some scenarios where additional discounts are there so tax calculation can not be done at line item level.
    Below is the sample XML data
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ListOfBipActionTest>
    - <Action>
    <AccountId>1</AccountId>
    <PartName>17211KCC900LS</PartName>
    <TAX>12.5</TAX>
    <QTY>40</QTY>
    <UNITPRICE>47.06</UNITPRICE>
    <DIS>15.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    - <Action>
    <AccountId>2</AccountId>
    <PartName>17213KCC900LS</PartName>
    <TAX>12.5</TAX>
    <QTY>50</QTY>
    <UNITPRICE>19.53</UNITPRICE>
    <DIS>8.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    - <Action>
    <AccountId>3</AccountId>
    <PartName>28302KAG900S</PartName>
    <TAX>12.5</TAX>
    <QTY>50</QTY>
    <UNITPRICE>59.49</UNITPRICE>
    <DIS>15.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    - <Action>
    <AccountId>4</AccountId>
    <PartName>2830AKAG900S</PartName>
    <TAX>12.5</TAX>
    <QTY>10</QTY>
    <UNITPRICE>168.7</UNITPRICE>
    <DIS>15.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    - <Action>
    <AccountId>4</AccountId>
    <PartName>91001GF6000S</PartName>
    <TAX>4.00</TAX>
    <QTY>60</QTY>
    <UNITPRICE>115.34</UNITPRICE>
    <DIS>17.00</DIS>
    <TaxType>CST</TaxType>
    </Action>
    </ListOfBipActionTest>
    Thanks
    Ashish

    Dear Efstratios Kara,
    I installed SAP Integration Kit 3.1. Yes I installed the integration kit after installing CR.
    I have uninstalled the earlier version and i have reinstalled CR with (12.3.0.601) version.
    But still i cant view the SAP connectivity. can u tell me from which version they have included this connectivity option in CR.
    If CR going to support SAP Table connectivity on specific version, what is that version.
    Waiting for your reply.
    Regards,
    Suman

  • How can i create an dynamic report in Java

    hello everybody,
    I want to make dynamic reports in Java. Report contain data and images with good layout.. such as crystal reports presentation..
    Reports fields decided at run time or we can say that it is generated according to user requirement...
    can it is possible in Java. If it is then which tool is better for it..
    please suggest me.. this is very urgent requirement for me...

    i don't know what types of tools are avaiable in market... Tools for what? You still didn't tell us what exactly you want to do.
    i just imagin that
    "An user create a database dynamically on server
    databaseNobody "dynamically creates a database".
    and he decide reports desgin according to
    his requirement..... we provide an control for this
    type possibilities....."
    so this is question is build in my mind.. so i
    forward this question to this forums..
    I am just going to check the physibility of my mind
    imagination...Feasibility you mean. IMHO, the feasibility of creating that stuff yourself is very low. Reinventing the wheel usually doesn't make it better, and it's likely to be more expensive to pay you for creating an inferior solution (not because of lack of skills, but simply because the available products had a few years time to grow, feature-wise) than to simply buy the licenses. Look at Crystal Reports or JFreeChart or Jasper Reports. Or use Google to look up J2EE-based reporting libraries. There might be more.
    Which of these is best, I don't know, I never used any of those. Also, the definition of "best" changes with the requirements. What's better, a Ferrari or a truck?

Maybe you are looking for