Skip to Content
author's profile photo
Former Member

Appintegrator iView with custom parameter

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Jul 19, 2004 at 06:19 PM

    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

    Add comment
    10|10000 characters needed characters exceeded