AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Everything Else
Shortcut key to col...
 
Notifications
Clear all

Questions Shortcut key to collapse (and expand) summary

 
Everything Else
Last Post by Tim Rodman 6 years ago
8 Posts
5 Users
1 Reactions
3,287 Views
RSS
Ryan Brown @xByte Hosting
Posts: 84
 Ryan Brown @xByte Hosting
Topic starter
July 2, 2019 10:21 pm
(@ryanxbyte)
Estimable Member
Joined: 6 years ago

Is there a keyboard shortcut key to expand/collapse the top summary section on forms. I know you can click the arrow, but a shortcut key would be faster. 

If not a native key, is there a way to customize it?  Google has been no help. 


7 Replies
Royce Lithgo
Posts: 557
 Royce Lithgo
July 3, 2019 4:52 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

I am fairly confident there is no shortcut for that. You can try suggesting it:

https://feedback.acumatica.com/ideas


Reply
programfred
Posts: 45
 programfred
July 11, 2019 8:01 pm
(@programfred)
Trusted Member
Joined: 5 years ago

They do have shortcup for that, here is a shortcup of the code they are using in JS. you can customize JS in the page, the setup new shortcup event.

 

switch (k)
{
case 27: // escape
__px(this).cancelEvent(e, false);
break;

case 13: // enter
case 9: // Tab
var ddOpen = this.dropDownOpen || this.autoCompleteOpen;
if (ddOpen && this._autoCompleteT == null && k == 13)
{
this.hideDropDown(true);
this._repaintText(this.isEditMode());
}
else
{
if (ddOpen) this.hideDropDown(false);
if (!this.inlineEditor)
{
this.execBlurCommand(false);
this._blurCommandLaunched = true;
setTimeout(function() { delete me._blurCommandLaunched; }, 1);
}
}
break;


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
July 14, 2019 3:51 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Sorry but i don't see how pasting JS code answers the original question. If they do have a keyboard shortcut then what is it?


Reply
programfred
Posts: 45
 programfred
July 14, 2019 11:20 pm
(@programfred)
Trusted Member
Joined: 5 years ago

you need to customize keyboard shortcut for this with JS


Reply
Tim Rodman reacted
Ryan Brown @xByte Hosting
 Ryan Brown @xByte Hosting
(@ryanxbyte)
Joined: 6 years ago

Estimable Member
Posts: 84
August 12, 2019 12:46 pm
Reply toprogramfredprogramfred

Update for everyone.  I reached out to Fred and he helped with some custom javascript that did the trick.  It was actually very easy to do.  

He had us add the following as the script property of a javascript control on the sales order form.  You can change the code to use any key combo you want.  Ours was CTRL+space.  Thank you again Fred!!!!!  We ended up adding to the sales invoice and purchase order/receipt forms as well.  I love easy solutions!

document.addEventListener('keydown', function(event) { if (event.ctrlKey && event.keyCode === 32) { document.getElementById("ctl00_phF_form_ims").click() } });

 


Reply
Wyatt.ERP
 Wyatt.ERP
(@wyatt-erp)
Joined: 6 years ago

Estimable Member
Posts: 128
August 13, 2019 3:35 pm
Reply toRyan Brown @xByte HostingRyan Brown @xByte Hosting
programfred

@ryan-brown

This is really cool, thank you for sharing!  I haven't added Javascript to screens before, so had to look it up.  Sergey has a nice article here.  I don't think it matters where you put it, so I added to top of first column and set IsStartupScript = True.  I think it would function regardless of that though.  Then just pasted the two lines from your above post into the Script section.


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
August 30, 2019 8:07 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Wow, this definitely opens up a lot of possibilities. Very cool!


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 156 Online
  • 2,389 Members
Our newest member: Dan Hunting
Latest Post: Generic Inquiry Screenid changes to ScreenId=00000000
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×