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

How do I get the caller Form's name in the Insert() of a table in AX 2012?
How to lookup into another table using EDT AX 2012
Set a Date Value to a Date Field in AX2012
Determine if a job is running in X++ code
Dynamics AX 2012 parsing Int32 to table field integer
Cancel Sales order packing slip through x++
Transferring open account records between customers
How to make sure that a form is only opened once?
Extend system menu in Dynamics AX 2012?
How to show selected items of certain table on the different table in Dynamics AX 2012?
AllowEdit doesn't work properly in Dynamics AX
AX 2012 how to set args record datasource in X++
Clients seem to be running old (buggy) code after XPO project import
Number sequence AX 2012
SSRS MS words report with page break
How can you get a detailed error descriptions in Dynamics AX?

Categories

HOME
algorithm
kentico
twitter-bootstrap-3
youtube-data-api-v3
soa
simulink
cakephp-3.4
web-hosting
azure-container-service
rcloud
spin
pattern-matching
distribution
watson-conversation
siddhi
redis-sentinel
jsonpath
enterprise-architect
scsi
package.json
forgot-password
nim
charles
question2answer
react-toolbox
joptionpane
slidetoggle
jackson-modules
tpm
comparable
gp
tizen-tv
vex
realm-mobile-platform
recurring-events
cognos-bi
git-squash
catch-unit-test
rselenium
simplecv
diacritics
xv6
httr
openal
jquery-ui-draggable
mschart
geotiff
backbone-collections
headless
avx
java-websocket
rocks
atlas
webjars
resourcemanager
rspec2
delta
uiactionsheet
invoke-sqlcmd
asyncdisplaykit
dynatree
flock
liquid-layout
jsvc
avahi
matlab-deployment
uvc
cakephp-2.7
rapidsvn
addressing-mode
mobility
ignite-ui
lambda-architecture
tinyxml
dot42
multiautocompletetextview
asdf
traceability
sentestingkit
lambdaj
inkcanvas
predicatebuilder
matlab-load
strsep
inline-formset
django-paypal
objective-j
eclipse-marketplace
burndowncharts
contentpresenter

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App