Refreshing Entity Objects after Altering the table

Hi,
My Entity Object is based on a table... and View Objects on the Entity Objects. Now if I alter the table (just changing the width of the column), that change is not visible on the Entity Object. Is there any way I can automatically refresh the Entity Objects after altering the table(only column width is changed).
(Changes made to Entity Objects manually are reflected in the View Object correctly.)
Regards
Faiyaz

'changing the width of the column' means changing the size of the column in the table description in the database. For e.g.. In the original table I had a column OIL_KEY NUMBER(6). Now I change the column to be of size 12 i.e. OIL_KEY NUMBER(12). This does not get refreshed in the Entity Object.

Similar Messages

  • Should ADF Entity Object Map to Database Table or View?

    We are building a new 3-tier JClient/ADF application. We have mapped most entity objects directly to database tables. Now that we are preparing to deploy, our DBA is angry; he believes that all entity objects should be mapped to database views. The developers see this as a headache, UML can not forward/reverse changes, and now we have another layer of abstraction, which doesn't seem to serve a useful purpose. What is the best practice in a new 3-tier application?

    Hi,
    I'm still having problems but I found out why these tables are returning errors. The username I've been given by the DBA to connect to the database is CONSULTA, but this user is only for querying purposes, the actual objects reside on a differente schema, of course, which is PROD. So the line:
    "CONSULTA"."ESTADOS"@"PROD@AYADEV_LOCATION" "ESTADOS"
    raises an exception because the table ESTADOS is not located on that schema, but on PROD. If I query the table from SQL Plus with:
    SELECT *
    FROM [email protected]@AYADEV_LOCATION
    then there's no problem at all.
    Why is this? How do I instruct OWB to point to the correct schema or to avoind fully qualifying the table name?
    Please help me, I'm kind of confused here.
    Best Regards,
    --oswaldo.
    [osantos]

  • Fm or metod that retrieve the lock object name from the table name

    HI ALL,
    there is FM or method that retrieve the lock object name from the table name ?
    Best regards
    Nina

    CALL FUNCTION 'ENQUEUE_REPORT'            
    EXPORTING                                
    gclient                     = sy-mandt   
    gname                       = 'RCTMV'         "Table Name
      GTARG                       = ' '       
      GUNAME                      = SY-UNAME  
    IMPORTING                                 
      number                      =           
      SUBRC                       =           
      TABLES                                  
        enq                         =  lt_seqg3
    EXCEPTIONS                               
       communication_failure       = 1        
       system_failure              = 2        
       OTHERS                      = 3

  • After altering the "Processes" list in Task manager, almost all of my programs show the iTunes icon, and when I click on, for example, Firefox, iTunes will load. Uninstalling iTunes restores the normal loading of other programs, but re-installation of iT

    After altering the "Processes" list in Task manager, almost all of my programs show the iTunes icon, and when I click on, for example, Firefox, iTunes will load. Uninstalling iTunes restores the normal loading of other programs, but re-installation of iTunes makes the problem recur. Any answers?

    First I'd set up a System Restore point. Then try applying the LNK registry fix from the following document:
    File Association Fixes for Windows 7
    Does that get your icons back to normal?

  • Edit entity object and use the Create() method for generating ID's

    Hello,
    I have and InserPage.jsp and defined the datasoucre correctly.
    <jbo:InputText datasource="ds" dataitem="Clientid" /> gives me
    the unique ClientID from the FIRST client-record in my table ,
    although this page is for inserting a NEW Client, with a new
    ClientID.
    So, on the Clients Entity i made a create() method and put the
    following code in it:
    public Number getClientid() {
    return (Number)getAttributeInternal(CLIENTID);
    public void create(AttributeList attributeList) {
    SequenceImpl seq = new SequenceImpl
    ("Clientid",getDBTransaction());
    Integer i=(Integer)seq.getData();
    setClientid(new Number(i.intValue()));
    super.create(attributeList);
    the getData() Returns a sequence value, but what sequence value?
    Do i have to create a sequence on the ClientID column in my
    Oracle Table in the DB too?
    The problem is, the first ClientID # is 819 and the current last
    one seems to be 2899, so how do i achieve that when opening the
    insert.jsp the new ClientID shows up (ie. 2900)?
    How can i achieve this?
    thx

    OK, managed to track down the HowTo on triggers? I created the
    trigger.
    create sequence client_seq
    start with 8900
    increment by 1
    nomaxvalue
    nocycle;
    I changed the create() method for the entity object to:
    public void create(AttributeList attributeList) {
    SequenceImpl seq = new SequenceImpl
    ("Clientid",getDBTransaction());
    SequenceImpl s = new SequenceImpl("client_seq",
    getDBTransaction());
    Integer next = (Integer)s.getData();
    setClientid(new Number(next.intValue()));
    and running the tester for the module works fine. ;-)
    But...
    The Insert.jsp page has to insert/show this sequenced value!
    After i defined the datasource and let us say:
    <jbo:InputText datasource="ds" dataitem="Clientid" />
    ...the number 819 shows up, which is the FIRST record, so i do
    not get the new ClientID with the correct number.
    Any help is always nice. ;-)

  • Lock Object (Not locking the table)

    Hi Guys
    I have a custom table ZDRAD same like standard table DRAD with an additional 'DATE' field . ZDRAD's Key fields are same like DRAD . I have created a lock object 'EZDRAD' where I put name = 'ZDRAD' (Custom table) and mode = 'EXCLUSIVE CUMULATIVE' . Now I want to lock the table(Whole table) before modifying/Inserting/deleting the records in se38. Please check the code below and suggest me if I am passing wrong values to the lock object Function module.
    Code
    TABLES : ZDRAD.
    CALL FUNCTION 'ENQUEUE_EZDRAD'
    EXPORTING
       MODE_ZDRAD           = 'E'
       MANDT                = SY-MANDT
       DOKAR                = ' '
       DOKNR                = ' '
       DOKVR                = ' '
       DOKTL                = ' '
       DOKOB                = ' '
       OBZAE                = 0
       OBJKY                = ' '
       X_DOKAR              = ' '
       X_DOKNR              = ' '
       X_DOKVR              = ' '
       X_DOKTL              = ' '
       X_DOKOB              = ' '
       X_OBZAE              = ' '
       X_OBJKY              = ' '
       _SCOPE               = '2'
       _WAIT                = 'X'
       _COLLECT             = ' '
    EXCEPTIONS
       FOREIGN_LOCK         = 1
       SYSTEM_FAILURE       = 2
       OTHERS               = 3
    *IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    IF SY-SUBRC = 0.
    ZDRAD table is locked.
        P_L_LOCK_STAT = 'X'.
        EXIT.
      ELSE.
    ZDRAD table is not locked
        CLEAR P_L_LOCK_STAT .
      ENDIF.

    Hi Kanthimathi
    That is numeric field . Please suggest me how can i check the lock.

  • Space is not released after truncating the table

    Team,
    We have a table of size 550gigs in size and we truncated the table , truncated sucessfully but space is not released in os level, what action we can take to release the space and this table has only one row and contains the binary data.
    Thanks
    PGR

    Team,
    We have a table of size 550gigs in size and we truncated the table , truncated sucessfully but space is not released in os level, what action we can take to release the space and this table has only one row and contains the binary data.
    Thanks
    PGR
    Hello,
    Yes space wont be released immediately .If large extents are in picture which I assume is your case it goes into deferred drop a background process which will execute after some time( time may vary).See below link for details.
    As per BOL if extents are more than 128 it goes in deferred drop.
    http://msdn.microsoft.com/en-us/library/ms177495.aspx
    You should wait for some time .keep checking the free space
    Below discussion will surely help you in understanding.See Jonathan's reply
    http://social.msdn.microsoft.com/Forums/en-US/4aa2537e-246b-4bfe-818d-3482531d9149/sql-server-2005-massive-400gb-table-dropped-space-not-released
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Object Key in the table BKPF

    hi,
    can somebody tell me how the data is filling to the filed " object key"(AWKEY) in the table "BKPF". do we define this in the configuration in FI?  is there any link with the document number ??
    G

    Hi
    For every document you create the system creates automatically on reference key number and that stores in table 'BKPF' in field 'AWKEY'.
    To see the reference key number  for the document, just goto document display and click on Header Data icon.
    Regards
    Laxmiprasad

  • Entity object on a transient table

    Hi
    I have the following requirement where I need to create a monitoring UI based on a transient table.
    When a process is invoked, it creates a transient table for co-ordinating the tasks across its multiple child processes (in parallel). I need my ADF code to first check if that table is present and then redirect to a monitoring page built on top of this table. This page should not be accessible when the transient table is dropped from the database.
    Please suggest some approach to achieve this. I don't want to throw any exception to user saying that the table is missing. My code should handle it and conditionally to show the monitoring page.
    Thanks

    You could use a method call activity in a task flow (see [url http://download.oracle.com/docs/cd/E16162_01/web.1112/e16182/taskflows_activities.htm#BACFBDAE]docs). Your method call would invoke a service method on the Application Module that could execute a query (probably a read-only view object would be a nice way to do this) to check the data dictionary to see if the table exists. Then, depending upon whether the table exists or not, your method call can return one of two values, which can be used as the control flow case to take the user to the monitoring page or to wherever else you want them to go.
    I've not ever built this type of functionality before, but it seems like a workable approach.
    John

  • Accessing objects after closing the PersistenceManager

    I have a session bean which returns a collection of objects obtained from a
    query. The problem is if I close my PersistenceManager in the session bean
    method, I can't access the objects. What will happen if I don't close it?
    Won't I have a memory leak? I'm curious if I'm missing something. Here is
    my code, I cut out most of it. The println's work fine if I comment out the
    pm.close().
    public Collection searchFlights(AirportCode from, AirportCode to, Calendar
    calendar, int passengers) {
    PersistenceManager pm = null;
    try {
    pm = factory.getPersistenceManager();
    c = (Collection) q.executeWithMap(p);
    } finally {
    pm.close();
    Iterator i = c.iterator();
    while (i.hasNext()) {
    System.out.println("Flight = " + (Flight) i.next());
    return c;

    Michael-
    Firstly, you do not need to obtain and close the PersistenceManager in
    each method if you are using a stateful session bean. However, if you
    are using a stateless session bean, section 16.1.1 mandates:
    At the end of the business method, the PersistenceManager instance
    must be closed. This allows the transaction completion code in the
    PersistenceManager to free the instance and return it to the
    available pool in the PersistenceManagerFactory.
    Now, as it happens, we don't pool PersistenceManagers, and I am fairly
    sure that it would work fine if you didn't close it, but it is always
    good to respect the spec when writing portable code.
    I suspect that the problem that you might be seeing is that your session
    bean is serializing the Collection to return to the client. Note that
    the full closure of serializable fields can wind up being a huge
    performance hit (e.g., the entire object graph in the database may be
    instantiated). Bear this in mind when your code is serializing a PC.
    To get around the problem, you could throw in a quick serialization
    right before you close the PM. E.g.:
    new ObjectOutputStream (new ByteArrayOutputStream ()).writeObject (c);
    This will be a performance hit, but I doubt that it will be any more so
    than sending the entire serialized graph over the network.
    In article <[email protected]>, Michael wrote:
    I have a session bean which returns a collection of objects obtained from a
    query. The problem is if I close my PersistenceManager in the session bean
    method, I can't access the objects. What will happen if I don't close it?
    Won't I have a memory leak? I'm curious if I'm missing something. Here is
    my code, I cut out most of it. The println's work fine if I comment out the
    pm.close().
    public Collection searchFlights(AirportCode from, AirportCode to, Calendar
    calendar, int passengers) {
    PersistenceManager pm = null;
    try {
    pm = factory.getPersistenceManager();
    c = (Collection) q.executeWithMap(p);
    } finally {
    pm.close();
    Iterator i = c.iterator();
    while (i.hasNext()) {
    System.out.println("Flight = " + (Flight) i.next());
    return c;
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Refresh the drop down list after update the table

    I have tab with three pages in each page one data block. I have table with primary key of combination of the other tables foreign key. I am populating the combination of foreign key in dorp down list. In the when-new-form-instance trigger I populate the two lists, work fine. But if I add a new record in the other tables and I need this one to display in the list. I am trying to execute the same procedure which is populate the list
    First time I get this error. FRM-41337. How can refresh the list to display the new record as well.
    Thanks in advance
    null

    Hellow Tamer
    What you wanna do is to display the element entered in the List after you have added it manualy.
    I think you must re-populate the Recordgroup
    again.
    The Procedure you used to populate the RecordGroup in the When-new-Form-Instance,
    must include the statement:
    DELETE_GROUP()
    like This:
    PROCEDURE Populate_The_List(list_id ITEM, sql_stat VARCHAR2) IS
    group_id RecordGroup;
    outcome NUMBER;
    BEGIN
    --Create temporary record group.
    group_id := CREATE_GROUP_FROM_QUERY('List_Elements', sql_stat);
    IF ID_NULL(group_id) THEN
    MESSAGE('Record Group could not be created in Populate_the_List.');
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    --Populate record group.
    outcome := POPULATE_GROUP(group_id);
    IF outcome <> 0 THEN
    MESSAGE('Record Group could not be populated in Populate_the_List.');
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    --Populate list item
    POPULATE_LIST(list_id, group_id);
    --Destroy the temporary record group to release resources
    DELETE_GROUP(group_id);
    EXCEPTION
    WHEN OTHERS THEN
    MESSAGE('Internal error occurred in Populate_the_List.');
    RAISE FORM_TRIGGER_FAILURE;
    END Populate_the_List;
    SQL_STAT refers to the SQL statement used further to populate the List.
    Hope this Helps
    Regards
    Tariq

  • Can not refresh ValueObject after altering database table

    Hello All,
    In FB4, in order to refresh a service, I used to
    - select a service operation
    - select configure return type
    - select auto-detect
    - hit next and on the follow page select the existing ValueObject
    ...it would update.
    As far as I can see, this does not work in FB4.5.  Instead, after selecting auto-detect and clicking next:
    There was an error while invoking the operation. Check your operation inputs or server code and try invoking the operation again.
    Reason: Warning: mysqli_stmt_bind_result(): Number of bind variables doesn't match number of fields in prepared statement in...
    Is there a way to refresh a ValueObject.  Clicking refresh is a no go.
    Thanks for your help!
    J

    hey jay.  did you ever figure out how to update your valueObject?  I just posted a similar discussion "changing php-service in FD breaks AS3 service class and valueObjects" here: http://forums.adobe.com/thread/882288
    maybe we'll get a reply....

  • Error while alter the table

    Hi
    Please let me know reasons for this below error
    Error starting at line 32 in command:
    ALTER
    TABLE DEVELOPMENT.BRANDING_STRINGS
    ADD
    CONSTRAINT frk_strings_brandingsdetails
    FOREIGN KEY (CUSTOMIZATION_ID)
    REFERENCES BRANDING_DETAILS (CUSTOMIZATION_ID)
    Error report:
    SQL Error: ORA-02270: no matching unique or primary key for this column-list
    02270. 00000 -  "no matching unique or primary key for this column-list"
    *Cause:    A REFERENCES clause in a CREATE/ALTER TABLE statement
               gives a column-list for which there is no matching unique or primary
               key constraint in the referenced table.
    *Action:   Find the correct column names using the ALL_CONS_COLUMNS
               catalog view

    Raunaq wrote:
    The last thing it needs is people begging to gain points for themselves so that they can boost their ego by trying to reach "Guru" status to impress their friends
    What are you ?
    How can you make out that i am doing this to impress my friends?
    What you could have simply done is that you should have told me that don't ask for point ? You can use better and decent english.
    And how can you image anybody is interested in your long lectures ?? Still
    Purvesh was quoting from the forum FAQ: Re: 13. How do I answer a question on the forums?
    It is not acceptable to ask for points for your answers.  The site admiinistrators have expressed that this is not acceptable behaviour.  Such posts can be deleted or edited and continued breach of this could result in termination of your account.
    As such, your post is now going to be edited to remove your begging for points.

  • Handle to error object after calling the statement execute - SQLDBC

    Topic related to SQLDBC inteface to MaxDB
    =======================
    In C++ while i was executing the statement
    rc = stmt->execute("SELECT 'Hello SAPDB' from DUAL");
    i could get a handle to the error object by a call to
    stmt->error().getErrorText()
    Now while using SQLDBC_C i am using
    rc = SQLDBC_Statement_execute(stmt,tempstr,strlen(tempstr),encodAsciiType);
    Now how do i get the handle to the error object ??
    Call like the above one
    fprintf(stderr, "Executed SQLDBC_Statement %s",stmt->error().getErrorText());
    gives me compilation error:
    error: invalid use of undefined type `struct SQLDBC_Statement'
    /opt/sdb/programs/sdk/sqldbc/incl/SQLDBC_C.h:125: error: forward declaration of `struct SQLDBC_Statement'
    Please Help and feel free to ask me if the question is not clear.
    Regards
    Raja

    Sorry. This question doesn't make sense. So, i withdraw the question.
    Basically what I had confused with earlier and got clarified now is:
    Just like when we make a call to SQLDBC_Connection_connect and after that use the SQLDBC_Connection_getError to get a handle to the SQLDBC_ErrorHndl.
    I wanted to know how should we get a handle to the SQLDBC_ErrorHndl after we have made a call to the SQLDBC_Statement_<function call>.
    I got the answer after looking through the SQLDBC_C.h file. It will be SQLDBC_Statement_getError and similarly SQLDBC_PreparedStatement_getError.
    Wish i could award myself the 10 points for solving the problem
    Regards
    Raja

  • How to create partition after creating the table

    I have created a table. Now I want to create range partitions of that table.Please tell me how to do this?

    Yes, that is true.
    It is also possible to create a new partitioned table with exactly the same structure, ensure it has a partition, and exchange (trade) the partition for that existing table. That is outlined in the DBA manual at http://tahiti.oracle.com under chapter 17 "Managing Partitioned Tables and Indexes" close to the keywords 'exchange' or 'convert'

Maybe you are looking for