Options

Duplicate variables when converting a RequestForm to a RP

Miklos_HollenderMiklos_Hollender Member Posts: 1,598
edited 2010-01-14 in NAV Three Tier
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.
<?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>
Sign In or Register to comment.