Hello Experts,
Below is the wdDomodify fntion in the bizcad view of address iview in ESS.
sap.comessus~addr component.
Three fields ( street, telephone and city) are the standard field from SAP. I want to add two more fields to primary office address (just to primary office)
Eg Building and department.
can any one please suggest me how to do it?
I have already imported the BAPI which has the extra fields. Also, declared them in the message pool. Just not sure, How to capture the subtype of primary office and display the two fields.
public static void wdDoModifyView(IPrivateBizCardsView wdThis, IPrivateBizCardsView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
{
//@@begin wdDoModifyView
BizcardFieldInfo[] fieldInfo;
//Date defaultBegda = wdContext.currentContextElement().getDefault_Begda();
String bizcardField1 = wdThis.wdGetAPI().getComponent().getTextAccessor().getText(
"BizcardField1");
String bizcardField2 = wdThis.wdGetAPI().getComponent().getTextAccessor().getText("BizcardField2");
String bizcardField3 = wdThis.wdGetAPI().getComponent().getTextAccessor().getText("BizcardField3");
fieldInfo = new BizcardFieldInfo[] { new BizcardFieldInfo(bizcardField1, "Stras"),
new BizcardFieldInfo(bizcardField2, "Ort01"),
new BizcardFieldInfo(bizcardField3, "Telnr"),
};
// OverviewHelper.CreateOverview(wdThis.wdGetContext().nodeInfotypeList(),
// wdThis.wdGetContext().nodeSubtypes(),
// view,
// fieldInfo,
// defaultBegda,
// "Anssa");
wdThis.wdGetFcPersInfoInterface().CreateOverview(
wdThis.wdGetContext().nodeInfotypeList(),
view,
fieldInfo,
"Anssa");
In the document mentioned, author ask to use a overviehelper.java.
Just want to know how to identify the subtype values and depending on the subtyppe i want to know how to switch to different fieldinfo.
=========================================
Thanks.