Monday 29 October 2018

display/show the inventory dimensions as parameters on SSRS reports in Dynamics 365 F&O / AX 7

All the inventory dimensions are available to be selected on report parameters below. You will see this view in almost all inventory reports and other module reports.
image
Well, Let me explain how to achieve this and retrieve the values in the data provider class
Its very simple, we need to make use of the contract class for this inventory dimensions view.
Standard has got a InventDimViewContract class with all the parm inventory dimensions methods and we can use these methods later in the DP classes for the selected inventory dimensions by the user on the report parameters screen.
Create an Object for InventDimViewContract in your contract class as shown below [Please note: I am using ProdPickListContract] as an example below
image
Then add a new parm method to the contract as shown below.
[DataMemberAttribute(‘InventDimViewContract’)]
public InventDimViewContract parmInventDimViewContract(InventDimViewContract _inventDimViewContract = inventDimViewContract)
   
    inventDimViewContract = _inventDimViewContract;
    return inventDimViewContract;
}
That’s it, by adding the above discussed,we will get the inventory dimensions on the parameters screen.
Now, the question is how do we get the selected dimensions from the user. Its simple again.
In your data provider class, mainly in processReport method, get the object of the contract class and call the parmInventDimViewContract() method, this object will help you to retrieve the inventory dimensions selected by the user by using parm methods in it. [Example : ParmViewConfigId(), parmViewInventBatchId() etc]. Please refer to screen shot below.
image
You can use these selected inventory dimensions values based on your requirements. The above screen shot is just an example of retrieving the values.

4 comments:

  1. An intriguing discussion is definitely worth comment. I do believe that you need to publish more about this subject matter, it may not be a taboo subject but typically people do not talk about such topics. To the next! Many thanks!!
    car shipping indiana

    ReplyDelete
  2. You made such an interesting piece to read, giving every subject enlightenment for us to gain knowledge. Thanks for sharing the such information with us to read this... stripe agenda

    ReplyDelete
  3. Inventory Management Software For Your Business| ERP Gold
    Need Robust Inventory Management Solution for Your Business? Our Intelligent Inventory Management Software simplify your overall inventory management process saving your time, money and efforts.
    Below are the features that our software encompasses:
    Manage Inventory
    Integrate with current barcode systems or manually administer your master inventory list. It is an Easy Inventory Management software solution.
    • Categorization of inventory
    • Generating Important Reports with item valuation
    • Inventory Import feature(CSV)
    • Management of inventory with current barcode system
    Additional Features that ERP Gold Inventory software offers :
    • It is cloud based with SSL connection
    • Business Operation Integration
    • Top Level Security with SSL
    • Adaptability with fast deployment
    For more information, visit our website : https://www.erp.gold/easy-inventory-management-software/
    Or Get in touch with us: 1-888-334-4472
    Address: Suite 183411, Shelby TWP, MI 48318
    Email us: support@erp.gold

    ReplyDelete



  4. Sara Hayat Design For Your Business . . .
    Sara Hayat is the founder of Sara Hayat Designs, a modern and artful furniture brand with a signature perspective on shape and luxury material.
    Why Sara Designs . . .?
    There is something to be said about surrounding yourself with beauty and reminders that nudge you into fulfilling the vision you have for yourself. The power of aesthetics and beauty has a way of leaving us changed. Forcing us to see and feel beyond what we could’ve imagined possible. This shift in perception and feeling can be in a Vermeer painting or a song on the radio that pushes you outside of yourself. It can also be the beautifully imagined and designed furniture pieces in your home.
    -
    When designing my pieces, I wanted to create something that would be beautifully distinctive yet functional. I am proud to say we have been granted 10 design copyrights and have several more pending.
    But coming up with designs was challenging in more ways than one. Every part of the piece has been thought out from the ground up. From the materials used to joinery techniques, to how different elements of the piece will come together, we wanted to make sure they serve their intended purpose in your home.
    If you need high quality wood furniture, get in touch with us!
    https://sara-hayat.com/pages/sara-hayat-furniture

    ReplyDelete

Adding a newline into a string in C# and X++

Below is the sample code we can use for  adding a newline after every occurrence of "@" symbol in the string in C#   using System...