aipoで印刷画面のリンク

各々のポートレットについてマクロを作って、そこでALdialogheaderPrintAbstractを呼び出しす。 こうすると必要なセッションパラメータを指定できる


#macro(ALdialogheaderPrintAbstract $title $portlet_id $screen $view_date $userid $onclick $link) <div class="auiPopup clearfix"> <div class="auiPopupHead clearfix"> <div class="auiPopupTool"> #if(($portlet_id!="")) <div><a href="javascript:void(0)" class="auiButtonIcon" title="$l10n.SCHEDULE_OPEN_PRINT_VIEW" onClick="javascript:window.open('$link');void(0);"><span><i class="icon-print"></i></span></a></div> #end <div>#ALdialogCloseButton($onclick)</div> </div> <div class="auiPopupTitle">$title</div> </div> <div class="roundBlockContent"> #end #macro(ALdialogheaderPrintSchedule $title $portlet_id $screen $view_date $userid $entityid) #set($link=$!jslink.getPortletById("$portlet_id").addQueryData("template","$screen").addQueryData("view_date","$view_date").addQueryData("userid","$userid").addQueryData("entityid","$entityid")) #ALdialogheaderPrintAbstract($title $portlet_id $screen $view_date $userid "aipo.common.hideDialog();" "$link") #end