cancel
Showing results for 
Search instead for 
Did you mean: 

Error Item can't set value on item because the item can't get focus in PO

Former Member
0 Kudos

When i am trying to put itemcode in Po system form thorugh code

i get this error

Item can't set value on item Because the item can't get focus

The code is

GOD_Matrix.Columns.Item("1").Cells.Item(i).Specific.String = code

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

This problem appears only if the form ur putting data is not the active form

like u are selecting form cfl and coding to put in matrix then if cfl is the active form this problem will come

Former Member
0 Kudos

Hi, Pavana

i never regenerate this kind of error. Instead, we will meet the error like "cannot set uneditable item".

could you provide more specific scenario? if you can provide error snapshot, it will be better.

thanks.

Warren

Former Member
0 Kudos

Dear Pavana Punja,

You need to set the value of Supplier (Cardcode) then the item code will become editing as follwing code:


Set oItem = oOrderForm.Items.Item("4")
Set cardcode = oItem.Specific
cardcode.String = "**********"
        
Set oItem = oOrderForm.Items.Item("38")
Set myMatrix = oItem.Specific
myMatrix.Columns.Item("1").Cells.Item(1).Specific.String = "*********"

Best Regards

Jane Jing

SAP Business One Forums team

Former Member
0 Kudos

Hi,

i used the following code. its working fine.

Omatrix.Columns.Item("1").Cells.Item(colid).Specific.Value = code

try Specific.Value and check again..

regards,

Ganesh k

Former Member
0 Kudos

Hi..

I face same Problem use this way..

Try

GOD_Matrix.Columns.Item("1").Cells.Item(i).Specific.String = code

Catch ex As Exception

End Try

Regards...

Billa 2007

Former Member
0 Kudos

it actually does not set the value

this is not a proper method

Regards

Pavana Punja

Former Member
0 Kudos

Hi...

I used this way only

Try

dim stsr as string

oEdit = oMatrix.Columns.Item("Column-ID").Cells.Item(i).Specific

oedit1.Value = stsr

Catch ex As Exception

end try

Regards...

Billa 2007

Former Member
0 Kudos

hi

Thanks every body my problem is soved

Regard

Pavana Punja