just ram

stuff I should remember

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

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

Comments