How to create DFF and how the values will be stored in the database

Dear All,
I have created DFF in OA Framework.
That is working fine.
But i dont know how to save values of DFF.
do i need to attach EO with the View object which is used in DFF.
I would be thankful to you.
Thanks,
sheetal mittal

Hi Gorav,
Actually its seeded page so i cannot do anything with teh save functionality..
I have followed the below steps:
1) Fst i have added Flex Field in the Seeded Page . Defined all the properties , View object name etc.
2) After that i have created new custom View Object and entity object then add that EO in the custom VO..
3) After that i have extended AM to add new custom View Object.
4) After that i have extended CO and written following code :
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
NegotiationCreationAM negotiationcreationam = (NegotiationCreationAM)pageContext.getApplicationModule(webBean);
int StrAucId = negotiationcreationam.getAuctionHeaderId();
String strAuctionId = String.valueOf(StrAucId);
Serializable[] Params = {strAuctionId};
am.invokeMethod("InitLoad",Params);
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
NOTE: AuctionHeaderId is the primary key of the page.
5) I ahve written the below code in AM.
public void InitLoad(String strHeaderId)
OAViewObject vo = (OAViewObject)getxxEarnestDffVO1();
if (vo.getRowCount() == new Number(0).intValue())
Row row = vo.createRow();
vo.setWhereClause(" AUCTION_HEADER_ID = " + strHeaderId);
vo.executeQuery();
else
vo.setWhereClause(" AUCTION_HEADER_ID = " + strHeaderId);
vo.executeQuery();
6) But when i am saving the details it gives me :
Unable to perform transaction on the record.
Cause: The record contains stale data. The record has been modified by another user.
Action: Cancel the transaction and re-query the record to get the new data.
Please help me out.
regards,
sheetal

