generate debug instructions

Hello

In interview, someone asked me this question:

How can generate debugging during execution of code instructions?

My answer

We can you dbms_output.put_line in our code block

or

We can use the dbms_application_info package to debug our program.

Please advice and correct me if you find me wrong.

Please advice and correct me if you find me wrong.

You're not wrong, both are very good for debugging.

Tags: Database

Similar Questions

  • debugging instructions

    Hi all

    You know how in Java and C++, you can use cin/cost, system.out.println etc. for debug instructions? Is there something similar for Flash?

    Thank you

    trace("debug statement goes here");
    

    Use a + for combinations and a comma for the separations:

    var days:Array = new Array("Monday", "Thursday", "Saturday");
    
    trace("today is " + days[1]);  //today is Thursday
    
    trace(days[0], days[2]);  //Monday, Saturday
    
  • How To Generate Debug Log Files for ebs jsp?

    Hi how to generate debug log for ebs r12 jsp files?
    and where I get the journal me .please help thank you!

    Please check following Document MOS

    Oracle Application Server diagnostic tools and logs in Applications, version 12 (Doc ID 454178.1)

  • Dynamically generate UPDATE instructions

    DB version: 10 gr 2

    I was give a list of
    OLD_VALUE         NEW_VALUE
    ---------         -----------
    HR                 PERSONNEL
    FINANCE            FINC
    FACILITIES         FACS
    .
    .
    .
    I need to find all the columns that begin with DEP % table with a string 'HR' and updated 'STAFF' and the rest of the old to the new values as noted above. I'm trying so generate UPDATE instructions for this

    Answer to my question was actually provided by bluefrog to
    Re: Problem with SQL to write SQL help

    Thanks bluefrog.
    select
    ' update ' ||table_name ||' set '||column_name||' =replace('||column_name ||','||'''HR'''||','||'''PERSONNEL'''||');' 
    from user_tab_columns 
    where and column_name like 'DEPT%'
    But my old_Value, new_value list has 70 entries. So, I need to manually execute the above statement 70 times!
    How can I make the OLD_VALUE, NEW_vALUES to this sql and generate instructions to UPDATE, I need?

    Load the OLD_VALUE / new_value by list in the database using SQLLDR, external Tables, or by hand.

    Then browse these values generating the SQL you need.

    Maybe something like that? (Note this is not tested, just threw together quick):

    BEGIN
            FOR r IN
            (
                    SELECT  old_value
                    ,       new_value
                    FROM    update_list
            )
            LOOP
                    FOR s IN
                    (
                            SELECT  table_name
                            ,       column_name
                            FROM    user_tab_columns
                            WHERE   column_name LIKE 'DEPT%'
                    )
                    LOOP
                            DBMS_OUTPUT.PUT_LINE('update ' ||s.table_name ||' set '||s.column_name||' =replace('||s.column_name ||','''||r.old_value||''','''||r.new_value||''');'
                    END LOOP;
            END LOOP;
    END;
    

    Published by: Centinul on June 3, 2010 12:52

  • Error: Not yet registered to request debugging tokens

    "I wrote my small and simple application in HTML5 and bundled with the ripple (with 1 WebWorks) emulator (without signature), but after trying to install the .bar through DDPB file it gave me the error ' 881 found no debugging token. Now, previously, I had already a debugging token on my Z10, but as the nube I'm kidnapped by accident. Now, while trying to recreate the debugging token, I encountered error in cmd, ' error: not yet registered to request debugging tokens. I have an author.p12 file, a barsigner.db file and a bbidtoken.csk file that I had tried to help out, I'm getting lost in all the documentation which has provided Blackberry and probably have 1 million junk files, could someone please help me get back on track.

    Sorry for the nube-nish, I'm only 13...

    WebWorks 1.0 will not support BBID approach to signature, if you go this route you will need to request a new set of files of the LSB of the code signing the form here:
    https://www.BlackBerry.com/SignedKeys/Codesigning.html

    When you ask for the keys, don't forget to check this box:
    For BlackBerry PlayBook apps or BlackBerry 10 apps development SDK lower or average of a 10.1 or BlackBerry 10 SDK WebWorks less than 2.0.

    In an hour or two, you will receive two files CSJ. Before you begin installation, ensure that the directory that houses your key is empty (records can stay.) I recommend to copy all existing files in a folder "backup" just in case, but don't want any old CSK, DB, etc. of generated files cluttering it. If you do not know what directory, check the "files backup" section here that lists the directories.
    https://developer.BlackBerry.com/HTML5/documentation/v1_0/signing_setup.html

    Once emptied, you can use the steps in this URL (top of page) to save your CFS files. Essentially, by running the command of blackberry-signatory to record your keys.

    Once this is done, you should be able to generate debugging tokens and others. The important part is to no BBID and mixture LSB file, and does not support this WebWorks BBID 1.0.

  • Impossible to debug the example provided with the SDK projects

    Hey there.
    Just recently I started learning the SDK AE. After reading the first two pages of the Guide to the software development kit, I decided to try to build/debug examples of projects in visual studio.
    I tried with the model project "Skeleton" and with the "Resizer effect" project, but the two I can't seem to make it work.

    I set the environment variable AE_PLUGIN_BUILD_DIR for the correct path, and I also made sure visual studio debug using AfterFX.exe
    However, if I try to launch the visual studio debugging (F5)... nothing happens. After effects opens, but nothing happens after that.

    I checked my output log and... Well well full of messages like:


    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\AudioFilters.dll. Cannot find or open the PDB file.

    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\ProjectConverterHost.dll. Cannot find or open the PDB file.

    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\TransmitHost.dll. Cannot find or open the PDB file.

    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\DisplaySurface.dll. Cannot find or open the PDB file.

    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\FLT.dll. Cannot find or open the PDB file.

    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\RG.dll. Cannot find or open the PDB file.
    There are many more of these erros... basically for each DLL in the \Support Files\ folder.

    At the end of my output log, I have the following:

    < 5060 > < AppVers > < 5 > App Version = Version 13.5.1.1x48

    < 5060 > < AppDirs > < 5 > App Dir = C:\Program Files\Adobe\Adobe After Effects CC 2015\Support Files

    The executable < 5060 Dir > < AppDirs > < 5 > = C:\Program Files\Adobe\Adobe After Effects CC 2015\Support Files

    Resources < 5060 > < AppDirs > < 5 > Dir = C:\Program Files\Adobe\Adobe After Effects CC 2015\Support Files

    Package < 5060 > < AppDirs > < 5 > Dir = C:\Program Files\Adobe\Adobe After Effects CC 2015\Support Files

    < 5060 > < AppDirs > < 5 > Plugin Dir = C:\Program Files\Adobe\Adobe after effects CC Files\Plug-ins 2015\Support

    < 5060 > < AppDirs > < 5 > required Dir = C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\Required

    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\aeres1.dll. Cannot find or open the PDB file.

    "AfterFX.exe" (Win32): unloaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\aeres1.dll.

    The program ' [3244] AfterFX.exe "ended with code 0 (0x0).



    Can someone tell me what I'm missing?

    Well, it is normal that if you launch AE in the debugger, nothing different happens if you launch AE normally. Which means that you must create or load a project and apply your plugin, so you can stop in the debugger (unless you want to catch global initialization, which is made on the loading of the program).

    With regard to the PDB messages in the journal, which is quite ok, as the Adobe dll plugin obviously would not come with debug information.

    The plugins you've compiled are born actually in the correct path? They are available in the menu effects in AE? It is the first thing to check, because when there is not this plugin, debugging is not available :-)

    I interpreted your question so that your .aex files are actually present and visible on EI, you just can't break into the debugger when one of them is used.

    So for your plugin, you must make sure that it contains debug information, otherwise you will not be able to debug.

    Please check the following settings for your project in Visual Studio:

    "C/C++" - "Debug Information Format" value "Program Database"

    "C/C++ - preprocessor"-"Preprocessor Definitions" string contains the "_DEBUG" set

    "C/C++ - Code generation '-'Runtime Library' is defined is ' / MTd ' or ' / MDd" (this is the most common error when unable to debug!)

    ' Linker - debugging - 'generate debugging information' set to 'Yes "".

  • DBG1012: Debug deployment errors, can't run debug code

    DBG1012: Debug deployment errors, can't run debug code

    I got this error when im trying to load the data from different database...

    I myself DWH database with the option "target warehouse"... n HR database with the option "data source"...

    I tried to load HR table to table DWH... n im already ensure that both databases have this table...

    n This is my debug data:

    Analysis of card to debug...
    Retrieving the connection of Control Center information...
    Connecting to the Control Center schematic...
    The character set of the Control Center schema checking...
    Configuration of the sources and targets...
    Card validation...
    Correlated Commit is DISABLED.
    Generate debug package...
    Deployment of debug temp tables...
    Deploying debug package...
    ***********************************************
    Messages of debug code deployment:
    LINE 16, COLUMN 10:
    PL/SQL: ORA-00942: table or view does not exist
    LINE 11, COLUMN 3:
    PL/SQL: SQL statement ignored
    End of messages of debug code deployment
    ***********************************************
    Mapping debugger error:
    oracle.wh.service.sdk.mapping.debugger.WBMappingDebuggerException: DBG1012: Debug deployment errors, can't run debug code.

    What should I do?

    THX 4 your attention...

    LINE 16, COLUMN 10:
    PL/SQL: ORA-00942: table or view does not exist

    Take the generated deployment script.
    and focus on line 16.

    Make sure table name e\whether that it hit in the database.
    If read access is provided if it is in the different database.
    Check the line number of the package body.

  • Cannot deploy the mapping which is validated fine-problem when debugging

    Hi all


    I have a complex with almost thirty tables involved mapping.
    I created a mapping with the step by step process of t1 Join t2, t2 join t3... t29 join t30
    Mapping looks very good and has been validated successfully.
    When I try to deploy the same he throws me the warnings below...



    How to solve this problem?
    How to locate the exact problem in pls code region generated during deployment.

    Thank you very much!
    SRID

    Here is the warning of deployment



    COPY_OF_MAP_PS_2OJAN
    Create
    Warning
    ORA-06550: line 11, column 3:
    PL/SQL: ORA-00923: KEYWORD not found where expected
    COPY_OF_MAP_PS_2OJAN
    Create
    Warning
    ORA-06550: line 11, column 3:
    PL/SQL: SQL statement ignored
    COPY_OF_MAP_PS_2OJAN
    Create
    Warning
    ORA-06550: line 2247, column 3
    PL/SQL: ORA-00923: KEYWORD not found where expected
    COPY_OF_MAP_PS_2OJAN
    Create
    Warning
    ORA-06550: line 2247, column 3:
    PL/SQL: SQL statement ignored
    COPY_OF_MAP_PS_2OJAN
    Create
    Warning
    ORA-06550: line 4738, column 7:
    PL/SQL: ORA-00923: KEYWORD not found where expected
    COPY_OF_MAP_PS_2OJAN
    Create
    Warning
    ORA-06550: line 4738, column 7:
    PL/SQL: SQL statement ignored


    Summary of the offer
    Update: 2009-01-21 07:38:57.0 job final status: completed WARNING processed job count: 1 number of job errors: 0 Job Alert Count: 6




    My mapping has only 18808 lines when I looked the .pls script generated during deployment (surprisingly... the Debug displays message error is on line 22776)

    When trying to debug the mapping below is the debug message
    Analysis of card to debug...
    Retrieving the connection of Control Center information...
    Connecting to the Control Center schematic...
    The character set of the Control Center schema checking...
    Configuration of the sources and targets...
    Card validation...
    Correlated Commit is DISABLED.
    Generate debug package...
    Deployment of debug temp tables...
    Deploying debug package...
    ***********************************************
    Messages of debug code deployment:
    LINE 22776, COLUMN 46:
    PLS-00103: encountered the symbol "B_BN_BNI_66_BN_ORIGI$ 2" when expecting one of the following values:

    . (* % & = - +; <>/ at mod is still not rem)
    < an exponent (*) > <>or! = or ~ = > = < = <>and or LIKE2_
    LIKE4_ LIKEC_ between | Member of multiset SUBMULTISET_
    The symbol "." was replaced by "B_BN_BNI_66_BN_ORIGI$ 2" to continue. "

    End of messages of debug code deployment
    ***********************************************
    Mapping debugger error:
    oracle.wh.service.sdk.mapping.debugger.WBMappingDebuggerException: DBG1012: Debug deployment errors, can't run debug code.

    Hello

    There is only one version of the software. Whether or not you must license depends on the features you use.

    Generates code in the mapping Editor by using the button "generate".
    In the build results window, select style generation = operating mode and middle = 'Set [PL/SQL] founded.
    Now you must select a group entry or exit of some operator in your mapping.

    The build results window then displays a SQL statement that represents the data that would go in the group you selected.
    Run the SQL directly in your target schema (using sql * plus, sql developer, etc.).
    If the SQL code cannot be run, the problem is in this particular part of the mapping.
    You can try to locate further.

    Good luck
    Carsten.

  • How to assign components page parent of a page fragment in a dynamic region

    Hi, I am using JDeveloper 12.1.3. I have a single page request that contains a sidebar (with separator) on the left and a dynamic region on the right. One of the fragments of the page that appears in this dynamic region has a task flow that calls another fragment of page. What I do when this event occurs, it is to dynamically hide (or at least close) the left side panel. I created a bean of support that includes a method to do so. This method works very well when I call it from a test button on the parent page. But I can't understand how effectively call it a method in my stubborn workflow (page fragment). I created the method and incorporated it in the workflow. I refer to the method in the bean support. No errors are generated when I perform the navigation. I have debugging instructions that indicate support bean method is called. But the screen will not reflect the changes on the side panel. I tried to use a parent action in my stubborn workflow (and tried to have this action relative to call the method), but that did not help. I thank you very much for any assistance, you can provide.

    The problem is that you can reach the panelSplitter of off the page on which it is located. If you use a methodcall activity that you call with a parent action you get a new instance of the separator, but not then, you try to change.

    What you can try to bind the separator to a property of bean a bean view extended who resides in the workflow of the parent page. Then you pass this bean as a parameter to the flow of the task of the fragment and call the method within the bean. It of called bean reference and is listed in this article by Frank Oracle ADF May / June 2013. Make sure that you use a component for the bean property reference. On second thought, you might not even to bind the separator to the bean as you can look it up in the page directly using findComponent().

    Timo

  • Unable to access Web services interactive statement

    I have a project in Flash Builder to work where I generate a file of nav that I use to generate an Interactive instruction using a process in Workbench.

    The Interactive statement works very well with all the Flash content and the merged from xml data.

    When I stir using a Web Service in code of Flash Builder project to fill a data grid and regenerate the file nav to generate interactive instruction, interactive instruction gives the following opening security error:

    Security error to access the url

    Destination: DefaultHTTP

    It seems that this problem is bound to go through the policy area or something like that, BUT I don't get this error when:

    1. I ran the Flash Builder directly from Flash Builder project that turns on IE and my flash content works perfectly fine in the HTML wrapper, including the web service call that works very well. It works very well as a bin-release folder of my project in Flash Builder and the bin-debug.

    2. I created an AIR application from scratch and consumed the webservice as well as used in the previous Flash Builder project used to generate the file nav for Interactive instruction. The AIR application also works perfectly well to invoke the web service and doesn't give any errors.

    Question: Why my Interactive statement impossible to access the web service and gives the error as mentioned above when the same web service is accessed and used successfully by the same flash content in a html wrapper and an AIR application. How to make my flash content embedded in the PDF container to access and use the web service?

    Hi Muhammad,

    Acrobat has crossdomain different restrictions.  Try a crossdomain file that looks to test the connection:

    Then there are a few good articles on web service calls:

    http://forums.Adobe.com/message/3784114#3784114

    This http://TV.adobe.com/watch/Flex-in-a-Week-Day-2/Retrieving-and-Handling-Data-using-webservi.

    http://blogs.4Point.com/Brad.White/2008/12/4-ways-to-invoke-a-WebService-in-Flex-with-MXML - and - actionscript.html

    class ebservice http://blog.flexexamples.com/2008/04/14/Calling-a-simple-Web-service-from-Flex-using-the-w.

    Kind regards

    Oana

  • ORA-06508, procedure cannot call the procedure of package

    I have a large stored procedure that calls a package (procedure) that manages a number of procedures to determine whether the process can continue or not.  (It checks authorization of the student to enroll in a class).  We have a web process calling the stored procedure, and that works fine.  What does not work, is a call to the package.  Oracle returned ORA-06508: PL? SQL: could not find program unit called.

    I have included instructions for debugging, so I know that it is the specific call to a procedure in the package fails with ORA-06508.  Thinking it's perhaps something in the package, I inserted a debug statement as the first line in the procedure called in the package.    (Debugging instructions call a procedure inserts of rows in a table of debugging with independent validation).

    When I log in the user account with sqlplus and run a test, everything works fine.  But when the web process is running under the same user, the process fails to call the procedure of package and fails with ORA-06508.

    It seems as if the web process runs with the rights of the appellant, or a role is not granted.

    Can someone help me understand what the problem is?

    offered hv, I appreciate your comments.

    We solved the problem: remove the package that couldn't be cited, then re-create.   That's all!

    Apparently, something in the database was tangled upward.   The server recently had problems with disk space, then it might have been related to that.  But we'll never know for sure.

    The stored procedure and packaging (procedures) which he called were owned by the same schema, and there is no mechanism that I can find to prevent one of the other appellant.  But that was the case - Oracle threw the ORA-06508 exception when the stored procedure called the package procedure.

    I replaced the stored procedure and package several times fine-tuning debugging code, but this has not fixed the problem.

    Finally let it drop and then re-create the package, it's which solved the problem.

    Regarding requests to view the code, there is no way that I could reproduce the problem, since the error that occurred was against the permissions and rules which packages run and the procedures of the Oracle.  Thanks for all the tips and suggestions.

  • Bills of the AP - query gives output in the editor, but no data found when run from a workflow

    Hello

    I am working on a custom workflow related to invoices from the AP and I came across this very odd situation where the below query works perfectly well by operating in any PL/SQL as Toad/SQL Developer editor but when run in an Oracle Workflow custom, the query raises an exception NO_DATA_FOUND.

    I set debugging instructions to capture the values of the parameters (lv_invoice_id and lv_hold_id being retrieved workflow attributes) before and after the SELECT statement and noticed that the values of the parameters are set correctly.

    SELECT type

    IN lv_match_type

    DE ap_invoices_all aia , ap_invoice_lines_all Arnaud , ap_holds_all aha

    ail . invoice_id = lv_invoice_id

    ET line_type_lookup_code = "ITEM"

    ET AIA . invoice_id = garlic . invoice_id

    ET AHA . invoice_id = AIA . invoice_id

    ET AHA . hold_id = lv_hold_id

    ET ROWNUM = 1 ;

    Can anyone suggest what could be wrong with that? Having spent 2 days trying to debug this but without success.

    Any help would be greatly appreciated.

    I added a function of the WorkflowTimeout JOB just before function which becomes the flag Match, and it worked. It appears like the workflow engine is somehow unable to assign values to the query. Putting a WAIT, he probably gave the workflow a second to assign variables with values. Seems very strange, but seems to have solved the problem. Do thorough tests to confirm that it does not break something else. Mike - appreciate all your help with this post until now. You were very prompt in answering my questions. Appreciate it.

  • Get the error on the output parameter when creating the effect

    Hi guys, I develop an adobe after effect plugins recently, thanks to all those who help me during this period. Now, when everything all right and I want to build it on a release, I got the following error:

    11.png

    44.png

    Here's my output setting:

    22.png33.png

    what I'm missing? However, it works ok on the debug version.

    Hello

    I found the solution for the release configuration:

    Trun on the links/debug Editor, then set Generate Debug Info--> optimize the debugging (?) DEBUGGING)

    Thank you all

  • Error in the extension of the VO. Data are not supply new custom attributes

    I expanded standerd OAF VO using VO extension to add three new columns. I followed all the steps for VO Extension .but data isn't filling for these three new attributes? Please help me solve this problem. Any help is the appreciated.thank you

    Not really sure what's happening.

    1.

    If you look at the VO.xml

    <>

    Name = "PrimaryBillTo".

    IsSelected = "false".

    IsPersistent = "false".

    Precision = "255".

    Type = "Java.lang.String"

    ColumnType = "VARCHAR2".

    AliasName = 'Primary_Bill_To. '

    Expression = "Primary_Bill_To."

    SQLType = 'VARCHAR' >

    Can you try to remove the line "IsSelected = 'false'" of the additional attributes of 3 and see what happens.

    I think that something may be wrong when you created the VO scope. [also sews you try to recreate the original extended Version]

    If the fix above does not work

    2. try to change your query and hardcode a value for these 3 fields and see what happens.

    3. change the get accessor method and try to add debugging instructions and see what is printed.

    ((OADBTransaction)this.getApplicationModule().getTransaction()).writeDiagnostics(this,"getAttributeInternal(PRIMARYSHIPTO): " + getAttributeInternal(PRIMARYSHIPTO),4);
    

    I also noticed that you have overridden it the GET methods of the transient attributes. What is your own code? If it is a standard code you copied just to get the same values, you can remove it and simply call the super himself.

    Reference:

    Advice from the Oracle Johny: OAF: problems related to the VO Substitution as part of Oracle Applications

    Please let us know how you go.

    [I think that the first fix should work]

    See you soon

    AJ

  • Impossible to perform a search using a VO after adding a line in OT

    HI guys,.

    I am new to OAF and need your help to solve the current problem that I face.

    We still use JDeveloper 9i (9.0.3.5) and the construction of a custom page for the establishment of a trust hierarchy.

    Background:

    Page has 2 fields of research in region 1, name and organization with of the LOV attached to it. At the same time a region has button to search and clear.

    Below, another region is present which shows the data retrieved via above criteria of search as a table and we also gave a button to add a new line (say add new line).

    We have defined an EO and later a VO based on the same, which is used for this page (from the base of single table).

    Problem:

    When I open a page and search (providing criteria search or search criteria) it returns the correct results. Once I click on the button Add NEW RANK I am able to add a line, and I check back-end. Problem starts after that, I can't make a research post that he keeps on his return / showing same result set that was present on the page after adding a line. I also found that the parameters set by setWhereClauseParam are correct in adding debugging instructions. But once the vo.executeQuery () executed and number of lines returned by vo.getFetchedRowCount is the same as the lines already present on the page (after adding a new line/operation). I've tried passing NULL values to setWhereClauseParam after you perform a commit on the assumption that the VO is not resetting correctly but it did not help.

    Any suggestion for me, experts?

    Code:

    Example of code written for the search button, click,

    public void Manualsearch (pageContext OAPageContext)

    {

    String S2 = pageContext.getParameter ("OrganizationCode");

    String S3 = pageContext.getParameter ("Employee");

    System.out.println ("test2" + S2);         System.out.println ("test3" + S3);

    OAViewObject vo = (OAViewObject) getFrBlogApproversVO1 ();

    If (S3! = null & &!) S3. Equals(""))

    {System.out.println ("employee" + S3);

    vo.setWhereClauseParam(0,S3);

    }

    on the other

    {vo.setWhereClauseParam(0,null);  }

    If (S2! = null & &!) S2. Equals(""))

    {System.out.println ("Org" + S2);

    vo.setWhereClauseParam(1,S2);

    }

    else {vo.setWhereClauseParam(1,null);  }

    vo.executeQuery ();

    If (VO.getFetchedRowCount () == 0)

    {System.out.println ("no line") ;}}

    else {System.out.println ("Rows") ;}

    }

    Example of code written for the click on the button Add NEW RANK.

    Public Sub frCreateRow()

    {OAViewObject vo1 = (OAViewObject) getFrBlogApproversVO1 ();}

    If (VO1.getFetchedRowCount () == 0)

    {vo1.setMaxFetchSize (0);}

    Line r = vo1.createRow ();

    VO1. InsertRow (r);

    r.setNewRowState (Row.STATUS_INITIALIZED);

    VO1. Last();

    }

    on the other

    {vo1.last ();

    VO1.setMaxFetchSize (0);

    Line r = vo1.createRow ();

    VO1. InsertRow (r);

    r.setNewRowState (Row.STATUS_INITIALIZED);

    }

    }

    Example of code written to record the click of a button,

    public void save (pageContext OAPageContext)

    {getTransaction () .commit ();}

    throw new OAException ("Lines recorded with success.", OAException.CONFIRMATION);

    }

    Thank you and best regards,

    Mihir Nahar

    I think I found the answer,

    Reason for this behavior of VO is due to below statement highlighted. I just commented the same and it behaves perfectly.

    Hope this helps others in the future.

    Public Sub frCreateRow()

    {OAViewObject vo1 = (OAViewObject) getFrBlogApproversVO1 ();}

    If (VO1.getFetchedRowCount () == 0)

    {vo1.setMaxFetchSize (0);}

    Line r = vo1.createRow ();

    VO1. InsertRow (r);

    r.setNewRowState (Row.STATUS_INITIALIZED);

    VO1. Last();

    }

    on the other

    {vo1.last ();

    VO1.setMaxFetchSize (0);

    Line r = vo1.createRow ();

    VO1. InsertRow (r);

    r.setNewRowState (Row.STATUS_INITIALIZED);

    }

    }

Maybe you are looking for