Calling another application using object carousel

hi, i'm currently developing several applications in mhp, i have 5 mhp applications, i wrote them each with individual xlets, now, one of its application serves as a main menu for other applications, the main menu should call or run another application in another carousel. so i studied how to use carousels. and here's my code below. the locator and the carousel ID is just an example. pls. help me check if this codes are correct or if there something i need to modify
Locator locator;
int carouselID;
String locStr = "dvb://123.456.789";
ServiceDomain carousel = new ServiceDomain();
try {
locator = new DvbLocator(locStr);
carouselID = 5;
carousel.attach(locator, carouselID);
carousel.getMountPoint().synchronousLoad();
} catch (ServiceXFRException e) {
e.printStackTrace();
} catch (InterruptedIOException e) {
e.printStackTrace();
} catch (MPEGDeliveryException e) {
e.printStackTrace();
} catch (InvalidLocatorException e) {
e.printStackTrace();
} catch (InvalidFormatException e) {
e.printStackTrace();
} catch (ServerDeliveryException e) {
e.printStackTrace();
} catch (InvalidPathNameException e) {
e.printStackTrace();
} catch (NotEntitledException e) {
e.printStackTrace();
}

The code you have will work, but will almost certainly not do what you want. It will load the directory entry for the root directory of the carousel and nothing more - using this approach to load multiple applications from another carousel is hard work and fairly error-prone.
An easier solution is this:
1) Broadcast all your applications as separate apps. They can be in the same carousel or different carousels.
2) If you only want the launcher application to be visible in the application list, set the visibility of the other applications in the AIT to be invisible to users but visible to the application listing and launching API.
3) Use the application listing and launching API (org.dvb.application.*) to launch the sub-applications when you want to. This works via the normal application manager, so it will take care of making sure the carousels are mounted correctly.
The disadvantage of this approach is that sharing information between the launcher app and other apps gets harder, and you will need to use the inter-Xlet communication API to get round this. It will save a lot of trouble with carousel management, however.
There are other approaches (e.g. using DVBClassLoaders), but using separate carousels tends to complicate things. Is there a good reason for doing this, or can you store all of the applications in a single carousel?
Steve.

