Hi Experts,
we have a requirement to set default value to tuple member fields on click of create button (ItemDetails Component)
the database is as below:
Product Data (these fields are in Main table)
.
.
field 1
field 2
.
.
Country (multi value tuple)
.
.
field n
-----------------------------------------
Tuples
.
.
Country
-- data 1
-- data 2
-- Region (multi value tuple)
Region
-- data 1
-- data 2
-- data 3
The requirement is to set default value for "data 3" inside 'Region' tuple on loading the page (on click of create button). This is a text field.
on click of create button i am trying to execute the below code
wdThis.wdGetItemDetailsInterface().setFieldValue(_repositorySchemaEx.getTupleMemberField("MDM_TUPLE_REGION_DATA", "MDM_DATA3").getCode(), statusVal);
statusVal is a string value.
since it is in nested tuples i tried to read the field directly from repository schema and get the tuple member field.
When i execute this i am getting error that "the field with code 'MDM_DATA3' does not exist"
could you please let me know if I am doing something wrong while retrieving the field and setting the value? also, is there any specific way to read the tuple member fields from nested tuples? please help.
Thanks in advance,
Murthy.