on 07-31-2009 7:11 AM
the program running normal,but when i modify the structure of repository,the exception appearence,but i do not know why!!!!!!!!
RetrieveRecordsByIdCommand rlrCmd = new RetrieveRecordsByIdCommand (rep.connPool);
rlrCmd.addId(rid);
rlrCmd.setResultDefinition(rd);
rlrCmd.setSession(rep.getNewSession());
rlrCmd.execute();
when execute the code "rlrCmd.execute();",the exception come;
Hi,
Are you able to solve the problem? If yes, kindly close by marking as Answered and posting the resolution.
Cheers.
Arafat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The issue here is that when you are passing the value 1, it is taking it as a INTEGER value while you have a field in MDM that is of type text, so you need to pass the value as a string.
Hopefully it would resolve the issue.
Regards,
Arafat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,thi is my code segment:
ResultDefinition rd = new ResultDefinition(mainTableId);
FieldProperties[] fp = rep.repositorySchema.getFields(mainTableId);
FieldId[] mtFIds = new FieldId[fp.length];
for(int i=0;i<mtFIds.length;i++){
mtFIds<i> = fp<i>.getId();
}
rd.setSelectFields(mtFIds);
in the programe,i get all field.thank you!
Hi,
In the below code:
After you have created an array of predefined lenght, you need to store the ids at the corresponding indices.
for(int i=0;i<mtFIds.length;i++){
mtFIds = fp.getId();
I think it should be something like this:
for(int i=0;i<mtFIds.length;i++){
mtFIds<i> = fp<i>.getId();
Anyways I would suggest you to retrieve the value for a single field by addind a single field to resultDefinition.
Hope this helps!!
Regards,
Arafat
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.