Yes ValueFromLov object has a different approach to values you insert to it. But to figure out the problem reason is more complicated than it is being. And here is the solution with a small tip. I hope it helps you.
In my last project I have faced a problem because of ValueFromLov object and its values which involves “_” character. It is interesting. Because if you use this object like this;
ValueFromLov tmpValueFromLovObj = new ValueFromLov(“BO_USER”);
You get a tmpValueFromLovObj object which has a value “USER” not “BO_USER”. Because in the constructor of the ValueFromLov class “_” character is tokenizer character to tokenize your values. If you look at objects methods for above tmpValueFromLovObj you can see that
tmpValueFromLovObj.getValue() method returns “USER” String and
tmpValueFromLovObj.getRowIndex() method returns “BO” String
It can give you headaches to resolve, because with eclipse you can not get any tips about object constructor or in api you can not see anything related this.
Here is the certain solution for this kind of problem is ;
ValueFromLov tmpValueFromLovObj = new ValueFromLov(“”, “BO_USER”);
tmpValueFromLov.getValue() returns “BO_USER”
and happy ending at least for me.
And why Business Objects make ValueFromLov this kind of use. I think this is because of using this object when getting data from warehouse. Value structure is bit more complicated than relational database value structure. Keep it mind.
I totally love your blog! Thank you for the post, very informative. wty1d8