How to move cursor to new line after reading a barcode?

How to move cursor to new line after reading a barcode?

I have tried few posts, but they didn’t help me…

I am using ax 2009

Hi Chiranjeevi,

work with the below code it may help you

Array tabOrder = new Array(Types::Integer);

;

super();

tabOrder.value(1, Test_onhand_Item.id());

element.tabOrder(tabOrder);

Test_onhand_Item.setFocus();

call FromDataSource_next()

Thank you sravan,

I have added this code in gotFocus method and the it is working fine now.

and Thank you Kranthi for your valuable suggestion.

I have also added below code along with gotfocus.

Test_onhand1.clear();

Test_onhand1.Item = “”;

Test_onhand1.insert();

Test_onhand_ds.research();

Test_onhand_ds.findRecord(Test_onhand);

Test_onhand_Item.setFocus();

in the modified field of the itemid which is read through the barcode.