on 01-24-2012 5:19 PM
Hi everyone,
I'm working on SAP MDM 7.1 SP08 and SAP CE 7.2 SP06. After configuring a MDM web dynpro item details view for one of the MDM tuples (MDM_SALES_DATA), using the u201CShow tuple member fieldsu201D option in the MDM web dynpro configurator; the selected tuple member fields are not editable (i.e. MDM_COUNTRY, MDM_SALES_ORGANIZATION, etc.)
In a wrapper dynpro I have tried using the next lines to set the TupleInternalFieldsPath but it's not working:
wdThis.wdGetSalesTupleInterface().setTupleInternalFieldsPath(new String[]{"MDM_SALES_DATA","MDM_COUNTRY"}, new Integer[]{1,1});
wdThis.wdGetSalesTupleInterface().setTupleInternalFieldProperty(new String[]{"MDM_COUNTRY"}, FieldLayoutProperty.READ_ONLY, false);
How can I edit the tuple member fields in a MDM web dynpro?
Thanking you in advance,
Claudia
Edited by: Claudia Gómez on Jan 24, 2012 11:20 AM
Have you found any solution for this issue? If so please share, I am having simliar one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raags,
I got now how to do it; you need to get the Id of the tuple record first:
matCodes is the result of getFieldCodes.
for (int i=0; i<matCodes.length; i++){
if(matCodes<i>.equalsIgnoreCase(TUPLE_NAME)){
tupleFieldPos = i;
idTupleField = matFields<i>.getIdValue();
tupleDataValues = (MultiTupleValue)material.getFieldValue(matFields<i>);
for (int j=0; j<tupleDataValues.getValuesCount(); j++){
TupleValue tupleDataValue = (TupleValue)tupleDataValues.getValue(j);
//some condition to choose the record
idTupleRec = tupleDataValue.getTupleRecordId().id;
wdThis.wdGetSalesTestInterface().setTupleInternalFieldsPath(new String[]{TUPLE_NAME}, new Integer[]);
}
}
}
Hope it can help you.
Cheers!
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.