cancel
Showing results for 
Search instead for 
Did you mean: 

Tuple member fields can’t be editable – MDM Web dynpro

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Have you found any solution for this issue? If so please share, I am having simliar one.

Former Member
0 Kudos

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!

abdulbasit
Active Contributor
0 Kudos

Hi Claudia,

Can you give a little bit more details. I've been trying to do the same task.

My problem in the code is, how did you get the variable material :

tupleDataValues = (MultiTupleValue)material.getFieldValue(matFields<i>);

Thanks,

Abdulbasit.

0 Kudos

hi Abdulbasit,

material ==  wdThis.wdGet<ID>Interface()

where ID is the name of the ItemDetails used component.

Regards,

Isam