x++


How to make sure that a form is only opened once?


Is it possible to make sure a user only can open one instance of a specific form, for instance CustTrans from CustTable?
Modal form is not an option. Some sort of Singleton pattern?
You can use the global cache for this, more info on MSDN: http://msdn.microsoft.com/en-us/library/aa891830.aspx. However a lot of the time the use of the global cache is a sign of bad design.
You can use the global cache to implement a singleton pattern as demonstrated here: http://www.axaptapedia.com/Singleton_pattern
Also consider alternative solutions to your problem, for example the one used on inventory journals. When you open the lines for a journal, it is marked as "in use" so no one else can open that particular journal.
Side note: I believe what you are trying to achieve is a bit of an anti-pattern. Dynamics AX uses dynalinks to link forms together. All of this functionality will be lost if you implement this.

Related Links

Number sequence issue Ax 2012?
Find code that's running in a Batch Job
What is the _isMexican boolean for in the Global::Checkpower method?
AlwaysOnTop property not behaving properly
Boolean AND logic in Microsoft Dynamics AX 2012 AIF QueryCriteria
Table: PrintMgmtSettings Field: Printjobsettings(Blob)
What happened to the hrplimittablerelationship table in ax-2012-r2?
Why is my changes ignored to releaseupdate scripts in dynamics ax 2012 r2
What is “old sys” exactly and why would I receive errors in 2012 because of a missing Macro?
How to filter records in line grid based on selected record in header grid?
Dynamic linking gets cleared when inserting new records
Box::info showing “refreshEx”
How to filter lookup values on a dialogfield in Report Dialog based on another dialogfield in AX 2012 AOT reports?
Adding scrollbar to a Group in AX 2012 form
Table query inconsistent
AX2012 Sales Order Creation through AX Classes

Categories

HOME
android
grok
oracle12c
phpmyadmin
graphics
r-googlesheets
google-cloud-functions
edge
hugo
settings
mapbox
bing-maps
pattern-matching
ibeacon-android
appcelerator-studio
mod-security
opengl-es-3.0
angular-dart
google-form
heat
http-post
modbus-tcp
symfony-2.8
intershop
mathprog
wolframalpha
google-picker
aggregation
roundup
tiki-wiki
moses
flooding
8051
android-things
subclass
user-defined-functions
bioinformatics
ntp
alm
corenlp-server
custom-controls
xbox
postback
paragraph
contacts
hunspell
roblox
apiary.io
apic
tex
bc
odroid
demo
urlsession
laravel-elixir
escpos
naming
clang++
lampp
gitlist
page-replacement
opengl-4
universal-analytics
cd-burning
branch-prediction
restore
smartfoxserver
burrows-wheeler-transform
macaulay2
i386
cassia
createprocess
html-to-pdf
piracy-prevention
asyncdisplaykit
maybe
custom-errors
doctype
visual-sourcesafe-2005
canalyzer
evolus-pencil
vacuum
pyobjc
umlgraph
xmltype
apache-spark-1.3
radiant
authlogic
vbe
ora-06550
http-patch
ebay-lms
modular
cocoalibspotify-2.0
android-sdk-2.3
resource-management
robotlegs
midlet
saleslogix
correlated-subquery
josql
usertype
cross-database
apache-commons-dbutils
hibernateexception
gobject-introspection
winmain
exponentiation
rowlex
web-garden
pos-for-.net
tui
sqlobject
unmanagedresources

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App