on 08-19-2008 5:28 PM
Hi I want to know the Column name from fieldId, can any one help me on this. I am using the following code to get the data but i nedd column name to which the data is refering
ArrayList mdmData=new ArrayList();
RecordResultSet rs=(RecordResultSet)obj;
FieldId field[];
for(int i=0;i<rs.getRecords().length;i++)
{
field=rs.getRecords()<i>.getFields();
for(int j=0;j<field.length;j++)
mdmData.add(rs.getRecords()<i>.getFieldValue(field[j]));
}
Regards,
Sandeep
Hi Sandeep,
When you fetched the FieldID from FieldProperties object. There is one more method to this class named FieldProp.getName(). This returns you the Name of the Field. You can store that too if you need it later.
Thanks
Namrata
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Take a look at the RepositorySchema class. There is a method getField that takes a TableId and FieldId as parameters and returns a FieldProperties object. With the FieldProperties object you can get the name, field type, etc.
-Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.