Integrated Application Platform › Forums › General › Updating records in a database › Re: Re: Updating records in a database
Thanks for your reply, but Im still not doing something right. I get the following error: ‘uninitialized member: #Class56_data’ when the function is called. I am reposting the new code
//Inv_price_update
function(data)
{
QueryApply(‘inv_customer’, update:)
{ |x|
x.cb_price = data.ncb_price
x.Update()
}
}
//Account Entry
Controller
{
Title: ‘Wagram Paper Stock Customer Price Adjustment’
Xmin: 800
Ymin: 500
Controls:
(Record
(Vert
(Skip)
(Horz (Skip 300)
(Static, “Customer Price Addjustment” font: (name: Arial size: 30)))
(Skip)
(Skip)
(Horz (Skip 150)
(ncb_price)
(Skip 10)
(Static, ‘Official Board Market’))
(Horz (Skip 150)
(now_price)
(Skip 10)
(Static, ‘Official Board Market’))
(Horz (Skip 150)
(ntube_price))
(Horz (Skip 150)
(nnews_price))
(Horz (Skip 150)
(nmixed_paper_price))
(Horz (Skip 150)
(nplastic_bot_price))
(Horz (Skip 150)
(nplastic_film_price))
(Horz (Skip 150)
(naluminum_price))
(Horz (Skip 150)
(nrecyclables_price))
(Horz (Skip 150)
(nsteel_price))
(Skip)
(Skip)
(Horz (Skip 300) (Button, “OK”) (Button, “Cancel”))
)
)
On_OK()
{
.Data.Get()
Alert(‘You are about to update all customer prices’ Title: ‘ALERT’)
Inv_price_update(.data)
}
}
Thanks again