Duplicate variables when converting a RequestForm to a RP

Miklos_Hollender
Member Posts: 1,598
This simple example report was converted once. If you try to convert it again, at the second import it will stop with an error because the global variable that has already been there gets added again. (Same happens with functions.)
Microsoft.Dynamics.Nav.Tools.FormTransformation.exe Version 6.0.29626.0
Is there a newer version with a fix? This version is from the SP1 installmedia.
Microsoft.Dynamics.Nav.Tools.FormTransformation.exe Version 6.0.29626.0
Is there a newer version with a fix? This version is from the SP1 installmedia.
<?xml version="1.0"?> <Objects xmlns="urn:schemas-microsoft-com:dynamics:NAV:ApplicationObjects"><Report xmlns="urn:schemas-microsoft-com:dynamics:NAV:ApplicationObjects" ID="50000" Name="ReqPageConv Test" Date="2010-01-14" Time="11:10:18.43Z" Modified="Yes" VersionList=""><Properties/><Triggers/><DataItems/><RequestForm><Properties><Width>9020</Width><Height>3410</Height></Properties><Triggers><OnOpenForm><![CDATA[BEGIN RequestOptionsForm.SomethingControl.ENABLED := (1>2); END; ]]></OnOpenForm></Triggers><Controls><Control><Properties><ID>1140000</ID><Controltype>TextBox</Controltype><Name>SomethingControl</Name><XPos>4400</XPos><YPos>1320</YPos><Width>1700</Width><Height>440</Height><SourceExpr>Something</SourceExpr></Properties></Control><Control><Properties><ID>1140001</ID><Controltype>Label</Controltype><XPos>990</XPos><YPos>1320</YPos><Width>3300</Width><Height>440</Height><ParentControl>1140000</ParentControl><CaptionML>ENU=Something</CaptionML></Properties></Control></Controls></RequestForm><RequestPage><Properties/><SourceObject/><Triggers><OnInit><![CDATA[BEGIN SomethingControlEnable := TRUE; END; ]]></OnInit><OnOpenPage><![CDATA[BEGIN SomethingControlEnable := (1>2); END; ]]></OnOpenPage></Triggers><Actions/><Controls><ContentArea><Properties><ID>1900000001</ID></Properties><Group><Properties><ID>1900000002</ID><CaptionML>ENU=Options</CaptionML></Properties><Field><Properties><ID>1140000</ID><Name>SomethingControl</Name><CaptionML>ENU=Something</CaptionML><SourceExpr>Something</SourceExpr><Enabled>SomethingControlEnable</Enabled></Properties></Field></Group></ContentArea></Controls></RequestPage><Code><![CDATA[VAR Something@1140000 : Text[30]; SomethingControlEnable@19004307 : Boolean INDATASET; BEGIN { test } END. ]]></Code><RDLData/></Report></Objects>
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