Microsoft Product Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 26 January 2010

Changing the Hyperspace property for a lookup button added with Modifier

Posted on 11:18 by Unknown
It sounds like some word out of Captain Kirk's vocabulary, but for Dexterity developers Hyperspace is a well known property that allows a Dexterity-based application to run the change script for a push button, i.e., a lookup button, without moving the focus from the currently-selected field. For example, you won't want the 'Customer Number' field on the Customer Maintenance window to execute it's change script before you have selected a customer from the Customer Lookup window as the lookup button is clicked... that's what Hyperspace does, it prevents such situations by keeping the focus on the 'Customer Number' field until a customer ID is returned from the lookup window into the field.

The problem is, this property is locked down for push button controls added with Modifier, and while you cannot edit the push button change script with Modifier, you may still want to trigger off such controls with Dexterity code. This is pretty common for customizations where you don't want to create an alternate versions of a GP form, but require a control placed directly on the GP form in order to call your own Dexterity code (see my article Developing Microsoft Dynamics GP hybrid integrating applications).

So, here is the workaround for changing the Hyperspace property of a push button control added with Modifier:

1. Add the push button control to your Modified window. In my example I will be using the sopCustomerItemMnt form. The following illustrates the changes made:



2. Save your modified window and return to Microsoft Dynamics GP. Open the Customization Maintenance window and locate the sopCustomerItemMnt. Click the Export button to export the modified window to a package file. The following is the content of exported package file:



= Form "sopCustomerItemMnt"
{
Datatypes
{
Datatype "Lookup"
{
Control "PushButton"
DefaultDown "00000"
DefaultMouseOver "00000"
DefaultUp "00000"
Prompt ""
PromptDown ""
PromptMouseOver ""
StaticType "Mixed"
~ItemImages
{
PictItem "00001"
{
Item "Field_Lookup_PB_Up"
}
}
}
Datatype "UPC_Code"
{
AllowOddLength "false"
Control "String"
Format ""
KeyableLength "31"
StorageLength "32"
}
}
Fields
{
Field "Lookup"
{
ArraySize "0"
Datatype "(L) Lookup"
LookupForm ""
PhysicalName ""
}
Field "UPC_Code"
{
ArraySize "0"
Datatype "(L) UPC_Code"
LookupForm ""
PhysicalName ""
}
}
Windows
{
= Window "sopCustomerItemMnt"
{
Fields
{
WindowControl "(L) Lookup"
{
Alignment "center"
Appearance "2D Border"
BackColor "System - Button Face"
Border "true"
ButtonStyle "GraphicOnly"
Cancel "false"
ControlType "PushButton"
Default "false"
Editable "true"
EndTransaction "false"
Field "(L) Lookup"
Font "System (generic)"
FontBold "false"
FontColor "System - Button Text"
FontItalic "false"
FontUnderline "false"
HyperSpace "false"
LinkedLookup "10002"
LinkedPrompt "0"
Pattern "(none)"
PatternColor "White"
PositionLeft "567"
PositionTop "186"
ResizeHoriz "StayLeft"
ResizeVert "StayTop"
SizeHeight "20"
SizeWidth "18"
TabStop "true"
Tag "10003"
Tooltip ""
UseUniqueHelp "true"
Visible "true"
ZOrder "81"
Zoom "false"
}
WindowControl "(L) UPC_Code"
{
Alignment "left"
Appearance "2D Border"
AutoComplete "false"
AutoCopy "false"
BackColor "System - Window Background"
Border "true"
ControlType "String"
DisableLookup "false"
Editable "true"
Field "(L) UPC_Code"
Font "System (generic)"
FontBold "false"
FontColor "System - Window Text"
FontItalic "false"
FontUnderline "false"
LinkedFormat "0"
LinkedLookup "0"
LinkedPrompt "10001"
Password "false"
Pattern "(none)"
PatternColor "White"
PositionLeft "408"
PositionTop "186"
ReadingOrder "LeftToRight"
Required "false"
ResizeHoriz "StayLeft"
ResizeVert "StayTop"
SavedOnRestart "false"
SetChangeFlag "true"
SizeHeight "20"
SizeWidth "160"
TabStop "true"
Tag "10002"
Tooltip ""
UseUniqueHelp "true"
Visible "true"
ZOrder "80"
Zoom "false"
}
WindowPrompt "10001"
{
Alignment "left"
Appearance "3D Highlight"
BackColor "System - Button Face"
Border "true"
Font "System (generic)"
FontBold "false"
FontColor "System - Button Text"
FontItalic "false"
FontUnderline "false"
Pattern "(none)"
PatternColor "White"
PositionLeft "328"
PositionTop "186"
ReadingOrder "LeftToRight"
ResizeHoriz "StayLeft"
ResizeVert "StayTop"
SizeHeight "20"
SizeWidth "80"
Text "UPC Code"
Visible "true"
ZOrder "79"
Zoom "false"
}
}
LastTag "10003"
}
}
}

