Using dialogs in RTC

lang
Member Posts: 27
hi all,
i have a function which does create some records anywhere in my database based on the parent record. I call this function in a page from the action pane (function called in menu item/OnAction trigger). In my function there is a local dialog variable named Window.
The RTC seems to have a problem with this dialog because everytime i call my function the client crashes. I analysed my function in cs but i dont get what is wrong. The event log on the service tier displays the following:
Event Type: Error
Event Source: MicrosoftDynamicsNAVServer
Event Category: None
Event ID: 0
Date: 16.12.2008
Time: 16:40:55
User: Nicht zutreffend
Computer: ***-3TIER
Description:
User: ***
Type: System.MissingMethodException
Message: The method Microsoft.Dynamics.Nav.BusinessApplication.Page5018334.Control132_OnAction could not be found.
StackTrace:
bei Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args)
bei Microsoft.Dynamics.Nav.Service.NSField.ActionField(NavConnection con)
bei Microsoft.Dynamics.Nav.Service.NSService.<>c__DisplayClass1c.<ActionField>b__1b(Connection connection)
bei Microsoft.Dynamics.Nav.Service.NSService.ExecuteOperation[T](String operationName, ServiceOperation`1 operation, Connection connection, WindowsIdentity impersonationIdentity)
Source: Microsoft.Dynamics.Nav.Ncl
Is there any rule which I have to notice for RTC with dialogs? In Classic Client it runs all fine. If I don't use the dialog in my function also the RTC does fine. Would be great to get a hint...
i have a function which does create some records anywhere in my database based on the parent record. I call this function in a page from the action pane (function called in menu item/OnAction trigger). In my function there is a local dialog variable named Window.
Window.OPEN([...]); [...] Window.Update([...]); [...] Window.Close;
The RTC seems to have a problem with this dialog because everytime i call my function the client crashes. I analysed my function in cs but i dont get what is wrong. The event log on the service tier displays the following:
Event Type: Error
Event Source: MicrosoftDynamicsNAVServer
Event Category: None
Event ID: 0
Date: 16.12.2008
Time: 16:40:55
User: Nicht zutreffend
Computer: ***-3TIER
Description:
User: ***
Type: System.MissingMethodException
Message: The method Microsoft.Dynamics.Nav.BusinessApplication.Page5018334.Control132_OnAction could not be found.
StackTrace:
bei Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args)
bei Microsoft.Dynamics.Nav.Service.NSField.ActionField(NavConnection con)
bei Microsoft.Dynamics.Nav.Service.NSService.<>c__DisplayClass1c.<ActionField>b__1b(Connection connection)
bei Microsoft.Dynamics.Nav.Service.NSService.ExecuteOperation[T](String operationName, ServiceOperation`1 operation, Connection connection, WindowsIdentity impersonationIdentity)
Source: Microsoft.Dynamics.Nav.Ncl
Is there any rule which I have to notice for RTC with dialogs? In Classic Client it runs all fine. If I don't use the dialog in my function also the RTC does fine. Would be great to get a hint...
0
Answers
-
ok, I solved the problem...
the dialog variable should not be Local, with a global variable instead it works fine also in RTC. Strange RTC 8)0 -
Interesting... it seems like :bug: ... we will see in next release...0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions