Dynamically(at runtime) modifying field or label or control text(value)

Hello

how can I Add a field or label on grid or form application that didn?t come from database (SELECT STATEMENT of the application)
and How can I modify the text or of a control on the form or grid or control application through javascript and ajax response: I know controls have onchange event but how can I access the control I wanna modify?

the simplest solution is to always have that extra field and hide it or show it depding on your business rules.

Regards

[QUOTE=kafecadm;39532]the simplest solution is to always have that extra field and hide it or show it depding on your business rules.

Regards[/QUOTE]

I think you don’t get what I want. I don’t want to change the visibilty of the field but the value like with javascript you simply do document.getElementById(‘fieldid’).value = ‘Welcome’;

Have you read this: http://www.scriptcase.net/docs/en_us/v81/manual_mp.htm#form-applications/form/javascript

In the manual Form Applications -> Form -> Javascript

I have a field with value in db. In pdfreport, for each logged in user, label of this field is
different in pdfreport.

How do I change its label in pdf report for each user? (I think in onload or onrecord in pdf report, can I change label , if user=x, label =y?)