Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reg.errors in standard ess coding

hi

In the below standard code it is giving many errors in like

the import com.sap.tc.webdynpro cannot be resloved

com.sao.tc.logging cannot be resloved

wdcontrollerapi cannot be resloved like than this many errors for the below.

can any please help me how to relsove the errors

import com.sap.xss.hr.per.in.family.review.wdp.IPrivateReviewView;

import com.sap.xss.per.helpers.F4TextHelper;

import com.sap.xss.per.helpers.TextFieldInfo;

import com.sap.tc.webdynpro.progmodel.api.WDVisibility;

//@@end

//@@begin documentation

//@@end

public class ReviewView

{

/**

  • Logging location.

*/

private static final com.sap.tc.logging.Location logger =

com.sap.tc.logging.Location.getLocation(ReviewView.class);

static

{

//@@begin id

String id = "$Id$";

//@@end

com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);

}

/**

  • Private access to the generated Web Dynpro counterpart

  • for this controller class. </p>

*

  • Use <code>wdThis</code> to gain typed access to the context,

  • to trigger navigation via outbound plugs, to get and enable/disable

  • actions, fire declared events, and access used controllers and/or

  • component usages.

*

  • @see com.sap.xss.hr.per.in.family.review.wdp.IPrivateReviewView for more details

*/

private final IPrivateReviewView wdThis;

/**

  • Root node of this controller's context. </p>

*

  • Provides typed access not only to the elements of the root node

  • but also to all nodes in the context (methods node<i>XYZ</i>())

  • and their currently selected element (methods current<i>XYZ</i>Element()).

  • It also facilitates the creation of new elements for all nodes

  • (methods create<i>XYZ</i>Element()). </p>

*

  • @see com.sap.xss.hr.per.in.family.review.wdp.IPrivateReviewView.IContextNode for more details.

*/

private final IPrivateReviewView.IContextNode wdContext;

/**

  • A shortcut for <code>wdThis.wdGetAPI()</code>. </p>

  • Represents the generic API of the generic Web Dynpro counterpart

  • for this controller. </p>

*/

private final com.sap.tc.webdynpro.progmodel.api.IWDViewController wdControllerAPI;

/**

  • A shortcut for <code>wdThis.wdGetAPI().getComponent()</code>. </p>

  • Represents the generic API of the Web Dynpro component this controller

  • belongs to. Can be used to access the message manager, the window manager,

  • to add/remove event handlers and so on. </p>

*/

private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;

public ReviewView(IPrivateReviewView wdThis)

{

this.wdThis = wdThis;

this.wdContext = wdThis.wdGetContext();

this.wdControllerAPI = wdThis.wdGetAPI();

this.wdComponentAPI = wdThis.wdGetAPI().getComponent();

}

//@@begin javadoc:wdDoInit()

/** Hook method called to initialize controller. */

//@@end

public void wdDoInit()

{

//@@begin wdDoInit()

//@@end

}

//@@begin javadoc:wdDoExit()

/** Hook method called to clean up controller. */

//@@end

public void wdDoExit()

{

//@@begin wdDoExit()

//@@end

}

//@@begin javadoc:wdDoModifyView

/**

  • Hook method called to modify a view just before rendering.

  • This method conceptually belongs to the view itself, not to the

  • controller (cf. MVC pattern).

  • It is made static in order to discourage a way of programming that

  • routinely stores references to UI elements in instance fields

  • for access by the view controller's event handlers etc.

  • The Web Dynpro programming model recommends to restrict access to

  • UI elements to code executed within the call to this hook method!

*

  • @param wdThis generated private interface of the view's controller as

  • provided by Web Dynpro; provides access to the view controller's

  • outgoing controller usages etc.

  • @param wdContext generated interface of the view's context as provided

  • by Web Dynpro; provides access to the view's data

  • @param view the view's generic API as provided by Web Dynpro;

  • provides access to UI elements

  • @param firstTime indicates whether the hook is called for the first time

  • during the lifetime of the view

*/

//@@end

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

{

//@@begin wdDoModifyView

String subtype = wdContext.currentSubtypesElement().getSubtype();

if (subtype.equals("2")) {

wdContext.currentContextElement().setStandardIsVisible(

WDVisibility.VISIBLE);

wdContext.currentContextElement().setIsVisible(WDVisibility.NONE);

wdContext.currentContextElement().setStandardVisible(WDVisibility.VISIBLE);

}else if (subtype.equals("6")) {

wdContext.currentContextElement().setStandardIsVisible(

WDVisibility.VISIBLE);

wdContext.currentContextElement().setIsVisible(WDVisibility.NONE);

wdContext.currentContextElement().setStandardVisible(WDVisibility.NONE);

}

else if(subtype.equals("5") || subtype.equals("8") || subtype.equals("10") || subtype.equals("14")){

wdContext.currentContextElement().setStandardIsVisible(

WDVisibility.NONE);

wdContext.currentContextElement().setIsVisible(

WDVisibility.VISIBLE);

wdContext.currentContextElement().setStandardVisible(WDVisibility.NONE);

}

else

{

wdContext.currentContextElement().setStandardIsVisible(

WDVisibility.NONE);

wdContext.currentContextElement().setIsVisible(

WDVisibility.NONE);

wdContext.currentContextElement().setStandardVisible(WDVisibility.NONE);

}

// Other Allowances

if (wdContext.currentSelectedInfotypeElement().getKdbsl().equals("X"))

{

wdContext.currentContextElement().setOther_Allowances(true);

}

else

{ wdContext.currentContextElement().setOther_Allowances(false);

}

//Child Education Allowance

if (wdContext.currentSelectedInfotypeElement().getKdzul().equals("X"))

{

wdContext.currentContextElement().setChild_Education_Allowance(true);

}

else

{ wdContext.currentContextElement().setChild_Education_Allowance(false);

}

// Children_Hostel_Allowance

if (wdContext.currentSelectedInfotypeElement().getKdgbr().equals("X"))

{

wdContext.currentContextElement().setChildren_Hostel_Allowance(true);

}

else

{ wdContext.currentContextElement().setChildren_Hostel_Allowance(false);

}

TextFieldInfo[] fieldInfo = new TextFieldInfo[]

{ new TextFieldInfo("Fasex", "Gender"),

new TextFieldInfo("Fanat", "Nationality"),

new TextFieldInfo("Fana2", "OtherNationality"),

new TextFieldInfo("Fana3", "SecondNationality"),

new TextFieldInfo("Fgbld", "BirthCountry"),

new TextFieldInfo("Fnmzu", "OtherTitle"),

new TextFieldInfo("Fvrsw", "Name_Prefix")

};

F4TextHelper.GetF4Text( wdThis.wdGetAPI(),

wdContext.nodeSelectedInfotype(),

view,

fieldInfo);

//@@end

}

/*

  • The following code section can be used for any Java code that is

  • not to be visible to other controllers/views or that contains constructs

  • currently not supported directly by Web Dynpro (such as inner classes or

  • member variables etc.). </p>

*

  • Note: The content of this section is in no way managed/controlled

  • by the Web Dynpro Designtime or the Web Dynpro Runtime.

*/

//@@begin others

//@@end

}

Thanks in advance

Deepika.M

Edited by: deepika_indian on May 24, 2011 10:49 AM

Edited by: deepika_indian on May 24, 2011 10:50 AM

Edited by: deepika_indian on May 24, 2011 11:49 AM

Former Member
Not what you were looking for? View more on this topic or Ask a question