Portlet calling/invoking another portlet?

Hi,
I have portal server 6 2004q2 running and on my page I have 3 columns, thin, thick,thin. Basically 3 portlets/channels. The most right of the portlet contains link and when i click on any link, the middle portlet would refresh and load a new page. Is this possible?
Is there a sample code for this?
Q2. If I have a series of complex output, could I preload those portlets and hide them, and when I click on the link (via the right most portlet), the middle portlet minimises/dissapear and the correct portlet will appear in the center?
Is this possible? Is there a sample code for this?
Please help - newbie.

Hi,
I don't think you can pass a parameter to the URLScraper provider like this. What you could do is, extend the JSPProvider provider
Eg.
public class MyJSPProvider extends JSPProvider {
public URL processEdit(HttpServletRequest request, HttpServletResponse response) throws ProviderException
String path = request.getParameter("path");
setClientProperty("path", path);
return getMaximiseURL(request);
public URL getMaximizeURL(HttpServletRequest request, String providerName) throws MalformedURLException {
String container = request.getParameter("lgo.parent.container");
if (container == null) {
throw new MalformedURLException("Failed to get the parent container.");
String url = "action=process&provider=" + container + "&" + container +
".channelAction=truemaximize&" + container + ".targetProvider=" + providerName;
return new URL(this.getProviderContext().getDesktopURL(request, url, false));
This is just a sample and I haven't compiled or tested this. You need to copy the class files to /etc/opt/SUNWps/desktop/classes directory and add the provider definition to display profile.
Eg.
<DisplayProfile priority="0" version="1.0">
<Properties/>
<Channels>
</Channels>
<Provider class="MyJSPProvider" name="newJSPProvider">
<Properties>
<String name="title" value=""/>
<String name="description" value=""/>
<String name="contentPage" value="/newJSPProvider/main.jsp"/>
<String name="editPage" value=""/>
<String name="processPage" value=""/>
<String name="width" value="thick"/>
<Boolean name="isEditable" value="true"/>
<String name="editType" value="edit_subset"/>
<Boolean name="showExceptions" value="true"/>
<String advanced="true" name="refreshTime" value="0"/>
<Collection name="CustomTheme">
</Collection>
</Properties>
</Provider>
</DisplayProfile>
This will now enable you to create new channels using this provider.
In your jsp file you could something like this.
<%
com.sun.portal.providers.jsp.JSPProvider provider = (com.sun.portal.providers.jsp.JSPProvider) request.getAttribute("com.sun.portal.providers.jsp.JSPProvider");
String path= provider.getClientProperty("path");
if (pageName == null || pageName.trim().length() == 0)
path = "defaultpage.html";
%>
<jsp:include page="<%=pageName%>" flush="true"/>
URL to access channel would be something like
http://test.mydomain.com.my/portal/dt?action=process&lgo.parent.container=<your_parent_container>&provider=MyJSPProvider&path=/interface02/References.htm
Let me know if you still have problems.
Regards,
Damitha

Similar Messages

  • Error while invoking another presentation

    Hi
    While calling invoking another presenation from the parent presentation using the Presentable.show(instance : null, presentationName : "");
    I get the follwing error
    The task could not be successfully executed.
    Reason: 'java.lang.AssertionError'.
    Caused by: java.lang.AssertionError
    fuego.lang.ComponentExecutionException: The task could not be successfully executed.
    Reason: 'java.lang.AssertionError'.
    Can you please let me how can i resolev the error

    You might want to consider instead using a Screenflow for this. Screenflows manage the flow from one presentation to another presentation better that the show method does.
    1. They let you see visually (vs. hidden inside a method) what presentation is flowing to another presentation and
    2. Unlike the show method, once you flow to a presentation inside a screenflow you can always go back to earlier presentations in the screenflow. You lose the context once you flow using a show method.
    Here's the logic I think you're looking for. It's fairly common to use a show method for BAM Dashboard presentations. Here I have a BPM Object called "Order" in the module "Dashboards". To invoke a presentation called "OrderList" inside this BPM Object from another BPM Object's method, you could use logic like this:
    order as Dashboards.Order = Dashboards.Order()
    // this passes in the value of the customer's type into the other BPM Object's presentation
    order.customerType = this.customerType
    show this
        using instance = order,
              presentationName = "OrderList"Normally, logic like this would be invoked from a push button or an on click event (the "On Click" property) on a BPM Object dashboard widget (e.g. bar chart, pie chart or gauge).
    Hope this helps,
    Dan

  • Problem deploying cmp bean invoking another cmp bean using jndi lookup

    I have a cmp BeanA that invokes another cmp BeanB, so I am using a jndi lookup in BeanA to download the localhome object to BeanB using the following:
    Context ctx = new InitialContext();
    home = (LocalAddressHome) ctx.lookup("java:comp/env/ejb/BeanBHomeRef");
    then I specify the ejb/BeanBHomeRef, entity bean, local, BeanB's local home and component interface in EJB ref. when I am packaging BeanA
    I also package BeanB in a separate jar file.
    When I attempt to deploy the application it throws strange exception that says the folowing:
    java.lang.IllegalArgumentException: BeanBEJB says it links to an ejb called BeanBEJB of local home class LocalBeanBHome but no bean with this local home c
    lassname and type can be found in this ejb-jar.
    yet when I un-jar the package, these class files exitsts.
    When I go ahead and delete the reference to BeanB from the BeanA package file, I am able to deploy the application but then correctly fails on jndi lookup.
    I have been able to open the cmpcustomer.ear sample application that comes with RI and execute it without any problem. But when I to package the same beans for example CustomerBean and it won't even allow me to create the customer.jar file. I get a screen full of errors.......
    I am using Sun RI 1.3.01, is there a known bug that I am not aware of? Is there a fix around it?
    Is there any another way to get the home ref. to BeanB so I can invoke create() method?
    Any advice or suggestions?
    thanksl
    -kaisaab

    What app server are you using? may be I can help you
    --Ashish Saraf                                                                                                                                                                                           

  • My iphone 4 does not register calls made to it. if i make a call from another phone, i can hear it ringing, but it does not register on the iphone. also, i do not get any messages when this happens. then after a day or two it decides to start working.

    My iphone 4 does not register calls made to it. if i make a call from another phone, i can hear it ringing, but it does not register on the iphone. also, i do not get any messages when this happens. then after a day or two it decides to start working.

    Clean iPhone charging port with clean dry toothbrush. See if better. If still problem clean charging port again with toothbrush and small amount of Isopropyl Alcohol.

  • How to edit a program dynamically called from another program

    Hi all,
    Can anyone help me in coding for a program which call's another
    report dynamically from selection screen(for instance z_dynam_called)
    and retreive the whole content of the dynamically called program(z_dynam_called)
    into an internal table and replace the contents of the internal table  with some new code and put it back in z_dynam_called and save it.
    Thanks in advance.
    Needful will be rewarded with points

    Hi,
    Follow this:
    1) U can pass data from one program to another in a single login using SAP memory......
    2) u can create a DBtable update dat table using ur first pgm and fetch from second program.....
    3) U can pass the report output using EXPORT TO MEMORY addition and get it back using IMPORT FROM MEMORY..........
    Eg:
    Export the selected rows to the next program
    EXPORT final TO MEMORY ID 'ABC'.
    CALL TRANSACTION 'XXX'.
    XXX is the tcode for the other program where u want to import the values.
    In the second program
    INITIALIZATION.
    IMPORT the internal table from the first program
    IMPORT final FROM MEMORY ID 'ABC'.
    Thanks and Regards,
    Reward If Helpful

  • BPM invoking another BPM

    I create 2 processes in BPM studio 10g. User can use process A to invoke process B.
    Process B is exposed to web service (right click process -> Process web service)
    I copy the wsdl address and create a web service catalog component in Process A.
    However, I do not know how to invoke another process when adding an interactive activity.
    Could anyone tell me how to do it or where the document is?
    Thanks a lot.

    Hi, I believe what you want to do is a "Process Referral" which allows you to communicate to another process even on a different engine. I am working on memory here but I think you can go into the engine settings and create a referral which will allow you to enter organization, engine, and the URL for the process location. Please let me know if this is the answer you were looking for.

  • Populating selection screen of one prog by calling from another prog

    This is regarding variant population.
    I need to populate values in selection screen fields of one program (program 2)by calling from another executable ABAP program(.Program 1)
    I can identify the variant that i need ot populate.But there is a pushbutton in the selection screen of Program 2 which on clicking leads to some more fields in a pop up screen.How can I populate values in those fields there ?Please help.
    Thanks & Regards,
    Savitha

    I got a problem like that, then I tried to do a BDC, but it doesn't accept BDC's so I made a vbs program. This could help:
    FORM exec_vbs .
      DATA:BEGIN OF it_file OCCURS 0,
               line TYPE string,
           END OF it_file.
      DATA:filename     TYPE     string.
      CLEAR it_file[].
      it_file-line = 'msgbox "Variant will be updated, please don''t move or minimize the screen"'.
      append it_file.
      it_file-line = 'Dim objShell:Set objShell = CreateObject("WScript.Shell")'.
      append it_file.
      it_file-line = 'do while(ObjShell.AppActivate("R/A Settlements")=FALSE)'.
      append it_file.
      it_file-line = '  wscript.sleep 2000'.
      append it_file.
      it_file-line = 'loop'.
      append it_file.
      it_file-line = 'wscript.sleep 500:ObjShell.SendKeys "%ye":wscript.sleep 1999'.
      append it_file.
      it_file-line = 'do while(ObjShell.AppActivate("SAP Easy Access")=FALSE)'.
      append it_file.
      it_file-line = '  wscript.sleep 1000'.
      append it_file.
      it_file-line = 'loop'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "cj8g":wscript.sleep 940:ObjShell.SendKeys ""'.
      append it_file.
      it_file-line = 'wscript.sleep 1500'.
      append it_file.
      it_file-line = 'do while(ObjShell.AppActivate("Actual Settlement")=FALSE)'.
      append it_file.
      it_file-line = '  wscript.sleep 1000'.
      append it_file.
      it_file-line = 'loop'.
      append it_file.
      it_file-line = 'wscript.sleep 1950'.
      append it_file.
      it_file-line = '''controlshiftF7'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "^+":wscript.sleep 3100'.
      append it_file.
      it_file-line = '''shift+F2'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":wscript.sleep 2199'.
      append it_file.
      it_file-line = '''shift+F10'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":wscript.sleep 500:''SCROL DOWN'.
      append it_file.
      it_file-line = 'for x = 1 to 2: ObjShell.SendKeys "":wscript.sleep 500:next'.
      append it_file.
      it_file-line = '  wscript.sleep 500:ObjShell.SendKeys "":Wscript.Sleep 950'.
      append it_file.
      it_file-line = '''shift+F4'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":Wscript.Sleep 1999:ObjShell.SendKeys "+ it_file-line = 'Wscript.Sleep 1000:ObjShell.SendKeys "C:\TEMP\Worksheet.txt"'.
      append it_file.
      clear it_file-line.
      concatenate 'Wscript.Sleep 500:ObjShell.SendKeys "' TEMP_FOLDER '\Worksheet.txt' '"' into it_file-line.
      append it_file.
      it_file-line = 'Wscript.Sleep 400:ObjShell.SendKeys "":Wscript.Sleep 2500:ObjShell.SendKeys "":Wscript.Sleep 1900'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "^s":Wscript.Sleep 2900'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":Wscript.Sleep 1200'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "+":Wscript.Sleep 1200'.
      append it_file.
      it_file-line = 'ObjShell.SendKeys "%"'.
      append it_file.
      it_file-line = 'Wscript.Sleep 1700'.
      append it_file.
      concatenate TEMP_FOLDER '\settle.vbs' into filename.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename = filename
        TABLES
          data_tab = it_file.
      CALL FUNCTION 'WS_EXECUTE'
        EXPORTING
          PROGRAM = filename.
      IF SY-SUBRC <> 0.
      ENDIF.

  • My Gf has my iphone. How can I see recent messages and calls from another device?

    My Gf has my iphone. How can I see recent messages and calls from another device?

    Depending on your carrier, you may be able to see recent calls by logging into your account on the carrier's web site, if they offer such a feature, though incoming calls being shown is not usual. There will, as diesel said, be no way to see messages already received, either SMS/MMS or iMessages, without having the phone.
    Regards.

  • I think there is a flaw in ios 5. Notification centre doesn't show missed call, during another call is in progress, after accessing recent calls in phone app, once.

    Notification centre in ios 5 is not showing the missed calls when another call is in progress. It shows perfectly before accessing the phone app. But once you access the recent calls in phone app, then afterwards it stops showing the missed calls during another call is in progress.

    Forgot to add, this happens, when you receive a call, during the phone is locked, and you receive a call, while the previous call is in progress.

  • File upload hanging when called from another form

    Hi
    I have created a file upload form from the documentation I found on metalink and the form works fine on its own. I have then implemented the form into a multi form application and when the file upload form is called from another form it hangs trying to get to the client drive so that it can pick up a file. I have tried using the 'call_form', 'open_form' and 'new_form' built-ins but the results were all the same. Can anybody help me?
    Maria

    Hello,
    This is not the support, so there are no post more urgent than other.
    Francois

  • Apaxe axis Call.invoke parameter not getting in server side

    Hi
    I am developing a module in wsdl and axis. I have deployed the wsdl and I am writing the client to dynamically invoke a method which contains some arguments/parameters. But I am not getting the parameters correctly passed or seems like it is getting missed some where.
    QName inputQName // QName of input parameter
    QName returnQName // QName of return type
    Inputparamaeterbeanclass obj;
    All the necessary set methods are called
    org.apache.axis.client.Service service = new org.apache.axis.client.Service();
    org.apache.axis.client.Call call = (org.apache.axis.client.Call) service.createCall();
    call.registerTypeMapping(beanclass of input parameter, inputQName,
    new org.apache.axis.encoding.ser.BeanSerializerFactory(beanclass of input parameter, inputQName),
    new org.apache.axis.encoding.ser.BeanDeserializerFactory(beanclass of input parameter, inputQName));
    call.registerTypeMapping(AuthenticateResult.class, returnQName,
    new org.apache.axis.encoding.ser.BeanSerializerFactory(beanclass of return type, returnQName),
    new org.apache.axis.encoding.ser.BeanDeserializerFactory(beanclass of return type, returnQName));
    call.setTargetEndpointAddress( new java.net.URL(�service url�) );
    call.setOperationName(�operation name�);
    call.addParameter( "arg1", inputQName, ParameterMode.IN );
    call.setReturnType( returnQName );
    Object resultObj = call.invoke( new Object[] obj } );
    After invoke control is going to the correct method BindingImpl class. But in that method, the get method of the argument is returning null.
    Regards,
    Priya Ruby Jose

    Hi Brad,
    Thx for your response.
    1. That standard program is updating cost center group related data in application server.
    2. How to count the buffers to update the app. server
    3. Bapi commit is for commit the work (instead of bapi I gave wait until sy-subrc = 0 up to 1 second) I thought, because of lack    of time it is not updating the app server. So I gave wait.
    4. While executing, let as say... first time the 1, 3,5 & 7th record is updated in app. server. Second time 2, 3,5 & 7th record is updated in app. server. So what ever, it is updating some records & not updating some records .
    By,
    Jeya

  • Add navigation call to another report BETWEEN existing calls in Answers

    Hi,
    Would anyone know how to add a navigation call to another report BETWEEN existing
    navigation calls ? At the moment I can only add them to the END of all the other navigation
    calls.
    Many thanks,
    - Jenny

    You can write all that data out to text file yes. The problem is that writing out to files is done using the Doc Template step and the template has to be of a known configuration. So you could write one line of data or XML out to a file and then the next call would have to be a file with a different name. That is fine if you have a parser application somewhere picking up each file as it comes out.
    If you are looking for a batch job over night thing, then I would suggest a custom historical report run on the Schedule that outputs to a data or csv type file.
    Other than that, there is not much you can do without getting into crazy custom Java in the code.

  • Service invoking another webservice

    I want to create a webservice. First request i want to give insert/select as input. If I give insert as input it must take to another form with the fields of database and if I give select as input it must perform the select operation.

    Hi,
    I think you could make use of Oracle Mediator component to achieve this. Using the filter expression, you may check the input and based on that you can invoke another service (DB adapter which performs select).
    Thanks

  • International call using another LD provider calling card

    international call using another LD provider calling card
    last month i used another LD (non-Verizon) provider calling card for one international call. i check my Verizon International calling plan and it says No International Plan Included. 
    this month March i was shocked to see my bill for one International call for $408.39
    this has never happened before. what is happening here ?

    In efforts to avoid duplicate/cross posting on the forums, this thread has been locked.  Please check for responses to your original thread >> HERE
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer that solved your issue as the accepted solution.

  • Feature request: Transfer call to another device

    It would be nice to be able to transfer a call to another device by pressing a button and maybe an option to select a device but if not it just rings all logged in devices.

    I would agree wiith Jaime, just configure the desired caller input in the user mailbox option by going toi edit---caller input.
    In their you can either setup to  transfer the call to another user with mailbox and select the option of "Go directly to greetings"
    Or if you want the call transferred to a number either to the PSTN or a user who does not have an mailbox in unity connection, in order to do that, just select the option of Call Action and select "Transfer to alternate contact number". And put in the number as well as select the transfer type which plays a vital role in either sending a supervised transfer or an release to switch(which is not a supervised one, meaning it would send the call directly to the users phone without even making sure if the user is available or busy or if the phone is unregistered.
    Hope it helps.

Maybe you are looking for

  • Final cut studio 2

    I am installing final cut studio 2 on my computer and its been awhile since I bought it so I am not sure which disc its asking for. I have so many final cut disc here mixed up here, I put in the install disc and then it ask for Audio Content one coul

  • How to Cleanup the System Landscape Directory in XI Server with Backup?

    Hi All, Could i know the steps to Cleanup the SLD,IR and ID in XI server with backup(IMP)? pls send me the links if there is any Documents available. Thanks, Govindu.

  • Forms server 6i as a portlet provider, can we ?

    Can we register the appliation generated from a Forms Server 6i, as External provider and put the url that we put in the Browser - to run the first form- and put as the login url in the Login server 'Add an External Application' Dialog,and put the us

  • Edited a short video. Program Crashed. I can see the video still saved but can't view it or edit it.

    The top of the picture, the "new event 1" i can do anything with. I can cut it down and view it but the video i was working on, the lower half of the screen the "RBFD" file i can't do anything with. Can't open it, view it or edit it. I'm attempting t

  • Re: (forte-users) Cosnaming

    Thank you, I hope it will be soon available... Regards, Daniel ----- Original Message ----- From: "James, Nick CWT-MSP" <njamesCarlson.com> To: "'Daniel González de Lucas'" <danieleam.es> Sent: Friday, November 03, 2000 1:48 PM Subject: RE: (forte-us