Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

mouse click

Posted on by Microsoft Employee

hello.

i am filling a GP scroll window automatically through a custom made form in dexterity. If control is inside the scroll window when the fill takes place it doesn't work ok so i need to get the focus out. I tried moving the focus outside on some other field and do a run script  on that field in order to carry control outside the window but still it doesn't work. the only way i can get it to work is if i manually click with the mouse outside the scroll window. Is there a way to simulate a mouse click with dexterity?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Re: Re: Re: Re: Re: mouse click

    no, i didn't focus on the post Post Button actually but did focus on some other field outside the srolling window. Maybe that should 've worked but i used a macro to deal with it afterall. Thanks for the advice.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Re: Re: Re: mouse click

    Actually i am not concerned about the filling part since i got it to work the way i did it. I prefer to fill the scrolling window directly exactly like a user would do instead of writing into the table to avoid any mistakes. Only problem with my application is what i mentioned previously. If i could cause a mouse click outside the scrolling window before execution then the rest is fine. The other solution would be not to allow the user from running the application if focus is inside the window but wouldn't be very user friendly.

  • Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    Re: Re: Re: mouse click

    Now we are getting somewhere. What you will want to do is save the quantities to the IV_Transaction_WORK table, then execute the fill statement to retrieve the records from the table and let the scrolling window fill script does its thing.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Re: mouse click

    basically the form i am filling already exists. It is the IV_Transfer_Entry however instead of filling it directly i enter quantities for various product that will be transfered from a custom made form and by clicking a button it loops through all of them and passes them in the IV_Transfer_Scroll. But if i had clicked inside IV_Transfer_Scroll before i run it, it doesn't work correctly. If I click outside the scroll window on some other field of the form before i run it, it works fine. So what i want is when i hit the button to run the process if control is inside the IV_Transfer_Scroll window to somehow cause a mouse click outside the window before the whole thing runs. I thought transfering the focus on some field would cause the same effect as if clicking on it but it doesn't. I know i can call a macro to do the clicking but i'd rather do it with sanscript code if possible.

  • Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    Re: mouse click

    Can you describe your form? It sounds to me that your tab sequence is incorrect. Generally, a user will chose certain header fields on a window that will serve as basis to set a range of some kind on a table then apply the fill statement to get the scrolling window to populate. The fill statement will cause the scrolling window to populate with the values from the table.

    You will also want to check the scrolling window fields tab sequence, which may also be causing the behavior you are experiencing.

    Take a look at David Musgrave's new article Checklist for creating a new Dexterity Window

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