Skip to main content

Notifications

Microsoft Dynamics RMS forum

how to use this currententrykey

Posted on by 225

Hi Good day to everyone. Can anybody knows how to use this one

Public Function GetCurrentEntry(Session As QSRules.SessionClass _

) As TransactionEntry

 

    Set GetCurrentEntry = Session.Transaction.Entries( _

        Session.Transaction.CurrentEntryKey)

 

End Function

using sessionclass on the public function process. Basically i what i need is to get a particular item on the transaction grid by selecting any item on the grid and check this on the database. in the middle of a transaction. Thank you

*This post is locked for comments

  • Arun J Profile Picture
    Arun J 75 on at
    Re: how to use this currententrykey

    First of all, you need to declare a public function like this (I used VB.Net here)

    Public Function Process(ByVal POSSession As Object) As Boolean

           Dim GetCurrentEntry As Object

           GetCurrentEntry = POSSession.Transaction.Entries(POSSession.Transaction.CurrentEntryKey)

    return true

    End Function

    Compile code as DLL, register in your system, call class from POS button as AssemblyName.Classname.

    Please do following in your code

    declare an object say GetCurrentEntry As Object

    GetCurrentEntry = POSSession.Transaction.Entries(POSSession.Transaction.CurrentEntryKey)

    Do necessary on this GetCurrentEntry object. I mean like this

    GetCurrentEntry.ExtendedPrice or GetCurrentEntry.Item.ItemLookupCode etc.

    hope this will make sense

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,818 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,147 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans