Sage 100

 View Only
Expand all | Collapse all

Is the standard Report/Form Selection dialog crite

  • 1.  Is the standard Report/Form Selection dialog crite

    Posted 10-05-2010 20:00
      |   view attached
    Is the standard Report/Form Selection dialog criteria capable to use any non-UDF field of the particular work table in 4.40? I need the Print Picking Sheets dialog to filter by ShipExpDate. Is there any way to add a standard field to the selection short of writing a script to copy ShipExpDate to a UDF? I know I can add it to the report/form, but I need it to filter BEFORE Crystal sees it. The image below is of a UDF with the same name ShipExpDate. I want to use the actual ShipExpDate field.


  • 2.  RE: Is the standard Report/Form Selection dialog crite

    Posted 10-06-2010 05:35
    Never found a way - have just had to add a standard Crystal prompt and filter on the Record Select/Group option.


  • 3.  RE: Is the standard Report/Form Selection dialog crite

    Posted 10-06-2010 08:45
    Not possible, has come up before. The way you are doing it is the only way it can be done.


  • 4.  RE: Is the standard Report/Form Selection dialog crite

    Posted 10-20-2010 09:04
      |   view attached
    I have attached the simple script that solves this issue by providing for any (header) field to be used in any report/form selection criteria. Anyone in the group may use for their clients. (Instructions enclosed - choose Save to Disk)

    Attachment(s)



  • 5.  RE: Is the standard Report/Form Selection dialog crite

    Posted 10-20-2010 10:16
    OK, I read the instructions but a little hazy. If you have to create a UDF for the field which will then display in the report selection, what does this script do for you? Populate the inital UDF? Signed... Fuzzy......


  • 6.  RE: Is the standard Report/Form Selection dialog crite

    Posted 10-20-2010 10:25
    It merely duplicates any field to a UDF in the same table in order to work around the short coming of how reports/forms use a fixed set of standard fields for selection filtering. If the field you need to filter with is not in this fixed set, then use this script to filter any field as all UDF's are available for filtering.


  • 7.  RE: Is the standard Report/Form Selection dialog crite

    Posted 03-31-2020 08:58
    I have a customer asking this same question. Is this still the best/only way to achieve selection criteria for any header field?

    ------------------------------
    Wayne Schulz - Schulz Consulting - 860-516-8990
    ------------------------------



  • 8.  RE: Is the standard Report/Form Selection dialog crite

    Posted 03-31-2020 20:53
    And as a followup - it looks like this script works on data from a single point going forward by mirroring data entry done to one standard field into a UDF.

    What happens when someone says they want to use this same concept to create additional selection criteria on a report such as the Aged Invoice Report? I'm not sure the above works except for data entered from the point the script is activated moving forward?

    ------------------------------
    Wayne Schulz - Schulz Consulting - 860-516-8990
    ------------------------------



  • 9.  RE: Is the standard Report/Form Selection dialog crite

    Posted 04-01-2020 03:30
    Edited by Dan Burleson 04-01-2020 03:59
    @Wayne Schulz This technique was intended for work files that are dynamically loaded at print time. So, the added UDF's will be current with the source table, but it turns out this technique is hit or miss. In your case, a UDF added to "AR_AgedInvoiceReportWrk" from another header field will not show up on the selection grid, however UDF's added to "AR_Customer" will appear there. With regard to adding UDF's to "AR_Customer", several fields (e.g. CountryCode) are available to automatically flow to an added UDF (and thus to the selection grid) by selecting one of several "Business Objects" as the "Source for UDF Data" in the "UDF and Table Maintenance" program. "Manual Entry" UDF's would require a script to populate them from a source related through "AR_Customer", but the "Business Object" sourced UDF's would not.

    ------------------------------
    Dan Burleson
    Software Consultant
    Connex Software
    Corvallis OR
    541-224-6642
    ------------------------------



  • 10.  RE: Is the standard Report/Form Selection dialog crite

    Posted 04-01-2020 07:13
    Thanks, Dan. I did get two UDFs in the wrk table to flow and populate ( I DFDM during preview) and appear.

    However, the select doesn’t work. I was thinking it was because the select looked back to the non work table?

    I was able to throw in a parameter and select from that but it’s less elegant because it’s a second prompt on the report.

    ---------------------------------
    Wayne Schulz - Schulz Consulting - 860-516-8990
    ---------------------------------





  • 11.  RE: Is the standard Report/Form Selection dialog crite

    Posted 04-01-2020 10:02
    What fields are you trying to add to the selection grid?

    ------------------------------
    Dan Burleson
    Software Consultant
    Connex Software
    Corvallis OR
    541-224-6642
    ------------------------------



  • 12.  RE: Is the standard Report/Form Selection dialog crite

    Posted 04-01-2020 10:09
    Edited by Wayne Schulz 04-01-2020 10:09
    Invoice number
    Invoice date

    ------------------------------
    Wayne Schulz - Schulz Consulting - 860-516-8990
    ------------------------------



  • 13.  RE: Is the standard Report/Form Selection dialog crite

    Posted 04-01-2020 10:45
    The Select grid doesn't work for any UDF's, they need to be added to the report's "parent" table.


    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 14.  RE: Is the standard Report/Form Selection dialog crite

    Posted 04-01-2020 10:52
    You can't get to those through the AR_Customer_Bus BO. I think parameters are your only option.

    ------------------------------
    Dan Burleson
    Software Consultant
    Connex Software
    Corvallis OR
    541-224-6642
    ------------------------------



  • 15.  RE: Is the standard Report/Form Selection dialog crite

    Posted 04-03-2020 11:32
    I've been able to modify selection grids using UI post load events but the fields that can be added are hit or miss depending on the report task and its primary table. For example, i was able to add SO_SalesOrderDetail.ItemCode to the picking sheet printing task and it worked but adding it to sales order printing did not work. For this reason, i think the most reliable way to get a field added to a selection grid is to create the field in the report task's primary table as a sourced UDF if applicable or use a script to populate it.

    ------------------------------
    David Speck II
    Tennessee Software Solutions
    ------------------------------



  • 16.  RE: Is the standard Report/Form Selection dialog crite

    Posted 04-03-2020 11:48
    In this case, I was looking to filter/select by Invoice Date and Invoice Number in the AR Aged Invoice Report.

    If I add the UDF to the source table - can it be populated with all values or am I looking at only using the UDF values from the point that I added going forward ( presuming a script populated that UDF on every update ).

    I envision that I would need to take two steps: 

    1. Backfill the UDF in the source table by using VI
    2. Use a script going forward to mirror fields into the UDF 

    Or would the script also manage getting the existing data into the UDFs created?

    ------------------------------
    Wayne Schulz - Schulz Consulting - 860-516-8990
    ------------------------------



  • 17.  RE: Is the standard Report/Form Selection dialog crite

    Posted 04-03-2020 12:05
    Since the script to copy the value is usually triggered on the table's pre write event, it only affects records going forward. So if you have to get old records, you will need to use VI to populate the UDFs.

    ------------------------------
    David Speck II
    Tennessee Software Solutions
    ------------------------------



  • 18.  RE: Is the standard Report/Form Selection dialog crite

    Posted 04-03-2020 12:26
    Why go to the trouble when you can just add a Parameter / selection criteria into the report? Hide any work table totals (which won't know about your custom filter) and you're done.

    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 19.  RE: Is the standard Report/Form Selection dialog crite

    Posted 04-03-2020 13:26
    That's what I wound up doing. I'm mainly curious if I missed anything in the prior discussion about scripting so that I'd understand it for the future.

    ------------------------------
    Wayne Schulz - Schulz Consulting - 860-516-8990
    ------------------------------



  • 20.  RE: Is the standard Report/Form Selection dialog crite

    Posted 04-03-2020 18:15
    I believe the disconnect is that @Kevin Moyes, @David Speck II, and I are saying the UDF's added to the work table will not be added to the selection grid. Only UDF's added to the "parent" or "primary" table and NOT THE WORK TABLE (i.e. for AR_AgedInvoiceReport_Wrk the parent table is AR_Customer which will give you neither invoice number or invoice date).  The hit or miss part is the relationship between the "Wrk" table and the "parent" table. Sometimes it is helpful, but other times not so much.
    ​​​​

    ------------------------------
    Dan Burleson
    Software Consultant
    Connex Software
    Corvallis OR
    541-224-6642
    ------------------------------



  • 21.  RE: Is the standard Report/Form Selection dialog crite

    Posted 04-03-2020 18:37
    I added the UDF to the open invoice and the work. I mapped it from the master. The selection appears in the report. I previewed and can see the wrk table populated but my selection doesn’t work.

    I presume it is looking at the master table fields for the select which is why just populating wrk did not have any impact.

    Which means to have this type of selection work I’d have to VI the UDF data to the master and then use a script to populate UDF in master going forward.






    ---------------------------------
    Wayne Schulz - Schulz Consulting - 860-516-8990
    ---------------------------------