
Hi Experts,
Greetings
I have a customized form and the form is basically a department wise usage of an item
When i enter the from date and to date the values get generated
However,when i try to run the form it gives me the above error as "Argument to setfieldvalue out of range . I compiled it and then i gives argumrnt to getFiedlvalue ou of rnge
tablevariable. setFieldValue(_unit, tablevariable.getFieldValue(_unit) + _qty);--->unit & qty are passed as parameters in the function
Can someone tell me what this method does and what is the error say.
There are no array functions defined (* as per syntax on google)
I didnt get any soutions. Why to use the setfieldvalue instead of just assigning the values to table (* code was developed before me coning in project)
We can't evaluate your code without know the values you're using. What do you have in _unit and _qty variables when it fails? The error is saying that the value of one of the parameters is invalid.
This method is useful if you don't know the field name at design time, therefore you can't simply specify it in code.
I can't comment on why your colleagues wrote it this way, especially not without the context where this method is used.