writing code via function?

redStripe
Member Posts: 83
Hello,
do anybody know if it's possible to write code in a special
table and a special trigger after i pressed a button or something?
e.g. Table: 23 Trigger: OnInsert Code to write after an event: messagebox('test')
I hope you know what i mean.
Thanks.
RedStripe
do anybody know if it's possible to write code in a special
table and a special trigger after i pressed a button or something?
e.g. Table: 23 Trigger: OnInsert Code to write after an event: messagebox('test')
I hope you know what i mean.
Thanks.
RedStripe
0
Answers
-
If you mean changing the application's logic at run-time: no, I'm afraid not. Nor would I personally consider it very likely that this will change in the near future.Kind regards,
Jan Hoek
Product Developer
Mprise Products B.V.0 -
Why would you want to write code to write code? Do you have anything specific in mind?0
-
I'm looking for a way to get an event if something in a table is
modified. I thought of writing code in the onModify-Trigger in the
specific table during run-time.
First I tried the onGlobalModify Trigger in CU1 but it does not work,
my code was not executed...
Is it possible to make changes in CU1? If yes - why Navision ignored my
code, although the onGlobalTrigger was fired???
RedStripe0 -
A few months ahead i did think about same. Can't remember the reason for but i really had need of. I did some small tests but haven't got it work so i gave up and did finally find another solution. Slower and more code but it works.
Anyway u can do some code into CU 1 and it will be done.
I downloaded a tool here on mibuso and looked how it works.
Inside the tool there was some code in CU 1 in the LogInStart() Trigger.
The user who coded it did say a few words about. One thing i remember that he said the code must be after the orginal code.
If this don't work in ur trigger u want it to work then maybe the trigger is not designed for use it in this way u want. I didn't look much into CU 1 so i don't know all possible and avalible Triggers but maybe try another trigger?!0 -
it works now :-)
...i wrote my code after the original code and i did a new login.
DANKE!0 -
Maybe you can add "[SOLVED]" to your original Topic Subject, so others now this topic has a solution? See also Suggestion: Use [SOLVED] in Topic TitleNo support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)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