Use of Parameter String in Job Queue

sunct
Member Posts: 72
Hi,
I have a problem with using Parameter String in Job Queue.
I want the value entered in Parameter String to be available in the codeunit which is specified in Job Queue Entry. My Job Queue Entry is as below -
Object Type to Run Codeunit
Object ID to Run 50040
Parameter String C11-Import
And my codeunit 50040 is as below -
Documentation()
OnRun(VAR Rec : Record "Job Queue Entry")
ParameterString := "Parameter String";
test.Process := "Parameter String";
test.INSERT;
But I am not getting the value in Parameter String inserted to the Process field in table test after the job runs. The job queue is running and Job Queue log entry is generating. But I am not getting the values in Parameter String which I need to use for further process. ](*,)
Any help please?
Thanks in advance
I have a problem with using Parameter String in Job Queue.
I want the value entered in Parameter String to be available in the codeunit which is specified in Job Queue Entry. My Job Queue Entry is as below -
Object Type to Run Codeunit
Object ID to Run 50040
Parameter String C11-Import
And my codeunit 50040 is as below -
Documentation()
OnRun(VAR Rec : Record "Job Queue Entry")
ParameterString := "Parameter String";
test.Process := "Parameter String";
test.INSERT;
But I am not getting the value in Parameter String inserted to the Process field in table test after the job runs. The job queue is running and Job Queue log entry is generating. But I am not getting the values in Parameter String which I need to use for further process. ](*,)
Any help please?
Thanks in advance
Regards,
Sunil
Sunil
0
Comments
-
Have you stepped through the debugger to see the values of your variables? Maybe it's working just fine but "Parameter String" is reset somewhere before you insert it into the table.0
-
How the debugger can be used when the Job Queue is run through NAS?Regards,
Sunil0 -
Good call :oops:
Same thing still holds, though. Are you sure your variable is not getting reset?
You assign "Parameter String" to the variable ParameterString, but then use the original variable later on. There must be some reason it is copied to another variable.0 -
Hi,
I need the value assigned to a variable. However, in both cases it is not working. It is sure, the variable is not getting reset. This is the first time I am using this module and really dont have much idea how it will work. I thought I will be able to get the Parameter String value into this codeunit and can use it for further processing.
Thanks,Regards,
Sunil0 -
sunct wrote:How the debugger can be used when the Job Queue is run through NAS?
If you can't figure that out, you can always run the process in a regular client with the debugger on.0 -
I have the same issue, have you solved it?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