Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

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

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