on 01-23-2008 9:39 AM
hai all,
I have set the singleton property of child node as false but still in my wdmodifyview when i load a value help with values from backend based on the user selection in 1st column of table the entire column gets populated.
coding used by me:
public static void wdDoModifyView(IPrivateSalesdet wdThis, IPrivateSalesdet.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
{
//@@begin wdDoModifyView
try
{
String partfn=wdContext.currentTablepartnersElement().getPartnerfn();
if(partfn.equals("ShiptoParty"))
{
IWDAttributeInfo partattributeInfo=wdContext.nodeTablepartners().nodeTablepartnerssubnode().getNodeInfo().getAttribute(IPrivateSalesdet.ITablepartnerssubnodeElement.PARTNERS);
ISimpleTypeModifiable part = partattributeInfo.getModifiableSimpleType();
// Set field label and populate valueset
part.setFieldLabel("key");
IModifiableSimpleValueSet partvalueSet = part.getSVServices().getModifiableSimpleValueSet();
for (int i = 0; i < wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().size();i++)
{
partvalueSet.put(wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getKunnr(),wdThis.wdGetSalescustomctrllerController().wdGetContext().nodeLt_Kna1().getLt_Kna1ElementAt(i).getName1());
}
}
}
}
I need to populate only the table cell wch is next to the cell in wch user has made a selection and not the entire column.plz help me in this issue.
First, you should not place this code in wdDoModifyView().
Second, I assume you want to have a value help only on a specific table cell, not for all cells in the same column, is that correct?
This cannot be done by modification of the DDIC type because the type is used for all cells of a column. This has nothing to do with singleton vs. non-singleton.
What exactly is your use case?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.