How to define own properties

Hi,
I would like to know how to create own properties of own iView which can be set on EP after deploying.
For example: on URL iView can be set URL, request method, etc.
How to create parameters like these?

Hi Mrkvica,
    You can add properties in component profile of  portalapp.xml file which can be modified later.
Check out the following xml and the java code.
<?xml version="1.0" encoding="utf-8"?>
<application>
  <application-config>
    <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
  </application-config>
  <components>
    <component name="display">
      <component-config>
        <property name="ClassName" value="com.ust.table.display"/>
        <property name="SecurityZone" value="com.ust.table/high_safety"/>
      </component-config>
      <component-profile>
        <property name="System Alias" value="BWDEV" />
      </component-profile>
    </component>
  </components>
  <services/>
</application>
to get the property "System Alias" of the component.
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
         String system = request.getComponentContext().getProfile().getProperty("System Alias");

Similar Messages

  • How to Define own namespace for WebDynpro

    Hi all,
    I want to create a new WebDynpro Project in an own namespace. But during the creation process in NetWeaver Developer Studio I'm not asked for a namespace. I also didn't found any property here to configure the namespace.
    The result is that all WebDynpro projects refer to namespace "local".
    How can I configure the namespace of new WebDynpro projects?
    regards
    René

    Namespace is configured in your http://<hostname>:<port>/sld
    It is quite an elaborate process and I request you to go to
    http://service.sap.com/netweaver
    On the left hand side, check for Netweaver 04. Look in the How-to guides of NW04 for WAS. They have neatly explained the process for setting up your track, development configuration, namespace and how to import this development configuration in your NWDS.
    You may also refer to this help section :
    http://help.sap.com/saphelp_nw04/helpdata/en/38/33eb9c3e1fe2409a9eba8246b933ca/frameset.htm
    Regards,
    Subramanian V.

  • How to define configurable Properties in WAS - CE 7.1 ??

    Hi,
    You can visit NetWeaver Administrator Web Page of your server:
    [http://<server>:<port>/nwa|http://<server>:<port>/nwa]
    You must have Admin rights to do so. And you can see/edit properties from various tabs and not under single tab.
    Reason: All the properties are not assembled and may not have single portal role. They are scattered and might be you have to search into right tab (role) to modify any property after logon to portal.
    -kunal kotak

    Hi,
    Where in under NWA ????
    From where can i view all deployed application in NWA ???
    I have all administrator roles.
    Regards,
    Satya.

  • Dvt:Graph How to define own Style Rule Bundle

    Hi,
    I need help in defining style rule bundle in the backing bean to be used in the styleRuleBundle tag of dvt:graph
    say for example I nee need to define the follwing rule...
    All data value points below 50 should display in green
    from 50-80 it should be yellow and 80-100 must be red in colour...
    regards

    Add to your resource bundle:
    af_dvt_hv.fetchingData=Your textDario

  • IMP: How to define own methods for pow(), sqrt() etc?

    HI ALL!
    We designed midlet to run on a mobile phone. We have some additional trignometrical classes to integerate with the midlet. But we got astonished when we didn't find any trignometrical function in MIDP1.0 & CLDC1.0. It is now is a great panic for us.
    It is very unbelievable that Sun Microsystem doesn't provide such classes with J2ME!!
    Is there any way to define or get a free-ware trignometrical classes to use?
    We hope urgent reply from this Forum.

    Google can do wonders for questions like this: http://www.ganssle.com/approx.htm

  • How to define our own selection screen for logical database  in abap-hr?

    Hi Friends,
    Can u please help me
    How to define your own selection screens for  logical database.
    we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using  customer table like t599c, t599f and how to add to my logical database?
    Thanks in advance
    charan

    check out this online help
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
    Regards
    Raja

  • How to persist my own properties using Behavior tracking events

    Problem:
    I am trying to generate behavior tracking events.
    Now what i want is:
         To store my own properties in the database along with the existing ones defined
    for an event.
         I am working with only 2 events,namely,ClickCampaignEvent and DisplayCampaignEvent

    Problem:
    I am trying to generate behavior tracking events.
    Now what i want is:
         To store my own properties in the database along with the existing ones defined
    for an event.
         I am working with only 2 events,namely,ClickCampaignEvent and DisplayCampaignEvent

  • How to define a Custom Action in VC 6.0 ?

    Hi all
    I want to know how to define a custom action like for a check box UI Element, I want particular action to be performed when it is checked ? How can I achieve this in VC 6.0
    Please feel free to ask me if my question is unclear ?
    Regards
    Kapil

    Hi,
    Try adding an expression element on your form.
    Go to the Expression control properties and in the Expression attribute enter
    IF(@Selected==true,"X"," ")
    @Selected is the checkbox. For your function call input use the expression element and not the checkbox.
    Hope this helps. Let me know if it works.
    Thanks.

  • How to define RFC parameters

    Hi Experts,
    i am using a RFC FM to from SRM system to ERP system. in ERP system the RFC FM parameters refer to some structures or tables which are not in SRM system.
    but i should transfer these parameters in SRM system to call this RFC.
    can anyone tell me how to define the parameters in SRM system?

    Hello,
    I also had to work with RFC to call SRM function module from an ECC system. I recommend you very strongly to create your own RFC function module in SRM and your own DDIC structures in both systems with just the fields you need. This custom SRM RFC function module, map the parameters to the standard 100+ field DDIC structure and call the SRM function module (not using RFC at this time of course).
    Why did I say "very strongly" : DO NOT duplicate the 100+ field DDIC structure from SRM to your RFC client system (by transport or manual copy), because some support packages add fields to some include structures of the complex structure, and they are inserted somewhere in the middle, and so it probably makes obsolete your duplicated DDIC structure.
    Hope it's clear
    sandra

  • How to handle multiply properties.files in combined applications

    I have some applications bundled into one jar for each application. The applications make all use of a properties.file in it's own /resources/ folder within the jarfile.
    To avoid running each application on the desktop with it's own JVM and as seperate programs, I wrote a menuprogram which can start the applications within a splitted pane. Left pand is a JTree menu, right side is the applicationspace. This way i have only one JVM active and all app's can be accessed from within a single window. This menu applications also has it's own properties.file.
    I noticed that the applications now all use the same properties.file which is actually not correct. The file used is the one which belongs to the menu application.
    So i have : menu.jar, app1.jar, app2.jar, appn.jar
    The menu.jar is started and from within this application i run the other applications (jInternalFrames). All apps seems to see only the properties.file within the menu.jar IMHO because i create the objects from app1, app2 and appn from within the menu.
    QUESTION:
    How can i change the code to force each app.object to use the propsfile delivered in his own jar-file?
    Here's a code snippet used in each application.
    setPropertiesFileName("/resources/application.properties");
    try {
    is_ = getClass().getResourceAsStream(propertiesFileName);
    props.load(is_);
    catch(Exception e){
    // Debug Props
    setDEBUG_LEVEL(props.getProperty("DEBUG_LEVEL"));
    setTRACE_ENABLED(props.getProperty("TRACE_ENABLED"));
    ...

    You can do this, but is it generally a bad idea which can turn into a nightmare to manage.
    Instead each application should use a different properties file. Is there a good reason every application proeprties must have the same name and path?

  • Custom component  - how to store java Properties object in ucm environment

    Hi Experts,
    I am developing a custom component.
    my custom component code is reading a properties file and load in Properties object. Everytime this custom Service is called, properties file is read from file system and new Properties Object is created.
    Is there any way to load the Properties object once and store somewhere in UCM context ? (just like we do in JSP using application object"
    thanks!!
    Edited by: user4884609 on Jul 12, 2010 3:01 PM

    I'd say there are quite a few ways how to do it, but many of them have nothing in common with UCM.
    - I'd opt for the only "UCM" way I' aware of: as a part of custom component you can create your own properties file (it's also called environment variables) as a part of your custom component. You can, then, easily read (and write?) properties from/to the file.
    - The first option could have disadvantage, if there are too many properties. In this case you could use Java serialization - it should be UCM independent
    - Another option is to create your properties in the database - it is a bit similar to the first option, but it's more robust. Plus, you may use features of the database if you want to have some additional logic in you properties.
    - Note that you can also create a static object, which could be initialized e.g during class load

  • How to define initialization parameters in iWS6.0sp2

    I need to define an initialization parameter in iWS6.0sp2, this parameter will be used by all my servlets in an web application.
    parameter name: paraName
    parameter value should be a string: "c:/xxx/xxx/xx"
    I want to get this parameter in my servlet using :
    getInitParameter("paraName")
    it looks like I need to define it in the web-apps.xml, but not sure.
    Can somebody tell me where and how to define it. Thanks in advance.
    John

    Hi,
    You can define initargs in servlets.properties file and refer that from web-apps.xml.
    check this link for more details
    http://docs.iplanet.com/docs/manuals/enterprise/50/servlets/war.htm
    Regards
    T.Raghulan.

  • How to define a text index in data modeler

    Hello,
    how to define a text index (indextype is ctxsys.context) in data modeler?
    The SQL-command would be:
    create index P1_TEXT_BESCHR_SPRACHE on P1_PDM_MODUL_SPRACHE(BESCHREIBUNG) indextype is ctxsys.context
    parameters ('lexer global_lexer language column LANGUAGE format column FORMAT STORAGE PDMSTORE')
    online
    Thanks in advance for any help.
    Monika

    Hi Monika,
    After creating relational model, you'll have to create physical one. In physical model there is index properties dialog, where you can adjust context index properties.

  • How can i access properties from APP server through JNLP with ot using JAR

    Hello
    i want to retrive a Properties file from WL-7 app installed location like :bea/home/externalized.properties
    now i want to use this properties file throgh out the application. if any property is changed in "externalized.properties" that could be reflect dynamically in my code.
    So my requirement is :
    The current implementaion is using the JNLP down load the required code which contains the properties in .jar files, i have around 500 properties which are embedded in differnet .jar files with differnt property name. So i want to make all 500 properties to get out side from the jar files. and keep that consolidated properties in a single location and access it dynamically after deployed my ear file in wl7 app server.
    my application is implemented in SWING and EJB now i want to create an ear file which can be deployed any instance or cluster of WL7 app server.
    My Q:
    1. How can i access properties file through JNLP? (not a single property, want to access all properties in externalized.properties)
    2. is thare any known issue with SUN to load properties file through JNLP?
    your help is highly appreciated.
    -Siva

    Hey Thanks for your response,
    My question is Still not answered,
    see infact i have different type of environments to launch my application.
    infact my weblogic is deployed at remote location whihch is installed in linux,
    code is exist in our local system.
    At the time of code build for my local system i'm not able to get the properties from remote WL server,
    so at the time of code compilation and making the EAR file i'm not having this externalized properties file in newly generated EAR file.
    so once i copied my EAR in to WL7 cluster and i'm running the application using startAdminserver.sh, in this script file i'm defining the
    java -DexternalizedProperty=$WL_HOME/externalizedProperty.properties so now i'm able to get this properties to 'externalizedProperty"
    But when i download my application required jars, at this time i does not having the property file in my downloaded JAR files.
    So i want to access the remote properties file in suh sistuation.
    now i'm runnig the application at my local side to launch and Server side as well.
    So i have 2 runtimes 1 is my local and another is my server. In this case using "-DexternalizedProperty" i'm able to get this in server side,
    once control is come to local system it is not able to find this "-DexternalizedProperty" [externalizedProperty].
    Hope now u get my scenario..
    Thanks,

  • How to define complex type with table per record?

    Hi,
    for one of my tasks I'm dealing with XML export. After short investigation of the postings in the forum I found an acceptable solution:
    Re: Convert ABAP to XML and Vice versa
    The issue is that I need an XML file like this:
    <plant>
      <material>
        <purchases>data</purchases>
        <purchases>data</purchases>
        <purchases>data</purchases>
        <sales>data</sales>
        <sales>data</sales>
        <sales>data</sales>
      </material>
      <next material>
      </next material>
    </plant>
    So here are the questions:
    1. Is it possible (and how) to define such deep structured type where for each record (means material) there is at least 1 internal table connected to that record? That would let me use a record-2-DOM conversion and a standard DOM-2-XML renderer.
    2. Could anyone please provide a very simple and short example?
    Of course, I could write my own XML renderer and achieve what I need (without using DOM, simply write to file all the desired XML tags while looping at my *nested* tables), but if there is a way to define such a structured type and further to fill it with data, it would help me learn a little bit more about abap opportunities and would save me a bit more time to create a renderer.
    Many thanks in advance.
    Regards,
    Ivaylo Mutafchiev

    Hi,
    You can declare deep structure as below
    TYPES : BEGIN OF ty_address,
              house(10) TYPE c,
              street(10) TYPE c,
            END OF ty_address.
    TYPES : BEGIN OF ty_itab,
             name(10) TYPE c,
             age      TYPE i,
             address  TYPE ty_address OCCURS 0,
            END OF ty_itab.
    DATA : i_address TYPE STANDARD TABLE OF ty_address,
           i_itab    TYPE STANDARD TABLE OF ty_itab.
    DATA : wa_address TYPE  ty_address,
           wa_itab TYPE  ty_itab.
    CLEAR :  wa_address,
             wa_itab.
    wa_address-house = 'House1'.
    wa_address-street = 'Street1'.
    APPEND wa_address TO i_address.
    wa_address-house = 'House2'.
    wa_address-street = 'Street2'.
    APPEND wa_address TO i_address.
    wa_itab-name = 'Test'.
    wa_itab-age  = 10.
    wa_itab-address[] = i_address[].
    APPEND wa_itab TO i_itab.
    Also check structure BSPL_GRID_FIELDCAT field CELL_COLOR

Maybe you are looking for

  • Unable to install the ADF Mobile extension inJDeveloper version  11.1.2.3.0

    Hi, I'm trying to install the ADF Mobile extension using JDeveloper version 11.1.2.3.0. I have tried following options -: 1.) Install extension from Official Oracle Extensions and Updates . Help->Check for Updates->select Official Oracle Extensions a

  • JSP, XML, XSLT: applying XSL on JSP-generated XML doc

    Hello, I am currently trying to figure out how to do the following: let's consider (that's not entirely hypothetical :) ) a web application working with JSP (on apache/tomcat 3.1) and oracle BC4J Application modules. The JSPs call oracle webbeans to

  • How to find employees who are missing a particular infotype?

    I am trying to find people who are missing IT 0023 (Previous employer) and IT 0094 (Residence status). How do I find the employees who are missing infotypes. I can easily find people with those infotypes. Thanks Manish

  • How can I unite two vector objects?

    How to unite the red and green parts of the leaf into one solid green leaf? See attached "Leaf" file. (How do I attach the AI file?) I tried the Pathfinder UNITE command and the Live Paint MERGE command.

  • Oracle 11g DBA Training/Tutorials

    Hello, I finally have an Oracle database in my company. I'm a 10 year DBA (SQL Server, Postgres and MySQL) looking for some recommendations on where to get the best online video Tutorials for Oracle. Thanks in advance!