3.Perform a search for "Hyperspace". Replace the property value from false to true. Save the package file. In the above sample package file content, I have highlighted the Hyperspace property in red.

4. Use the Customization Maintenance window to reimport the package file. This should be all! Now your lookup button's hyperspace property is set to true.

Warning: this method of changing the Hyperspace property of a push button is not supported by Microsoft and must be performed by a developer who understands the implications.

Until next post!

MG.-
Mariano Gomez, MIS, MCP, MVP
Maximum Global Business, LLC
http://www.maximumglobalbusiness.com/
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Dexterity, Modifier | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Vote for your 2012 GPUG All Star
    The time has come again to vote for the next year's GPUG All Star awards. Surprisingly, I have been nominated to this award along with f...
  • Web Client Wednesday - Browser Support
    Last week MVP Mark Polino started a series called Web Client Wednesdays, which is actually a Microsoft Dynamics GP community outreach to st...
  • Year-to-year Inventory Margin Report using the PIVOT operator in T-SQL
    As of late I have been camping out at the SQL Developer Center's   Transact-SQL Forum  and I have to say, I have learned a great deal fr...
  • Extender Auto Open and Auto Close options not working in GP 2010
    Just recently, I came across an issue reported by a partner on Extender Auto Open and Auto Close options not working. Extender Auto Open a...
  • The Dynamics GP Blogster's best articles of 2012
    It's that time of the year again! Time to say goodbye to the outgoing year, 2012, and receive the new one, 2013, making all sort of reso...
  • New Article on MSDynamicsWorld: Do's and Don'ts of Microsoft Dynamics GP Forums
    Many of you know me as an avid forum contributor - I can usually be found on the Microsoft Dynamics GP Partner Online Technical Community ...
  • What's new in Microsoft Dexterity 11.0
    The excitement around Microsoft Dynamics GP 2010 could not be any higher. Traffic on my site has doubled since I began releasing informatio...
  • Rejecting duplicate checks during Bank Transactions import with Integration Manager
    One of the interesting things about checkbooks setup in Microsoft Dynamics GP is that you have the ability to prevent duplicate checks from ...
  • How to add a "Cover Letter" page to a Microsoft Dynamics GP Word Template document
    I wrote an article almost a year ago showing a simple technique to add a  Terms and Conditions page to a Microsoft Dynamics GP Word Templat...
  • VBA - Suppressing CTRL+Break or CTRL+C in VBA Customizations
    VBA is by far one of the best customization tools available to Microsoft Dynamics GP developers and as such it is widely used across a numbe...

