Pas de problème (pb), que du PowerBuilder (PB) ^^

Le forum (ô combien francophone) des utilisateurs de Powerbuilder.

Recherche rapide

Annonce

Certaines rubriques, dont des cours, sont uniquement visibles par les membres du forum ^^.
Dans la rubrique Liens & Références, vous avez accès à un sommaire de téléchargement, profitez-en !
Il existe maintenant un nouveau TOPIC "Votre CV en Ligne" accessible uniquement par demande.

#1 07-10-2008 22:21:58

cposervices  
Membre completement Geek
Date d'inscription: 02-07-2008
Messages: 106
Pépites: 1,000,382
Banque: 0

Radiobuttons dans une datawindow - Bug SYBASE

Bonjour,

Voiçi le source de la datawindow :

release 9;
datawindow(units=0 timer_interval=0 color=1073741824 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 hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=1156 color="536870912" )
table(column=(type=number updatewhereclause=yes name=se_typerecherche dbname="se_typerecherche" values="Creation date    1/Delivery date    2/Loading date    3/" )
column=(type=datetime updatewhereclause=yes name=se_datedeb dbname="se_datedeb" )
column=(type=datetime updatewhereclause=yes name=se_datefin dbname="se_datefin" )
column=(type=char(15) updatewhereclause=yes name=pr_reference dbname="pr_reference" )
column=(type=number updatewhereclause=yes name=pr_num dbname="pr_num" )
column=(type=char(20) updatewhereclause=yes name=cl_nom dbname="cl_nom" )
column=(type=number updatewhereclause=yes name=cl_num dbname="cl_num" )
column=(type=number updatewhereclause=yes name=fam_num dbname="fam_num" )
column=(type=number updatewhereclause=yes name=se_print dbname="se_print" values="Print all    1/Print shipment    2/Print resume    3/" )
)
data( 3,null null null null null null null  3,)
groupbox(band=detail text="[ Date criteria ]"border="5" color="8421504" x="37" y="8" height="468" width="983"  name=gb_1 visible="1"  font.face="Tahoma" font.height="-8" font.weight="700"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
groupbox(band=detail text="[ Print options ]"border="5" color="8421504" x="37" y="848" height="280" width="983"  name=gb_2 visible="1"  font.face="Tahoma" font.height="-8" font.weight="700"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=6 alignment="0" tabsequence=60 border="5" color="33554432" x="448" y="640" height="64" width="457" format="[general]" html.valueishtml="0"  name=cl_nom visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=8 alignment="1" tabsequence=80 border="5" color="33554432" x="448" y="720" height="64" width="462" format="[general]" html.valueishtml="0"  name=fam_num visible="1" dddw.name=dddw_famille_fi_rm dddw.displaycolumn=fam_fulllibelle dddw.datacolumn=fam_num dddw.percentwidth=0 dddw.lines=0 dddw.limit=0 dddw.allowedit=no dddw.useasborder=yes dddw.case=any dddw.imemode=0  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Cl Nom:" border="0" color="33554432" x="59" y="648" height="52" width="352" html.valueishtml="0"  name=cl_nom_t visible="1"  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Fam Num:" border="0" color="33554432" x="59" y="728" height="52" width="352" html.valueishtml="0"  name=fam_libelle_t visible="1"  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Pr Reference:" border="0" color="33554432" x="59" y="568" height="52" width="352" html.valueishtml="0"  name=pr_reference_t visible="1"  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=4 alignment="0" tabsequence=40 border="5" color="33554432" x="448" y="560" height="64" width="343" format="[general]" html.valueishtml="0"  name=pr_reference visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
button(band=detail text="..." enabled=yes action="0" border="0" color="33554432" x="809" y="556" height="64" width="78" vtextalign="0" htextalign="0"  name=b_search_product visible="1"  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
button(band=detail text="..." enabled=yes action="0" border="0" color="33554432" x="919" y="648" height="64" width="78" vtextalign="0" htextalign="0"  name=b_search_customer visible="1"  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=3 alignment="2" tabsequence=30 border="5" color="33554432" x="338" y="372" height="64" width="233" format="dd/mm/yy" html.valueishtml="0"  name=se_datefin visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
button(band=detail text="" filename="D:\Cposervices\Documents\Developpement\My ERP\MERP - PFC\images\calendrier.bmp" enabled=yes action="0" border="0" color="33554432" x="585" y="364" height="76" width="82" vtextalign="0" htextalign="0"  name=b_cal_3 visible="1"  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
button(band=detail text="" filename="D:\Cposervices\Documents\Developpement\My ERP\MERP - PFC\images\calendrier.bmp" enabled=yes action="0" border="0" color="33554432" x="585" y="268" height="76" width="82" vtextalign="0" htextalign="0"  name=b_cal_2 visible="1"  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=2 alignment="2" tabsequence=20 border="5" color="33554432" x="338" y="276" height="64" width="233" format="dd/mm/yy" html.valueishtml="0"  name=se_datedeb visible="1" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="0" text="End" border="0" color="33554432" x="110" y="368" height="52" width="119" html.valueishtml="0"  name=t_2 visible="1"  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=detail alignment="0" text="Begin" border="0" color="33554432" x="110" y="276" height="52" width="119" html.valueishtml="0"  name=t_1 visible="1"  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
groupbox(band=detail text="[ Others criteria ]"border="5" color="8421504" x="37" y="480" height="360" width="983"  name=gb_criteria2 visible="1"  font.face="Tahoma" font.height="-8" font.weight="700"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
column(band=detail id=1 alignment="1" tabsequence=10 border="0" color="33554432" x="110" y="60" height="196" width="494" format="[general]" html.valueishtml="0"  name=se_typerecherche visible="1" radiobuttons.columns=1 radiobuttons.scale=no radiobuttons.threed=no  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=9 alignment="0" tabsequence=90 border="0" color="33554432" x="155" y="912" height="196" width="494" html.valueishtml="0"  name=se_print visible="1" radiobuttons.columns=1 radiobuttons.scale=no radiobuttons.threed=no  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
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" )

Et à l'exécution ce que je récupére :

release 9;
datawindow ( units=0 timer_interval=0 color=1073741824 processing=0 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.size=0 print.paper.source=0 print.canusedefaultprinter=yes htmldw=yes selected.mouse=no)
header(height=0 )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=1156 color="0    if(mod(getrow(),2)=0,12639424,rgb(255,255,255))" )
table(column=(type=number updatewhereclause=yes name=se_typerecherche dbname="se_typerecherche"
values="Creation date    1/Delivery date    2/Loading date    3/"  )
column=(type=datetime updatewhereclause=yes name=se_datedeb dbname="se_datedeb"  )
column=(type=datetime updatewhereclause=yes name=se_datefin dbname="se_datefin"  )
column=(type=char(15) updatewhereclause=yes name=pr_reference dbname="pr_reference"  )
column=(type=number updatewhereclause=yes name=pr_num dbname="pr_num"  )
column=(type=char(20) updatewhereclause=yes name=cl_nom dbname="cl_nom"  )
column=(type=number updatewhereclause=yes name=cl_num dbname="cl_num"  )
column=(type=number updatewhereclause=yes name=fam_num dbname="fam_num"
values=""  )
column=(type=number updatewhereclause=yes name=se_print dbname="se_print"
values="Creation date    1/Delivery date    2/3Print all    1/Print shipment    2/Print resume    3/"  )
)
groupbox(name=gb_1 visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="700" background.mode="1" background.color="553648127" color="8421504" border="5" x="37" y="8" height="468" width="983" text="[ Date criteria ]" )
groupbox(name=gb_2 visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="700" background.mode="1" background.color="553648127" color="8421504" border="5" x="37" y="848" height="280" width="983" text="[ Print options ]" )
column(name=cl_nom visible="1" band=detail id=6 x="448" y="640" height="64" width="457" color="0    if(mod(getrow(),2)=0,rgb(0,0,0),rgb(0,0,0))" border="5" alignment="0" format="[general]" edit.focusrectangle=no edit.autohscroll=yes edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" tabsequence=60 )
column(name=fam_num visible="1" band=detail id=8 x="448" y="720" height="64" width="462" color="0    if(mod(getrow(),2)=0,rgb(0,0,0),rgb(0,0,0))" border="5" alignment="1" format="[general]" dddw.allowedit=no dddw.autohscroll=no dddw.autoretrieve=yes dddw.useasborder=yes dddw.datacolumn=fam_num dddw.displaycolumn=fam_fulllibelle dddw.hscrollbar=no dddw.hsplitscroll=no dddw.imemode=0 dddw.limit=0 dddw.name=dddw_famille_fi_rm dddw.nilisnull=no dddw.percentwidth=0 dddw.required=no dddw.showlist=no dddw.vscrollbar=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" tabsequence=80 )
text(name=cl_nom_t visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="33554432" alignment="1" border="0" x="59" y="648" height="52" width="352" text="Customer Name" )
text(name=fam_libelle_t visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="33554432" alignment="1" border="0" x="59" y="728" height="52" width="352" text="Label" )
text(name=pr_reference_t visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="33554432" alignment="1" border="0" x="59" y="568" height="52" width="352" text="product" )
column(name=pr_reference visible="1" band=detail id=4 x="448" y="560" height="64" width="343" color="0    if(mod(getrow(),2)=0,rgb(0,0,0),rgb(0,0,0))" border="5" alignment="0" format="[general]" edit.focusrectangle=no edit.autohscroll=yes edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" tabsequence=40 )
button(name=b_search_product visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" background.mode="2" background.color="67108864" action="0" vtextalign="0" htextalign="0" x="809" y="556" height="64" width="78" color="33554432" text="..."  defaultpicture=no suppresseventprocessing=no enabled=yes )
button(name=b_search_customer visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" background.mode="2" background.color="67108864" action="0" vtextalign="0" htextalign="0" x="919" y="648" height="64" width="78" color="33554432" text="..."  defaultpicture=no suppresseventprocessing=no enabled=yes )
column(name=se_datefin visible="1" band=detail id=3 x="338" y="372" height="64" width="233" color="0    if(mod(getrow(),2)=0,rgb(0,0,0),rgb(0,0,0))" border="5" alignment="2" format="dd/mm/yy" editmask.focusrectangle=no editmask.autoskip=no editmask.required=no editmask.readonly=no editmask.codetable=no editmask.spin=no editmask.useformat=no editmask.mask="dd/mm/yy" editmask.imemode=0 criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" tabsequence=30 )
button(name=b_cal_3 visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" background.mode="2" background.color="67108864" filename="D:~\Cposervices~\Documents~\Developpement~\My ERP~\MERP - PFC~\images~\calendrier.bmp" action="0" vtextalign="0" htextalign="0" x="585" y="364" height="76" width="82" color="33554432" text=""  defaultpicture=no suppresseventprocessing=no enabled=yes )
button(name=b_cal_2 visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" background.mode="2" background.color="67108864" filename="D:~\Cposervices~\Documents~\Developpement~\My ERP~\MERP - PFC~\images~\calendrier.bmp" action="0" vtextalign="0" htextalign="0" x="585" y="268" height="76" width="82" color="33554432" text=""  defaultpicture=no suppresseventprocessing=no enabled=yes )
column(name=se_datedeb visible="1" band=detail id=2 x="338" y="276" height="64" width="233" color="0    if(mod(getrow(),2)=0,rgb(0,0,0),rgb(0,0,0))" border="5" alignment="2" format="dd/mm/yy" editmask.focusrectangle=no editmask.autoskip=no editmask.required=no editmask.readonly=no editmask.codetable=no editmask.spin=no editmask.useformat=no editmask.mask="dd/mm/yy" editmask.imemode=0 criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" tabsequence=20 )
text(name=t_2 visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" alignment="0" border="0" x="110" y="368" height="52" width="119" text="End" )
text(name=t_1 visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" background.mode="2" background.color="1073741824" color="33554432" alignment="0" border="0" x="110" y="276" height="52" width="119" text="Begin" )
groupbox(name=gb_criteria2 visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="700" background.mode="1" background.color="553648127" color="8421504" border="5" x="37" y="480" height="360" width="983" text="[ Others criteria ]" )
column(name=se_typerecherche visible="1" band=detail id=1 x="110" y="60" height="196" width="494" color="0    if(mod(getrow(),2)=0,rgb(0,0,0),rgb(0,0,0))" border="0" alignment="1" format="[general]" radiobuttons.columns=1 radiobuttons.lefttext=no radiobuttons.scale=no radiobuttons.threed=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" tabsequence=10 )
column(name=se_print visible="1" band=detail id=9 x="155" y="912" height="196" width="494" color="0    if(mod(getrow(),2)=0,rgb(0,0,0),rgb(0,0,0))" border="0" alignment="0" format="[general]" radiobuttons.columns=1 radiobuttons.lefttext=no radiobuttons.scale=no radiobuttons.threed=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" tabsequence=90 )
htmltable(border="1" )
htmlgen(clientComputedFields="1" clientEvents="1" clientFormatting="0" clientScriptable="0" clientValidation="1" generateJavaScript="1" netscapeLayers="0" pageSize="30" netscapelayers="0" encodeSelfLinkArgs="1" )
export.xml(headGroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.customPostScript="0" xslfop.print="0" )

La différence est dans la partie en gras !

Et c'est pas drole !

PB version 9.0.3 Build 8836.

Hors ligne

 

#2 08-10-2008 05:41:30

buck  
Modérateur
Lieu: Dijon
Date d'inscription: 31-07-2008
Messages: 747
Pépites: 1,028,843
Banque: 171,170,849,654

Re: Radiobuttons dans une datawindow - Bug SYBASE

Bonjour,

Je viens de migrer notre application de PB 9.0.3 à PB 11.2. Je n'ai jamais eu ce genre de phénomène.

Par contre, il m'est arrivé ce genre de comportement en ayant l'objet en doublon dans les librairies. L'objet que tu modifies n'est pas celui qui est en fait exécuté.

Pour le vérifier, tu supprimes la datawindow de la librairie et ensuite tu vas dans le "browser" vérifier que l'objet n'est pas encore présent dans la liste.

Tu fais un "edit" dessus pour déterminer sa librairie d'appartenance et pouvoir le supprimer.

Hors ligne

 

#3 08-10-2008 06:39:50

Nyphel  
Membre Power Geek
Lieu: Grenoble
Date d'inscription: 06-05-2008
Messages: 253
Pépites: 12
Banque: 529,705,333,097,693

Re: Radiobuttons dans une datawindow - Bug SYBASE

Sisi c'est très drôle :-D

Hors ligne

 

#4 08-10-2008 08:34:26

cposervices  
Membre completement Geek
Date d'inscription: 02-07-2008
Messages: 106
Pépites: 1,000,382
Banque: 0

Re: Radiobuttons dans une datawindow - Bug SYBASE

Et non, l'objet n'existe pas en doublon.

De plus, j'ai (a peu près) tout essayé. Même le modify dans le script pour fixer les values.

Mais rien n'y fait.

C'est couillon.

Hors ligne

 

#5 08-10-2008 09:05:16

Cortex  
Modérateur
Lieu: Arlon
Date d'inscription: 08-02-2008
Messages: 194
Pépites: 6,904
Banque: 2,109,818,425,070

Re: Radiobuttons dans une datawindow - Bug SYBASE

Il n'y a pas que ce que tu as mis en gras qui diffère entre le source et l'éxécution. Par exemple, l'ordre des propriétés des columns est plus "habituel" à l'exéc que ton original...
Bref, je me pose la question de comment tu (ou la personne qui l'a fait) as généré cette datawindow à l'origine...
Une bonne chose serait, à mon sens, de la recommencer from scratch en PB 9. A mon sens, même si syntaxiquement elle a l'air correcte, le fait que PB se sente obligé de reformater sa syntaxe à l'exécution me fait dire que ta DW n'est pas 100% casher...

Sinon, tu es bien évidemment sûr à 100% que la liste de valeur - et la syntaxe de la DW tout court - n'est pas modifiée pendant l'exécution de ton appli j'imagine...

Hors ligne

 

#6 08-10-2008 09:11:20

buck  
Modérateur
Lieu: Dijon
Date d'inscription: 31-07-2008
Messages: 747
Pépites: 1,028,843
Banque: 171,170,849,654

Re: Radiobuttons dans une datawindow - Bug SYBASE

Bonjour,

Autre idée, tu n'aurais pas une méthode SetValue qui modifie dynamiquement à l'éxecution le contenu du radio bouton et qui pointe sur un mauvais non de colonne puisque dans ton radio bouton, on trouve le contenu d'un autre radio bouton.

Hors ligne

 

#7 08-10-2008 13:13:59

cposervices  
Membre completement Geek
Date d'inscription: 02-07-2008
Messages: 106
Pépites: 1,000,382
Banque: 0

Re: Radiobuttons dans une datawindow - Bug SYBASE

Bon, alors pour l'essai, voiçi une petite freeform external.
release 9;
datawindow(units=0 timer_interval=0 color=1073741824 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 hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=328 color="536870912" )
table(column=(type=number updatewhereclause=yes name=si_radio1 dbname="si_radio1" values="Choix R1_1    1/Choix R1_2    2/" )
column=(type=number updatewhereclause=yes name=si_radio2 dbname="si_radio2" values="Choix R2_1    1/Choix R2_2    2/" )
)
text(band=detail alignment="1" text="Si Radio1:" border="0" color="33554432" x="41" y="48" height="52" width="229" html.valueishtml="0"  name=si_radio1_t visible="1"  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Si Radio2:" border="0" color="33554432" x="722" y="48" height="52" width="229" html.valueishtml="0"  name=si_radio2_t visible="1"  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="1" tabsequence=20 border="0" color="33554432" x="987" y="48" height="200" width="462" format="[general]" html.valueishtml="0"  name=si_radio2 visible="1" radiobuttons.columns=1 radiobuttons.scale=no radiobuttons.threed=no  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="1" tabsequence=10 border="0" color="33554432" x="306" y="48" height="212" width="393" format="[general]" html.valueishtml="0"  name=si_radio1 visible="1" radiobuttons.columns=1 radiobuttons.scale=no radiobuttons.threed=no  font.face="Tahoma" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
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" )


Il n'y a pas de data. J'ai crée une fenetre avec un objet datawindow et le dataobject précedent, et un bouton.

Dans le bouton, je colle le code suivant : dw_1.insertrow(0)

Il n'y aucun autre code nulle part !

Je récupére :
release 9;
datawindow ( units=0 timer_interval=0 color=1073741824 processing=0 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.size=0 print.paper.source=0 print.canusedefaultprinter=yes htmldw=yes selected.mouse=no)
header(height=0 )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=328 color="0    if(mod(getrow(),2)=0,12639424,rgb(255,255,255))" )
table(column=(type=number updatewhereclause=yes name=si_radio1 dbname="si_radio1"
values="Choix R2_1    1/2Choix R1_1    1/Choix R1_2    1/"  )
column=(type=number updatewhereclause=yes name=si_radio2 dbname="si_radio2"
values="Choix R2_1    1/Choix R2_2    2/"  )
)
text(name=si_radio1_t visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="33554432" alignment="1" border="0" x="41" y="48" height="52" width="229" text="Si Radio1:" )
text(name=si_radio2_t visible="1" band=detail font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="33554432" alignment="1" border="0" x="722" y="48" height="52" width="229" text="Si Radio2:" )
column(name=si_radio2 visible="1" band=detail id=2 x="987" y="48" height="200" width="462" color="0    if(mod(getrow(),2)=0,rgb(0,0,0),rgb(0,0,0))" border="0" alignment="1" format="[general]" radiobuttons.columns=1 radiobuttons.lefttext=no radiobuttons.scale=no radiobuttons.threed=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" tabsequence=20 )
column(name=si_radio1 visible="1" band=detail id=1 x="306" y="48" height="212" width="393" color="0    if(mod(getrow(),2)=0,rgb(0,0,0),rgb(0,0,0))" border="0" alignment="1" format="[general]" radiobuttons.columns=1 radiobuttons.lefttext=no radiobuttons.scale=no radiobuttons.threed=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="0" font.face="Tahoma" font.family="2" font.height="-8" font.pitch="2" font.weight="400" tabsequence=10 )
htmltable(border="1" )
htmlgen(clientComputedFields="1" clientEvents="1" clientFormatting="0" clientScriptable="0" clientValidation="1" generateJavaScript="1" netscapeLayers="0" pageSize="30" netscapelayers="0" encodeSelfLinkArgs="1" )
export.xml(headGroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.customPostScript="0" xslfop.print="0" )


Moi je dis

Et je

Hors ligne

 

#8 08-10-2008 13:19:34

Cortex  
Modérateur
Lieu: Arlon
Date d'inscription: 08-02-2008
Messages: 194
Pépites: 6,904
Banque: 2,109,818,425,070

Re: Radiobuttons dans une datawindow - Bug SYBASE

Ha oui, quand même...

Bon ben pas de chance j'ai envie de dire...
T'es en PB 9.0? C'est quoi ton build number complet?

Hors ligne

 

#9 08-10-2008 13:52:02

cposervices  
Membre completement Geek
Date d'inscription: 02-07-2008
Messages: 106
Pépites: 1,000,382
Banque: 0

Re: Radiobuttons dans une datawindow - Bug SYBASE

PB version 9.0.3 Build 8836.

Hors ligne

 

Pied de page des forums

Propulsé par FluxBB 1.2.22