Similar Messages

  • Best way To get data from another application using NDDE lbrary

    My vb.net application gets data from another application using NDDE Library. I got stocks prices (open,high,low,close,volume,change......(about 15 records for each stock)) (about 200 stocks) . I don't know if there is a problem in my code.
    This is my code:
    l : is the list of stocks.
    This Sub connects to server and requests the data :
    Public Shared Sub GetQuotes()
    Try
    client1 = New DdeClient(server, topic)
    client1.Connect()
    For i As Integer = 0 To l.Count - 1
    client1.StartAdvise("QO." & l(i).t & ".TAD$last", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$open", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$high", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$low", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$pclose", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$volume", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$date", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$time", 1, True, 60000)
    Next
    Catch ex As Exception
    MsgBox(ex.Message)
    End Try
    End Sub
    and then I get the data from Client_advise sub (called each time a value changed )and fill the list. What I know is that client advise gets only one record for single stock each time is called..
    Example: for stock AAPL. 1st time enters client_Advise I get open price for AAPL, 2nd time I get high price for AAPL,3rd time I get low price..... and I update the value in the List (l)
    This the client_Advise Sub:
    Private Shared Sub client1_Advise(ByVal sender As Object, ByVal e As NDde.Client.DdeAdviseEventArgs) Handles client1.Advise
    For q As Integer = 0 To l.Count - 1
    If l(q).t = w(1) Then
    Dim item() As String = e.Item.Split("$")
    If l(q).Open = "#" Then
    l(q).Open = "0"
    End If
    If l(q).hi = "#" Then
    l(q).hi = "0"
    End If
    If l(q).lo = "#" Then
    l(q).lo = "0"
    End If
    If l(q).Close = "" Or l(q).Close = "#" Then
    l(q).Close = "0"
    End If
    If l(q).pclose = "#" Then
    l(q).pclose = "0"
    End If
    If item(1) = "open" Then
    l(q).Open = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "last" Then
    l(q).Close = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "high" Then
    l(q).hi = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "volume" Then
    l(q).Volume = Val(e.Text)
    ElseIf item(1) = "low" Then
    l(q).lo = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "pclose" Then
    l(q).pclose = Format(Val(e.Text), "0.00")
    If l(q).pclose <> "" And l(q).pclose <> "#" And l(q).Close <> "" And l(q).Close <> "#" Then
    l(q).c = Format(l(q).Close - l(q).pclose, "0.00")
    l(q).cp = Format(((l(q).Close - l(q).pclose) / l(q).pclose) * 100, "0.00")
    End If
    l(q).flag1 = 2
    ElseIf item(1) = "date" Then
    l(q).Date1 = e.Text
    ElseIf item(1) = "time" Then
    l(q).Time = e.Text
    End If
    Exit For
    End If
    Next
    End Sub
    Am I doing something wrong which inreases CPU usage to 80 or 90 % ?
    Thanks in advance.

    Hi MikeHammadi,
    According to your description, you'd like to get data from another app using NDDE library.
    When using the NDDE library, the CPU usage is high. As the NDDE library is third-party library, it is not supported here. I suggest you checking if the problem is caused by the NDDE library.
    If you'd like to get data from another app. I suggest you could save the data in the dataBase, and then read it in another application if necessary.
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Application calling another application not using states

    I have a project  and within two applications.
    1 - I have a main  application, and it got a button that will call my other application,  which is within the same project.
    2 - I do not  intend to use the states, by mixing the code too.
    3 - Is there a way to create a call to another  application is similar to what is done in PopUpManager?
    tks

    Does the called component have to be an Application. If not, you can create a cutom component (extending from any other Flex container except Application) that holds everything you require and instantiate in your original Application on the Button Click.
    If you must have an Application, you can create a separate project for the second application and compile it into a SWF. You can then load this SWF from the SWFLOADER Flex control on Button Click.

  • HOW TO CALL ANOTHER PAGE USING PL/SQL PDK?

    Hi,
    I am using pl/sql pdk to create portlets. When I need to call
    another page I am using wwpob_page.show(p_pageid) but instead it
    displays File Download wizard.
    Anyone knows workaroud for this?
    Are there any other ways to call other pages with portlets from
    pl/sql portlets?
    Thank you,
    ya

    Hello Yuri
    If you want to call any component of an application from PL/SQL
    you have to take a look to the manage of the component and then
    to Call Interface (Show), There you can see the way to call the
    component, but if you want to call a Page the way I found to do
    it, even thought it is not the best, was put an url like
    this /pls/portal30/url/page/PAGE_NAME on the link.
    I hope this could help you, if you dont understand please let me
    know and I'll give you a hand
    Ana Maria

  • Passing the values from one application to another application using mvc

    Hi sdn,
    Iam new to bsp.i created one application zappl1 in that i created one controller and one view.in that view i created 2 input fields.and also  created another application zappl2 in that also created one controller and one view. wai i want to enter in the inputfileds of first application view that values will be display in second application view.Please help out of this.

    Hi,
    I can see 2 ways of doing. Either you use parameters in the URL from the first application to the second, as any web application would do.
    Or, you can think of using the Web Application Server let :
    - the first application store the values
    - for the second application to retrieve
    Personnally, I would tend to suggest the first solution as it allows both applications to be replaced later on.
    Best regards,
    Guillaume

  • Calling Webdynpro Application using WDPortalNavigation.navigateAbsolute

    Hi All
    I have created a custom application for address in Personal Information. The application contains Overview, Edit, Review and Save , Completed view (Same as in standard ESS components)
    There is a link <b>Back to Overview</b>. On click of the link, i need to go back to <b>Overview</b> view.
    How can i perform this ?
    I am using
                   WDPortalNavigation.navigateAbsolute(
                        urlToTargetApp,
                        WDPortalNavigationMode.SHOW_INPLACE,
                        WDPortalNavigationHistoryMode.NO_HISTORY,
                        null
    What should be the value of  urlToTargetApp ?
    Pls help.
    Regards
    Sonal Mangla

    Hi Satyajit.
    Thanks for the inputs
    Actually i need to refresh the application so that it takes me to the first view.
    Previously i was using Exit plug to URL to go back to first view.
    But after upgrade from EP6 to EP7 and ESS 100 to ESS600, i am getting
    <b>com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application</b>.
    Can u tell me what is the replacement of exit to URL plug ?
    Please guide me further.
    Message was edited by:
            Sonal Mangla

  • Can we call another flavor using launch button or script button

    I am creating a Welcome screen ( 1st  flavor for SMEN transaction) . However I want to call another flavor ( 2nd flavor for SMEN transaction) from 1st flavor . Second flavor will have a few transactions ( for example which are used only for budgeting , so this flavor will work as a budget cockpit) . I know we can make both flavors available in users' flavor bar , but we really wanted to give them a push button which takes them to  this new flavor . This is less confusing for users . Is there a way to do that ?
    Or is there a way to call Favorite folder ?
    Thanks

    Thamas,
    I tried doing what you suggested , but I am not able to point to the new flavor .I guess there is no control ID for a flavor and Dynpro screen for SMEN flavor are all same .
    I am not able to open up just this new flavor , my link opens up to the same welcome screen with all flavors in flavor bar.
    Thanks
    Ruchi 

  • Calling another application from a java program

    Hi, Java ppl.
    I wanted to know how can I call another program say a help application or an exe from a java program. anyone with any advice or a piece of code would help.
    Thanks
    Pradeep

    I had the same situation and I tried the code that you sugested and it works. I was wondering, what am I expecting in the while loop that appears after the int inp; statement? Is some data going to be displayed on the screen? How essential is to have that while loop after the calling the exec() method?
    Sorry for the amount of questions, I never tried this before.
    Best regards,
    Luis E.

  • Calling Apex Application using a php script

    Hi guys,how can i directly call my Apex Application using a php script.i have apex 2.1 intalled on my system.i created an application and i want my application users to connect directly to the applications login page.I mean somthing like this
    (http://127.0.0.1:8080/apex/f?p=103)
    and i want users to connect using somthing like this
    (http://my system/index.php) or localhost/index.php?
    i can run a script query and access my data stored on the database,but what i really want is to connect directly to the login page of my application,so that the staffs in HR can connect direstly to there HR application while those in Sales Will connect direcly to there applications page so it will look like this
    http://my system/hr.php
    http://mysystem/sales.php

    Originally, I had problems w/ the file being placed in
    C:/whatever.ext b/c I wasn't using relative paths.
    This is the code I use:
    $MAXIMUM_FILESIZE = 1024 * 1024 * 2; // 2MB
    $newFileLoc = "./wherever/file.jpg"
    if ($_FILES['Filedata']['size'] <= $MAXIMUM_FILESIZE) {
    move_uploaded_file($_FILES['Filedata']['tmp_name'],
    "./temporary/".$_FILES['Filedata']['name']);
    rename( "./temporary/".$_FILES['Filedata']['name'],
    $newFileLoc );
    chmod( $newFileLoc, 0777 );
    Modified from this article by Adobe:
    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=17_Networking_and_communications_173_6.html

  • How to Call another screen using the ABAP Report which is displaying ALV ou

    Hello All,
    I am developing a ABAP report in which I want to transfer the stock from material to another material.
    My Report will include 3 to screens.
    The first sleection screen will display all the material with their stock value.
    When we execute the report I will get the list of materials along with their current stock. On the top of the output screen I want the Execute button. Also , each line of the output should have checkbox or the ALV provides the functionality of editing one cell like that.....Once the user tick the checkbox or the cell....then I want to move to another screen where user can enter the Quantity and then user will tick ok and then I will call one function module so that the material documnet is posted and transfer of posting form material to material is done successfully.
    Could anyone please help me out how to call another screen from the output screen where user can enter the Quantity amount....
    I dont want to use the Dialog programming.....I want to create the simple ALV Abap report.
    Regards,
    Komal Bhutada.

    Hi Raymond,
    Thanks for the input...I will try this in my code .....
    Can you please help me how to insert the checkbox in the ALV Output....so that I can select one of row and then press execute to process further?..
    Thanks for the information.
    Regards,
    Komal.

  • My software hults when I call another application

    Greetings
    I'm developing an application (Senior) that contains a menu item that should open a dialog box upon clicking.
    and I have a separate application (selectDialog) that opens the desired dialog box.
    so, i'm calling the application (selectDialog) using the following code:
    sourceItems[0].addActionListener(
             new ActionListener() {  // anonymous inner class
               public void actionPerformed( ActionEvent event )
                   new selectDialog();
    )                             but the problem is : when I click the menu item, the application stops responding.
    and what is strange, calling the application selectDialog from it's own main class, doesn't cause any problems
    public static void main(String[] args) {
         new DemoSelectSourceDialog();
    }can you help me please in finding a way to open that dialog from my menu Item?
    Some guy in a chatting room said that JDK1.4.1 is the reason behind it. Is that true?

    Thank you all for replying
    afarmand:
    I have tried this code:
    Runtime.getRuntime().exec("DemoSelectSourceDialog");and i'm getting no errors upon compilation, but when I click the Menu Item in my program no action is
    performed!
    Here's the code of DemoSelectSourceDialog.java:
    import java.awt.Image;
    import com.asprise.util.jtwain.Source;
    import com.asprise.util.jtwain.SourceManager;
    public class DemoSelectSourceDialog extends JTwainDemoCode {
         public DemoSelectSourceDialog() {
              try {
                   Source source = SourceManager.instance().selectSourceUI();
                   if(source == null) {
                        error("No source has been selected!");
                        return;
                   source.open();
                   Image image = source.acquireImage();
                   new ImageDisplayer("DemoSelectSourceDialog", image);
              }catch(Exception e) {
                   exception(e);
              }finally{
                   SourceManager.closeSourceManager();
         public static void main(String[] args) {
              new DemoSelectSourceDialog();
    }Does the line:
    Runtime.getRuntime().exec("DemoSelectSourceDialog");
    executes the file DemoSelectSourceDialog.class, or it must be transferred to an exe file? and if so, how can we do that.

  • Help needed- Caller tone application using JTAPI and JMF

    Hi to All,
    I want to make a Caller Tone Application for Cisco IP phone.
    For that application I am using JTAPI and JMF.
    I am new to this two technologies.
    Can somebody help me for how to accomplish this?
    ---Ashish

    Hi Jerry,
    You can run analog input and counter tasks concurrently.  You can start them using software timing basically at the same time which may be fine for your needs and is the easiest to implement.  You also can use a hardware start trigger to start the tasks if you prefer.  It all depends on the level of synchronization you need. 
    You have not mentioned at what rate you will be acquiring data on your analog inputs.  The M Series PCI-6225 has 80 analog inputs and may suit your needs.  You will need to know what sampling rate you are trying to achieve.  Any M Series device will definitely give you the best value. 
    Hope this helps!
    Laura

  • How to call webservice application using Browser

    Hi Everybody,
    Synchronous Scenario:  Calling XI Server using WebServices( Sending the Customer no through Soap and from there the receiver adapter RFC is picking that no and it will send it to R/3 using BAPI and getting the Customer Details from R/3.
    I followed the below two blogs and I created the complete scenario. And I deployed the ear file in WebAs in xi server.
    Now the question is how to run this program using the browser. That is how to call.
    Message Interface Name: CDWS_MI
    Service Name                : Soap_Service
    Namespace                   : urn:xiwebservicesusingwebdynpro.com
    Can you tell me how to call through the browser?
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3592---- [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    >1
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3593---- [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    >2
    Advance thanks,
    Abdullah Shaik.

    Hi,
    It's not clear to me what you did. Have you exposed an XI Message Interface through a Web Service? Or have you developed a Web Service in the other way? What is the "ear" that you said? Is an webdynpro app? If it is, I think your question would be properly answered at WebDynpro forum
    cheers!
    roberti

  • How to pass a CString from one application to another application using WPARAM/LPARAM in sendmessage fn.

    I have two different application A & B. I am trying to send a message from A to B. In application A , I get the window handle of application B and call postmessage fn to post a message to application B. While posting the message I am trying to send a
    cstring in wparam parameter so that it can be accessed in the message handler.
    Code in Application A:
    void CTestApplnDlg::OnBnClickedOk()
     CString csProcessName = _T("FSAPP.exe");
     CFSProcess objProcess;
     HWND hFSWnd = NULL;
     if(objProcess.GetProcessHandle(csProcessName, hFSWnd))
      CString * csMessage = new CString(_T("This is message from A application."));
      ::PostMessage(hFSWnd, WM_THIRD_PARTY_NOTIFICATION, (WPARAM)csMessage
    , NULL);
    In the other application in the event event handler I try to do the following :
    LRESULT CMainFrame::OnProcessThirdPartyNotification(WPARAM wParam, LPARAM lParam)
     CString* csMessage = (CString*)wParam;
     if(csMessage )
      AfxMessageBox(*csMessage);
     return 0L;
    In the message handler fn, the variable csMessage is pointing to a address but the value is a bad ptr. On accessing the variable like *csMessage it crashes. I have created the variable in heap when the message is posted. So I hope the variable will be in memory.
    Pls help.

    The ultimate problem is that when you place a CString in a wparam like that you are putting an address.  That address only has meaning in the first program.  Your second program cannot access the first programs memory (this is good, otherwise misbehaving
    programs could take down all applications in Windows).  But it does make transferring data between programs more complicated. 
    Some messages like WM_COPYDATA will copy a data buffer from one process to another and are appropriate for what you are trying to do, but a custom message like
    WM_THIRD_PARTY_NOTIFICATION is not one of them.
    By the way your example has a memory leak as well since you would have no way to ever clean up the string you allocate in OnBnClickedOk

  • Call Another Form using Forms Personalization

    Hi All,
    I have created a Custom form using TEMPLATE.fmb and created functions in Apps and assigned to Responsibility etc and it all works OK.
    Now, I need to call this Custom form from another seeded(PO form) Via Tools -> Menu.
    using Forms personalization I can get the Menu Entry and Actions to execute the Form successfully from the PO Form.
    BUT, I need it to automatically query records in my CUSTOM form based on my current PO_HEADER_ID value on my PO Form.
    How can I do it ?
    Do I need to modify my Block and add some parameters and then pass a value via Personalization ?
    Please help !
    Thanks
    Shankar

    Duplicate thread (please post only once).
    calling Custom Form from Another Form
    calling Custom Form from Another Form
    Thanks,
    Hussein

Maybe you are looking for