How to access custom properties in .vm file

Hi,
I have created custom property for screen using File -> Project Properties.
This property apply to one of my screen.
If I want to access the value of the custom property in .vm.
How to access that value. I tried using screen.getTest() but it doesn't return anything for me.

Hi Peter,
I followed the steps.
1)created custom property
2)assign that custom property using right click on screen and assign some value
eg. custom property name - Test
and value as "abc"
i need abc in vm file.following my vm file
it's not working
<input type="text" id="a1" name="a1" value="${screen.getProperties().get("Test")}" tabindex="6" size="30" >
#set ( $value = $screen.getProperties().get("Test") )
<input type="text" id="a1" name="a1" value="$value" tabindex="6" size="30" >
#if( ${control.isVisible()})
     #if( ${control.getButtonClass().equals("submit")} )
          <input class="btn" type="button" value="Back" tabindex="#tabIndex()" onclick="javascript:back()">
     #end
     #if( ${screen.getProperties().get("Test").equals("mahesh")} )
     <input class="submit" id="submit" name="submit" type="submit" value="Submit" alt="Submit" tabindex="12">
     #else
<input class="${control.getButtonClass()}" id="${control.getEncodedID()}" name="${control.getId()}" type="submit" value="${control.getText()}" alt="${control.getText()}" tabindex="#tabIndex()">
     #end
#end
#if( ${control.getButtonClass().equals("submit")} )
</div>
#end
Edited by: 848231 on May 18, 2011 3:00 AM

