smusba
7th December 2014, 10:56
Dear,
I want to add Progress Bar to my report.
Below is the script.
How can I edit the above script?
declaration:
table twhwmd215 | Item Inventory by Warehouse
table twhwmd215 | Item Inventory by Warehouse
table ttcibd001 | Item Master
table ttcibd003 | Unit Master
table ttdsfl108 | Unit Master
table ttcmcs003
table ttcmcs015
extern domain tccwar cwar.f fixed
extern domain tccwar cwar.t fixed
extern domain tcitem item.f fixed
extern domain tcitem item.t fixed
extern domain tcamnt inv.str.unit
extern domain tccuni unit.unit
extern domain tccuni tcibd001.cdf_suni mb| This should be done for CDF
extern domain tcyesno tcibd001.cdf_nswi
extern domain tccuni tcibd001.cdf_nswu
|****************************** program section ********************************
|****************************** group section **********************************
group.1:
init.group:
get.screen.defaults()
|****************************** choice section ********************************
choice.cont.process:
on.choice:
execute(print.data)
choice.print.data:
on.choice:
if rprt_open() then
read.main.table()
rprt_close()
else
choice.again()
endif
|****************************** field section *********************************
field.cwar.f:
when.field.changes:
cwar.t = cwar.f
field.item.f:
when.field.changes:
item.t = item.f
|****************************** function section ******************************
functions:
function read.main.table()
{
select whwmd215.*
from whwmd215
where whwmd215._index1 inrange {:cwar.f, :item.f}
and {:cwar.t, :item.t}
order by whwmd215._index1
selectdo
if whwmd215.qhnd > 0.0 then
read.tcibd001()
if tcibd001.cdf_nswi = tcyesno.yes then
read.tdsfl108()
unit.unit = tcibd001.cdf_nswu
else
get.conv()
endif
wrh.dsca()
rprt_send()
endif
endselect
}
I want to add Progress Bar to my report.
Below is the script.
How can I edit the above script?
declaration:
table twhwmd215 | Item Inventory by Warehouse
table twhwmd215 | Item Inventory by Warehouse
table ttcibd001 | Item Master
table ttcibd003 | Unit Master
table ttdsfl108 | Unit Master
table ttcmcs003
table ttcmcs015
extern domain tccwar cwar.f fixed
extern domain tccwar cwar.t fixed
extern domain tcitem item.f fixed
extern domain tcitem item.t fixed
extern domain tcamnt inv.str.unit
extern domain tccuni unit.unit
extern domain tccuni tcibd001.cdf_suni mb| This should be done for CDF
extern domain tcyesno tcibd001.cdf_nswi
extern domain tccuni tcibd001.cdf_nswu
|****************************** program section ********************************
|****************************** group section **********************************
group.1:
init.group:
get.screen.defaults()
|****************************** choice section ********************************
choice.cont.process:
on.choice:
execute(print.data)
choice.print.data:
on.choice:
if rprt_open() then
read.main.table()
rprt_close()
else
choice.again()
endif
|****************************** field section *********************************
field.cwar.f:
when.field.changes:
cwar.t = cwar.f
field.item.f:
when.field.changes:
item.t = item.f
|****************************** function section ******************************
functions:
function read.main.table()
{
select whwmd215.*
from whwmd215
where whwmd215._index1 inrange {:cwar.f, :item.f}
and {:cwar.t, :item.t}
order by whwmd215._index1
selectdo
if whwmd215.qhnd > 0.0 then
read.tcibd001()
if tcibd001.cdf_nswi = tcyesno.yes then
read.tdsfl108()
unit.unit = tcibd001.cdf_nswu
else
get.conv()
endif
wrh.dsca()
rprt_send()
endif
endselect
}