Similar Messages

  • How salvage value will be treated while calculating the depreciation

    Hi,
    while calculating depreciation how salvage value will be treated depreciable base?
    Thanks & Regards
    Sap Guru

    If APC value is 10000 and salvage Value is 500 then the depreciation will be calculated as net of these two values and calcluates the depreciation.
    | am not able to understand the your doubt correctly.
    sarma

  • Creating URL and fetching the parameters

    Hi,
    In my webdynpro application I hav to create a URL that shud take me to a new IView and in that URL I have to give certain Parameters that I have to fetch as application parameters.I am not aware how to create URL and give the PCD path of the new iView and the Parameters that I hav to fetch. I have seen some of the threads but I am not able to find out the clear picture.Could anyone help me out?
    This is really urgent.
    Thanxs in advance.

    Hi,
    You can navigate from one view to another using portal navigation
    WDPortalNavigation.navigateAbsolute();
    The above method needs various parameters which are shown<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm">here</a>
    Warm Regards,
    Murtuza

  • How the database interpreter identifies the database system being used

    Hi All,
    How the database interface identifies which database system is being used by the SAP, so that it converts open SQL statements into the correspoding Native SQL statements understood by the database system.
    Thank you.

    You can more information through FM DB_DBRELINFO.  And indeed even more through other function modules in the group SDBI_DBINFO.
    matt

  • Include or create a view in the database and use this view?

    Well, I need to get related data of the main table from another related tables, so one way to do that is to use the Include method in Entity Framework to get this related data.
    However, I am thinking in another option, create a view in the database and use this view in entity framework. In this way, I avoid the needed of the include, because I think that is expensive in resources. But I am no very sure about that.
    I would like to know if the use of views on entity framework is a good idea to improve the performace or is better to use the include.
    For example, if I use the include I have the advantage that I get only one the main record and all the related data I have in the navigation properties, so the info is more shorted.
    Which is the advanteges and disadvantages of both methods to get related data in entity framework?
    Thank so much.

    Hello ComptonAlvaro,
    >>I would like to know if the use of views on entity framework is a good idea to improve the performace or is better to use the include.
    If your view would use a Join syntax to query master-child relationship tables, it actually is similar with the Include() method which actually results a duplicate records from master table, you could check this
    link for detail description.
    >>Which is the advanteges and disadvantages of both methods to get related data in entity framework?
    One visible difference is that records from Views are not editable by default(if you want edit them, you could refer to this
    blog).
    In your case, my suggestion that you could use the lazying load which will load the matter table once and disable the trace if you only need to display data.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Hello there, I am creating a database of all our companies press contacts. I would like to create a form that would act as the front end and feed the database which is obviously the back end. The database is in Access 2013. My question is to whether this

    Hello there, I am creating a database of all our companies press contacts. I would like to create a form that would act as the front end and feed the database which is obviously the back end. The database is in Access 2013. My question is to whether this is indeed possible?

    This forum thread appears to point towards the problem.
    Re: Unable to Switch Audio Sync Settings

  • Error message an error occurred while signing in " when I worked with Create PDF and at the signed

    Error message "an error occurred while signing in " when I worked with Create PDF and at the signed in status. Please help so that I can continu my work.

    Hi Stacy,
    Thank you for your attention.
    I have been working with Create PFD under normal procedures including
    sign-in and several documents had been finished. However, when continued
    creating another document the computer took a long time to pprocess and
    finally a mesage appeared: "An error occurred while signing in" and stopped
    there. I clicked the OK button and start creating again and the same
    message appeared once more. I tried to log off and log in again in no
    avail. So I went to the help site and called for help.
    Later, I decided to reboot the computer and tried once more. This time it
    worked and I continued creating. Thanks.
    laozhao39

  • Import and export the database table

    I would like to know what is the syntax of using imp.exe and exp.exe to import and export the database table?
    Could anyone teach me what is the syntax and how could do the export and import in the Forms?
    Thanks a loT~

    try: imp help=yes
    Or read the documentation online on OTN.

  • Shell Script  for Startup and Shutdown the database

    Hi,
    i want Shell Script for Startup and Shutdown the database in Solaries.
    could any one can hep me where i can get this script. or send to me to [email protected]
    Thanks & Regards,
    Gangi reddy

    SHUTDOWN
    SHUTDOWN ABORT]
    Shuts down a currently running Oracle instance, optionally closing and dismounting a database.
    Terms
    Refer to the following list for a description of each term or clause:
    ABORT
    Proceeds with the fastest possible shutdown of the database without waiting for calls to complete or users to disconnect.
    Uncommitted transactions are not rolled back. Client SQL statements currently being processed are terminated. All users currently connected to the database are implicitly disconnected and the next database startup will require instance recovery.
    You must use this option if a background process terminates abnormally.
    IMMEDIATE
    Does not wait for current calls to complete or users to disconnect from the database.
    Further connects are prohibited. The database is closed and dismounted. The instance is shutdown and no instance recovery is required on the next database startup.
    NORMAL
    NORMAL is the default option which waits for users to disconnect from the database.
    Further connects are prohibited. The database is closed and dismounted. The instance is shutdown and no instance recovery is required on the next database startup.
    TRANSACTIONAL [LOCAL]
    Performs a planned shutdown of an instance while allowing active transactions to complete first. It prevents clients from losing work without requiring all users to log off.
    No client can start a new transaction on this instance. Attempting to start a new transaction results in disconnection. After completion of all transactions, any client still connected to the instance is disconnected. Now the instance shuts down just as it would if a SHUTDOWN IMMEDIATE statement was submitted. The next startup of the database will not require any instance recovery procedures.
    The LOCAL mode specifies a transactional shutdown on the local instance only, so that it only waits on local transactions to complete, not all transactions. This is useful, for example, for scheduled outage maintenance.
    Usage
    SHUTDOWN with no arguments is equivalent to SHUTDOWN NORMAL.
    You must be connected to a database as SYSOPER, or SYSDBA. You cannot connect via a multi-threaded server. For more information about connecting to a database, see the CONNECT command earlier in this chapter.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm#1013607
    Joel Pérez

  • How to get both, the ResultSet and Output (return value) from Oracle Stored Procedure

    Hi! I am doing a conversion from MSSQL to Oracle with C++ and MFC ODBC. Any comment is appreciated!! I have Oracle 8i and Oracle ODBC 8.1.6 installed.
    My question is how to retrieve the return value AND ALSO the resultSet at the same time by using Oracle function without modifying my souce codes (except puttting mypackage. string infron of my procedure name, see below).
    -- My source code in C++ with MSSQL ....
    sqlStr.Format("{? = call ListOfCustomers(%i)}", nNameID);
    RcOpen = CustomerList.Open(CRecordset::forwardOnly, sqlStr, CRecordset::readOnly );
    Where CustoemrList is a Crecordset object...
    IN DoFieldExchange(CFieldExchange* pFX) I have ...
    //{{AFX_FIELD_MAP(CQOSDB_Group)
    pFX->SetFieldType(CFieldExchange::outputColumn);
    RFX_Long(pFX, T("Name"), mCustoemrName);
    //}}AFX_FIELD_MAP
    // output parameter
    pFX->SetFieldType( CFieldExchange::outputParam );
    RFX_Int( pFX, T("IndexCount"), mCustomerNumber);
    -- m_CustomerNumber is where i store the return value!!!
    -- In Oracle Version, i have similar codes with ...
    sqlStr.Format("{? = call mypackage.ListOfCustomers(%i)}", nNameID);
    RcOpen = CustomerList.Open(CRecordset::forwardOnly, sqlStr, CRecordset::readOnly );
    -- I have oracle package/Body codes as following...
    create or replace package mypackage
    as
    type group_rct is ref cursor;
    Function listgroups(
    nameID NUMBER ,
    RC1 IN OUT Mypackage.group_rct ) return int;
    end;
    Create or replace package body mypackage
    as
    Function listgroups(
    NameID NUMBER ,
    RC1 IN OUT Mypackage.group_rct )return int
    IS
    BEGIN
    OPEN RC1 FOR SELECT Name
    from Customer
    WHERE ID = NameIDEND ListGroups;
    END
    return 7;
    END listgroups;
    END MyPackage;
    Ive simplified my codes a bit....
    null

    yes, it is exactly what i want to do and I am using Oracle ODBC driver.
    I tried using procedure with 1 OUT var fo numeric value and the other IN OUT ref cursor var instead of function, but error occurs when I called it from the application. It give me a memory ecxception error!!
    sqlStr.Format("{? = call ListOfCustomers(%i)}", nNameID);
    RcOpen = CustomerList.Open(CRecordset::forwardOnly, sqlStr, CRecordset::readOnly );
    it seems to me that the ? marker var is making all the trouble... can you please give me any more comment on this?? thanks!
    null

  • How Do I Duplicate a NOARCHIVELOG to another server and change the database

    I have two servers each with a different copy of the same database.. we'll call the database POPEYE
    server A has a STAGE version of POPEYE that is in NOARCHIVELOG mode
    server B has the PRODUCTION version of POPEYE
    I need to get the database on server A and copy it to run next to the existing database on server B.
    since they have the same name, i need to change the name to POPEYESTAGE when I move it over.
    both running Windows Server 2008. both running Oracle 10g.
    I tried shutting down the database on server A, copying over the files with a new PFile and ran the CREATE CONTROLFILE script into the trace and took out all the junk, but I cannot connect to execute it.
    I copied all the files over and when I try to commect as sysdba using sqlplus i get TNS:could not resolve the connect identifier specified.
    i tried adding it to the listener and TNS names files, but it didnt work.
    I'm trying RMAN now with some difficulty.
    I am brand new to Oracle administration, this is my first administrative assignment. Please advise

    sb92075 wrote:
    876137 wrote:
    I have two servers each with a different copy of the same database.. we'll call the database POPEYE
    server A has a STAGE version of POPEYE that is in NOARCHIVELOG mode
    server B has the PRODUCTION version of POPEYE
    I need to get the database on server A and copy it to run next to the existing database on server B.
    since they have the same name, i need to change the name to POPEYESTAGE when I move it over.Will the directory names change?Yes.
    >>
    >>
    both running Windows Server 2008. both running Oracle 10g.
    I tried shutting down the database on server A, copying over the files with a new PFile and ran the CREATE CONTROLFILE script into the trace and took out all the junk, but I cannot connect to execute itWhile above is likely true, it is 100% devoid of any useful information or details.
    In the future, ALWAYS use COPY & PASTE so we can see what you do & how Oracle actually responds.There's nothing to copy paste, I clicked with my mouse and dragged to copy the files.
    I obtained a CREATE CONTROLFILE script the standard way -- ALTER DATABASE BACKUP CONTROLFILE TO TRACE.
    so here I stand with the script in hand. BUT, I cannot connect to the database to execute it, because I get the error I stated "TNS:could not resolve the connect identifier specified."
    I copied all the files over and when I try to commect as sysdba using sqlplus i get TNS:could not resolve the connect identifier specified.CURIOUS, since connecting to local DB does not require SQL*Net.I do not know what SQL*Net is. I did not use SQL*Net. I am in the DOS style commandline prompt using sqlplus.exe
    i tried adding it to the listener and TNS names files, but it didnt work.My car didn't work.
    Tell me how to make my car go .
    Is COPY & PASTE broken for you?I used it above, but here it is again.. actually got a different error message this time:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    I'm trying RMAN now with some difficulty.I bet you did not bother to Read The Fine Manual.I took a course a week ago. I am reading the manual and following the instructions. Duplicating databases is not very clearly documented.
    Plus it's a test database that the users turned into a production database, so it is in noarchivelog mode, so earlier I was not able to shutdown the database so RMAN could not back it up.
    The situation I am dealing with with fairly obscure.
    >>
    I am brand new to Oracle administration, this is my first administrative assignment. Please advisepush back from the keyboard & RTFM the URL below
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10897/toc.htm
    already in-process, what I need at the moment is assistance with a specific task.
    Now if you have already memorized that manual, how about being somewhat useful and explaining to me how to duplicate a noarchivelog database into a production server that already has a database with the same name running.

  • How to create an instance of the database

    No that won't work. I have to set it up independant from each other because I can't get to Uni until Monday and I want to have this done over the weekend really.
    The main issue seems to be now how to create an instance of the database

    To create a database:
    you first connect as internal (user) with the passeword 'oracle'
    the syntax is: connect internal/oracle
    You type in this script:
    STARTUP NOMOUNT PFILE=$PFILE
    CREATE DATABASE db01
    LOGFILE
    GROUP 1 ('c/oracle/oradata/db01/redo_01a.log',
    'c/oracle/oradata/db01/redo_01b.log'
    ) size 100k,
    GROUP 2 ('c/oracle/oradata/db01/redo_02a.log',
    'c/oracle/oradata/db01/redo_02b.log'
    ) size 100k
    MAXLOGFILES 32
    MAXLOGMEMBERS 2
    MAXLOGHISTORY 1
    DATAFILE 'c/oracle/oradata/db01/system01.dbf'
    size 7M
    MAXDATAFILES 254
    MAXINSTANCES 1;
    This script could be modified to reflect the features you want for your database.
    db01 = the name you can give to your database
    Good luck,
    Henri

  • How and when the database release a row lock?

    Dear experts,
    We are using the following statement to obtain a row lock in a table in the database(ORACLE of course),
    SELECT * FROM {TABLE_NAME} WHERE ID = 1 for update
    and if we succeed grabbing the row lock we will continue to issue a update statement every 30 seconds to preserve the lock as far as possible.
    here is the update statement to preserve the lock,
    UPDATE {TABLE_NAME} SET time = ? WHERE ID = 1.
    As you see more longer we keep holding the row lock , more update statements are submitted in the pending transaction.
    In normal case our application can grab the exclusive row lock and works for a long time,however sometimes a connection reset exception is thrown
    and our application will close the connection(I assume the pending transaction will be rolled back by the database) and exit the JVM.
    Since other applications will keep trying to grab the same row lock to become the master role,
    we expect one of them can succeed but they are all failed because the database has not released the row lock as expected.
    Can someone explain more details about how and when the row lock can get released in our use case?
    Thanks,
    SuoNayi
    Edited by: SuoNayi on 2013-5-30 上午8:12

    Hm. Is this part of an XA transaction by any chance? I know that Oracle maintains separate bookkeeping for such transactions which can cause rows to stay 'locked' even when the regular DBA views will indicate there is no user currently locking the record at all. I have no idea about the actual details and what you need to do to clean up such a situation, that is something a DBA should know and do.
    If not... well this is more of a question for people who know the DBMS, which makes it a target for the Oracle DBMS forums. Java developers don't tend to have DBA-level knowledge of the database, you should ask the question where you have more chance of people with expertise answering stuff:
    General Database Discussions

  • How to open MSWORD using JAVA/JNI and write the database entries into WORD

    Hi..
    I am searching for java codes that uses JAVA NATIVE INTERFACE (JNI) for opening MSWORD 2003.
    To be brief.
    I created HTML form called Employee_data.
    if i click on Submit button a word document should be opened.This should be using JNI.
    I have also created a servlet in jsp to process the form data and store it into database(mysql).;
    Please help me to find the codes to open MSWORD on submit click and to write the database entries into word file.Can i get the full code for that.This is so urgent.
    Thanks in advance.

    Hi Suresh,
    The easest solution I can think of is to copy the math equation from the PowerPoint then paste in the Word document directly, there's actually no way to convert it to plain text, some equation is very complext, String variable is not suitable in this case.
    For example, this code works fine:
    var powerPoint = new Application { WindowState = PpWindowState.ppWindowMinimized };
    var oPresSet = powerPoint.Presentations;
    Microsoft.Office.Interop.PowerPoint._Presentation oPres = oPresSet.Open(@"C:\test.pptx", MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse);
    var strObj = oPres.Slides[1].NotesPage.Shapes[2].TextFrame2.TextRange.MathZones.get_MathZones();
    strObj.Copy();
    Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application();
    wordApp.Visible = true;
    Microsoft.Office.Interop.Word.Document doc = wordApp.Documents.Add();
    doc.Range(0, 0).Paste();
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Creating Poplist and filling up values in it dynamically.

    Hi,
    I have created a poplist based on a viewObject.It works fine.
    Is it possible to populate values into poplist at runtime.
    ie ..I have a String array and I want to show it in the poplist.
    String[] names = {"ABC","XYZ","PQR"};
    Is it possible to create a poplist to show these values programmetically?
    In a JSP I would do like this..
    <SELECT>
    <%
    for(int i=0;i<names.length;i++)
    {%>
    <OPTION><%=names[i] %>
    <%
    }%>
    </SELECT>
    Any such similar solution for this problem?
    Thanks,
    Gowtam

    Hi Tapashray,
    Thanks for the reply.
    I have few doubts on your answers.As I am new to OA, my questions might look silly.I have written my interpretation.Please validate and give me some hint to solve it.Thanks :)
    1.Create a VO at designtime.
    - VO must not be based on any EO but should be SQL based and as the data is not picked from Database, what "query" need to be written for the query section in the wizard?
    2.populate the VO attributes with values from your array at runtime
    - The values will be poplulated into VO and poplist simultaneously(dynamically) at runtime OR VO will be populated in prior and at runtime only poplist will be loaded?
    - How to populate values into VO?
    3.remember to use Picklist View Instance property
    - Do i need to specify the View Object Name here? ex:"NamesVO"
    thanks,
    Gowtam

