Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

Date Report Help

Posted on by Microsoft Employee

RMS Gurus
I would like to modify the Item Quantity List report
By doing a quick sql query "select * from item" - I see many items with blank or empty LastSold & LastReceived date fields. I would like to modify the stock Item quantity List report to be able to use this report so that I could get all item before lastreceived < '01/01/2010' and include blanks/empty
Currently it give me a date range - which is no good since empty or null fields don't get included. what should I change to the following or should I be needing/modifying something else...
Begin Column
FieldName = "Item.LastReceived"
DrillDownFieldName = ""
DrillDownReportName = ""
StoreIDFieldName = ""
Title = "Last Received"
VBDataType = vbDate
Formula = ""
ColHidden = False
ColNotDisplayable = False
FilterDisabled = False
ColWidth = 900
GroupMethod = groupmethodNone
ColFormat = ""
End Column
Thanks for your help.
Danny

*This post is locked for comments

  • Gerald Rothaus Profile Picture
    Gerald Rothaus 2,930 on at
    Re: Date Report Help

    I believe to make a column a parameter field you have to use

    DrillDownFieldName

    like

    DrillDownFieldName = [item].[lastupdated]

    -Jerry

  • Ron Rahhal Profile Picture
    Ron Rahhal 545 on at
    Re: Date Report Help

    Hi Danny,

    Don't think cast and convert would work - when you try to filter by date, now you're filtering on a string.  If my other suggestion doesn't work for you, try this:

    1. Connect to the database in Administrator.

    2. Open a new Query window.

    3. Run the following: UPDATE Item SET LastSold = '1990-01-01 00:00:01' WHERE LastSold IS NULL

    4. Repeat for LastReceived.

    Of course, I would be remiss if I didn't tell you to BACKUP FIRST! :)

    Ron Rahhal

    Best POS Sales

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Date Report Help

    Ron

    Thanks for the suggestion. Trying to make this easy to use for my wife and staff.

    Was wondering if I could change something in the column setting to make it a string?  so that I don't get a date range in my QRP report. Maybe I could use a formula to convert or cast the string to a date?

    FieldName = "Item.LastReceived"

    VBDataType = String

    Formula = ""  <<<< not sure what to do here  or  if I need to do anything >>>>>

    Any ideas if this would work?

    Dan

    -------------------Current Column ------------------------------------

    Begin Column

    FieldName = "Item.LastReceived"

    DrillDownFieldName = ""

    DrillDownReportName = ""

    StoreIDFieldName = ""

    Title = "Last Received"

    VBDataType = vbDate

    Formula = ""

    ColHidden = False

    ColNotDisplayable = False

    FilterDisabled = False

    ColWidth = 900

    GroupMethod = groupmethodNone

    ColFormat = ""

    End Column

  • Ron Rahhal Profile Picture
    Ron Rahhal 545 on at
    Re: Date Report Help

    Try changing the selection criteria, instead of the column.  

    Begin ReportSummary

      ReportType = reporttypeItems

      ReportTitle = "Item Quantity List"

      PageOrientation = pageorientationLandscape

      WordWrap = False

      ShowDateTimePicker = False

      OutLineMode = True

      Groups = 1

      GroupDescription = ""

      DisplayLogo = True

      LogoFileName = "MyLogo.bmp"

      ProcedureCall = ""

      PreQuery1 = ""

      PreQuery2 = ""

      TablesQueried = "FROM Item WITH(NOLOCK) LEFT JOIN Department WITH(NOLOCK) ON Item.DepartmentID = Department.ID LEFT JOIN Category WITH(NOLOCK) ON

    Item.CategoryID = Category.ID LEFT JOIN Supplier WITH(NOLOCK) ON Item.SupplierID = Supplier.ID LEFT JOIN SupplierList ON SupplierList.SupplierID =

    Supplier.ID AND SupplierList.ItemID = Item.ID"

      SelCriteria = "Item.LastReceived < '01-01/2010' or Item.LastReceived IS NULL"

      GroupBy = ""

      SortOrder = ""

    End ReportSummary

    Ron Rahhal

    Best POS Sales

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Date Report Help

    Any advice would be appreciated - running out of time for this report. - see above.

    I can get what I want via a batch sql query but would rather do it via the QRP reports more user friendly.

    select * from Item where LastReceived = '01/01/2000' or LastSold < '01/01//2000'

    In QRP report the date always appear with two parms start date and end dat, how do I change this?

    I do also not select everything and do some sorting, etc...

    Thank-you

    Danny

    Small Single RMS site

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans