How to modify entity property?

I have one custom attribute xcode in the BuilHeader. I know to access to the structure struct.xcode component corresponds to access to the xcode attribute of the BuilHeader genil object. To implement getter & setter method calls with non-generic method implementation.
I have several context nodes in the view. I am enhancing one the context node called customer. Within these customer node, I have this struct.xcode. How I can modify this entity's property?
Your reply is highly appreciated.
Best regards
Banu

Hi,
Is XCODE a pure customer enhanced attribute?
Do you want to modify the property of the field, for example whether it is
  FIELD_TYPE_INPUT
or
  FIELD_TYPE_PICKLIST
Or some other property?
You may think of redefine method GET_P_XCODE in the CLCN class.
If you would like to change the value, please also check the method GET_XCODE and SET_XCODE and all the GET* methods.
You can easily get example coding from standard component, one example I am checking recently:
BT126H_APPT/ApptDetails
//BTDATE/TIME
Implementation Class CL_BT126H_A_APPTDETAILS_CN04
Hongyan

Similar Messages

  • How to modify a pod in dashboard component?

    Hi
    I am new to flex and programming in general. So please do forgive me if I do not express my query clearly or with the right info.
    I am trying to build an application to show case photographs and one of the components I am using is the Dashboard built by WASI and can be seen here. It has several pods but I would like to have one of the pods load up with my own default position, width and height yet still retain the characteristics of minimizing, maximizing & drag and drop. Other than through the pods.xml file, I do not know how to modify (or which other file I should modify for that matter) so that when the application loads, it always starts with the particular pod at my desired height (top to bottom), width (about 1/4 of screen real estate) and position (left side of the screen)
    Below is the pods.xml file and attached is the project zip file.
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    Used to specify the pod content in the dashboard sample app.
    To keep the implementation straightforward, all of the data is
    stored in this file rather than a database or separate XML files.
    -->
    <views>
        <!--
            <view> - Represents a tab.
                id - Must be unique so state can be saved properly.
                label - The label of the tab.
                <pod>
                    id - Must be unique per view so state can be saved properly.
                    type - Type of pod content. Valid values are chart, pieChart, form and list. "chart" and "pieChart" each have drill downs to one level.
                           "chart" is a fixed drill down to 30 days in a month.
                           "pieChart" is a fixed drill down to four geographical regions.
                    title - The title of the pod.
                    dataSource - The xml to load for the pod.
                    selectedViewIndex - Sets the default content view for pod content with a view stack.
                    valueField - For chart pods, the field from the xml data to use for displaying the value. This field should be numeric.
                    categoryField - For chart pods, the field from the xml data to use for displaying the category.
                    dataTipUnitLabel - Rollover label used for displaying the units.
                                       Label is delimited by "*" and places the first value before the unit and the second value after the unit. Ex: $50M.
                    dataTipLabelField - Rollover label field used for PieCharts.
                    labels - For form pods, used to label the fields.
                    dataFields - For form pods, used to assign the data fields to the form fields.
                                 The second field should always be a date expressed in milliseconds since the epoch.
        -->
        <view
            id="view0"
            label="Sales">
            <pod
                id="pod00"
                type="chart"
                title="Yearly Revenue"
                dataSource="data/revenue.xml"
                selectedViewIndex="1"
                valueField="value"
                categoryField="month"
                dataTipUnitLabel="$*M"
                dataTipLabelField="month"/>
            <pod
                id="pod06"
                type="pieChart"
                title="Revenue by Region"
                dataSource="data/revenue_by_region.xml"
                valueField="value"
                categoryField="region"
                dataTipUnitLabel="$*M"
                dataTipLabelField="region"/>
            <pod
                id="pod01"
                type="chart"
                title="Yearly Profit"
                dataSource="data/profit.xml"
                valueField="value"
                categoryField="month"
                dataTipUnitLabel="$*M"
                dataTipLabelField="month"/>
            <pod
                id="pod02"
                type="form"
                title="To Do"
                dataSource="data/tasks.xml"
                labels="Name,Date,Description"
                dataFields="name,date,description" />
            <pod
                id="pod03"
                type="list"
                title="Company News"
                dataSource="data/news.xml" />
            <pod
                id="pod04"
                type="form"
                title="Sales Pipeline"
                dataSource="data/pipeline.xml"
                selectedViewIndex="1"
                labels="Name,Date,Description"
                dataFields="name,date,description" />
            <pod
                id="pod05"
                type="chart"
                title="Projected Revenue"
                dataSource="data/projected_revenue.xml"
                valueField="value"
                categoryField="month"
                dataTipUnitLabel="$*M"
                dataTipLabelField="month"/>
        </view>
    Thank you very much for any help you may provide.
    Best regards
    Vanery

    hi,
    u may upload a file from the desktop in ur webdynpro .. thn u can save it in database and can download accordingly..
    1.create a node 'FILEUPLOAD' with 2 attributes
    a) FILECONTENT type XSTRING
    b) FILENAME type STRING
    2. Create a fileuplaod uielement
    a) bind the data property with attribute 'FILECONTENT'
    b) bind the filename property with attribute 'FILENAME'
    3. Create a button 'UPLOAD'
    a) create the action method for this button and save the contents of file in database
    Data l_node type ref to if_wd_context_node.
    Data l_stru type wd_this->elements_cn_fileupload.
    l_node = wd_context->get_child_node( 'FILEUPLOAD' ).
    l_node->get_static_attributes( importing static_attributes = l_stru ).
    "save l_stru-fielcontent in database. Your file will be saved in the database in XSTRING format.
    Now when you want to display this file;
    1. Create a Node 'FILEDOWNLOAD' with 1 attribute
    a) FILE type XSTRING
    2. Create a filedownload uielement
    a) bind the data property with the attribute 'FILE'
    Fetch the file from database and set the File attribute of the filedownload uielemnt to display the file.
    regards,
    Amit

  • How to modify calander control in OA Framework?

    Hi all,
    i want to change calander control to show different date in OA framework? please help me out to do this.

    Duplicate post? -- How can i modify calander property in OA Framework?

  • Implementing a Generic UUP Entity Property Manager

    Guys,
    My Environment is Weblogic 9.2.1 running on Solaris using Sun JDK
    1.5.x. What I am trying to accomplish is:
    Create a Entity Property manager that is deployed outside any portal
    application. Later on when portal applications are developed and
    deployed they can configure their applications to use these entity
    property managers along with their own entity property manager. In
    order to do that I need to deploy these entity property managers as
    EJBs outside any application as an EJB modules. Here is my questions:
    1. Can I deploy an Entity Property Manager independently outside any
    portal application in WebLogic Portal 9.2.
    2. If I can How can I configure my applications to use a remote Entity
    Property Manager EJB.
    Thanks.
    James Bond.

    Guys,
    My Environment is Weblogic 9.2.1 running on Solaris using Sun JDK
    1.5.x. What I am trying to accomplish is:
    Create a Entity Property manager that is deployed outside any portal
    application. Later on when portal applications are developed and
    deployed they can configure their applications to use these entity
    property managers along with their own entity property manager. In
    order to do that I need to deploy these entity property managers as
    EJBs outside any application as an EJB modules. Here is my questions:
    1. Can I deploy an Entity Property Manager independently outside any
    portal application in WebLogic Portal 9.2.
    2. If I can How can I configure my applications to use a remote Entity
    Property Manager EJB.
    Thanks.
    James Bond.

  • How to record entity changes

    Hi friends,
    I am trying to implement feature which should record entity property changes. Basicaly I want to keep history when and what has changed in a separate table.
    For example having a table similar to this and record all changes made to entities
    Entity_ID, ENTITY, old_property_value, new_property_value.
    Is it an easier way to achieve this using Persistence unit, rather than adding extra logic to each setters?
    To better illustrate my problem here is simple example. Assume we have a simple entity class like
    @Entity
    public class UserEntity implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private long id;
        private String fullName;
        public long getId() {
            return id;
        public void setId(long id) {
            this.id = id;
        public void setFullName(String fullName) {
            this.fullName = fullName;
        }Assume we call
    myEntity.setFullName("New Name");And persisting changes should add record to separate table
    ID ENTITY        OLD_VALUE    NEW_VALUE
    1  UserEntity     Old Name    New NameI can simply add extra logic to setter or create a wrapper/controller classes but maybe there is an easier way to achieve this?
    I am using glassfish application server.
    Thank you for your help!

    it depends how "efficient" you want the code to be. with some fairly straightforward JPA-only code, you could write a PostLoad hook method which recorded the current state of the entity in some sort of internal map (using the persistence annotations so that the code was not entity specific). then you could write a PrePersist hook method which takes the original state (as recorded by the PostLoad hook method) and compares it to the current state, and records any changes to your updates table. you could pile all of this into some common base class for all your persistent entities and you would be good to go. like a said, fairly straightforward to code, may not be super efficient at runtime.
    probably the most efficient way to do this would be to use some sort of aspect oriented programming/byte code manipulation to automagically annotate all the setter methods to record updates in realtime to an internal updates map. then, a similar PrePersist hook can just use this updates map to record the updates to the appropriate table. again, you can most of this in a common base object type and then manipulate the byte code at some point to insert the setter hooks. a variation on this technique, if you didn't want to go the aspect oriented route, would be to manually insert the setter hook code into every setter method. pain in the butt to maintain, but sticks to builtin JPA functionality.

  • Does anyone know what the entity property of the currency dimension does?

    Hi,
    I'm trying to figure out what the Entity property of the Currency dimension does.  All the online documentation I can find has the definition below which is not all that useful.  Has anyone uses this before and know how it can be used?
    Thanks,
    Morgan
    Online definition
    A 32-character field that can either be left blank or contain a valid
    member name of the entity dimension associated to the current model. The ENTITY property is
    validated against the entity dimension, and blank fields are allowed.

    Sounds like it provides one (extra) internet phone number that goes to their servers first. Then it could work like this:
    1) If you have the app running on your phone (oops, no background processing... perhaps this will be one of the first tests of background notifications), it uses the GPS to tell the server if you're near a landline that you've previously registered with it. If so, their server redirects the call to the landline phone.
    2) While you're on a call, you can start a conference call that includes the alternative phone (landline or iPhone) and then hang up on the old one. That would give a "seamless" switchover.

  • Configuration Manager Module - modify expanded property?

    I am playing around with the Configuration Manager module  - specifically I am trying to modify properties of a maintenance window. 
    If I run: get-CMMaintenanceWindow -collectionID xxxxxxxx
    It pulls back the collection by the ID and displays some other properties (duration, name, description, etc). I am interested in modifying the property called "IsEnabled". I can narrow down to this property by piping into:  | select -expandproperty
    "isenabled"
    How can I modify this expanded property? Currently the value is $true but I want to set it to $false (then eventually back to $true)
    I don't think I am getting creative enough. Any suggestions?

    I am stuck.
    I can query via cmdlets and acquire a collection's maintenance window and view all the properties - but cannot modify the IsEnabled (or haven't discovered how yet)
    Get-CMDeviceCollection -name "sccm-mw-prod - 1we*" | select -expandproperty collectionid | foreach-obj
    ect {Get-CMMaintenanceWindow -CollectionId $_ } | select *
    As suggested, I started digging into WMI. I was able to pull collections by name and get their members
    query for collections with "1we" in the name
    gwmi -class sms_collection -namespace "root\sms\site_xxx" | where name -like "*1we*" | select name,collectionid
    If I put the above line into variable $test and pipe it like so, I can get the members of each collection
    $test | foreach-object {gwmi -class sms_collectionmember -namespace "root\sms\site_xxx" | where classpath -lik
    e "*$_" | select name | sort}
    NOW, if I take $test and change the query so it selects * instead of just name and collectionID - I can't find any properties that indicates maintenance/service window. All I see is one that says 'ServiceWindowsCount' which is useless.
    $test = gwmi -class sms_collection -namespace "root\sms\site_xxx" | where name -like "*1we*" | select *
    I then started playing around with a different WMI class called "sms_servicewindow". 
    $test2 = gwmi -list -namespace "root\sms\site_xxx" | where name -like "sms_servicewindow"
    If I type: $test2.properties I get a list of properties but they seem like a generic list; aka, they don't pertain to a specific maintenance/service window. I do see familiar properties like IsEnabled, description, duration, etc. I could be wrong though.
    *Ultimately, I would like to have a script that I could pass certain collections to and it would set the "isenabled" field for their maintenance windows to $false instead of $true. If we need to delay patches for a specific weekend, I don't want
    to have to manually go in to each window and disable it by hand - I can just run the script. This doesn't seem possible unless I am missing something. 
    Any help is appreciated!
    EDIT: and of course, if there was an easier way in the GUI to select multiple collections and disable all of the maintenance windows I would use that too - doesn't have to be a script. But I haven't found any other way to do this in the GUI besides manually
    doing it to each collection > MW.

  • Security Exception while using Custom Entity Property Manager

    Hi,
    I am using Portal 7.0 UUP example (specified in dev2dev.com site) to implement
    custom entity property manager.
    It all works fine using Portal 7.0 admin tool.
    Now I am proving the same concept by writing java code to insert record in UUP_Example
    table.
    This is the code I am writing in my class
    UserManager userManager = getUserManager(); (calling method to get Remote Interface
    of UserManager).
    ProfileWrapper pw = userManager.createUser(identifier,password,"User");
    MyEntityPropertyManager myEntityPropertyManager=getMyEntityPropertyManager();(calling
    method to get remote interface of MyEntityPropertyManager)
    long num=myEntityPropertyManager.createUniqueId(null,identifier);
    pw.setProperty("UUPExample","word1","mike_headen");
    Code gets compiled successfully but when I execute these statements, following
    run time exception occurs:
    EJB Exception: ; nested exception is: java.lang.SecurityException: Users can only
    be modified by themselves, or by a member of the role DelegatedAdminRole||SystemAdminRole.
    This problem comes while executing last statement i.e
    pw.setProperty("UUPExample","word1","ajay_dogra");
    I know I am missing something here. Any guidance will be highly appreciated.
    Thanks
    Mike

    Mike,
    You approach is wrong and you have to code your program in a different way to
    get rid of this problem.
    Here, you are trying to update User property using pw.setProperty() even before
    authenticating and logging in the user.
    Why you are getting this error becuase user is not logged in and u are trying
    to update the user property.
    These are the steps you need to perform to update/insert user properties at the
    time of login.
    1. createUser(using usermanager.createUser).
    2. Authenticate user(Authentication.login(identifier, password, req);
    3. Initialse the profile in session
    ProfileWrapper profile =
    ProfileFactory.getProfile(identifier, null);
    4. Fire UserRegistrationEvent and Session Login event.
    5. Update user property using profilewrapper.setProperty.
    Hope this helps,
    You can either perform these steps in java or can use the usemanager custom tag
    in ur JSP.
    Thanks
    Sanjay
    Thanks
    Sanjay
    "Mike" <[email protected]> wrote:
    >
    Hi,
    I am using Portal 7.0 UUP example (specified in dev2dev.com site) to
    implement
    custom entity property manager.
    It all works fine using Portal 7.0 admin tool.
    Now I am proving the same concept by writing java code to insert record
    in UUP_Example
    table.
    This is the code I am writing in my class
    UserManager userManager = getUserManager(); (calling method to get Remote
    Interface
    of UserManager).
    ProfileWrapper pw = userManager.createUser(identifier,password,"User");
    MyEntityPropertyManager myEntityPropertyManager=getMyEntityPropertyManager();(calling
    method to get remote interface of MyEntityPropertyManager)
    long num=myEntityPropertyManager.createUniqueId(null,identifier);
    pw.setProperty("UUPExample","word1","mike_headen");
    Code gets compiled successfully but when I execute these statements,
    following
    run time exception occurs:
    EJB Exception: ; nested exception is: java.lang.SecurityException: Users
    can only
    be modified by themselves, or by a member of the role DelegatedAdminRole||SystemAdminRole.
    This problem comes while executing last statement i.e
    pw.setProperty("UUPExample","word1","ajay_dogra");
    I know I am missing something here. Any guidance will be highly appreciated.
    Thanks
    Mike

  • How to modify a pdf?

    how to modify a existing pdf document?

    Hi kewme5798,
    You can edit a PDF file if you have the  Adobe Acrobat software
    1. Open Adobe Acrobat. From the File menu select "Open." Browse to the document you wish to edit and double-click the file to open it.
      2. Add or remove pages by selecting the "Tools" menu on the right-hand side of the page. Select the "Pages" option. Choose the appropriate action: "Insert from file," "Delete," "Extract" or "Replace," to name a few options. For example, to add pages from another PDF file, click the "Insert from file" option and select the file you wish to insert. Follow the prompts to tell Acrobat where to insert the additional pages (before or after the existing pages) and click "OK." Delete pages by the clicking the "Delete" option and highlighting the pages you wanted deleted from the PDF file.
    3. Edit the text within the pages by selecting "Tools," "Content," "Edit Document Text." Highlight the text you need to edit and type in the new text.
    4. Click on "Tools," "Content" and "Edit Object" to move objects around on the page, resize them, flip or rotate them. You can also edit the size and orientation of images and text boxes using this option.
      5. Complete the necessary editing, proofread your changes and click "Save As" from the File menu.  Name your document something to indicate that it is a revised version of the original document and click the "Save" button.

  • How to modify a lookup field-type to use checkbox instead of radiobutton?

    How to modify a lookup field-type to use checkbox instead of radiobutton?
    I would like to modify the behavior for the lookup field.
    Normally you get a screen where it is possible to search through a lookup. The items resulted from the search are listed as radiobutton items. Therefore you can select only one at the time to be added.
    Is it possible to have the items to be listed as checkbox instead? So that you can check multiple items and therefore be able to add multiple items at the time?
    For example:
    To add the user to 10 different groups on MS-AD.
    It is desired to have the ability to check multiple groups to be added instead only one at the time.
    My client would like to use this feature in many other situations.

    Displaying will not be a big deal but with that you have to customize the action class and its working as well.

  • How to modify a column name & How to modify a constraint name

    How to modify a column name?
    How to modify a primary key constraint name if the pk has been referenced by another foreign key?
    Thanks.

    Hi,
    What version of oracle are you using? If it is 9i,
    then you can the command
    alter table <table_name> rename column <column_name> to <new_column>;
    if it is 8i or earlier, you can create a view with the required names.
    hth
    Always post the oracle version and the platform you are using to get better response.

  • How to modify the coding part of KE30 reports ?

    How to modify the coding part of KE30 reports ,
    so that I can be able to restrict report output based on sales office.
    I am unable to find out the program name also.
    Regards
    Anubhav

    >
    Venkat Reddy wrote:
    > Hi,
    >
    > If u want to know the program running for KE30 just go to SE93 and give KE30
    > and click on display you can see the program running for KE30 will be SAPMKCEE.
    > I think this is much simpler :-).
    >
    > Rather than change the standard report try to prepared your own that will be more
    > comfortable since it will be complex task to achieve editing the standard program.
    > Good Luck
    >
    > Regards
    > VEnk@
    >
    > Edited by: Venkat Reddy on Dec 11, 2009 4:52 PM
    Venkat,your answer is much simpler If the OP knows there is a tcode Se93, what if he/she does not know it?? 
    P.S: Just a thought.
    Regards.
    Vishwa.

  • How to use the property-loader?

    Hello,
    i´m using TS 3.5 and LV 8.0. Now i also want to use the built-in property-loader from Teststand.
    Is there somewhere a documentation for "beginners" how to use this property-loader? At the end i want to read parameters from an ascii-file which updates my input-parameters of the steps in the current-sequence.
    I know how to read and change parameters from teststand in labview via active-x, but i have no idea how to use this propertyloader-thing.
    Is there an easy help file somewhere in the net ( I havent found one yet)?
    Thanks for your help.

    Meanwhile i can use the propertyloader for Limits and Variables which are in a container of the teststep. What not worked was:
    1.) setting the properties of a "Messagebox". For example the property "Button1Label". Why is this not working?
    2.) The second thing what is not clear: Do i need for each sequence an own property-loader? I tested it with a sequence with one subsequence. Does the subsequence needs its own property-loader?
    Currently the import-csv-file looks like this:
    Start Marker,,,
    <Step Name>,Limits.Low,Limits.High,Cont.Voltage
    TestStep_1,1,2,4
    TestStep_2,8,16,32
    End Marker,,,
    When Teststep_1 and Teststep_2 are both in mainsequence then it works. When i copy Teststep_2 in a subsequence then i get an error (-18).
    Any ideas about my two questions?
    Thanks

  • How to add the property file..ie(default.properties) to a webdynpro project

    Hi All,
    How to add the property file..ie(default.properties) to a webdynpro project.
    I urgently require the solution. Kindly get it for me.
    Regards
    DK

    Hi DK,
    this is described in the second Web Dynpro Java Tutorial
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/b1a3e990-0201-0010-aeb2-a2ef5bc3da8e">creating an Extended Web Dynpro Application</a>
    Regards, Bertram

  • How to modify the text in login page?

    In login page , there are some lines text:
    This network is to be used only for legitimate business purposes. If you are not authorized to have access, do not enter this network. By entering the network, you agree to maintain its confidentiality and not to disclose or misuse the information contained in the network and you further agree to our monitoring of your use of this network.
    How to modify or delete these words ?
    Thanks

    This text is not a translation managed in the DB.  you can modify the aspx page, directly.  web\webcommon\login.aspx

Maybe you are looking for