How to identify PORTAL  name using IPORTALCOMPONENTREQUEST

Hi All,
We have created one portal application and we are trying to execute it from 3 different portals and trying to differentiate among portal names in the applications.Is there any mehod in the IPORTALCOMPONENTREQUEST or IPORTALCOMPONENTRESPONSE which will give me the portal name or url
Thanks
Bala Duvvuri

Specify the property in the <component-profile> in portal app.xml
for example
<components>
    <component name="HeloTest">
      <component-config>
        <property name="ClassName" value="com.sap.training.wd.HeloTest"/>
        <property name="SafetyLevel" value="no_safety"/>
      </component-config>
      <component-profile>
        <property name="PortalNAME1" value="PORTAL1">
          <property name="personalization" value="dialog"/>
        </property>
        <property name="CachingLevel" value="User"/>
      </component-profile>
    </component>
  </components>
When you open the Abstract Portal Component
Please writr this peace off code
                IPortalComponentContext contest= request.getComponentContext();
          IPortalComponentProfile profile= contest.getProfile();
          String AppURL=profile.getProperty("PortalNAME1");
If you want to enter the Portal Name at Iview Property please use the
<property name="personalization" value="dialog"/> property which will come in Iview Properties after you create Iview
Thanks,
Sreeni.

Similar Messages

  • How to identify the name of my smtp-mail host dynamically?

    Hi,
    I want to send an email from my system which has an internet connection.
    I don't know how to identify and mention the name of my smtp server ie; the smtp-host name that should be mentioned in my propetries object 'props' as props("mail.smtp.host","smtphostname");
    I want this program to work on other systems also,ie; It should dynamically find out what is the smtp-email host for the computer on which the program is running and set the smtp-host name in the 'properties' object dynamically.
    I will be thankful if anybody sends me code to solve this problem.
    Thank u in advance,
    Ravi.

    Write a mail scan to look for typical settings
    such as domain, mail.domain, smtp.domain, smtp.mail.domain
    where domain is after @ in an email address
    Have a SocketSearch class that uses non blocking via java.nio.channels.*
    so it can be interruptable and scan for these typical mail settings on default port 25 - The code using these interruptable socket can each be threaded to find the host/port and should find it in seconds
    Once found, store the settings in a configuration so you don't have to scan again unless it doesn't work anymore...
    If can't find the socket host/port via typical settings, next use a Java class that does a nslookup based on MX records - For example if you type "nslookup -type=mx javasoft.com" and you get mail exchanger = mail.java.sun.com and if you "telnet mail.java.sun.com 25" - you can see the port is open for sending emails.
    No expert in MX records for a domain to find the exact one and someone else can share some light on this...

  • How to get file name using File adapter Sync read

    Hi All,
    I am using SOA 10.1.3.3 and JDEV 10.1.3.3.
    I have an async bpel process.
    I have to read file name in this process... so i have used file adapter sync read operation.
    How can we get the file name with out payload using sync read.
    For normal read (Inbound Spec)we have UseHeaders="true" property.
    Is there any property for sync read to read the file name.
    Please help me
    Regards
    PavanKumar.M
    Edited by: [email protected] on Oct 27, 2009 11:23 PM

    Hi Eric,
    The info in the link provided by you is for a normal read.
    I need to read he file name using Sync read operation.
    Regards
    PavanKumar.M

  • How to specify table name using xdoclet

    Hi
    I'm trying to specify a table name using xdoclet 1.2.
    I've tried the @sql.table, but that ain't working (no table mapping name is
    writen to the *.jdo)
    I've tried using the @jdo.class-vendor-extension with key=table and
    value=tablename, but that ain't working either.
    I guess number two approach ain't working because kodo want table name
    extension inside another extension like this:
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="tablename"/>
    </extension>
    But, how do I specify the above using xdoclet?
    Regards
    Jesper

    Ok.
    Is it possible somehow to just tell kodo to use another table name without
    having to create mapping extensions for collections and stuff. Even better
    if one could specify a table name prefix to be used on all tables.
    My problem is that I need use kodo on an existing database having tables
    names that conflict with kodo's auto-generated tables names. The schematool
    will then try alter these tables :-(
    Regards
    Jesper
    "Stephen Kim" <[email protected]> wrote in message
    news:[email protected]...
    When you use metadata mapping extensions, you should not generate
    .mapping files as all that info is stored in the .jdo file. You should
    instead set kodo.jdbc.MappingFactory to metadata.
    Jesper Ladegaard wrote:
    Thanks.
    However, I still can't get it to work.
    I've created a java class named Role with xdoclet like this:
    * @jdo.persistence-capable
    * @jdo.class-vendor-extension
    * vendor-name="kodo" key="jdbc-class-map" value="base"
    * @jdo.class-vendor-extension
    * vendor-name="kodo" key="jdbc-class-map/table" value="BW_ROLE"
    * @jdo.class-vendor-extension
    * vendor-name="kodo" key="jdbc-class-map/pk-column" value="JDOID"
    Xdoclet generates a jdo file like this:
    <jdo>
    <package name="dk.pine.users.services.model">
    <class name="Role"
    identity-type="datastore"
    <!-- end class tag --><extension vendor-name="kodo"
    key="jdbc-class-map"
    value="base">
    </extension>
    <extension vendor-name="kodo"
    key="jdbc-class-map/table"
    value="BW_ROLE">
    </extension>
    <extension vendor-name="kodo"
    key="jdbc-class-map/pk-column"
    value="JDOID">
    </extension>
    <field name="users"
    default-fetch-group="true"
    <!-- end field tag --><collection
    element-type="dk.pine.users.services.model.User"
    embedded-element="false"
    <!-- end collection tag --></collection>
    <extension vendor-name="kodo"
    key="inverse-owner"
    value="roles">
    </extension>
    </field>
    </class>
    </package>
    </jdo>
    Now I run the mappingtool (with option refresh) and it generates a
    mapping
    file like this:
    <mapping>
    <package name="dk.pine.users.services.model">
    <class name="Role">
    <jdbc-class-map type="base" pk-column="JDOID"
    table="dbo.ROLE0"/>
    <jdbc-version-ind type="version-number"column="JDOVERSION"/>
    <jdbc-class-ind type="in-class-name" column="JDOCLASS"/>
    <field name="description">
    <jdbc-field-map type="value" column="DESCRIPTION"/>
    </field>
    <field name="name">
    <jdbc-field-map type="value" column="NAME0"/>
    </field>
    <field name="systemRole">
    <jdbc-field-map type="value" column="SYSTEMROLE"/>
    </field>
    <field name="users">
    <jdbc-field-map type="many-many"
    element-column.JDOID="JDOID" ref-column.JDOID="ROLES_JDOID"
    table="dbo.USER0_ROLES"/>
    </field>
    </class>
    </package>
    </mapping>
    I expected it to create a BW_ROLE, but it create a ROLE0 table????
    "Stephen Kim" <[email protected]> wrote in message
    news:[email protected]...
    You can use slashes to denote sub extensions.
    See the example near the bottom of this link:
    http://solarmetric.com/Software/Documentation/3.0.3/docs/ref_guide_integrati
    on_xdoclet.html
    Jesper Ladegaard wrote:
    Hi
    I'm trying to specify a table name using xdoclet 1.2.
    I've tried the @sql.table, but that ain't working (no table mapping
    name
    >>
    is
    writen to the *.jdo)
    I've tried using the @jdo.class-vendor-extension with key=table and
    value=tablename, but that ain't working either.
    I guess number two approach ain't working because kodo want table name
    extension inside another extension like this:
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="tablename"/>
    </extension>
    But, how do I specify the above using xdoclet?
    Regards
    Jesper
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • How to identify workbooks are using pre-calculated servers or not?

    Hi all,
    I have a lot of work books but i need to find out which workbooks are using precalculated servers or not ?
    How to identify it?
    Thanks
    pooja

    Hi,
    Go to transaction T code RSPRECADMIN.
    1.This has a list of all your precalculation
    server.
    2.To view what is in the queue, right
    click on a server and choose
    u201CDisplay Current Queueu201D.
    3.This queue will show all precalculation
    jobs that are open,
    currently running, or complete.
    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.

  • 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

  • How to identify same name contacts?

    Hi,
    I have many same names in my contacts, for example 3 different “John  Smith”, now how do I know which “John Smith” is calling or which “John  Smith” I am looking for to call, obviously, I have entered company name  of all the 3 contacts but in display it doesn’t show company name. So it  is very difficult to find the correct person. Wondering, why Apple has  never though of displaying company name along with contacts?
    If any one has any solution, pls. share.
    Thanks.

    Need to do such things (fake middle name) in such a beautiful "Smart Phone" to identify the contact??? Very much surprised to see this in iPhone (so far I have used other brands), I thought all this are basic things which must have been taken care by Apple.

  • How to get display name using PL/SQL

    Hello i whish to know if any one know how get the url and the display name of a page group, i ask this because i what to make a dinamic menu usgin dinamic pages.
    If any one know please let me know
    Best Regards
    Jose.

    Jose -
    Use the view WWSBR_ALL_CONTENT_AREAS.
    The Content views are documented here: http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1012/wwsbr_api_view.html
    Regards,
    Candace

  • How to identify empty InfoObjects used in a Cube

    Hello Gurus!
    I need some help. How do I find empty InfoObjects used in a Cube?
    I have 20+ Cubes and I need to identify those objects in the cubes, which are empty /not filled/. Statistics
    Except writing an ABAP
    Thanks in advance
    Martin

    Thank you for such fast response!
    @Tarak: unfortunately in the TX: LISTCUBE /or display data via RSA1/ you cannot display all characteristics for 'larger' cubes. Additionally you would have to select filter on each characteristics separately.
    @Aduri: could you please give me a more detailed hint? I know cube statistics for load requests, for storage space, for DB time, for IO in report use, but not for IO data, no data.
    @Analyst: Transactional data. Well, to check each mapping for 20+ cubes is a possibility. I have hoped to find a faster way, however.

  • How to set portal context using Java/JPDK api.

    Hi,
    I am in the process of converting pl/sql based database provider contect portlets to Java based JPDK. I ran into issue where the database provider portlet users were getting context auto matically. Now with Java/JPDK portlets , I am receiving no data found error, since the context is not set. The pl/sql is setting wwctx_private_api.set_context ('portal') to set the context. From Java if we call this api, it is taking a toll on the performance and the portlet times out.
    Can any help how to set the context for a web provider using JPDK or any other better solution. Any immediate help is highly appreciated.
    Thanks,
    Rav.

    Hi
    We are trying to access content views for e.g portal.wwsbr_all_items s, portal.wwsbr_all_content_areas c,portal.wwsbr_all_folders f, from aweb provider portlet. When we do a select on those objects , we are getting java sql exception saying "ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1745
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1579
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1834
    ORA-06512: at "PORTAL.WWCTX_API", line 199
    We need to know how to accesss the above views from a jsp based portlet.
    A

  • Oracle 8.0 - how to identify temporary tablespace using dba v$ views

    Hello experts,
    can someone tell me how can I query a v$ or dba_ view to identify which are the temporary tablespace in a 8.0.5 Oracle database?
    Thx in advance.

    8.0 did not have the concept of tempfiles.
    However, a Tablespace could be created as a Temporary tablespace (still using "normal" datafiles) with CREATE/ALTER TABLESPACE tablespacename TEMPORAR.
    Meaning : You can't query DBA_TEMP_FILES or V$TEMPFILEs. You have to query DBA_USERS to identify the designated Temporary Tablespace(s) and then query DBA_TABLESPACES for the storage parameters and then query DBA_DATA_FILES for the files.
    You can also query DBA_TABLESPACES for CONTENTS='TEMPORARY' and then query DBA_DATA_FILES.
    Hemant K Chitale

  • How to find Query name using Variable name (by Customer exit code in CMOD).

    Dear SDN,
    Enhancement name RSR00001.....Function Module name.....EXIT_SAPLRRSO_001...Include ZXRSRU01...
    Some x variable coding in done here.
    How can I find out the Query name for the X variable?
    Wating for reply...
    Thanks & Regards,
    Praveen.K

    Dear,
    I have got answer..
    Method 1 :Right click on variable in Query Designer and find the where used list.
    Method 2 : SE16--> RSZGLOBV -->Enter the variable VNAM as 'Variable Name' ->Get the VARUNIID> Go to table RSZELTXREF --> Enter the values of VARUNIID in TELTUID --> Get the list of SELTUID --> Go to table RSZCOMPDIR --> Enter the values of SELTUID in COMPUID --> Get the list of COMPID -->COMPID is the list of queries
    Thanks & Regards,
    Praveen.K

  • How to identify macbook pro using the serial

    how can I identify a macbook pro using the serial #

    http://support.apple.com/kb/HT4132
    https://selfsolve.apple.com/agreementWarrantyDynamic.do
    these links might help you

  • How to Identify database sessions used by forms sso user sessions?

    Hi:
    When using forms with SSO, all database sessions are opened by the same OSUSER (usually oracle), from the same machine (usually the forms server) and by the same program (usually [email protected] [TNS V1-V3]).
    I need a way to identify the database session (v$session) that is beeing used by a specific SSO user. By using SSO, we say implicitly that all users using that SSO resource will be connect to the database by a specific database user.
    So, what can I do to identify the database session that a specific forms user is using ?
    Thanks
    Joao Oliveira

    You could try something like the following in a when new form instance trigger:
    declare
    authenticated_username varchar2(30);
    begin
    authenticated_username := get_application_property(`sso_userid');
    DBMS_APPLICATION_INFO.SET_CLIENT_INFO (
    client_info IN VARCHAR2);
    end;
    This will store the sso userid in the client_info field of v$session.
    I hope this works for you.
    Randy McGregor

Maybe you are looking for

  • Unable to install SQL Server 2012 Developer

    I have a problem with installing SQL Server 2012 (no matter which edition I choose). Installation usually runs well, but near the end shows up an error: TITLE: Microsoft SQL Server 2012 Service Pack 1 Setup The following error has occurred: Wait on t

  • Text Flow from service order to requisition

    Hi Everyone, I having a problem regarding text flow from service orders IW31/IW32 to requisition ME53N. I created/updated a service order in IW31/IW32 and enter some text in "Operation Short Text" column. When I release the service order the short te

  • Basic and scheduling  dates & time calculation in process order creation

    Hi guru's, i have one requirement, i need to calculate and display the basic and scheduled dates & times based on the given input i.e material , plant , process order type , quantity , UOM and scheduling type ( for corresponding scheduling type user

  • Oracle Virtual Box 4.08

    Hello, Im a student using VB for a class project. My computer operating system is Vista. In the VB I'm running Windows Server 2003 Enterprise R2, The question is why windows server is not seeing my USB device? I try to mount it with the USB Icon on V

  • Unable to attach debugger to mobile app running on desktop

    I've a mobile app (Burrito with Hero SDK) running on desktop as the launch method. I'm unable to connect the debugger to that. The progress just stuck at 57% waiting to connect to the app. Any idea what I need to set or where to look further? Thanks,