on 04-27-2004 10:31 AM
Hello
I need to create an iView that generates the URL for a business server page and adds an user specific parameter. This parameter should be read from a database or LDAP.
I tried to implement this with the appintegrator iview as described in the document "How to Use the Application Integrator" on page 18pp.
As described I created a new service that returns the string (the parameter). It implements the interface as described in the pdf.
Now i would like to use the service in an call of an bsp-application (com.sap.portal.appintegrator.sap.BSP).
I don't know if my coding is incorrect or if I just dont know how to call my service. I tried it with "ApplicationParameter" and "DynamicParameter". I just get an errormessageFehler aufgetreten bei der Verarbeitung eines Request für :
iView : N/A
Komponentenname : N/A
Unable to process template 'myparam1=1&myparam2=<IDProvider1.test>', because 'IDProvider1' is an invalid sub-context of the context ''..
Can anyone give me a hint how to implement the interface and/or how to get the string as the content of the user-parameter? Perhaps i just dont understand how to get the parameter from my service...
Has anyone allready implemented such a thing?
thanks a lot
Stefan
Service Java-Code
*******************************************
package ch.itelligence.customerparameterprovider;
import java.util.Enumeration;
import java.util.*;
import ch.itelligence.ICustomerParameterProvider;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
public class ParameterProvider implements ICustomerParameterProvider {
/* (non-Javadoc)
@see ch.itelligence.service.IParameterProvider#getParameter(com.sapportals.portal.prt.component.IPortalComponentRequest, java.lang.String)
*/
public String getParameter(IPortalComponentRequest request, String id) throws Throwable {
// TODO Auto-generated method stub
return "myParameter(getParameter)";
}
/* (non-Javadoc)
@see ch.itelligence.service.IParameterProvider#getParameterDefault(com.sapportals.portal.prt.component.IPortalComponentRequest, java.lang.String)
*/
public String getParameterDefault(IPortalComponentRequest request, String id) throws Throwable {
// TODO Auto-generated method stub
return "myParameter(getParameterDefault)";
}
/* (non-Javadoc)
@see ch.itelligence.service.IParameterProvider#getAllParameterNames()
*/
public Enumeration getAllParameterNames() {
// TODO Auto-generated method stub
Vector allParams = new Vector();
allParams.add("test");
allParams.add("anOtherTest");
return allParams.elements();
}
/* (non-Javadoc)
@see ch.itelligence.service.IParameterProvider#getProviderName()
*/
public String getProviderName() {
// TODO Auto-generated method stub
return "ch.itelligence.ParameterProvider";
}
}
************************************************
Portalapp.xml
************************************************
Message was edited by: Stefan Zapf
Hi Stefan
Have you found a solution for your problem?
I'm trying the same, without success so far...
Can anyone help?
Is there any more documentation, other than the "How to..."?
Thanks,
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.