ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiran Khatavkar" <kki...@TechMahindra.com>
Subject About creating new GenericValue with ModelEntity
Date Fri, 04 Aug 2006 22:25:26 GMT


Hi

I want to create a GenericValue using ModelEntity (not a entity defined
in EntityModel.xml)

I am using
ModelEntity me = new ModelEntity();
    
me.addField(new ModelField("abc","String","abc",false));
me.addField(new ModelField("def","String","def",false));
GenericValue gv = GenericValue.create(me);

Is this thing possible?

If it is then
When I use gv.setString("abc","AAAA");
It is failing

Can anybdy help?

Kiran

============================================================================================================================

Tech Mahindra, formerly Mahindra-British Telecom.

Disclaimer:

This message and the information contained herein is proprietary and confidential and subject
to the Tech Mahindra policy statement, you may review at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a>
externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a>
internally within Tech Mahindra.

============================================================================================================================

Mime
View raw message