Creating Purchase Order

I am having a problem creating the orderline :frowning:

when the qty changes it should update (or create) the relevant orderline item, but it won´t let me access orderlines from the RG. Any idea what I´m doing wrong?

Thansk so much.