Hi,
I have been migrating from 6.0 to 6.2.
In 6.0,
in a field output operation i have a process (object) variable modified via a setter function:
p_solicitud.setSociedad(field_sociedad);
return "";
It devolves a empty string as output operation. It does work (p_solicitud is actualized).
In 6.2.5, this does not work, the p_solicitud object isn t actualized.
What do i miss in the migration ?
Best Regards
hello,
all script executed in a Groovy script CAN’T UPDATE any information. It was a security issue in 6.0, solve in 6.2
You have to design now your application taking into account that the groovy script only return information, and never set any thing.
In your output operation, you shoud do in your groovy :
return field_sociedad
and then in the form, output operation, match this value to the variable p_solicitud.
looking to your code, it’s seem p_solicitud is an Java object, where you want to call the method setSociedad(). So, give p_solicitud as the variable, and click on the link “take value of”. A pop up windows will prompt you. Select “java method” : all the method is then show, select your method “setSociedad”
Hi nsaintaubert,
Have you tried just erasing your code and re-typing that?
I'm asking this (sounds like) stupid question because sometimes migration tools left some crap int the code. Saw it happens a few times.
Best regards,
Hi Rafael,
thanks for your answer, but unfortunatly re-typing the code doesnt work.
Any other idea?