Change an attribute name in ViewCurrentRecord

When I use bean ViewCurrentRecord (from JDeveloper), how can I change a name of some attributes (eg. I dont want to see Emp, I want to see Employee)

Hi Frank,
Thanks for your help.
My need is to initialize all the rows of my VO level 5. Not only the selected ones. But i keep your solution for later :)
Today, that is what i'm doing :
- First, i use "executeWithParam" to complete a bind parameter of the first VO.
    public void executeWithParamTreeNiv1() {
        VoLvl1ViewImpl view =
            (VoLvl1ViewImpl) getLvl1View ();
        VoSourceId rowSrc =
            (VoSourceIdRowImpl) getVoSourceIdView().getCurrentRow();
        if (rowSrc != null) {
            saisPrevTreeView.setFkId(rowSrc.getId());
    }- Then, i use the method "createViewLinkAccessorRS" of the viewImpl, to pass bindParmeters between VOs.
        protected ViewRowSetImpl createViewLinkAccessorRS(AssociationDefImpl assocDef, ViewObjectImpl accessorVO,
                                                      Row masterRow, Object[] values) {
        ViewRowSetImpl v = super.createViewLinkAccessorRS(assocDef, accessorVO, masterRow, values);
        Number fkId = (Number)((ViewRowImpl)masterRow).getViewObject().getNamedWhereClauseParam("FkId");
        accessorVO.setNamedWhereClauseParam("FkId", fkId );
        v.setNamedWhereClauseParam("FkId", fkId );- Finally, i use the method "isAttributeUpdateable" of my VO level 5, to get the bind parameter and make a setAttribute.
    @Override
    public boolean isAttributeUpdateable(int i) {
        Number fkId= (Number)this.getViewObject().getNamedWhereClauseParam("FkId");
        if (fkId!= null) {
            this.setFkId(fkId);
    }What do you think about this method?
Thanks
Clément

Similar Messages

  • How to change the attribute name for a relation

    When the Data Modeler engineers a logical model into a relational model it create table columns for the relations. The names of the generated columns are listed in the attributes list in the properties dialog of the relation. The actual name of the attribute gets calculated by the attribute name of the entity which is part of the relation. This is okay, if there is only one relation between two entities. But when there are two relations between two entities the second attribute gets a stupid number suffix. This makes it impossible to give the attribute a useful semantic meaning.
    When I engineer the model into a relational model I can change the column name in the relational model. Changing the column name in the relational model is not perfect but it would be okay for me, if it would not be overwritten during the next engineering run.
    So I have two questions:
    How can I change the attribute name in the attributes section of the properties dialog of a relation? See here for screen shot:
    http://public.ceving.de/2012050300/relationattribute.png
    And if it is not possible:
    How can I preserve any changes on column names in the relational model during a re-engineering run?
    Edited by: 931739 on 03.05.2012 08:07

    Hi,
    I've logged an Enhancement request on this.
    I don't believe it's possible to change it from the Entity or Relationship dialog, as it's not updatable in these dialogs.
    What you can do is change it in the Relational Model, and then reverse engineer the change back to the Logical Model.
    David

  • Flex 3 - How to change an attribute name ?

    like this
    <item code="1" />
    to
    <item id="1" />
    thanks

    Hi Alex,
    You can use setName to change the attribute name:
    Here for example change all your id attributes with code:
    var xmlTest:XML=<r><item id="1"/></r>;
    for each (var node:XML in xmlTest.item.descendants("@id"))
    node.setName("code");
    trace(xmlTest);
    Thanks,
    Bhasker

  • How to change View Attribute Name?

    Is there a way to change the attribute name of a view object that was added from and entity Object?
    I dont want to change the Entity Attribute Name since i want to use it in diferent view objects with diferent names...

    Hi Frank
    It would be very convenient to have view object attribute name updateable because the attributes may result from different joins (to same table) and have different meaning depending more on the association than to the table attribute itself (in most case the relationship extend the meaning of the attribute).
    In my use case i have :
    A table FlexTypologyClassMatrix with two foreign key pointed to FlexTypologyClass primary table. That mean that my matrix have two axis defined by the primary key of FlexTypologyClass table.
    I created a view object that correspond to this scheme with eo's FlexTypologyClassMatrix, FlexTypologyClass as FlexTypologyClassAxisX, FlexTypologyClassAxisY).
    The view object attributes from eo's FlexTypologyClassMatrixAxisX or Y are generated from the table attribute name with a suffix like FlextypologyclassL (for FlexTypologyClassMatrixAxisX) and FlextypologyclassL1 (FlexTypologyClassMatrixAxisY).
    The attribute name are the most used item used later in the development cycle and this is not easy to distinguish the X from the Y without analyzing the view object definition. It's not a very productive way to develop application.
    It would be very convenient to permit the view object attribute name to be updateable or the alias name of the entity object in the view object has to be displayed with, every time.
    I didn't check if the info is displayed every tiem, may be it is a workaround !?
    Hope you understand what I mean. Thank you.

  • How to change the attribute names of viewobj dynamically?

    I have a table with columns eg.:
    productlineID, month1, month2, month3....
    Then I have a view object created for this table, and I would like the column names month1, month2,... to be changed dynamically from another query to get the current month (eg. 200011), such that month1 becomes 200011, month2 becomes 200012, month3 becomes 200101 etc... to make the jsp page for browsing and editing the records display the column name correctly, and also the element tag of the XML output by XMLData bean. I'm using JDev 3.1.1.2. Thank you in advance.

    five years after nobody has solution to this and I am posting same question.... interesting...

  • How to change "Relation UID" attribute name in logical model?

    Beginner question here, sorry if it has been covered already.
    In the Logical model in Data Modeler, how do I change an attribute name which is used as a "Relation UID"?
    For example, I create two entities each with a Primary UID called "id", then create a 1:1 relationship. Each entity will now have an attribute called "id1" marked as a Relation UID, but I can find no way to change the attribute's name. Is there a way?
    Thanks.

    Hi GuyM,
    you need to check setting in preferences - "Data Modeler>Model>logical" - FK attribute name synchronization - clear the check box if you want to set the name manually.
    Philip

  • Changing built in attribute names

    Can you change default attribute names? I want to keep the functionality of perspectives when using "item add" and searching but change the word perspectives to "applicable to" as an example to make it more user friendly.

    Changing the built in attribute names is not currently supported.
    Regards,
    Jerry
    PortalPM

  • How can I change a column name in table (JDeveloper 10.1.3.3)?

    I'd like to change a table column name, for example instead of "FirstName" I'd like "Name".
    Here is the preview: http://img208.imagevenue.com/img.php?image=86575_firstname_122_578lo.JPG
    Thank You in advance!

    Now I have following problem: When I change "Label text" to column which has "Combo box" (Department insted of DepartmentId) I do not have my combo box anymore, just DepartmentId (Number). I have created binding... (DepartmentId -> Department Name) Why is this happening?
    http://img151.imagevenue.com/img.php?image=47670_firstname_122_862lo.JPG
    Can I change my attribute name in data model?
    BTW I use ADFBC Swing
    Sorry on my bad English ...
    thank you
    Message was edited by:
    user638810
    Message was edited by:
    user638810
    Message was edited by:
    user638810

  • DBMS_LDAP Seems to Change Attribute Name Case

    When we use DBMS_LDAP.populate_mod_array with DBMS_LDAP.mod_replace and then DBMS_LDAP.modify_s our attribute names (not values) stored in LDAP change to all lower case from mixed case. For example, if we have Attribute Name "telephoneNumber" with an Attribute Value of "555-1212". When we change the value to "111-1111" the name changes to "telephonenumber."
    Any ideas?
    We are passing a mod_type of "telephoneNumber."

    it would help us analyze if you can post the codes. thanks.

  • Text  variable   replacementpath  with   key, attribute, name  then what

    text  variable   replacementpath  with   key, attribute, name  then  what  are the changes in my report in quary designer

    The XML 1.0 spec does not allow elements or attribute names to include spaces in the names.
    See: http://www.xml.com/axml/axml.html
    for a nice annotated version of the spec.
    [Definition:] A Name is a token beginning with a letter or one of a few punctuation characters, and continuing with letters, digits, hyphens, underscores, colons, or full stops, together known as name characters. Names beginning with the string "xml", or any string which would match (('X'|'x') ('M'|'m') ('L'|'l')), are reserved for standardization in this or future versions of this specification.

  • Changing the File Name

    Hi
    i am designing a adobe form which will be send in mail when a button is clicked, i found that the attachment name to be "unknown.pdf". how can i change this ???
    i found out a method called getAcrobatApplicationName() in XML and when i changed application name in that its not getting reflected. So is there any other way to change the file name on "Button Click" event?
    Thanks
    Gopal

    Hi Gopal,
    See if it helps:
    In NW2004s we use the following. getPdf() returns a byte[], the filename is "document-<username>.pdf" and source is the attribute of an IFrame UI element.
    code
    private void initPdf() {
    IWDResource resource =
    WDResourceFactory.createResource(
    getPdf(),
    "document-"
    + WDClientUser.getLoggedInClientUser().getSAPUser().getUniqueName(),
    WDWebResourceType.PDF);
    String source =
    resource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal());
    wdContext.currentContextElement().setSource(source);
    [/code]
    On NW2004 we use a FileDownload UI element (with target=_self) and we call initFileBinaryType method in the wdDoInit method. Of course you still need to set the binary PdfData context attribute with the actual content of the PDF file.
    code
    private void initFileBinaryType() {
    IWDModifiableBinaryType pdf =
    initFileBinaryType(IPrivateTestAppView.IContextElement.PDF_DATA);
    pdf.setFileName("document-"
    + WDClientUser.getLoggedInClientUser().getSAPUser().getUniqueName());
    pdf.setMimeType(WDWebResourceType.PDF);
    private IWDModifiableBinaryType initFileBinaryType(String attribute) {
    return (IWDModifiableBinaryType) wdContext
    .getNodeInfo()
    .getAttribute(attribute)
    .getModifiableSimpleType();
    [/code]
    Regards,
    Arafat

  • xsl:attribute name="xdofo:rowspancell-repeat-nextpage" xdofo:ctx="block" t

    <xsl:attribute name="xdofo:rowspancell-repeat-nextpage" xdofo:ctx="block">true</xsl:attribute>
    Hello, can you provide me some example on how to use this code? i tried putting this code in a field in a table however it doesn't do any changes in my report, the header still don't repeat.
    i'm aware of the word functionality to repeat a header, but due to the structure of my table, that method will changes the output of my report. the reason is i have a looping condition in that header, so if i tried to repeat it, the looping also repeats.
    to summarize my table outline:
    <HEADER1>---repeating already
    <HEADER2 with looping condition>---> the one that i want to repeat
    both headers belongs to a one table
    i tried separating the header 2 to another table but it ruins my report output
    any methods on how this can be done?
    thanks in advance! :)

    Hi All
    Thanks For Your Efforts and replays
    could anyone pls raise SR for it ?Because I do not have Privilege to do so

  • Attribute name images in table headers

    Hi all,
    it is quite easy to use attribute images for the text values in Publisher. But how can I use the attribute image for the attribute name in Publisher? I would like to have one column with an image in the header and text values to be shown for the attribute values. Is that possible and if not, what for do we have attribute images?
    Thanks in advance.
    Best regards
    Christian

    A LOB variable is actually a pointer - or as the documentation calls it, a locator variable. (why they did not call it by its real name, a pointer, needs to be questioned).
    The preferred API to use for LOB operations in PL/SQL is DBMS_LOB.
    As a LOB variable is a pointer, you do not need to create a copy of the LOB, change the copy, and overwrite the original with the copy. You can directly write to a locked row's LOB when you have a pointer to that LOB  (bypassing the SQL UPDATE statement for example).
    SQL> create table tab1( id number, document clob );
    Table created.
    SQL> -- a row is created with a lob
    SQL> insert into tab1 values( 1, 'test123.' );
    1 row created.
    SQL>SQL> -- updating the lob without an UPDATE statement
    SQL> declare
      2          doc     clob;
      3          line    varchar2(32767);
      4  begin
      5          -- create a pointer to the lob
      6          select document into doc from tab1 where id = 1 for update;
      7
      8          -- write to lob in row via pointer
      9          line := ' What do you want, universe? (Klingon translation for "Hello world.")';
    10          DBMS_LOB.WriteAppend( doc, length(line), line );
    11          commit;
    12  end;
    13  /
    PL/SQL procedure successfully completed.
    SQL>SQL> select * from tab1;
            ID DOCUMENT
             1 test123. What do you want, universe? (Klingon translation for "Hello world.")
    SQL>

  • How to change the attributes of screen fields dynamically

    <b></b>
    well i have created a table by name empmaster_data with following fields.
    *emp_id.
    *emp_fname.
    *emp_lname
    *dob.
    *doj.
    *dept.
    *desig.
    now using a single screen i want to create,change and display the information.even i am using save and exit button.
    now i want to change the attributes of screen fields dynamically like active,input,output,invisible.

    Hi,
    Have Different Radio Buttons for the purposes what you have and use AT Selection Screen Output, Under the event Use loop at screen and with continue with your requirement.
    Hope This Info Helps YOU.
    <i>Reward Points If It Helps YOU.</i>
    Regards,
    Raghav

  • Using OID in place of attribute name in an update operation

    Hi,
    I use Iplanet DS 5.0 on Solaris 8.0
    An application that I use needed a custom defined schema.
    This application tries to update entries using the OID of the attribute instead of the attribute name.
    ie. It uses
    Add: 2.5.4.58;binary
    instead of the name of the attribute -- attributeCertificateAttribute that has been defined in the directory.
    This operation fails with an objectClass violation.
    The developer pointed out that this was allowed by the RFC and that it worked with other directories.
    Later I tried replacing attribute names by their OIDs in corect LDIF files and these operations failed too.
    I have included an ethereal trace of the request and of the response.
    Question:
    Does this work on Iplanet DS? How can I get it to work ?
    Thanks,
    sriad
    Request
    =========================================
    Message Id: 2
    Message Type: Modify Request (0x06)
    Message Length: 437
    Distinguished Name: CN=User0,O=PERMIS,C=GB
    Add: 2.5.4.58;binary
    Response
    ======================================
    Message Id: 2
    Message Type: Modify Result (0x07)
    Message Length: 7
    Result Code: Objectclass violation (0x41)
    Matched DN: (null)
    Error Message: (null)

    Thank you ReubenC, the business has decided to not proceed with the LDAP configuration of web.config at this time and would rather stay with using the TNS entry for the time being; this is because we just mirgated their instance to an 11g environment and they want to ensure they have no issues with the migration before they take on web.config changes too.
    I will however try your recommendation when they choose to proceed and let you know how it turns out.
    Thank you,
    Charlie

Maybe you are looking for

  • Is there a way to view pictures sent & received?

    is there a way to view pictures and messages sent & received?

  • I'm trying to stream a movie from my Mac to my Apple TV. It doesn't work.

    I'm new to Apple TV. Trying to steam a movie from an app from my Mac to my Apple TV.

  • Save a script or copy a script with SQL Script  editor

    Hello, I try to rename a script in the script repository I've loaded using the upload command. I enter the new script name in the text field and save with the new name as the pdf doc explain (page 18-8). It does not create any new script in the repos

  • Target moviclip in main timline

    I got to moviclips on the timeline (m1_mc, m2_mc), From the timeline of m1_mc I try to rotate moviclip m2_mc. The script given below. But it result in this error : 1119: Access of possibly undefined property m2_mc through a reference with static type

  • WCS demo license

    Hi guru's, I asked cisco for a WCS demo license and i received it via mail, but my WCS 4.1.91 does not accept the license. I get the message; invalid license file, unknown feature type 'SPECTRUM_EXPERT' detected The hostname is correct, and the secon