|
Комрады, доброго всем времени суток, не подскажете чё за лажа с page()
|
|||
---|---|---|---|
#18+
PB12 в двух словах: если дата колонки note достаточно велика и перескакивает на следующую страницу, значение page() на этой следующей страница не изменяетса. Пикчи прилагаютса. Зараннее благодарен. ... |
|||
:
Нравится:
Не нравится:
|
|||
08.05.2012, 21:10 |
|
Комрады, доброго всем времени суток, не подскажете чё за лажа с page()
|
|||
---|---|---|---|
#18+
а вот сама датавинда ... |
|||
:
Нравится:
Не нравится:
|
|||
08.05.2012, 21:11 |
|
Комрады, доброго всем времени суток, не подскажете чё за лажа с page()
|
|||
---|---|---|---|
#18+
Вообще page() рассчитывается от настроек страницы указанных в dw и установок вашего принтера по-умолчанию. В эту сторону и надо копать ... |
|||
:
Нравится:
Не нравится:
|
|||
08.05.2012, 22:26 |
|
Комрады, доброго всем времени суток, не подскажете чё за лажа с page()
|
|||
---|---|---|---|
#18+
Спасибо идея хорошая. Вот только это происходит вне зависимости от прописанного принтера и его наличия вообще, ну и проверив и поигравшись с табом [Print Specifications] что-то мне подсказывает, что там особо не разгонишся. По любому ещё раз спасибо. ... |
|||
:
Нравится:
Не нравится:
|
|||
08.05.2012, 22:59 |
|
Комрады, доброго всем времени суток, не подскажете чё за лажа с page()
|
|||
---|---|---|---|
#18+
voronk, Это не лажа. Вы просто не разобрались что возвращает page() (номер страницы по вертикали). Перечитайте доки по функциям для расчета страниц: Page() PageAcross() PageCount() PageCountAcross() Если отчет в ширину имеет больше одной страницы, то значение номера листа (то что вам нужно) рассчитывается таким выражением: Код: sql 1.
В случае когда в ширину только одна страница то это выражение сводится к Page() (т.к. PageCountAcross и PageAcross всегда равны 1), поэтому многие считают что Page() возвращает номер листа, а потом удивляются :) ... |
|||
:
Нравится:
Не нравится:
|
|||
09.05.2012, 14:10 |
|
Комрады, доброго всем времени суток, не подскажете чё за лажа с page()
|
|||
---|---|---|---|
#18+
Спасибо Анатолий. Познавательно, действительно не задумывался, не читал, и таки да, так считал. Только с шириной у меня всё впорядке, по высоте колонка скачет на следующую страницу. Посему приведённая выше формула не работает. Да и ещё, в 9 билдере, этот репорт прекрасно работает, начались проблемы когда я переполз на 12, я поначалу подумал может чего во время миграции произошло, но ошибся. Дабы не быть голословным, прилагаю этот же репорт в девятке. ПС Очень люблю твой город. Пару лет назад был там, впервые с 89. ... |
|||
:
Нравится:
Не нравится:
|
|||
09.05.2012, 20:34 |
|
Комрады, доброго всем времени суток, не подскажете чё за лажа с page()
|
|||
---|---|---|---|
#18+
Ну а вот и репорты $PBExportHeader$dwr_cv_comprehensive1.srd release 9; datawindow(units=0 timer_interval=0 color=1090519039 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 1 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 hidegrayline=no ) header(height=604 color="536870912" ) summary(height=0 color="536870912" ) footer(height=100 color="536870912" ) detail(height=108 color="536870912" height.autosize=yes) table(column=(type=long updatewhereclause=no name=arc_id dbname="arc_id" ) column=(type=char(4099) updatewhereclause=no name=note dbname="note" ) procedure="1 execute dbo.sp_test;1 ") compute(band=footer alignment="0" expression="page()"border="0" color="0" x="165" y="28" height="56" width="183" format="[GENERAL]" html.valueishtml="0" name=compute_1 visible="1" font.face="Arial" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) column(band=detail id=2 alignment="0" tabsequence=0 border="0" color="0" x="585" y="36" height="56" width="1371" html.valueishtml="0" name=note visible="1" slideup=directlyabove height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) column(band=detail id=1 alignment="0" tabsequence=0 border="0" color="0" x="183" y="32" height="56" width="325" html.valueishtml="0" name=arc_id visible="1" slideup=directlyabove height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) htmltable(border="1" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" ) export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) import.xml() export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" ) /*****************************************************************************************/ release 12; 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=no print.background=no print.preview.background=no print.preview.outline=no hidegrayline=no showbackcoloronxp=no picture.file="" ) header(height=788 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" height.autosize=yes ) footer(height=180 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=108 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" height.autosize=yes ) table(column=(type=long updatewhereclause=yes name=arc_id dbname="arc_id" ) column=(type=char(63999) updatewhereclause=no name=note dbname="note" ) procedure="1 execute dbo.sp_test;1 " ) column(band=detail id=2 alignment="0" tabsequence=0 border="0" color="0" x="512" y="28" height="52" width="1435" html.valueishtml="0" name=note visible="1" slideup=directlyabove height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" 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" ) column(band=detail id=1 alignment="0" tabsequence=0 border="0" color="0" x="137" y="16" height="52" width="338" html.valueishtml="0" name=arc_id visible="1" slideup=directlyabove height.autosize=yes edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" 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=footer alignment="0" expression="page()"border="0" color="0" x="261" y="52" height="52" width="183" format="[GENERAL]" html.valueishtml="0" name=compute_1 visible="1" font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" 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() ... |
|||
:
Нравится:
Не нравится:
|
|||
09.05.2012, 20:42 |
|
Комрады, доброго всем времени суток, не подскажете чё за лажа с page()
|
|||
---|---|---|---|
#18+
ещё одна интересная деталька выявилась в процессе экспериментов, при переключении из формата landscape в potrait, номер страницы от page(), начинает правильно отображатса ... |
|||
:
Нравится:
Не нравится:
|
|||
09.05.2012, 22:12 |
|
Комрады, доброго всем времени суток, не подскажете чё за лажа с page()
|
|||
---|---|---|---|
#18+
voronkещё одна интересная деталька выявилась в процессе экспериментов, при переключении из формата landscape в potrait, номер страницы от page(), начинает правильно отображатса А если просто GroupCalc() вызвать? ... |
|||
:
Нравится:
Не нравится:
|
|||
10.05.2012, 02:36 |
|
Комрады, доброго всем времени суток, не подскажете чё за лажа с page()
|
|||
---|---|---|---|
#18+
Я тоже за GroupCalc:) ... |
|||
:
Нравится:
Не нравится:
|
|||
10.05.2012, 11:15 |
|
Комрады, доброго всем времени суток, не подскажете чё за лажа с page()
|
|||
---|---|---|---|
#18+
Ребята, всем спасибо, всё оказалось проще ... /* Before we get into too much detail ... did you apply the PB 12.1 maintenance release (build 6518)? */ Проблема самоликвидировалась. ... |
|||
:
Нравится:
Не нравится:
|
|||
14.05.2012, 22:21 |
|
|
start [/forum/topic.php?fid=15&msg=37787067&tid=1335546]: |
0ms |
get settings: |
11ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
217ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
61ms |
get tp. blocked users: |
1ms |
others: | 248ms |
total: | 571ms |
0 / 0 |