Maybe you are looking for

  • External hard drive failure

    My external hard drive that has been successfully holding my Time Machine backup failed - simply died and will not power up. The drive manufacturer is offering to fix the drive, but the first thing they will do is delete all data. I assume this means

  • Play with workflow container data

    Hi, Experts   I want to read workitem container data using the FM 'SAP_WAPI_READ_CONTAINER', but   the element in workitem container is a structure type or table type, and length is more than   255 character.   How to do it? Thanks you very much! Ken

  • Not connecting to internet after installing os x mavericks. and thus i cannot complete setup

    please help today i installed mavrericks update and now my mac is showing new setup window. but it is not connecting to internet and i cannot sign in to apple account. and it seems like i lost all my data.. please help me. if i lost my data i will be

  • FRM-10044 URGENT PLEASE PLEASE!!

    FRM-10044 Can not create a file URGENT PLEASE!! Apr 16, 2003 12:19 PM Reply I installed Oracle 8i and Forms 6i in a pentium 4 changing the symcjit.dll -> symcjit.old. Now I want to use the same scripts and Forms that I have saved using my old machine

  • I phone not recognising my itunes match subscription

    Hi. Have subscribed to itunes match but when (in Settings) i try to turn it on I keep getting a pop uo box that says I am not currently subscribed and must sunscribe via my PC??