Home > SAP Enterprise Portal > SAP Portal: How do I reference a Javascript file in my iView?

SAP Portal: How do I reference a Javascript file in my iView?

28 March, 2006

Easy when you know how

public void doInitialization(){
  request = (IPortalComponentRequest)this.getRequest();
  response = (IPortalComponentResponse)this.getResponse();
  IResource jsResource = request.getResource(IResource.SCRIPT, “scripts/myscript.js”);
  response.addResource(jsResource);
}
Advertisements
Categories: SAP Enterprise Portal
%d bloggers like this: