cancel
Showing results for 
Search instead for 
Did you mean: 

ui elements mapped with webservice node are not editable

Former Member
0 Kudos

Hi ,

I am maooing UI elements with model node attributes of web service. Model nodes are nested. butas i mapped UI elements , its becomes non editable.

Kavita

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

You change the cardinalities to 1:1 and try.

Former Member
0 Kudos

How can we edit cardinality of model node???

Former Member
0 Kudos

Hi ,

what is the cardinality of your three nodes and what is the structure of the nodes.

Former Member
0 Kudos

A , B , C have cardinality 0..1.

NodeA

..........Node B

............Node C

node C inside node B , Node B inside node A.

All nodes are taking DTO.

Former Member
0 Kudos

Hi ,

I am mapping UI elements with model node attributes of web service. Model nodes are nested. butas i mapped UI elements , its becomes non editable.

Kavita

Former Member
0 Kudos

hi,

Its because the cardinality of your model node is 0..n. And as you can't change the cardinality of the model node. You can copy the model node into the value node using WDCopyService and then set the cardinality of this value node to 1..1.

This will solve your problem.

thanks & regards,

Manoj

former_member485701
Active Participant
0 Kudos

Hi,

Your UI element is disabled, because the model node is having no content.

Please check the size of your model node.

If it is zero then UI Element will be disabled, then populate the model node properly.

Regards,

Praveen

Former Member
0 Kudos

To make it enable i have to write code in init() method of component controller to instantiantiate that node ??

Node A

-


Node B

-


Node C

This is structure of my model nodes. inputfield elements mapped with model attributes under node B are editable , but those mapped under Node C are not editable.

Former Member
0 Kudos

hi,

My response will still remain the same. Hope you have checked the nodeC size. May be the data is not coming for the nodeC from the web-services.

thanks & regards,

Manoj

Former Member
0 Kudos

How cn i check size if input nodes before executing web service? , i.e. I m going to assign values to attributes of these nodes then going to execute web service.

NodeA_DTO

...............NodeB_DTO

....................NodeC_DTO

This is structure of my model nodes , Nodes A , B , C are DTO s

i wrote following code in init() method

{

ComplexType_A_DTO aDTO = new ComplexType_A_DTO();

aDTO.setaName("Kavita");

ComplexType_B_DTO bDTO = new ComplexType_B_DTO();

bDTO.setbName("TestB");

ComplexType_C_DTO cDTO = new ComplexType_C_DTO();

cDTO.setbName("TestC");

bDTO.addC(cDTO);

aDTO.addB(bDTO);

}

After Writing this code UI elements assignd to attributes under Node A and B are editable but those UI elements assignd to attributes under C are still not editable .