D3 and mvBase

 View Only
  • 1.  SS Spreadsheet connective choking on date in compound Item ID

    Posted 05-28-2021 13:29

    Hi Brian,

    When that is done, no items are returned at all... the  reason being that the value returned from A8, in that instance, is not a valid date "Dec-2012" ...

     

    FWIW, the SS connective used in context would look similar to this: LIST fn WITH some.selector = "xxxyyyzzz" BY some.sortfield break-on some.sortfield SS start.date end.date SUMMARY.ATTRIBUTE det-supp ...

     

    Best regards and keep safe,

     

    Vincent "Kim" Elliott

    ITC Coordinator

    Bearings & Accessories Ltd.

    83 Harbour Street

    Kingston

    Jamaica, W.I.

     

    Tel: 876-922-1950

    Cell: 876-315-2739

    Email: vincent.e@bearingsandaccessories.com

     

     



  • 2.  RE: SS Spreadsheet connective choking on date in compound Item ID

    Posted 06-01-2021 10:48

    Hi Brian and Walter,

    Thanks for your assistance.

     

    What you suggest does not work for the following reasons:

    1. The SS connective requires a date range much like a "WITH" connective, but spec'd as this 'SS  MONTH "01/01/2020" "31/12/2020" ...'. As such the A8 dictionary item has to return a valid date.
    2. IF A8 is left blank, what is returned to SS is the complex ID which the date is just a part of it and thus the query returns "No items..."
    3. Similarly, If A7 is transferred to A8, the returned result is not a valid date....

     

    So that I am in a catch 22 situation.

     

    FWIW, if I just do a DMA]T1,3 in A7 it works just fine, but I want the Month and Year concatenated...

     

    Best regards and keep safe,

     

    Vincent "Kim" Elliott

    ITC Coordinator

    Bearings & Accessories Ltd.

    83 Harbour Street

    Kingston

    Jamaica, W.I.

     

    Tel: 876-922-1950

    Cell: 876-315-2739

    Email: vincent.e@bearingsandaccessories.com

     

     






  • 3.  RE: SS Spreadsheet connective choking on date in compound Item ID

    Posted 06-01-2021 11:39

    Hy,

    why you dont create a dict with a validade date (Dictionary-Code S) just for the selection and use your dict with  Month-Year to display ?



    ------------------------------
    Alberto Leal
    Systems Analyst
    Millano distribuidora
    Campo Grande Brazil
    ------------------------------



  • 4.  RE: SS Spreadsheet connective choking on date in compound Item ID

    Posted 06-01-2021 11:52

    Hi Alberto,

    The only dictionary item allowed is that provided immediately after the SS connective...that dictionary item is also used for the column headings of the resulting spreadsheet.

     

    Thanks for your help.

     

    Best regards and keep safe,

     

    Vincent "Kim" Elliott

    ITC Coordinator

    Bearings & Accessories Ltd.

    83 Harbour Street

    Kingston

    Jamaica, W.I.

     

    Tel: 876-922-1950

    Cell: 876-315-2739

    Email: vincent.e@bearingsandaccessories.com

     

     






  • 5.  RE: SS Spreadsheet connective choking on date in compound Item ID

    Posted 06-01-2021 17:43
    Vincent,

    Have you tried calling a basic program from attr 8 in the dict item?  I use that feature regularly & find it extremely useful.

    MW





  • 6.  RE: SS Spreadsheet connective choking on date in compound Item ID

    Posted 06-02-2021 10:44

    All,

    Brian's suggestion did not work as is, but it got me thinking... here is what works:

     

    YEAR

    001 S

    002 0

    003 YEAR

    004

    005

    006

    007 DY

    008 G2$1

    009 R

    010 4

     

    MONTH

    001 S

    002 0

    003 MO

    004

    005

    006

    007 DMA]T1,3

    008 G2$1

    009 R

    010 2

     

    PERIOD

    001 S

    002 0

    003 PERIOD

    004

    005

    006

    007 A;N(MONTH):"-":N(YEAR)

    008 G2$1

    009 R

    010 8

     

    Note that Attr 8 is structured the same way for all dictionary items...

     

    Thanks for all your help and suggestions.

     

     

     

    Best regards and keep safe,

     

    Vincent "Kim" Elliott

    ITC Coordinator

    Bearings & Accessories Ltd.

    83 Harbour Street

    Kingston

    Jamaica, W.I.

     

    Tel: 876-922-1950

    Cell: 876-315-2739

    Email: vincent.e@bearingsandaccessories.com