Similar Messages

  • How to access custom properties on JavaBean DC attributes

    I created a DC from a Java class and defined some custom properties on one of its attributes.  How can I access these custom properties through EL?  I don't see the custom properties in the Expression Builder.

    Hey Frank
    Sorry for the sparse description.  By custom properties I mean the ones you can add through the "Custom Properties" tab in the same editor that also lets you edit the UI Hints.  This is the editor that opens when you try to edit an accessor on a data control from the DataControls.dcx viewer.  In my case, I have a TestDC data control that exposes an "employees" collection of type Employee.  Employee has the attributes "startDate", "name", and "age" which are of type java.util.Date, java.lang.String, and java.lang.Integer, respectively.  In the DataControls editor, I select the "employees" accessor and click on the pencil icon.  This opens the editor for the Employee.xml file (root element is PDefViewObject, always appears in a persdef package).  From the Overview, click on Attributes, and you'll see the Custom Properties tab below the list of attributes.  I added some properties here for one of the attributes but I don't know how these are supposed to be accessed through EL.
    Here are two screenshots in case my written description sounds confusing.
    http://imgur.com/F6XSLgl
    http://imgur.com/oHWIdCA

  • How to access custom properties in EJB

    Hello,
    I want to supply some properties (20-30) for my EJB application.
    In a non enterprise application I would put these properties into a xml file, read it at startup time by a singleton.
    This singleton holds the read information in static variables and provides them to all other classes.
    I read that with EJB static variables (and so the singleton) are forbidden.
    But what is the best way to provide the properties.
    Should they be defined in an own xml file or better put into an existing one (and which should this be)?
    And if this is done, how can I access these properties?
    I searched at goolge and in several forums, but I don't got a suitable answer.
    I hope you can help me.
    Thanks

    The Java EE spec defines simple name/value pairs for Strings and primitive values called env entries.
    You define them in ejb-jar.xml in the same place as ejb-refs and resource-refs. You can then look
    them up or inject them into your code. Here's an example :
    <env-entry>
    <env-entry-name>config1</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>foo</env-entry-value>
    </env-entry>
    In the code :
    @Resource(name="config1)
    private String c1;
    or
    String c1 = (String) new InitialContext().lookup("java:comp/env/config1");
    or
    @Resource
    private SessionContext sessionCtx;
    String c1 = (String) sessionCtx.lookup("config1");

  • How to access System properties in xml file

    hi,
    i want to read system properties in my xml file using ${} .
    I tried it but did not find any way.But when i use log4j if i set some variable in
    System properties that properties is read by the log4j.properties .
    I am writing a simple program that read a xml properties file file
    try {
                props   = new Properties();
                fis     = new FileInputStream(xmlFile);
                props.loadFromXML(fis);
    }before reading this file i set some properties and accessing this properties from that xml .but i cant.
    Thanks

    sabre150 wrote:
    fun_with_java wrote:
    can you give some example?Not really - I would have to write the code for you and I'm not getting paid for writing your code.Thanks for your kindness.
    I dont ask you to write the code.Need some help to start it .Actually i dont have knowledge that
    whether xml file automatically read it or i have prase the system property manually. Now i got the way to
    access system property in xml..
    Ok thanks again..
    Thanks & Regards

  • How to set Custom Properties in PDF

    Hi,
    We are using BIP embedded in EBS R12.
    For post-processing of PDF files, we need to embed information in PDF files which can be read by a script.
    There is Customer Properties section in every PDF file (File > Properties > Custom (tab)) where information may be stored in Name-Value pair where in Name will be a predefined information while value should coming from XML data file.
    I could not find any help/guide which demonstrates how to insert custome properties in PDF file generated from RTF template in EBS. Is this capability available in BIP?
    Please share your thoughts on this.
    br.

    You may be able to make changes to the web.xml for Infoview to handle that.
    For infoview questions you will need to create a forum post in the [Enterprise Admin forum|BI Platform;
    Edited by: Jason Everly on Aug 16, 2010 10:01 AM

  • How to access custom property for attribute and control in .vm file?

    Hi,
    I have created custom properties in OPM for attribute and apply also that properties to attribute.
    But if how to access that value in .vm file?
    I accessed using
    $attribute.getProperty("ScreenProp", "default value")
    but it's not working but same is worked for screen custom property

    $control.getProperties().get("PropertyName") works for custom properties on a control
    If you output $control and $control.getProperties() to the html you can lookup the API for the used classes.
    I can't give an example of the html because it's stripped in this forum
    Edited by: Peter van de Riet on 20-mei-2011 14:18

  • Adding custom properties to a File system Repository

    Hi KM-Experts
    I have integrated a local file server in the portal, and need to attach some custom properties to the files located on the server.
    The documentation for a File System Repository displays that this task is not possible. Is there some kind of work around?
    I can se that you can attach standard meta data like “ratings” etc.
    Cheers
    John

    Hi Robert
    Thanks a lot; I think that this will solve most of my problems.
    Can I create a CM repository based on an existing fileserver, without deleting or changing any files?
    What will happened when files are changed manually on the fileserver, will the repository crash or will a lot of dead links occur?
    If you add some files directly on the file server, will they not be visible through the portal?
    I was hoping that there was some kind of “incremental” update, which could run during the night. I know that it’s not the best solution, but I am interesting in the limits of this repository solution, because the employees access the fileservers directly during the portal implementation period.
    Cheers
    John

  • How can I access the properties of Microsoft files (excel, ppt, and word)

    Hi,
    How can I access the properties of common Microsoft file formats (Excel, Word, and Powerpoint) from a Java program. You can access/modify the properties of each document type using File->Properties in each MS application. The properties are essentially name/value pairs.
    Basically, I need to write a java program that scans a directory and accesses the properties in each of the MS files in the directory.
    thanks,
    -john

    By api. That is only way to establish a contract with the MS programs you want to interface with, unless you write an api yourself! I've used POI and it was an awesome way to use Excel in java. I created an excel spreadsheet from the results of a sql query from a batch program and then it was automatically emailed using javamail to my client. I had a lot of VBA experience with Excel, Word, and Outlook and it didn't take me long to get used to using Jakarta-POI.
    Now I see there is Jakarta-POI-HWPF which works with MS Word documents. Go to: http://jakarta.apache.org/poi/

  • HOw to access ApplicationResource.properties file using getSystemResource

    I am using struts. I need to access ApplicationResource.properties file, which I define my connection String there. All my methods are static method, so I cannot use getResourceAsStream() method from ClassLoader class, so i have to use getSystemResourceAsStream() method. However, I always get class not found error. Inputstream is always null.
    my ApplicationResource.properties file is stored in projectname/classes, and all my other classes store in projectname/classes/com/testname/. Can anybody tell me how to make it work? Thank you in advance.
    Here is my code:
    private static String getConnectionURL() throws FileNotFoundException,IOException,ClassNotFoundException
    Properties properties = new Properties();
    InputStream fromFile = ClassLoader.getSystemResourceAsStream("ApplicationResources.properties");
    if (fromFile !=null)
    properties.load(fromFile);
    String connectionURL = properties.getProperty("progressiveURL");
    return connectionURL;
    }

    Try either:
    ClassLoader.getSystemResourceAsStream("/ApplicationResources.properties");
    or
    YourClass.class.getResourceAsStream("/ApplicationResources.properties");
    in either case, you need to add the "/" prefix.

  • How to access Custom controller

    Hi all,
    How can i access custom controller objects in my other controllers.Can i call custom controller objects from component controller .

    Hi,
    I hope you mean the Custom Controller the same way we understand as defined here
    [http://wiki.sdn.sap.com/wiki/display/WDABAP/Introductiontocontrollers|http://wiki.sdn.sap.com/wiki/display/WDABAP/Introductiontocontrollers]
    To access custom controller from the component controller you have to do the following.
    1. Component controller->properties->use insert button to select the custom controller.
    2. Use the code generator (CTRL+F7) -second tab(general)->method call in used controller->select your custom controller->method.
    This will generate code like this
    DATA lo_zzsbn_cust_cc1 TYPE REF TO ig_zzsbn_cust_cc1 .
    lo_zzsbn_cust_cc1 =   wd_this->get_zzsbn_cust_cc1_ctr( ).
      lo_zzsbn_cust_cc1->test(

  • How to access custom attribute value on the timecard at runtime

    I have created 2 attributes; Project and Task.
    Once a employee selects the Project from the Projects custom LOV I want the Task LOV to display only the tasks related to that particular project.
    How to access the PROJECT_ID during runtime which the user selects from Projects LOV?

    Hi
    I have added the below text in the ldt file.
    But its not working? Any suggestions?
    What may be going wrong?
    # CSR Project List
    BEGIN HXC_LAYOUT_COMPONENTS "XXCSR1 Payroll Timecard Layout - Project"
    OWNER = "CUSTOM"
    COMPONENT_VALUE = "XXCSRPROJECT"
    REGION_CODE = "HXC_CUI_TIMECARD"
    REGION_CODE_APP_SHORT_NAME = "HXC"
    ATTRIBUTE_CODE = "XXCSR_HXC_TIMECARD_PROJECT"
    ATTRIBUTE_CODE_APP_SHORT_NAME = "HXC"
    SEQUENCE = "211"
    COMPONENT_DEFINITION = "CHOICE_LIST"
    RENDER_TYPE = "WEB"
    PARENT_COMPONENT =
    "XXCSR1 Payroll Timecard Layout - Day Scope Building blocks for worker timecard matrix"
    BEGIN HXC_LAYOUT_COMP_QUALIFIERS "XXCSR1 Payroll Timecard Layout - Project"
    OWNER = "CUSTOM"
    QUALIFIER_ATTRIBUTE_CATEGORY = "CHOICE_LIST"
    QUALIFIER_ATTRIBUTE1 = "Custom1VO"
    QUALIFIER_ATTRIBUTE4 = "N"
    QUALIFIER_ATTRIBUTE5 = "15"
    QUALIFIER_ATTRIBUTE6 =
    "XxcsrProjectId|Projects List|RESULT|N"
    QUALIFIER_ATTRIBUTE10 =
    "oracle.apps.hxc.selfservice.timecard.server.Custom1VO"
    QUALIFIER_ATTRIBUTE20 = "N"
    QUALIFIER_ATTRIBUTE21 = "Y"
    QUALIFIER_ATTRIBUTE22 = "L"
    QUALIFIER_ATTRIBUTE25 = "FLEX"
    QUALIFIER_ATTRIBUTE26 = "Projects List"
    QUALIFIER_ATTRIBUTE27 = "Attribute1"
    QUALIFIER_ATTRIBUTE28 = "Projects List"
    END HXC_LAYOUT_COMP_QUALIFIERS
    END HXC_LAYOUT_COMPONENTS
    # CSR Project List
    # CSR Task List
    BEGIN HXC_LAYOUT_COMPONENTS "XXCSR1 Payroll Timecard Layout - Task"
    OWNER = "CUSTOM"
    COMPONENT_VALUE = "XXCSRTASK"
    REGION_CODE = "HXC_CUI_TIMECARD"
    REGION_CODE_APP_SHORT_NAME = "HXC"
    ATTRIBUTE_CODE = "XXCSR_HXC_TIMECARD_TASK"
    ATTRIBUTE_CODE_APP_SHORT_NAME = "HXC"
    SEQUENCE = "212"
    COMPONENT_DEFINITION = "CHOICE_LIST"
    RENDER_TYPE = "WEB"
    PARENT_COMPONENT =
    "XXCSR1 Payroll Timecard Layout - Day Scope Building blocks for worker timecard matrix"
    BEGIN HXC_LAYOUT_COMP_QUALIFIERS "XXCSR1 Payroll Timecard Layout - Task"
    OWNER = "CUSTOM"
    QUALIFIER_ATTRIBUTE_CATEGORY = "CHOICE_LIST"
    QUALIFIER_ATTRIBUTE1 = "Custom2VO"
    QUALIFIER_ATTRIBUTE4 = "N"
    QUALIFIER_ATTRIBUTE5 = "15"
    QUALIFIER_ATTRIBUTE10 =
    "oracle.apps.hxc.selfservice.timecard.server.Custom2VO"
    QUALIFIER_ATTRIBUTE14 =
    "HxcCuiTaskProjectId|PROJECT|Y"
    QUALIFIER_ATTRIBUTE15 =
    "pro_id = ::XxcsrProjectId"
    QUALIFIER_ATTRIBUTE20 = "N"
    QUALIFIER_ATTRIBUTE21 = "Y"
    QUALIFIER_ATTRIBUTE22 = "L"
    QUALIFIER_ATTRIBUTE25 = "FLEX"
    QUALIFIER_ATTRIBUTE26 = "Projects List"
    QUALIFIER_ATTRIBUTE27 = "Attribute2"
    QUALIFIER_ATTRIBUTE28 = "Task List"
    END HXC_LAYOUT_COMP_QUALIFIERS
    END HXC_LAYOUT_COMPONENTS
    # CSR Task List
    ###########################################################

  • How to access methods in existing dll file from java

    I have a dll file and that file contains two methods.
    Now I would like to access those two methods in java program.
    How to access these methods.
    Give me the sample code for this problem.

    http://forum.java.sun.com/thread.jspa?threadID=757125&tstart=0

  • How to access my backed up icloud files

    I can't seem to figure out ...how to access my i-cloud account where my files have been backed up?  I went into some i-cloud acct, but it does not have access to my files.

    You can access all your iCloud data from within the apps on your phone (contacts, calendars, etc.).  You can't access an iCloud backup except to restore it to your device.

  • How can access data in rman output file "daily.log"

    Hi All,
    i did use following query for rman out
    output file "daily.log" has been created,but does not exist data.
    how can access data in output file "daily.log"
    bash-3.00$ sh rmant.sh
    Recovery Manager: Release 10.2.0.3.0 - Production on Thu Jun 30 16:54:16 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: DEV (DBID=45558086)
    RMAN> Spool log to daily.log;
    2> run
    3> {
    4> backup databas;
    5>}
    6> spool log off;
    7>
    Spooling started in log file: daily.log
    Recovery Manager10.2.0.3.0
    Starting backup at 30-JUN-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=634 devtype=DISK
    channel ORA_DISK_1: starting compressed incremental level 0 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00014 name=/u02/proddata/a_int01.dbf
    input datafile fno=00022 name=/u02/proddata/a_txn_data01.dbf
    input datafile fno=00023 name=/u02/proddata/a_txn_data02.dbf
    input datafile fno=00024 name=/u02/proddata/a_txn_data03.dbf
    input datafile fno=00039 name=/u02/proddata/a_txn_data04.dbf
    input datafile fno=00038 name=/u02/proddata/undo02.dbf
    input datafile fno=00027 name=/u02/proddata/a_txn_ind03.dbf
    input datafile fno=00028 name=/u02/proddata/a_txn_ind04.dbf
    input datafile fno=00012 name=/u02/proddata/undo01.dbf
    input datafile fno=00015 name=/u02/proddata/a_media01.dbf
    input datafile fno=00025 name=/u02/proddata/a_txn_ind01.dbf
    input datafile fno=00026 name=/u02/proddata/a_txn_ind02.dbf
    input datafile fno=00029 name=/u02/proddata/a_txn_ind05.dbf
    input datafile fno=00021 name=/u02/proddata/a_summ01.dbf
    input datafile fno=00019 name=/u02/proddata/a_ref01.dbf
    input datafile fno=00020 name=/u02/proddata/a_ref02.dbf
    input datafile fno=00001 name=/u02/proddata/system01.dbf
    input datafile fno=00002 name=/u02/proddata/system02.dbf
    input datafile fno=00003 name=/u02/proddata/system03.dbf
    input datafile fno=00004 name=/u02/proddata/system04.dbf
    input datafile fno=00005 name=/u02/proddata/system05.dbf
    input datafile fno=00006 name=/u02/proddata/system06.dbf
    input datafile fno=00007 name=/u02/proddata/system07.dbf
    input datafile fno=00008 name=/u02/proddata/system08.dbf
    input datafile fno=00009 name=/u02/proddata/system09.dbf
    input datafile fno=00010 name=/u02/proddata/system10.dbf
    input datafile fno=00011 name=/u02/proddata/system11.dbf
    input datafile fno=00013 name=/u02/proddata/a_archive01.dbf
    input datafile fno=00036 name=/u02/proddata/sysaux01.dbf
    input datafile fno=00016 name=/u02/proddata/a_nolog01.dbf
    input datafile fno=00037 name=/u02/proddata/izu01.dbf
    input datafile fno=00017 name=/u02/proddata/a_queue01.dbf
    input datafile fno=00018 name=/u02/proddata/a_queue02.dbf
    input datafile fno=00031 name=/u02/proddata/odm.dbf
    input datafile fno=00034 name=/u02/proddata/portal01.dbf
    input datafile fno=00035 name=/u02/proddata/sfx01.dbf
    input datafile fno=00030 name=/u02/proddata/ctxd01.dbf
    input datafile fno=00032 name=/u02/proddata/olap.dbf
    input datafile fno=00033 name=/u02/proddata/owad01.dbf
    channel ORA_DISK_1: starting piece 1 at 30-JUN-11
    channel ORA_DISK_1: finished piece 1 at 30-JUN-11
    piece handle=/sw/weekly_cum_database_DEV_t755196858_c1_s24_p1 tag=WEEKLY_CUM_DAT
    ABASE comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:32:55
    channel ORA_DISK_1: starting compressed incremental level 0 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 30-JUN-11
    channel ORA_DISK_1: finished piece 1 at 30-JUN-11
    piece handle=/sw/weekly_cum_database_DEV_t755198834_c1_s25_p1 tag=WEEKLY_CUM_DAT
    ABASE comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    Finished backup at 30-JUN-11
    Spooling for log turned off
    Recovery Manager10.2.0.3.0
    Recovery Manager complete.
    bash-3.00$

    i did try this but it hangs
    bash-3.00$ sh rmant.sh
    Recovery Manager: Release 10.2.0.3.0 - Production on Fri Jul 1 10:52:01 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: DEV (DBID=45558086)
    RMAN> Spool log to 'daily' append;
    2> run
    3> {
    4> backup as backupset
    5> incremental level=0 cumulative
    6> device type disk
    7> tag "weekly_cum_database"
    8> format '/sw/weekly_cum_database_%d_t%t_c%c_s%s_p%p'
    9> database;
    10> }
    11>

  • How to Access Custom Event using AS3?

    Hi All,
    Maybe it's that its Monday morning and my brain is still foggy, but I can't seem to figure out how to set custom events using AS3.
    I have a custom GridRow itemRenderer, and have declared the event using the appropriate metatags.
    Then I create the GR item dynamically using AS3 instantiation, but the event is not available for selection in the intellisense drop-down.
    Let's take the following as an example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Grid
         xmlns:mx="http://www.adobe.com/2006/mxml"
         xmlns:renderers="com.brassworks.renderers.*"
         creationComplete="componentInit();"
    >
         <mx:Script>
              <![CDATA[
                   private function componentInit():void
                        newRow     :MyRow     = new MyRow();
                        //newRow.myEvent is not an available option to set
              ]]>
         </mx:Script>
    </mx:Grid>
    Then the itemRenderer:
    <?xml version="1.0" encoding="utf-8"?>
    <GridRow
         xmlns:mx="http://www.adobe.com/2006/mxml"
         xmlns:classes="com.brassworks.components.classes.*"
         creationComplete="componentInit();"
    >
         <mx:Metadata>
              [Event(name="myEvent", type="flash.events.Event")]
         </mx:Metadata>
         <mx:Script>
              <![CDATA[
                   private function itemChanged(event:Event):void
                   Alert.show("test");
                   this.dispatchEvent(new Event("myEvent"));
              ]]>
         </mx:Script>
         <mx:GridItem>
              <mx:TextInput
                   change="itemChanged"
              />
         </mx:GridItem>
    </GridRow>
    How do I go about setting the handler method for custom events on instantiated items? Do I need to do this via the AddEventListener() method? Does this mean that events aren't exposed in ActionScript like they are in MXML? (In MXML all I have to do is <MyRow myEvent="handler(event)" />.)
    Thanks!
    -Mike

    Yes, I you need to do this via the addEventListener() method.
    myRow.addEventListener( "myEvent", myHandler );
    I hope that helps.
    Ben Edwards

Maybe you are looking for