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?
How to make sure that a form is only opened once?
1.6k Views Asked by mrsalonen At
1
There are 1 best solutions below
Related Questions in X++
- Datepart function error in Microsoft Dynamics SQL
- Hoiw to get the selection fields of a query
- How to copy the entered text in dialog with button from code?
- How to find if exist an uppercase character in string?
- How to close the process from class code?
- How to check EP page caller on AX client
- Get value from ComboBox?
- ax2009 x++ Error 0x80040211 in RunBaseBatch
- Ax 4.0 X++: Run a class when a file is created in a folder
- Display information related to the currently selected record on a list page
- Compiler throwing error as variable is not declared X++
- In Dynamics Ax, In this case Type of field : EDT, Enum, String or an integer?
- AX X++ return reader form method and close connection to database
- AX 2012 Customize LedgerJournalTrans insert
- Dynamics AX 2009 X++: Fix id in modification of application after import version control
Related Questions in DYNAMICS-AX-2009
- AX 2009 - Shop Floor Control > Registration (time clock) job stuck in active status for one user/one job
- ax2009 x++ Error 0x80040211 in RunBaseBatch
- Execute report by code and filter values AX 2009
- AX 2009 Batch - Illegal object code. Recompile Script
- how concatenate 2 values lookup.addLookupfield Dynamics ax
- Insert data on a table Dynamics ax
- Correct form to pass value to IntEdit and StringEdit from a method dynamics ax
- Get the Value from IntEdit to Init Dynamics ax
- Iterate through selected grid data and get field values of n-th datasource
- Setting default value on a field?
- Adding a range on an enum field
- Magento and Microsoft dynamics AX Integration
- Operand types are not compatible with the operator in AX2009
- Clients seem to be running old (buggy) code after XPO project import
- How to retrieve data with offset and limit using webservice request?
Related Questions in AXAPTA
- Microsoft Dynamics Ax 2012 R2 run time issue
- Why do some number sequences return "000000" instead of a new number?
- Datepart function error in Microsoft Dynamics SQL
- Hoiw to get the selection fields of a query
- How to copy the entered text in dialog with button from code?
- How to find if exist an uppercase character in string?
- Advanced CustInvoiceJournal
- string Bold on AX 2009 sentence
- AX 2009 - Shop Floor Control > Registration (time clock) job stuck in active status for one user/one job
- Enable/Find logging for Dynamics AX Odata service
- axapta random crashes multiple calls same method
- Need to control AOS memory consumption
- How to close the process from class code?
- How to check EP page caller on AX client
- Get value from ComboBox?
Related Questions in MORPH-X
- Compiler throwing error as variable is not declared X++
- Changing the Background- Color of the X++ Editor of MSDAX
- What do I do when MorphX won't let me check in?
- Microsoft Dynamics AX filtering data based on a ComboBox
- XPO Export to TFS not updating certain properties
- AX 2012 legacy report (ReportRun) called from an AIF web service
- How to trace the history of changes to each data in ax2012
- Helptext property of Button
- Set a Date Value to a Date Field in AX2012
- Create new unique field in table CustTable
- Add a Relation foreign key in AX2012
- Dynamics AX How I can open a table in a brand new window and not inside developer window
- Dynamics AX 2012 FactBoxes closed at start
- Is there a way to add more text to a range value?
- Axapta 2009 Report PagesTotal
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.