Exportfile for AOT version 1.0 or later Formatversion: 1 ***Element: FRM ; Navision Axapta Forms unloaded at Wednesday 10/08/2005 ; -------------------------------------------------------------------------------- FRMVERSION 5 FORM #AJ_DynamicControlsSimple PROPERTIES Name #AJ_DynamicControlsSimple ENDPROPERTIES METHODS Version: 3 SOURCE #classDeclaration #public class FormRun extends ObjectRun #{ # Map dynamicControls; #} ENDSOURCE SOURCE #dynamicButtonControl_Clicked #void dynamicButtonControl_Clicked() #{ # ; # # info ("Dynamic button clicked!"); #} ENDSOURCE SOURCE #dynamicStringControl_Modified #boolean dynamicStringControl_Modified() #{ # FormStringControl control = element.controlCallingMethod(); # ; # # info (strFmt("Modified dynamic control %1 to %2", int2str(control.id()), control.text())); # return true; #} ENDSOURCE SOURCE #init #public void init() #{ # FormStringControl formStringControl; # FormButtonControl formButtonControl; # FormGroupControl formGroupControl; # ; # # // Adding a group # formGroupControl = this.form().addControl(FormControlType::Group, "MyGroup"); # formGroupControl.caption("It's my group!"); # # // Adding a string to a group # formStringControl = formGroupControl.addControl(FormControlType::String, "DynamicStringControl"); # formStringControl.label("Dynamic string control"); # # // Adding another string to the group using the same name. This will use the same event method as the # // first "DynamicStringControl" # formStringControl = formGroupControl.addControl(FormControlType::String, "DynamicStringControl"); # formStringControl.label("Dynamic string control2"); # # formButtonControl = this.form().addControl(FormControlType::Button, "DynamicButtonControl"); # formButtonControl.text("Dynamic button"); # # this.controlMethodOverload(true); # # super(); #} ENDSOURCE ENDMETHODS OBJECTBANK ENDOBJECTBANK JOINS ENDJOINS DESIGN PROPERTIES Left #Auto (left) Top #Auto Width #Auto Height #Auto Visible #Yes Caption # TitleDatasource # Frame #Standard WindowResize #Auto WindowType #Standard SaveSize #No AlwaysOnTop #No HideToolbar #No SetCompany #Yes ColorScheme #Default CssClass # ShowWebHelp #Default BackgroundColor #Button face (3D) ImageName # ImageResource #0 Imagemode #Normal (preserve pict. attributes) Mode #Watch SubmitMethod #Auto SupportReload #No LocalWebMenu # AllowDocking #No Font # FontSize #0 Italic #No Underline #No Bold #Default CharacterSet #0 LabelFont # LabelFontSize #0 LabelItalic #No LabelUnderline #No LabelBold #Default LabelCharacterSet #0 DataSource # TopMargin #Auto BottomMargin #Auto LeftMargin #Auto RightMargin #Auto ArrangeWhen #Default ArrangeMethod #Vertical Columns #1 Columnspace #Auto ArrangeGuide ARRAY INDEX Columns #0 ENDARRAY HideIfEmpty #Yes AlignChildren #Yes AlignChild #Yes AllowUserSetup #Yes NeededAccessLevel #NoAccess ENDPROPERTIES CONTAINER CONTROL STRINGEDIT ;==== controlId:12289, containerId: 0, containerdata: 0 ;---------------------------------------------------------- PROPERTIES Name #StaticControl AutoDeclaration #No Visible #Yes AllowEdit #Yes Left #Auto (left) Top #Auto Width #Auto Height #Auto VerticalSpacing #Auto Enabled #Yes Skip #No AlignControl #Yes HelpText # ConfigurationKey # SecurityKey # DragDrop #None LookupButton #Auto ReplaceOnLookup #Yes LimitText #Auto DisplayLength #Auto DisplayHeight #Auto Border #Auto Text # PasswordStyle #No Alignment #Auto ChangeCase #Auto MultiLine #No ColorScheme #Default BackStyle #Opaque BackgroundColor #Window background ForegroundColor #Window text Font # FontSize #0 Italic #No Underline #No Bold #Default CharacterSet #0 LabelForegroundColor #Window text ShowLabel #Yes Label #Static control LabelFont # LabelFontSize #0 LabelItalic #No LabelUnderline #No LabelBold #Default LabelCharacterSet #0 LabelWidth #Auto LabelHeight #Auto LabelPosition #Left LabelAlignment #Right DataSource # DataField # Mandatory #No ExtendedDataType ARRAY # # ENDARRAY ArrayIndex #0 DataMethod # SearchMode #None ENDPROPERTIES METHODS Version: 3 SOURCE #modified #public boolean modified() #{ # boolean ret; # # ret = super(); # # info (strFmt("Modified static control to %1", this.text())); # # return ret; #} ENDSOURCE ENDMETHODS ENDCONTROL ENDCONTAINER ENDDESIGN ENDFORM ***Element: FRM ; Navision Axapta Forms unloaded at Wednesday 10/08/2005 ; -------------------------------------------------------------------------------- FRMVERSION 5 FORM #AJ_DynamicMenuItemButton PROPERTIES Name #AJ_DynamicMenuItemButton ENDPROPERTIES METHODS Version: 3 SOURCE #classDeclaration #public class FormRun extends ObjectRun #{ # Map dynamicControls; #} ENDSOURCE SOURCE #init #public void init() #{ # FormFunctionButtonControl formFunctionButtonControl; # ; # # formFunctionButtonControl = this.form().addControl(FormControlType::MenuFunctionButton, "SalesTableButton"); # formFunctionButtonControl.menuItemType(MenuItemType::Display); # formFunctionButtonControl.menuItemName(MenuItemDisplayStr(SalesTable)); # # super(); #} ENDSOURCE ENDMETHODS OBJECTBANK ENDOBJECTBANK JOINS ENDJOINS DESIGN PROPERTIES Left #Auto (left) Top #Auto Width #Auto Height #Auto Visible #Yes Caption # TitleDatasource # Frame #Standard WindowResize #Auto WindowType #Standard SaveSize #No AlwaysOnTop #No HideToolbar #No SetCompany #Yes ColorScheme #Default CssClass # ShowWebHelp #Default BackgroundColor #Button face (3D) ImageName # ImageResource #0 Imagemode #Normal (preserve pict. attributes) Mode #Watch SubmitMethod #Auto SupportReload #No LocalWebMenu # AllowDocking #No Font # FontSize #0 Italic #No Underline #No Bold #Default CharacterSet #0 LabelFont # LabelFontSize #0 LabelItalic #No LabelUnderline #No LabelBold #Default LabelCharacterSet #0 DataSource # TopMargin #Auto BottomMargin #Auto LeftMargin #Auto RightMargin #Auto ArrangeWhen #Default ArrangeMethod #Vertical Columns #1 Columnspace #Auto ArrangeGuide ARRAY INDEX Columns #0 ENDARRAY HideIfEmpty #Yes AlignChildren #Yes AlignChild #Yes AllowUserSetup #Yes NeededAccessLevel #NoAccess ENDPROPERTIES CONTAINER ENDCONTAINER ENDDESIGN ENDFORM ***Element: PRN ; Navision Axapta Project : AJ_DynamicControls unloaded at Wednesday 10/08/2005 ; -------------------------------------------------------------------------------- PROJECTVERSION 2 PROJECT #AJ_DynamicControls SHARED PROPERTIES Name #AJ_DynamicControls ENDPROPERTIES BEGINNODE FILETYPE 0 UTILTYPE 11 UTILOBJECTID 0 NODETYPE 201 NAME #AJ_DynamicControlsSimple ENDNODE BEGINNODE FILETYPE 0 UTILTYPE 11 UTILOBJECTID 0 NODETYPE 201 NAME #AJ_DynamicMenuItemButton ENDNODE ENDPROJECT ***Element: END