Identifying application name using Portal API

Hi
I have a Web Dynpro Java component that is being used in two different applications. I'm just wondering if there's a way to programmatically tell which application it was that called the component when a user enter certain input?
Regards,
Revathi Raju.

Hi Revathi Raju
There is no such API. If you need such information in your component you have to organize the logic by yourself. There are several possible ways to add such logic to the child component:
1. Use interface method with parameter which identifies a parent. Example: setMode(String mode). Parent component must invoke setMode() with concrete value.
2. Use several interface windows (interface views). Each interface view will mean specific use case of your component. Interface view's inbound plugs will help you to store the application mode in your component. Parent will embed the concrete interface view. The method also allows to provide different view layouts for each parent. In in other case it requires some routine work to clone the view layouts.
3. Use single interface view, but with several inbound plugs. Parent component will fire the concrete plug.
Personally I like the last methods the most, because it postpones the component mode determination to the WebDynpro navigation phase.
BR, Siarhei

Similar Messages

  • Portal application sync using Portal APIs

    Hi All,
    I am trying automate the EBCC sync process using Portal APIs. I think it's very
    common since it avoids the manual sync process & helpful in creating batch process
    using Ant. Is anybody did this before??, please let me know if you have any suggestions
    etc.
    Many thanks
    Zulfi

    Many thanks Deepak, It works now...
    Cheers
    Zulfi
    "Deepak Shetty" <[email protected]> wrote:
    >
    should not url be
    http://localhost:7501/portalAppDataSync/DataSyncServlet ?
    also what does the server side log show? are you able to connect to your
    datasync
    servlet
    i am not sure whether this is a weblogic error caused due to some other
    reason
    i have only done this with 4.0 not 7.0 so im not sure if this works
    bye
    deepak
    "Zulfiqar" <[email protected]> wrote:
    I am posting the Ant script since it has been deleted by the system..don't
    know
    why.
         <property name="basedir1" value="C:/bea/user_projects/sourceDomain/beaApps"/>
         <property name="deploy.system.username" value="system"/>
         <property name="deploy.system.password" value="password"/>
         <property name="deploy.syncmode" value="refresh-from-client"/>
         <property name="url" value="http://localhost:7501/portalAppDataSync"/>
         <property name="basedir" value="C:/bea/user_projects/sourceDomain/beaApps"/>
         <property name="ebcc.lib.dir" value="C:/bea/weblogic700/ebcc/lib"/>
         <property name="weblogic.lib.dir" value="C:/bea/weblogic700/server/lib"/>
         <target name="Sync">
              <java fork="true" classname="com.bea.p13n.management.data.DirectoryDataSync">
                   <arg value="-root"/>
                   <arg value="${basedir1}/portalApp-project"/>
                   <arg value="-user"/> <arg value="${deploy.system.username}"/>
                   <arg value="-password"/> <arg value="${deploy.system.password}"/>
                   <arg value="-mode"/> <arg value="${deploy.syncmode}"/>
                   <arg value="-url"/> <arg value="${url}"/>
                   <classpath>
                        <pathelement location="${weblogic.lib.dir}/weblogic.jar"/>
                        <pathelement location="${ebcc.lib.dir}/ext/jdom.jar"/>
                        <pathelement location="${ebcc.lib.dir}/ext/HTTPClient.jar"/>
                        <pathelement location="${ebcc.lib.dir}/ext/p13n_system.jar"/>
                        <pathelement location="${ebcc.lib.dir}/ext/p13n_util.jar"/>
                   </classpath>
              </java>
         </target>
    Cheers
    Syed
    "Zulfi" <[email protected]> wrote:
    Thanks Deepak, i tried on this in Portal server 7.0 by writing the
    Ant
    script which
    is attached here. It gave some errors related to XMLMarshalling. The
    Ant script
    is,
         <property name="basedir1" value="C:/bea/user_projects/sourceDomain/beaApps"/>
         <property name="deploy.system.username" value="system"/>
         <property name="deploy.system.password" value="password"/>
         <property name="deploy.syncmode" value="refresh-from-client"/>
         <property name="url" value="http://localhost:7501/portalAppDataSync"/>
         <property name="basedir" value="C:/bea/user_projects/sourceDomain/beaApps"/>
         <property name="ebcc.lib.dir" value="C:/bea/weblogic700/ebcc/lib"/>
         <property name="weblogic.lib.dir" value="C:/bea/weblogic700/server/lib"/>
         <target name="Sync">
              <java fork="true" classname="com.bea.p13n.management.data.DirectoryDataSync">
                   <arg value="-root"/>
                   <arg value="${basedir1}/portalApp-project"/>
                   <arg value="-user"/> <arg value="${deploy.system.username}"/>
                   <arg value="-password"/> <arg value="${deploy.system.password}"/>
                   <arg value="-mode"/> <arg value="${deploy.syncmode}"/>
                   <arg value="-url"/> <arg value="${url}"/>
                   <classpath>
                        <pathelement location="${weblogic.lib.dir}/weblogic.jar"/>
                        <pathelement location="${ebcc.lib.dir}/ext/jdom.jar"/>
                        <pathelement location="${ebcc.lib.dir}/ext/HTTPClient.jar"/>
                        <pathelement location="${ebcc.lib.dir}/ext/p13n_system.jar"/>
                        <pathelement location="${ebcc.lib.dir}/ext/p13n_util.jar"/>
                   </classpath>
              </java>
         </target>
    You can also see the detailed information on the attached doc. Please
    let me know
    if anybody has any clue.
    Thanks
    Zulfi
    "Deepak Shetty" <[email protected]> wrote:
    For portal 4.0 i think
    <java fork="true" classname="com.bea.p13n.management.data.DirectoryDataSync">
    <arg value="-root"/>
    <arg value="${basedir}/ebcc/portal-project/application-sync"/>
    <arg value="-user"/>
    <arg value="system"/>
    <arg value="-password"/>
    <arg value="${deploy.system.password}"/>
    <arg value="-mode"/>
    <arg value="${deploy.syncmode}"/>
    <arg value="-url"/>
    <arg value="http://${deploy.bindaddress}:${deploy.port}/portalDataSync/DataSyncServlet"/>
    <sysproperty key="bea.home" value="${deploy.bea.home}"/>
    <classpath>
    <pathelement location="${deploy.wls6.home}/lib/weblogic.jar"/>
    <pathelement location="${deploy.wlp4.home}/lib/ext/jdom.jar"/>
    <pathelement location="${deploy.wlp4.home}/lib/ext/HTTPClient.jar"/>
    <pathelement location="${deploy.wlp4.home}/lib/p13n_system.jar"/>
    <pathelement location="${deploy.wlp4.home}/lib/p13n/ejb/p13n_util.jar"/>
    </classpath>
    </java>
    inside an ant target should be what you would want to do
    HTH
    deepak
    "Zulfiqar" <[email protected]> wrote:
    Hi All,
    I am trying automate the EBCC sync process using Portal APIs. I think
    it's very
    common since it avoids the manual sync process & helpful in creating
    batch process
    using Ant. Is anybody did this before??, please let me know if you
    have
    any suggestions
    etc.
    Many thanks
    Zulfi

  • CANNOT GRANT A USER ACCESS TO VIEW A SCHEMA USING PORTAL API'S

    Hi, we are using portal 3.0.9.8.3(UNIX middle tier) on a 8.1.7.3 database (UNIX backend).
    We would like to be able to grant a group of users the rights to view only a specific table or view using the functionality of the wwexp_api_engine package. However the only way to do this seems to be to give the users "view data" privilege to "all schemas" within the portal admin. This presents a large security hole since users can could potentionaly pass in different table names (to a url) and get access to undesired tables.
    Granting executable privileges on the package(and sub packages) to the application database schema(whether public or explicit) still yields the above
    message: Error: Insufficient privileges. (WWV-10600)
    So does anyone know of a way to use the wwexp_api_engine package and restrict it to only a certain table or view of a schema? Or possibly what grants may be needed to allow the package to access the table without giving "view data" portal access to "all schemas".
    Any help would be appreciated.

    Hi,
    Try to grant "Create" global privilege to user and grant explicit privileges on the tables to the user. This way the user can create objects, but can view only those tables on which he has a privilege.
    Thanks,
    Sharmila

  • How to get all GroupSpaces name using Spaces API, irrespective of user logged in?

    Hi
    Can anyone please tell me, how to retrieve list of all group spaces using Spaces API. I have used this method getGroupSpaces(null) to retrieve all group spaces, however it returns only the logged in members groups.
    Is there any way to get all groupspaces details?
    Regards
    Raj

    i don't think so other than admin user can get all group spaces informaiton, is it possible in webcenter portal:spaces default deployment?

  • Error adding file type item using portal api

    We are using portal 3.0.8.
    I can add text and url type items fine but when i try to add a file type item, i get following error.
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.SecurityException: relative
    pathnames are not allowed(c:/abc.txt)
    ORA-06512: at "PORTAL30.WWSBR_API", line 24
    ORA-06512: at "PORTAL30.WWSBR_API", line 272
    ORA-06512: at line 4
    Please help.
    Thanks
    null

    Manoj,
    Please try to define a reproducible test case. Is this happening in all content area? Is it happening with all files, or only particular ones? What platform are you running on? What version of the database are you using?
    Have you checked your repository for invalid objects? If any exist, please try to recompile them.
    Thanks,
    Jerry

  • How To Change Application Name In Portals

    Hi Experts,
    Our scenario is like that we have created one application with name say "ABC". It was running fine and we assigned that application to 20 roles. now we want to rename the application name say "XYZ". Do we need to change the new renamed application for each role or is there any way to do it with less effort and time.
    Thanks & Regards
    Jeetendra..

    Hi thanks for your quick response.
    I mean to say we have deployed one application and that application appears as a web-DynPro application in PCD. Then i copied that application and pasted in the application folder as a page(PCD object). The page in the folder and application in webdynpro application both are having the same name.
    Now when i changed the name of the application in webDynPro (By re factoring) and deployed. The name in PCD in webdynPro application get changed but the PCD object in Folder becomes like a warning sign and shows that broken delta link.
    Now i want to know can i edit the link of the object so that it can point to the exect application or i have to copy the application and again paste as PCD object in the folder and then assign again to all 20 roles.
    Thanks & Regards
    Jeetendra....

  • Using ActiveX controls in GUI application, which uses TestStand API

    When using ActiveX controls in TestStand Operator Interface GUI,
    CVI reports User Interface Library error no.-143:
    "ActiveX control Error" on attempt to load panel, which contains ActiveX controls.
    The same code, which takes care of user interface, but not references
    TestStand ActiveX API (i.e. not creates TS Engine), works properly.
    What's wrong?

    Hello again Misha,
    Sorry about my previous answer, I overlooked the fact that you were saying this error was caused by placing ActiveX controls in your Operator Interface (OI) GUI (as my example shows I thought the problem was with GUIs displayed from step code modules).
    Nevertheless, the problem is still being caused by the same issue, and is solved in a similar fashion. The source for the CVI OI initializes the TestStand engine before it loads/displays the UI panels. The calls to initialize the engine seem to be CoInitializing the main GUI thread as multithreaded apartment (MTA) mode whereas you will need it to be single threaded apartment (STA) mode in order for the ActiveX control container to work properly. The TestStand engine is compatible with either modes, but only one can be in place at a given time. If we CoInitialize the OI's main GUI thread as STA this will solve the problem (the subsequent attempts of setting it to MTA will fail, but again this is ok since the engine is compatible with STA).
    In order to perform this functionality you will need to put a call to CoInitializeEx in the main function of the CVI OI source (this will also require that you #include the "windows.h" file at the top of the source also). Here is what the main function in your main.c file for the CVI OI will look like once you have done this:
    int main(int argc, char **argv)
    int retval = -1;
    sArgc = argc;
    sArgv = argv;
    if(InitCVIRTE(0, argv, 0) == 0) /* Initialize CVI libraries */
    goto Done; /* out of memory */
    // Intialize main GUI thread as STA to prevent other attempt to make it
    // MTA, which will not allow ActiveX controls to be used.
    CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
    /* initialize the test engine */
    if(!InitEngine())
    goto Done;
    if(!InitErrorDialogStrings())
    goto Done;
    if(!InStandaloneExecutable() && !DisplayRunningInEnvironmentWarning())
    goto Done; // get out now
    if(!ProcessPreLoginCmdlineArgs())
    goto Done;
    if(!CfgFile_Load())
    goto Done;
    if(!CfgFile_RestoreOptionSettings())
    goto Done;
    if(LoadGUIPanels() < 0)
    goto Done;
    if(!InitFileQuickList())
    goto Done;
    /* set initial gui state */
    if(!InitGUI())
    goto Done;
    RunUserInterface();
    retval = 0; /* normal exist status */
    Done:
    /* cleanup */
    SeqFileList_DeleteAllSequenceFileRecords();
    ExeList_DeleteAllRecords();
    IconList_DeleteIconList();
    SaveAndCleanupFileQuickList();
    CfgFile_SaveOptionSettings();
    CfgFile_WriteAndCleanupForExit();
    AdaptList_DeleteAdapterList();
    DestroyToolMenus();
    CloseEngine();
    FreeErrorDialogStrings();
    return retval;
    Note: Remember to #include "windows.h" at the very top of the main.c file and to include ole32.lib in your project file list in order to link in the definition for CoInitializeEx.
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • OIM Client application development using OIM API, when user password is not available

    I am developing a cleint application for OIM. The client application is a set of services, running on a separate server from where OIM is running.
    The OIM version used is 11gR2.
    As I look into the oimClient object, the login method takes username and password. As my application is in an SSO environment, I do not have the password for the user, and just have the user's login ID.
    If I am correct, the tcUtilityFactory allowed a digital signature option, to support scenarios like the above.
    Question is, does oimClient support similar functionality? I did not find any examples in the Oracle documentation.
    I will appreciate if someone can confirm a similar usage and provide me some sample code and configuration details.
    Thanks.
    -subrata

    Check: http://www.ateam-oracle.com/authenticating-oim-apis-without-end-users-password/
    -Bikash

  • A query in an Application that uses Bluetooth API..

    Hi all,
    Please see the Bluepad application using bluetooth which connects a server & a client.
    now I want to connect multiple clients with a server. but i m not getting what to change in the code. even though u connect 2 clients, the server accepts the first client only.
    u can see the Bluepad application in
    C:\SonyEricsson\JavaME_SDK_CLDC\PC_Emulation\WTK2\apps\BluePad_P9xx ( if u ve installed SonyEricsson sdk also refer BluetoothDemo in apps in which we can connect multiple clients to a server. but its 1 way communication means ony Server is sending some data to its clients but here in BluePad we r doing 2 way communication means Server & Client both send some data (byte[]) to each other.)
    or
    get Sony Ericsson SDK from sonyericsson.com
    see
    http://developer.sonyericsson.com/thread.jspa?messageID=106424&#106424
    So plz help me how to connect multiple clients with a server? not only connect but i want to do 2-way communication.
    means in that application whatever I draw in 1 device should be displayed in other devices.
    Thanks & Regards,

    Hi all,
    Please see the Bluepad application using bluetooth which connects a server & a client.
    now I want to connect multiple clients with a server. but i m not getting what to change in the code. even though u connect 2 clients, the server accepts the first client only.
    u can see the Bluepad application in
    C:\SonyEricsson\JavaME_SDK_CLDC\PC_Emulation\WTK2\apps\BluePad_P9xx ( if u ve installed SonyEricsson sdk also refer BluetoothDemo in apps in which we can connect multiple clients to a server. but its 1 way communication means ony Server is sending some data to its clients but here in BluePad we r doing 2 way communication means Server & Client both send some data (byte[]) to each other.)
    or
    get Sony Ericsson SDK from sonyericsson.com
    see
    http://developer.sonyericsson.com/thread.jspa?messageID=106424&#106424
    So plz help me how to connect multiple clients with a server? not only connect but i want to do 2-way communication.
    means in that application whatever I draw in 1 device should be displayed in other devices.
    Thanks & Regards,

  • 1) How do you identify text name used in an image? 2) How to move text in an image? 3) How to add text to match the existing text in an image?

    Thank you!

    1) You mean a font?
    Knowledge, trial and error, and/or browse the various font sites to see if you can find a match.
    2) The Move Tool (once text is added; see below).
    3) You simply click on the document using the Type Tool, type out what you want and commit by clicking the checkmark in the options bar or by pressing Enter on your keyboard. You also use the options bar to change color, size, etc.
    With the type layer active, browse using your installed fonts in the options bar. The type layer will change dynamically as you browse your fonts. (Note this is in Photoshop CC 2014; I don't believe it's in previous versions like CS6.) As I mentioned above, you probably want to find the ideal font beforehand and have it installed.

  • Identify system name using SMSID

    Hello All,
    Looking for a help, I am getting the below message on one of the SCCM 2012 Primary server. From the below SMSID, I want to identify the problematic client. Is there any way I can do so?
    "MP has rejected the request because CD(SMSID = 56AD2E95-7458-44F7-8418-395C7459E110) certificate has expired."

    Hi,
    Please have a look at the similar thread below. It fixed the problem by edit the value of IsRevoked in ClientKeyData table from 1 to 0. Note, this is not supported by Microsoft.
    https://social.technet.microsoft.com/Forums/en-US/3fd25d9d-3912-4b49-964c-fb94eedcea95/mp-has-rejected-policy-request-from-cdsmsid-because-this-smsid-is-marked-as-blocked?forum=configmanagergeneral
    Best Regards,
    Joyce
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How to get the service name of a webservice using UDDI API

    Hi,
    Iam working on setting up a dynamic partner link in a BPEL, by passing the endpoint of a web service queried from the UDDI (Oracle Service Registry 10.3 ) using the API. Iam able to do it successfully.
    Now, for example I have two operations in my wsdl, one to createCustomer and the other to bookTicket. I need to get the operation name using UDDI API so that i can pass it along with the endpoint to the partner link. ie. When i need to createCustomer, my UDDI API code will need to get the service name createCustomer and the endpoint and I would pass them to the partnerlink and the createCustomer operation of my webservice would be called.
    Can any one help me to get the service names of the wsdl using UDDI APIs.
    Thanks,
    Ananth

    Hi sia,
    1. Table is APQI
    2. field name for session name is GROUPID
    regards,
    amit m.

  • Portal API's to display "page published as a portlet" using pl/sql

    I have a custom pl/sql portlet that we have developed. We want to programatically display the contents of another portlet which is a "portal page published as a portlet". I know when you have a provider portlet you can simply call it like this:
    portal.provider_name.show();
    But how do you display a page published as a portlet using portal API's?

    Nobody has a clue?

  • How to get WD component name or application name

    Hi ,
    Is there any sap standard variable where webdynpro component name or application name get store like SY-CPORG.
    Thanks And Regards,
    Rohit

    Hi,
    You can get the application name using below code:
    DATA : lr_api      TYPE REF TO if_wd_component,
              lr_app      TYPE REF TO if_wd_application,
              lr_app_info TYPE REF TO if_wd_rr_application,
              lv_app_name TYPE string.
       lr_api = wd_comp_controller->wd_get_api( ).
       CALL METHOD lr_api->get_application
         RECEIVING
           result = lr_app.
       CALL METHOD lr_app->get_application_info
         RECEIVING
           result = lr_app_info.
       CALL METHOD lr_app_info->get_name
         RECEIVING
           result = lv_app_name.
    Now pass the lv_app_name to the FM.
    hope this helps u,
    Regards,
    Kiran

  • Application Name and URI extraction through wmi

    Does anyone know how to extract BizTalk application name and URI using WMI (C#)? 
    Thanks in advance.

    Hi Pratibha,
    Above code will only get you the application status or application collection class not the Application NAME(S). To get name of the BizTalk application, you
    need to use “Name” property of
    ExplorerOM.Application
    You cannot get BizTalk application name using WMI. Because Application concepts was first introduced in BizTalk 2006 onwards and WMI class to access the BizTalk
    was introduced in BizTalk 2004 and WMI classes were not updated after that.
    But as suggested you can use
    ExplorerOM
    to access the BiZtalk application name. Following will get you the list of applications in a string. You can update it to get the specific application or
    list of applications as shown below.
    private string GetBTSApplicationNames()
    // connect to the local BizTalk Management database
    Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer catalog = new Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer();
    string sAppNames = String.Empty;
    try
    //connection string to BizTalk management database
    catalog.ConnectionString = "SERVER=.;DATABASE=BizTalkMgmtDb;Integrated Security=SSPI";
    //Loop thru the list of applications. Here I am appending it to a string, you can do as your requirment.
    foreach (Microsoft.BizTalk.ExplorerOM.Application application in catalog.Applications)
    sAppNames += application.Name.ToString()+ " ,";
    catch (Exception ex)
    //Handle exception
    System.Diagnostics.EventLog.WriteEntry("AppError", ex.ToString());
    catalog.DiscardChanges();
    throw ex;
    return sAppNames;
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Maybe you are looking for