I authored the form template in Designer 7.1 and generated PDF using SOAP client call 'renderForm()' successfully on Form Server with JBoss 3.x.
The problem is that the script in the template written in Designer set as 'RunAt=Server' never gets executed in Forms Server (the script is triggered in the event like 'form:ready' and 'layout:ready').
Is there any special options which shd be set in renderForm() call or the properties of XDP?
I don't know about what doing the server-side scripting overall, but I noticed you set a field to "hidden". The hidden property excludes the field object from the layout, which from my understanding basically means the object isn't available for use at all. To just hide the field from displaying on the form, you would want to set it to Invisible.
That probably doesn't help your issue overall, but maybe will further down.
Try changing your options string from "CacheEnabled=false" to "CacheEnabled=false&RenderAtClient=true". I think you need to generate a dynamic PDF to do this, and adding that option will make Forms render a dynamic one instead of a static one.