on 02-20-2007 6:46 AM
Hi All,
I have DropdownByIndex and two input fields in the table ,Rows will be created in the table depends from previous screen.
Now problem is i have to set dropdownbyindex multple captions in multiple dropdownsbyIndex from previous screen, that caption is setting in the dropdown first time correct.
<b>In the first row DropdownByIndex selection is coming correct,In the second row onwards dropdowncaption is coming defalut value.</b>
I've binded DropdownByIndex with below value node(AccessorialType_Node_U)
Node - ModelNode -Name:AccessorialType_Node_U
cardinality:0..n,intailizedLeadSelection:true
Singleton:false
<b>Code</b>
String strLblni = "A";
IUpdate_UElement objUpdate_UElement = null;
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("size"+wdContext.nodeI_Out().size());
for (int i=0;i<wdContext.nodeI_Out().size();i++)
{
if(wdContext.nodeI_Out().getI_OutElementAt(i).currentCheckBoxElement().getCheck())
{
strLblni = wdContext.nodeI_Out().getI_OutElementAt(i).getLblni();
}
if(wdContext.nodeI_Out().getI_OutElementAt(i).getLblni().equals(strLblni))
{
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Selected Lblni found");
IAccessorialType_Node_UElement objAccessorialType = null;
try
{
objUpdate_UElement = wdContext.createUpdate_UElement();
objUpdate_UElement.setAmount(wdContext.nodeI_Out().getI_OutElementAt(i).getTbtwr());
objUpdate_UElement.setComments(wdContext.nodeI_Out().getI_OutElementAt(i).getLong_Text());
wdContext.nodeUpdate_U().addElement(objUpdate_UElement);
objAccessorialType = wdContext.createAccessorialType_Node_UElement();
objAccessorialType.setAT("Select AccessorialType");
objAccessorialType.setATValue("");
objUpdate_UElement.nodeAccessorialType_Node_U().addElement(objAccessorialType);
int sizeAccType = wdContext.nodeI_Acctype().size();
for(int j=0;j<sizeAccType;j++)
{
objAccessorialType = wdContext.createAccessorialType_Node_UElement();
objAccessorialType.setAT(wdContext.nodeI_Acctype().getI_AcctypeElementAt(j).getZacctype());
objAccessorialType.setATValue(wdContext.nodeI_Acctype().getI_AcctypeElementAt(j).getZacctype());
objUpdate_UElement.nodeAccessorialType_Node_U().addElement(objAccessorialType);
if(wdContext.nodeI_Out().getI_OutElementAt(i).getZacctype().equals(wdContext.nodeI_Acctype().getI_AcctypeElementAt(j).getZacctype()))
{
<b>wdContext.nodeAccessorialType_Node_U().setLeadSelection(j+1);</b> }
}
}
catch(Exception e)
{
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Catch block in IMUpdateServiceEntry :: InIt( ) Error==> Message-"e.getMessage()"StackTrace--->""StackTrace"e.getStackTrace().toString()"Error"e);
}
} //Selected LBLNI
}//End of INode for loop
Thanks in Advance
~Adams
Hi Adams,
<b> wdContext.nodeAccessorialType_Node_U().setLeadSelection(j);</b>
is enough. And you have to set the lead selection after each RFC call.
regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.