web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Change which window opens when clicked on SOP line

(0) ShareShare
ReportReport
Posted on by

Hello,

On the below screen ( MRP Quantities Query ), when double clicked on the highlighted line, it opens up 'Sales Transaction Entry' screen

MRPQQ.JPG

is it possible to make this open 'Sales Transaction Enquiry Zoom' instead, does anyone know?

Is there a way to do a modification or something of that sort and change the double click event to change the window this opens. advice please

Thanks

*This post is locked for comments

I have the same question (0)
  • Bill Campbell Profile Picture
    12 on at

    While I do not know 'how' to do this, I am sure that there are others in the community that will.

    One question - is this a core GP module - or an additional 3rd party?  Makes a difference in who you ask to fix the problem.

  • davidf. Profile Picture
    on at

    Yes, it can be done. I did a similar modification to redirect users to open the Item Inquiry card instead of the Item Maintenance card from the Sales Transaction Entry window.  It does require Modifier and VBA. If you're moving to Web Client you'll need to come up with a workaround since vba isn't supported.

    I documented how I did it.  This might give you an idea what it would take to do your mod.

    Steps:

    1. Add Item Inquiry to Modifier.
    2. Add Text field "Item Class".
    3. Create String Field from ToolBox and name it (L)Item Class
    4. Add Text field "Category".
    5. Create String Field from ToolBox and name it (L)Category
    6. Set Object Properties to same as other fields.
    7. Link Prompt to text field.
    8. Assign security to modified form.
    9. Open Item Inquiry in GP.
    10. Add Item Inquiry form to VBA.
    11. Add fields Item Number, ItemClass, GoTo, Category.
    12. Open Item Maintenance card.
    13. Add Item Maintenance form to VBA
    14. Add fields  ItemNumber and ClassID.
    15. Open Item Maintenance Options.
    16. Add Item Maintenance Options form to VBA
    17. Add User Defined Category 5 ( Category ) field.
    18. Open Sales Transaction Entry form.
    19. Add the Item Number zoom button ( not the lookup button ) and the Item Number field.
    20. Open VBA and enter the following scripts in the appropriate objects.
      1. Microsoft_Dynamics_GP-ItemMaintenance(Code)

    ' Script to hide the item maintenance window when opened from iteminquiry script

    Option Explicit

    Public OpenHidden As Boolean

     

    Private Sub Window_BeforeOpen(OpenVisible As Boolean)

        If OpenHidden Then

            ' Hide window on open

            OpenVisible = False

            ' Open visible next time

            OpenHidden = False

        End If

    End Sub

    1. Microsoft_Dynamics_GP-ItemMaintenanceOptions(Code)

    ' Script to hide the item maintenance window when opened from iteminquiry script

    Option Explicit

    Public OpenHidden As Boolean

     

    Private Sub Window_BeforeOpen(OpenVisible As Boolean)

        If OpenHidden Then

            ' Hide window on open

            OpenVisible = False

            ' Open visible next time

            OpenHidden = False

        End If

    End Sub

     

    1. Microsoft_Dynamics_GP-ItemInquiry(Code)

    ' Script to set environment to hide item-maint and item-maint-options

    Option Explicit

    Public OpenHidden As Boolean

     

    Private Sub Window_BeforeOpen(OpenVisible As Boolean)

        If OpenHidden Then

            ' Hide window on open

            OpenVisible = False

            ' Open visible next time

            OpenHidden = False

        End If

    End Sub

     

    ' Script to open PriceList Inquiry instead of PriceList Maintenance card -

    Private Sub GoTo_BeforeUserChanged(KeepFocus As Boolean, CancelLogic As Boolean)

        If ([GoTo].Value = 3) Then

            With ItemPriceListInquiry

                If (.IsLoaded = False) Then

                    .Open

                End If

                .Activate

                .ItemNumber = ItemNumber

            End With

            CancelLogic = True

        End If

    End Sub

     

    ' Script to show ItemMaintenance.ClassID on ItemInquiry form

    Private Sub ItemNumber_Changed()

    ItemMaintenance.OpenHidden = True

    ItemMaintenanceOptions.OpenHidden = True

    ItemMaintenance.Open

    ItemMaintenanceOptions.Open

    ItemMaintenance.ItemNumber = ItemInquiry.ItemNumber

    ItemInquiry.ItemClass = ItemMaintenance.ClassID

    ItemInquiry.Category = ItemMaintenanceOptions.Category

    ItemMaintenanceOptions.Close

    ItemMaintenance.Close

    End Sub

     

    1. Microsoft _Dynamics-SalesTransactionEntry(Code)

    ' Script to open Item Inquiry from Sales Trx Entry

    Private Sub CustomLinksZoomButton_BeforeUserChanged(KeepFocus As Boolean, CancelLogic As Boolean)

    If ([CustomLinksZoomButton].Value = 1) Then

               With ItemInquiry

                If (.IsLoaded = False) Then

                    .Open

                End If

                .Activate

                ItemInquiry.ItemNumber = SalesTransactionEntryDetail.ItemNumber

            End With

            CancelLogic = True

        End If

    End Sub

  • Community Member Profile Picture
    on at

    Hi

    Thanks for your reply.

    I went about trying this. But at number 7,  I couldn't assign the text field to LinkedPrompt on the string field. shown below.

    linkedprompt.JPG

    changing this is disabled as shown. do you know how to enable this to be able be changed.

    and AutoCopy too cannot be changed to True.

    Thanks

  • Community Member Profile Picture
    on at

    Hi

    Yes, in this case it's a screen from a 3rd party module I'm on about.

    But I'm asking the question in general, can it be changed from a maintenance screen to a enquiry screen when clicking on a field redirects user to a different screen.

    Thanks

  • L Vail Profile Picture
    65,271 on at

    To Link a prompt you have to select the field and then go to the menu and select Tools > Link prompt. It's not something you can do directly in the properties window. I didn't notice where the instruction to change the AutoCopy value was mentioned. You are correct that it cannot be modified using Modifier.

    Kind regards,

    Leslie

  • Community Member Profile Picture
    on at

    Hi 

    Thanks for that found how to Link Prompt

    On No 6. it says, "Set Object Properties to same as other fields." In other/default fields on this window, AutoCopy is set to 'True' whereas on this my new field it's set on 'False'. Thought that should be changed?

     

    Thanks

  • davidf. Profile Picture
    on at

    The notes are a little cryptic, but what I meant was change the properties to make the field appearance the same as similar fields.  The Aligment, Appearance, BackColor etc...  IOW, compare the visual properties of the field you added to the visual properties of another field to make things look consistent.

  • Community Member Profile Picture
    on at

    on this particular window I'm looking to change, it's a gridview double click event that I need to open en Enquiry screen rather than an Entry screen.

    On the VBA editor for the grid I cant see an event handler for this double click event

  • Community Member Profile Picture
    on at

    Hello,

    I've tried this exact example you've posted.

    I get the below error, any ideas?

    eorror.JPG

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Shravan Attelli Profile Picture

Shravan Attelli 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans