I need to create a transient attribute on a VO query based ,I need a transient attr with a string value ,then I used the JDEV wizard and keep Literal value option and put a value string in value box.
The problem is that when I drag and drop the relative property from DATA CONTROL to create an output text field , running all I don't see on web page the inserted value on VO, why ?
I don't need any operation . I am working on VO already created ( A VO query based, without EO) . Now I need to have a dummy field on web table , then I have thought to put a transient field on VO as I should have another filed on related DC...
If you don't need to change this value then you can use Expression instead of Literal and put value under " ".
But, if you need to change this value, then you can:
- add something like this to your query: (select 'default_value' from dual) OR
- override createInstanceFromResultSet() in your ViewObjectImpl class and set default value to row OR
- if value of this transient object can't be null, use modified version of codigoadf approach: