Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help for filter!!! 1

Status
Not open for further replies.

magni

Programmer
Oct 11, 2007
12
CA
Hi,
I am new to PB, help me with a filter for this.
When value is 1 the row is a new product_id, when value is 0 The row is an other size with in a same product ID
 
So are you actually wanting to filter out data (hide certain rows), or are you trying to set the height of a row based on the value? Or something else?
 
Can you just tell me where I'm wrong with this???

string ls_tmp, ls_tmp1, ls_find
long ll_rowsw, ll_rowds
dw_size.Reset()
dw_size.SetRedraw(false)
ll_rowds = dw_size.InsertRow(0)
ll_rowsw = dw_search.getrow()
ls_find = "product_id = '" +
dw_search.GetItemString(ll_rowsw, 'product_id') + "'"
ll_rowds= ::mds.aso.irs_wvas_product_size_class.fn_action_find(ls_find,ll_rowds, 0, ::mds.dw.cs_FIND_SET)
do while ll_rowds > 0
ls_tmp =
::mds.aso.irs_wvas_product_size_class.fn_get_string("size_id")
ls_tmp1 =
::mds.aso.irs_wvas_product_size_class.fn_get_string("size_descr")
dw_size.setitem(ll_rowds, "size_id",ls_tmp)
dw_size.setitem(ll_rowds, "descr_2",ls_tmp1)
ll_rowds ++
if ll_rowds >
::mds.aso.irs_wvas_product_size_class.il_rows then
ll_rowds= 0
else
ll_rowds=::mds.aso.irs_wvas_product_size_class.fn_action_find(ls_find,ll_rowds, 0, ::mds.dw.cs_FIND_SET)
end if
loop
dw_size.SetRedraw(True)
 
Can you just tell me where I'm wrong with this???

string ls_tmp, ls_tmp1, ls_find
long ll_rowsw, ll_rowds
dw_size.Reset()
dw_size.SetRedraw(false)
ll_rowds = dw_size.InsertRow(0)
ll_rowsw = dw_search.getrow()
ls_find = "product_id = '" +
dw_search.GetItemString(ll_rowsw, 'product_id') + "'"
ll_rowds= ::mds.aso.irs_wvas_product_size_class.fn_action_find(ls_find,ll_rowds, 0, ::mds.dw.cs_FIND_SET)
do while ll_rowds > 0
ls_tmp =
::mds.aso.irs_wvas_product_size_class.fn_get_string("size_id")
ls_tmp1 =
::mds.aso.irs_wvas_product_size_class.fn_get_string("size_descr")
dw_size.setitem(ll_rowds, "size_id",ls_tmp)
dw_size.setitem(ll_rowds, "descr_2",ls_tmp1)
ll_rowds ++
if ll_rowds >
::mds.aso.irs_wvas_product_size_class.il_rows then
ll_rowds= 0
else
ll_rowds=::mds.aso.irs_wvas_product_size_class.fn_action_find(ls_find,ll_rowds, 0, ::mds.dw.cs_FIND_SET)
end if
loop
dw_size.SetRedraw(True)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top