My input fields are disabled in the form. I understand that this is because there are no elements in the node.
I can do a search by passing input parameters and it displays the result and my fields are active.
But when the user opens the form I want it to be enabled so that they create a new entry. From what I read, it appears that I may have to change the cardinality of the node to 1:n.
This is my structure of model node.
ParentNode (0:n)
----- TableParameter (0:n)
----- Output (0..1)
----- TableParameter (0..n)
<b>I can see the property but it does not allow me to change. How do you change the cardinality to 1:n when mapped to model node. Which node should I change.</b>
Is there any other way to initialize to enable input fields, like I can click on Add New record button and it should initialize my fields. This is the code I tried, but it did not work.
ZTest tableInput = null;
tableInput = new ZTest();
Z_Opts_Masterdata_Details_Input input = new Z_Opts_Masterdata_Details_Input();
wdContext.nodeZ_Opts_Masterdata_Details_Input().bind(input);
input.addDetails(tableInput);
try
{
wdContext.currentZ_Opts_Masterdata_Details_InputElement().modelObject().execute();
wdContext.nodeOpts_Output().invalidate();
}
catch(Exception e)
{
e.printStackTrace();
}
Thanks for help