Categories

  • Ad Campaigns
  • ADO
  • Adobe Acrobat
  • Analytical Accounting
  • Architecture
  • Around the Blogosphere
  • Article
  • Azure
  • Bank Reconciliation
  • Best of 2009
  • Best of Series
  • Best Practices
  • Bing Maps Enterprise
  • Books
  • Business Alerts
  • Business Analyzer
  • C#
  • Code
  • COM
  • Community
  • Compliance
  • Connect
  • Continuum
  • Convergence
  • Corporate Performance Management
  • CRM
  • Database Maintenance Utility
  • Decisions Conference
  • DEX.INI
  • DEXSQL
  • Dexterity
  • Discussions
  • Drill-Down Builder
  • Dynamics GP 10
  • Dynamics GP 11
  • Dynamics GP 12
  • Dynamics GP 2010
  • Dynamics GP 2010 R2
  • Dynamics GP 2013
  • eConnect
  • EFT
  • Electronic Banking
  • Encumbrance
  • Events
  • Extender
  • Field Services
  • Fixed Assets
  • Forecaster
  • From the Newsgroups
  • FRx
  • Functionality
  • General Ledger
  • GPUG
  • Home Page
  • Human Resources
  • Humor
  • IMHO
  • Installation
  • Integration
  • Integration Manager
  • Internet Explorer
  • Inventory
  • Kinnect
  • Maintenance
  • Management Reporter
  • Manufacturing
  • Menus for Visual Studio Tools
  • Microsoft Office
  • Modifier
  • Multicurrency Management
  • Multitenancy
  • MVP Summit
  • MVPs
  • Named Printers
  • Navigation Pane
  • Notes
  • ODBC
  • Office Web Components
  • OLE Container
  • Online Services
  • OpenXML
  • Partner Connections
  • Payables Management
  • Payroll
  • Performance
  • PO Commitments
  • Printer Compatibility
  • Product Feedback
  • Project Accounting
  • Purchasing
  • Receivables Management
  • RemoteApp
  • Report Writer
  • Reporting
  • Roadmap
  • SafePay
  • Sales Order Processing
  • Season Greetings
  • Security
  • Service Call Management
  • SharePoint
  • SmartList and SmartList Builder
  • SQL Reporting Services
  • SQL Scripting
  • SQL Server
  • Support Debugging Tool
  • Tax Updates
  • Technical Conference
  • The Partner Event
  • The Technology Corner
  • Training
  • Translation
  • Troubleshooting
  • Upgrades
  • VAT
  • VB.NET
  • VBA
  • VBScript
  • Visual Studio 2008
  • Visual Studio Tools
  • Web Client
  • Web Services
  • Windows 7
  • Windows 8
  • Word Templates
  • XBox
  • XBRL

Blog Archive

  • ►  2013 (68)
    • ►  December (2)
    • ►  November (8)
    • ►  October (5)
    • ►  September (5)
    • ►  August (3)
    • ►  July (8)
    • ►  June (5)
    • ►  May (5)
    • ►  April (2)
    • ►  March (11)
    • ►  February (6)
    • ►  January (8)
  • ►  2012 (101)
    • ►  December (8)
    • ►  November (6)
    • ►  October (15)
    • ►  September (16)
    • ►  August (9)
    • ►  July (4)
    • ►  June (4)
    • ►  May (6)
    • ►  April (4)
    • ►  March (11)
    • ►  February (4)
    • ►  January (14)
  • ►  2011 (158)
    • ►  December (7)
    • ►  November (17)
    • ►  October (7)
    • ►  September (8)
    • ►  August (8)
    • ►  July (12)
    • ►  June (12)
    • ►  May (13)
    • ►  April (23)
    • ►  March (21)
    • ►  February (10)
    • ►  January (20)
  • ▼  2010 (168)
    • ►  December (15)
    • ►  November (11)
    • ►  October (12)
    • ►  September (24)
    • ►  August (13)
    • ►  July (12)
    • ►  June (8)
    • ►  May (17)
    • ►  April (14)
    • ►  March (9)
    • ►  February (16)
    • ▼  January (17)
      • From the Newsgroups: FRx XBRL
      • Changing the Hyperspace property for a lookup butt...
      • What's new in Microsoft Dexterity 11.0
      • Microsoft Dynamics GP 2010 - Navigation Enhancements
      • Microsoft Dynamics GP 2010 - Security Enhancements
      • Microsoft Dynamics GP 2010 Beta Buzz
      • Microsoft Dynamics GP 2010 - Coming Soon to a Part...
      • IM - How to filter source query records dynamically
      • Parsing Long String fields in Extender for using w...
      • Using Business Alerts with Extender Tables
      • New article on MSDynamicsWorld: MVP Mark Polino an...
      • Building a COM Interop Assembly to use with Micros...
      • New article on MSDynamicsWorld: "Integrating Micro...
      • Register now for Convergence 2010 in Atlanta
      • Congratulations to Queen Victoria!
      • Post through from Microsoft Dynamics GP Manufacturing
      • Happy New Year!
  • ►  2009 (5)
    • ►  December (5)
Powered by Blogger.

About Me

Unknown
View my complete profile