Skip to Content
0
Former Member
Dec 05, 2008 at 07:11 AM

How to capture the Subtype value in Overview view of Address iview

11 Views

Hello Experts,

Below is wdDomodify function of Overview of Address iview.

TO create bizcards create overview function of FcPersInfo is called.

Here I want to send fieldinfo1 as the parameter to that fnction if the subtype is permanent office. can any one please give me a hint how to proceed on this.

//@@end

public static void wdDoModifyView(IPrivateBizCardsView wdThis, IPrivateBizCardsView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)

{

//@@begin wdDoModifyView

BizcardFieldInfo[] fieldInfo;

BizcardFieldInfo[] fieldInfo1;

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");

String BizcardField3 = wdThis.wdGetAPI().getComponent().getTextAccessor().getText("BizcardField3"); // House #

String BizcardField4 = wdThis.wdGetAPI().getComponent().getTextAccessor().getText("BizcardField4"); // City

String BizcardField5 = wdThis.wdGetAPI().getComponent().getTextAccessor().getText("BizcardField5"); // State

String BizcardField6 = wdThis.wdGetAPI().getComponent().getTextAccessor().getText("BizcardField6"); // Zip Code

String BizcardField7 = wdThis.wdGetAPI().getComponent().getTextAccessor().getText

fieldInfo = new BizcardFieldInfo[] { new BizcardFieldInfo(bizcardField1, "Stras"),

new BizcardFieldInfo(bizcardField2, "Ort01"),

new BizcardFieldInfo(bizcardField3, "Telnr"),

};

fieldInfo1 = new BizcardFieldInfo[] {

new BizcardFieldInfo(BizcardField3, "Stras"), // House #

new BizcardFieldInfo(BizcardField4, "Ort01"), // City

new BizcardFieldInfo(BizcardField5, "State"), // State

new BizcardFieldInfo(BizcardField6, "Pstlz"), // Zip Code

new BizcardFieldInfo(BizcardField7, "Land1") };

wdThis.wdGetFcPersInfoInterface().CreateOverview(

wdThis.wdGetContext().nodeInfotypeList(),

view,

fieldInfo, "Anssa");

Thanks,

Boiler