我在xpages应用程序中使用动态视图面板,我正在使用Jesse Gallagher(https://openntf.org/XSnippets.nsf/snippet.xsp?id=dynamicviewcustomizer)提供的定制器bean来格式化面板。在代码中,存在根据Notes视图中定义的属性呈现列标题的处理,但是未传递属性,因为notes视图中的列是粗体,并且未在动态视图面板中反映。有人可以帮我验证出了什么问题吗?
按照DXL视图和xpages代码进行操作
<!DOCTYPE database SYSTEM "C:\Notes9\xmlschemas/domino_9_0_1.dtd">
-<database title="Gestão de despesas de água e energia de agências" allowbackgroundagents="false" path="CN=Snmb24/O=Mercantil do Brasil!!GestaoAguaEnergia.nsf" replicaid="8325802D005D8C64" maintenanceversion="1.4" version="9.0" xmlns="http://www.lotus.com/dxl">
-<databaseinfo numberofdocuments="189" percentused="87.4150815217391" diskspace="6029312" odsversion="43" dbid="8325802D005D8C64">
-<datamodified>
<datetime dst="true">20170112T164849,51-02</datetime>
</datamodified>
-<designmodified>
<datetime dst="true">20170112T165138,37-02</datetime>
</designmodified>
</databaseinfo>
-<fulltextsettings breakat="wordssentencesparagraphs" includeencryptedfields="false" includeattachments="true" update="immediate" size="1922029">
-<lastindexed>
<datetime>20170112T191311,61+00</datetime>
</lastindexed>
</fulltextsettings>
-<launchsettings>
<noteslaunch whenopened="openaboutdocument"/>
<weblaunch whenopened="openxpage" xpage="GastosPorAgência.xsp"/>
</launchsettings>
-<view noemptycategories="true" initialbuildrestricted="false" uniquekeys="false" marginbgcolor="white" marginwidth="0px" hidemarginborder="false" allowcustomizations="true" allownewdocuments="false" evaluateactions="false" boldunreadrows="false" headerbgcolor="white" totalscolor="black" bgcolor="white" haslinkcolumn="true" rowspacing="1" headerlinecount="1" rowlinecount="1" unreadcolor="black" showhierarchies="false" extendlastcolumn="false" shrinkrows="false" showmargin="true" showresponsehierarchy="true" opencollapsed="false" headers="beveled" onrefresh="displayindicator" onopengoto="lastopened" unreadmarks="none" designerversion="8.5.3" publicaccess="false" noreplace="true" showinmenu="false" alias="VGastosAgencia" name="(Gastos por agência)">
-<noteinfo sequence="39" unid="219D8F4FA6912B1D8325802D0069918A" noteid="19e">
-<created>
<datetime>20160913T161305,38-03</datetime>
</created>
-<modified>
<datetime dst="true">20170112T145220,92-02</datetime>
</modified>
-<revised>
<datetime dst="true">20170112T145220,91-02</datetime>
</revised>
-<lastaccessed>
<datetime dst="true">20170112T145220,92-02</datetime>
</lastaccessed>
-<addedtofile>
<datetime>20160913T161305,38-03</datetime>
</addedtofile>
</noteinfo>
-<updatedby>
<name>CN=Marcus Loza/O=Mercantil do Brasil</name>
</updatedby>
-<wassignedby>
<name>CN=Marcus Loza/O=Mercantil do Brasil</name>
</wassignedby>
-<code event="selection">
<formula>listaStatus:="Enviado para agência":"Enviado para gestor":"Devolvido para agência":"Enviado para contabilidade":"Ciente":"Novo"; SELECT form="GastoEnergiaAgua"& @IsMember(status;listaStatus)</formula>
</code>
-<column twisties="true" categorized="true" showaslinks="false" sortnocase="true" sortnoaccent="true" separatemultiplevalues="true" resizable="true" width="28.7500" itemname="agencia" hidedetailrows="false" sort="ascending">
-<columnheader>
<font size="9pt" style="bold"/>
</columnheader>
</column>
-<column showaslinks="true" sortnocase="true" sortnoaccent="false" separatemultiplevalues="false" resizable="true" width="23.3750" itemname="status" hidedetailrows="false" sort="ascending">
<font color="navy"/>
-<columnheader title="Status">
<font size="9pt" style="bold"/>
</columnheader>
</column>
-<column showaslinks="false" sortnocase="true" sortnoaccent="false" separatemultiplevalues="false" resizable="true" width="10" itemname="$6" hidedetailrows="false" showasicons="true">
-<columnheader>
<font size="9pt" style="bold"/>
</columnheader>
-<code event="value">
<formula>listaStatus:="Enviado para agência":"Enviado para gestor":"Devolvido para agência":"Enviado para contabilidade":"Novo"; dif:=dt_debito-@Today; @If(dif<0;"icons/cancel_or_decline/status_red.gif";"")</formula>
</code>
</column>
-<column showaslinks="false" sortnocase="true" sortnoaccent="false" separatemultiplevalues="false" resizable="true" width="10" itemname="dt_debito" hidedetailrows="false">
-<columnheader title="Data débito">
<font size="9pt" style="bold"/>
</columnheader>
<datetimeformat preference="custom" timeformat24="true" timeseparator=":" dateseparator3="/" dateseparator2="/" dateseparator1=" " weekdayformat="shortname" yearformat="fourdigityear" monthformat="twodigitmonth" dayformat="twodigitday" dateformat="weekdaydaymonthyear" zone="never" time="hourminutesecond" fourdigityearfor21stcentury="true" date="yearmonthday" show="date"/>
<numberformat bytes="false" percent="false" parens="false" punctuated="false" format="general"/>
</column>
-<column showaslinks="false" sortnocase="true" sortnoaccent="false" separatemultiplevalues="false" resizable="true" width="10" itemname="tipo_gasto" hidedetailrows="false">
-<columnheader title="Gasto">
<font size="9pt" style="bold"/>
</columnheader>
</column>
-<column showaslinks="false" sortnocase="true" sortnoaccent="false" separatemultiplevalues="false" resizable="true" width="10" itemname="valor" hidedetailrows="false">
-<columnheader title="Valor">
<font size="9pt" style="bold"/>
</columnheader>
<numberformat preference="custom" bytes="false" percent="false" parens="false" punctuated="true" format="fixed" usecustomsym="false" currencysym="R$" currencysymtype="custom" thousandssep="." decimalsym="," digits="2"/>
</column>
-<column showaslinks="false" sortnocase="true" sortnoaccent="false" separatemultiplevalues="false" resizable="true" width="10" itemname="consumo" hidedetailrows="false">
-<columnheader title="Consumo">
<font size="9pt" style="bold"/>
</columnheader>
</column>
-<item name="$FormulaTV">
<text/>
</item>
</view>
Xpages代码:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view
xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xc="http://www.ibm.com/xsp/custom"
xmlns:xe="http://www.ibm.com/xsp/coreex">
<xp:this.afterPageLoad><![CDATA[#{javascript:sessionScope.viewPage = view.getPageName();}]]></xp:this.afterPageLoad>
<xp:this.resources>
<xp:styleSheet href="/layout.css"></xp:styleSheet>
</xp:this.resources>
<xp:this.beforePageLoad><![CDATA[#{javascript:viewStateBean.restoreState = true;
var roles = context.getUser().getRoles();
sessionScope.userRoles = roles;
var st_novo=["Rascunho","Novo"];
var st_Contratos=["Enviado para gestor"];
var st_Contabilidade=["Enviado para contabilidade"];
var st_agencia=["Devolvido para agência","Enviado para agência"];
applicationScope.Contratos=st_Contratos;
applicationScope.Contabilidade=st_Contabilidade;
applicationScope.Agencia=st_agencia;
applicationScope.Novo=st_novo
}]]></xp:this.beforePageLoad>
<xc:cc_layout navigationPath="/Gastos/PorAgência">
<xp:this.facets>
<xp:panel
xp:key="facetMiddle"
id="panelMainContent">
<xe:dynamicViewPanel
id="dynamicViewPanel1"
showColumnHeader="true"
width="100%"
rows="25"
var="viewEntry"
customizerBean="mcl.reports.DynamicViewCustomizer">
<xp:this.facets>
<xe:pagerSizes
id="pagerSizes1"
xp:key="footerPager"
for="dynamicViewPanel1">
</xe:pagerSizes>
<xp:pager
layout="Previous Group Next"
partialRefresh="true"
id="pager1"
xp:key="headerPager"
for="dynamicViewPanel1">
</xp:pager>
<xe:pagerExpand
id="pagerExpand1"
xp:key="viewTitle"
for="dynamicViewPanel1">
</xe:pagerExpand>
</xp:this.facets>
<xe:this.data>
<xp:dominoView
var="view1"
viewName="VGastosAgencia">
</xp:dominoView>
</xe:this.data>
</xe:dynamicViewPanel>
<xe:pagerSaveState
id="pagerSaveState1"
for="dynamicViewPanel1"
partialRefresh="true">
</xe:pagerSaveState></xp:panel>
<xc:cc_nav_principal xp:key="facetLeft"></xc:cc_nav_principal>
</xp:this.facets>
</xc:cc_layout>
</xp:view>
感谢!
马库斯
答案 0 :(得分:0)
我所做的是使用下面的标记覆盖动态视图面板列标题的oneui css。
.xspPanelViewColumnHeader
{
Font-weight: bold
}