2013-05-09 24 views
0

我有一個數據窗口與2組,我設置了一個帶有自動高度的樂隊樂隊,並在自動高度欄中設置了該樂團樂隊的一個欄目。如何使用自動高效建造者獲得樂隊的高度

我想使縱列'增長'高度隨着列'自動增長'列增長。數據窗口中可以這樣做嗎?或者必須使用powerscript完成?

回答

0

你可以在數據窗口表達式的幫助下做到這一點。讓我們假設你有一個「測試」的名稱的列,並希望您的線路以具有相同的高度「測試」列,

  1. 點擊DataWindow的行對象要verticaly調整
  2. 點擊位置標籤頁
  3. 沒有在該行「Y1」結束一個小盒子點擊它
  4. 在彈出窗口中把這個表達式領域:integer(describe("test.y")),然後點擊確定
  5. 有在'Y2'行末尾的一個小方塊點擊它
  6. 在彈出窗口中把這個表達式領域:integer(describe("test.y")) + integer(describe("test.height")),然後點擊確定

這是魔術!隨意問!

問候的Gabor

詩:

下面是數據窗口的完整語法。讓我們嘗試創建它並對其進行測試:

release 12.5; 
datawindow(units=0 timer_interval=0 color=1073741824 brushmode=0 transparency=0 gradient.angle=0 gradient.color=8421504 gradient.focus=0 gradient.repetition.count=0 gradient.repetition.length=100 gradient.repetition.mode=0 gradient.scale=100 gradient.spread=100 gradient.transparency=0 picture.blur=0 picture.clip.bottom=0 picture.clip.left=0 picture.clip.right=0 picture.clip.top=0 picture.mode=0 picture.scale.x=100 picture.scale.y=100 picture.transparency=0 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes print.background=no print.preview.background=no print.preview.outline=yes hidegrayline=no showbackcoloronxp=no picture.file="") 
header(height=292 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100") 
summary(height=0 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100") 
footer(height=0 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100") 
detail(height=84 color="536870912" transparency="0" gradient.color="8421504" gradient.transparency="0" gradient.angle="0" brushmode="0" gradient.repetition.mode="0" gradient.repetition.count="0" gradient.repetition.length="100" gradient.focus="0" gradient.scale="100" gradient.spread="100") 
table(column=(type=char(10) updatewhereclause=yes name=test dbname="test") 
) 
column(band=header id=1 alignment="0" tabsequence=10 border="2" color="33554432" x="9" y="36" height="124" width="274" format="[general]" html.valueishtml="0" name=test visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.autohscroll=yes font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0") 
line(band=header x1="306" y1="0~tinteger(describe(~"test.y~"))" x2="306" y2="32~tinteger(describe(~"test.y~")) + integer(describe(~"test.height~"))" name=l_1 visible="1" pen.style="0" pen.width="23" pen.color="33554432" background.mode="2" background.color="1073741824" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0") 
compute(band=header alignment="0" expression="Describe(~"test.y~")"border="2" color="33554432" x="475" y="100" height="64" width="215" format="[GENERAL]" html.valueishtml="0" name=compute_1 visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0") 
compute(band=header alignment="0" expression="Describe(~"test.height~")"border="2" color="33554432" x="471" y="16" height="64" width="215" format="[GENERAL]" html.valueishtml="0" name=compute_2 visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" background.transparency="0" background.gradient.color="8421504" background.gradient.transparency="0" background.gradient.angle="0" background.brushmode="0" background.gradient.repetition.mode="0" background.gradient.repetition.count="0" background.gradient.repetition.length="100" background.gradient.focus="0" background.gradient.scale="100" background.gradient.spread="100" tooltip.backcolor="134217752" tooltip.delay.initial="0" tooltip.delay.visible="32000" tooltip.enabled="0" tooltip.hasclosebutton="0" tooltip.icon="0" tooltip.isbubble="0" tooltip.maxwidth="0" tooltip.textcolor="134217751" tooltip.transparency="0" transparency="0") 
htmltable(border="1") 
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" pagingmethod=0 generatedddwframes="1") 
xhtmlgen() cssgen(sessionspecific="0") 
xmlgen(inline="0") 
xsltgen() 
jsgen() 
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0) 
import.xml() 
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0") 
export.xhtml() 

它是否按照您的要求工作?

+0

時,列「長大」的高度,但在垂直線仍然是相同的高度。我放了一個計算字段來檢查你的描述高度是否「增長」。 '整數(描述(「test.height」)),可悲的是它不是'成長'的。任何建議?如果可能的話, – ekologi 2013-05-18 16:23:41

0

你應該嘗試:rowheight()

或者使用的PowerScript

+1

提供參考鏈接! – EvenPrime 2014-09-04 16:19:53