11 |
lRecordCount = sourceBlock.getRecordCount() |
lRecordCount = sourceBlock.getRecordCount() |
12 |
for recNum in range(lRecordCount-1): |
for recNum in range(lRecordCount-1): |
13 |
sourceBlock.jumpRecord(recNum) |
sourceBlock.jumpRecord(recNum) |
14 |
targetBlock.key = str(sourceBlock.prodPriceEntry) |
#targetBlock.key = str(sourceBlock.prodPriceEntry) |
15 |
targetBlock.code = str(sourceBlock.prodCodeEntry) |
targetBlock.code = str(sourceBlock.prodCodeEntry) |
16 |
targetBlock.desc = str(sourceBlock.prodNameEntry) |
targetBlock.desc = str(sourceBlock.prodNameEntry) |
17 |
targetBlock.newRecord() |
targetBlock.newRecord() |
18 |
sourceBlock.jumpRecord(recNum+1) |
sourceBlock.jumpRecord(recNum+1) |
19 |
targetBlock.key = str(sourceBlock.prodPriceEntry) |
#targetBlock.key = str(sourceBlock.prodPriceEntry) |
20 |
targetBlock.code = str(sourceBlock.prodCodeEntry) |
targetBlock.code = str(sourceBlock.prodCodeEntry) |
21 |
targetBlock.desc = str(sourceBlock.prodNameEntry) |
targetBlock.desc = str(sourceBlock.prodNameEntry) |
22 |
|
|
33 |
|
|
34 |
<page> |
<page> |
35 |
<block name="targetBlock" datasource="ghost"> |
<block name="targetBlock" datasource="ghost"> |
36 |
<entry name="key" field="key" x="2" y="2" width="20" hidden=""/> |
<!-- <entry name="key" field="key" x="2" y="2" width="20" hidden=""/> --> |
37 |
<label name="codeLbl" text="Código" x="2" y="1" /> |
<label name="codeLbl" text="Código" x="2" y="1" /> |
38 |
<entry name="code" field="code" x="2" y="2" width="20" rows="23"/> |
<entry name="code" field="code" x="2" y="2" width="20" rows="23"/> |
39 |
<label name="descLbl" text="Nombre o Descripción" x="25" y="1" /> |
<label name="descLbl" text="Nombre o Descripción" x="25" y="1" /> |