Create General Journal with webservices

nuno.silva
Member Posts: 29
Hi,al
I need to make some operations in General Journal, I have 3 Journal Templates and in each template I have diferent Journal Batchs. when I invoke the Create Method, I have the the imput parameter CurrentJnlBatchName to select the Journal Batch and doing this I get the error CallBack Function because it must be trying to ask wich Journal template should I use. What I'm doing wrong?
- <xsd:element name="Create">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element minOccurs="1" maxOccurs="1" name="CurrentJnlBatchName" type="xsd:string" />
<xsd:element minOccurs="1" maxOccurs="1" name="GeneralJournal" type="tns:GeneralJournal" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="Create_Result">
I need to make some operations in General Journal, I have 3 Journal Templates and in each template I have diferent Journal Batchs. when I invoke the Create Method, I have the the imput parameter CurrentJnlBatchName to select the Journal Batch and doing this I get the error CallBack Function because it must be trying to ask wich Journal template should I use. What I'm doing wrong?
- <xsd:element name="Create">
- <xsd:complexType>
- <xsd:sequence>
<xsd:element minOccurs="1" maxOccurs="1" name="CurrentJnlBatchName" type="xsd:string" />
<xsd:element minOccurs="1" maxOccurs="1" name="GeneralJournal" type="tns:GeneralJournal" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
- <xsd:element name="Create_Result">
===============
Nuno Silva
Nuno Silva
0
Comments
-
The problem was that I have multiple General journals, so when I open the page 39 "General Journal" it open the page 250 "General Journal Template List" to choose which journal template should be used.
Solution create a new page, save as of page 39in that page change the code on open form and send as parameter the new page created
GenJnlManagement.TemplateSelection(FORM::"General Journal web",0,FALSE,Rec,JnlSelected);
Create a new journal template with the form id pointed to the id of the new form===============
Nuno Silva0
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