Hi Experts,
We are developing forms in ABAP, for example there is a form developed in dev system and this form has JS coding in some UI elements events like initialize, on change and on exit; also has one script object defined as variable. this script object has some functions defined in order to do some common validations and field specific ones too.
The form in DEV work fine, all the functions calling, all the validations and the events are working properly as expected. But there is a problem when we moved the changes done in development system into production system. Specifically the script object has the problem: even though the coding is the same in both systems, in production system we had an script error: "Body.CATALOGPARAMS has no properties", as if the Body.CATALOGPARAMS was never instanciated, or it is not defined...
The code that produces this error is the following:
var itemCount = 0; itemCount = Body.CATALOGPARAMS.DATA.instanceManager.count;
CATALOGPARAMS is table defined as context table coming from an ABAP FM where is filled and passed into the form.
In order to fix this problem I changed that part for the following
var itemCount = 0;
var catalogTable = null;
catalogTable = xfa.resolveNode("Body.CATALOGPARAMS.DATA");
itemCount = catalogTable.instanceManager.count;
This still works as fine as the other in DEV system. But my question is: will I have the same problem when we transport the changes to production system, you have to know that a transport is not something that you can do every day, so I am taking precautions before the transport. Which of both coding is the best for doing this?
Any observations, comments, questions in order to clarify some points are welcome, so please do it.
In advance, thanks a lot.
Mauricio.-
Edited by: Mauricio Poblete on May 11, 2010 4:20 PM