Announcement

Collapse
No announcement yet.

Custom Reports

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Custom Reports

    Hi,

    I've created a custom report for generating some in-house accounting sheets but I'm having one small problem.

    I have all the date selection and everything else working, but I can't seem to get the same codes for generating the From/To text that the in-built reports use.

    I'm referring to the @ReportDates Formula field that has the following code:

    PHP Code:
    if {@FromDate} = ""  and {@ToDate} = "" then
        
    {@AllDatesText}
    else if {@
    FromDate} = "" then
        Left
    ({@ToDateText} + " " + {@ReportToDate}, 255)
    else if {@
    ToDate} = "" then
        Left
    ({@FromDateText} + " " + {@ReportFromDate}, 255)
    else
        
    Left({@BetweenText} + " " + {@ReportFromDate} + " " + {@AndText} + " " + {@ReportToDate}, 255
    I have added all of the other Formula fields as needed as well so everything works ok.

    The problem I am having is with the @ToDate and @FromDate variables. In the supplied reports there is a comment in each of these that says they are set by the application. Does this not happen for custom reports?

    Does anyone have an idea on what else I can do to get the ToDate and FromDate information to make the above mentioned formulas work?

    Thanks,
    Kev
    <b>Our Actinic Sites:</b>
    Hip Hop Wardrobe: <a href="http://www.hiphopwardrobe.co.uk">http://www.hiphopwardrobe.co.uk</a>
    Sussex Brassware: <a href="http://www.sussexbrassware.co.uk">http://www.sussexbrassware.co.uk</a>
    Dandelion Designs: <a href="http://www.dandeliondesigns.co.uk">http://www.dandeliondesigns.co.uk</a>
    Floaty Lady (WIP): <a href="http://www.floatylady.co.uk">http://www.floatylady.co.uk</a>

    #2
    Have you set the report date fields in your reports.ini file?

    I can't remember which dates actually get set by the application but I think that it changed between v4/v5/v6. It used to be RDateTo and RDateFrom and I think that it is now either ReportToDate/ReportFromDate or FromDate/ToDate or possibly FromDate/RToDate. To test this rename the formula fields until the application complains about being unable to find a certain formula when the user defined report is run.

    Regards,
    Jan Strassen, Mole End Software - Plugins and Reports for Actinic V4 to V11, Sellerdeck V11 to V2018, Sellerdeck Cloud
    Visit our facebook page for the latest news and special offers from Mole End

    Top Quality Integrated label paper for Actinic and Sellerdeck
    A4 Paper with one or two peel off labels, free reports available for our customers
    Product Mash for Sellerdeck
    Link to Google Shopping and other channels, increase sales traffic, prices from £29.95
    Multichannel order processing
    Process Actinic, Sellerdeck, Amazon, Ebay, Playtrade orders with a single program, low cost lite version now available from £19.95

    Comment


      #3
      Did you ever get this to work?
      I am experiencing the same confusion in Actinic V7, trying to use the FromDate and ToDate as in @ReportDates
      Eileen Eby
      http://www.wildbirdfood.uk.com

      Comment


        #4
        You have to set up the reports.ini file correctly for your report to get this to work, the reports.ini file lives in your site directory. Here is an example :

        [ME_SalesReport]
        ReportName=ME_SalesReport.rpt
        SelectionFormula=""
        ExtraConditions="{Orders.bOrderIsDeleted} = false and {Orders.nPaymentStatus} <> 8 and {Orders.nPaymentStatus}>0"
        FromDate="Select &From:"
        ToDate="Select &To:"
        TestedDate="orders.date order finished"


        FromDate and ToDate specify the titles to show in the application and the testedDate field defines the field to use.

        Regards,
        Jan Strassen, Mole End Software - Plugins and Reports for Actinic V4 to V11, Sellerdeck V11 to V2018, Sellerdeck Cloud
        Visit our facebook page for the latest news and special offers from Mole End

        Top Quality Integrated label paper for Actinic and Sellerdeck
        A4 Paper with one or two peel off labels, free reports available for our customers
        Product Mash for Sellerdeck
        Link to Google Shopping and other channels, increase sales traffic, prices from £29.95
        Multichannel order processing
        Process Actinic, Sellerdeck, Amazon, Ebay, Playtrade orders with a single program, low cost lite version now available from £19.95

        Comment


          #5
          Hi Jan,

          The dates I enter into the 'Select From' and 'Select To' work for selecting the data to display in the main report, but are not recognised in the subreport or the @ReportDates field.
          @FromDate and @ToDate have a comment in them saying they are passed from the application, but are intialised to null.... and do NOT seem to be populated by Actinic.

          How can I refer to these fields from inside Crystal Reports?

          here is what is in my Reports.ini

          [Reports]
          ANC_VAT_Report="ANC Vat Charges"

          [ANC_VAT_Report]

          ReportName=ANCTax.rpt
          FromDate="Select &From:"
          ToDate="Select &To:"
          TestedDate="orders.date ordered"
          SelectionFormula=""
          ExtraConditions="{Orders.bOrderIsDeleted} = false and {Orders.nPaymentStatus} <> 8 and {Orders.nPaymentStatus}>0"
          Eileen Eby
          http://www.wildbirdfood.uk.com

          Comment


            #6
            The answer to your question is here

            http://community.actinic.com/showthread.php?t=8220

            Regards,
            Jan Strassen, Mole End Software - Plugins and Reports for Actinic V4 to V11, Sellerdeck V11 to V2018, Sellerdeck Cloud
            Visit our facebook page for the latest news and special offers from Mole End

            Top Quality Integrated label paper for Actinic and Sellerdeck
            A4 Paper with one or two peel off labels, free reports available for our customers
            Product Mash for Sellerdeck
            Link to Google Shopping and other channels, increase sales traffic, prices from £29.95
            Multichannel order processing
            Process Actinic, Sellerdeck, Amazon, Ebay, Playtrade orders with a single program, low cost lite version now available from £19.95

            Comment

            Working...
            X