- 개요
보고서 영역의 Custom Button을 추가 할 수 있다.
- 적용 방법
1. skin 파일 생성 후 서버에 업로드
ex) WAS의 ~/"/extention/imatrix6/SkinSample/ 경로에 TMenuSkin.xml 파일 추가
2. skin 사용 여부 설정
/extention/imatrix6/viewerex.jsp 파일에서 SkinUrl 지정
ex) obj.Property.SkinUrl = "/extention/imatrix6/SkinSample/TMenuSkin.xml";
예제 소스
<?xml version="1.0" encoding="utf-8"?>
<Style>
<Type Name="TitleMenu"><![CDATA[
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Controls="clr-namespace:BIMATRIX.MATRIX6.XBrowserMng6.UI;assembly=XBrowserMng6"
Background="White">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="10"/>
</Grid.ColumnDefinitions>
<Border BorderThickness="0,0,0,1" Grid.ColumnSpan="3" BorderBrush="#838383"></Border><Controls:ucTitleMenuControl />
<StackPanel Orientation="Horizontal" Grid.Column="1">
<Controls:MTXButton Margin="10,0,0,0" Content="fileopen" Width="100" Height="20" Tag="OpenReportFile;http://localhost:8081/extention;.xps" Command="{Binding ViewerCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}"/>
<Controls:MTXButton Margin="10,0,0,0" Content="InvokeMethod" Width="100" Height="20" Tag="InvokeMethod;MenuControl;cfunction" Command="{Binding ViewerCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}"/>
<Controls:MTXButton Margin="10,0,0,0" Content="OpeniPortalPopup" Width="100" Height="20" Tag="OpeniPortalPopup;http://localhost:8081/extention/Book1.xps;540;580" Command="{Binding ViewerCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}"/>
<Controls:MTXButton Margin="10,0,0,0" Content="OpenIEPopup" Width="100" Height="20" Tag="OpeniPortalPopup;http://localhost:8081/extention/Book1.xps;540;580" Command="{Binding ViewerCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}"/>
<Controls:MTXButton Margin="10,0,0,0" Content="Notice" Width="100" Height="20" Tag="OpeniPortalPopup;http://localhost:8081/extention/Book1.xps;540;580" Command="{Binding ViewerCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}"/>
<Controls:MTXButton Margin="10,0,0,0" Content="LeftMenuShowHide" Width="100" Height="20" Tag="OpeniPortalPopup;http://localhost:8081/extention/Book1.xps;540;580" Command="{Binding ViewerCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}"/>
</StackPanel></Grid>
]]>
</Type>
</Style>
- 버튼 권한 설정
- Method
Mehod Call Ex)
Tag = 함수명;파라미터1;파라미터2; ....
<Controls:MTXButton Margin="10,0,0,0" Content="fileopen" Width="100" Height="20" Tag="OpeniPortalPopup;http://localhost:8081/extention/Book1.xps;540;580" Command="{Binding ViewerCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}"/>
Name | Description | |
---|---|---|
AddDataset | Dataset 을 추가 합니다. | |
ChangeConnectionCode | 현재 보고서의 DB 연결 정보를 변경 합니다. | |
CRUD | CRUD 처리 | |
- 예제 파일