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);

}

}

Tags: Oracle Applications

Similar Questions

  • Perform a search using the API of HIS without informing the user password

    Hello

    I use the example in the doc http://docs.oracle.com/cd/E10390_01/doc/search.1018/b32515/oracle/search/query/webservice/client/OracleSearchService.html. I would like to create a custom search. However, I am facing problems because the API States that I should inform the user password. In this case, how can I make the search without entering the password? Theoretically, authentication was achieved by an SSO, and if so, how could I say to the API?

    If anyone has any suggestions,

    Kind regards

    Christian

    If your application knows with certainty that the user has been successfully authenticated by an external mechanism, then you must use the "connection proxy" function to run queries on behalf of this user.

    The proxy connection relies on a secret shared between your application and the server of ITS. This behavior is implemented by the Federation of the entities of confidence in global settings. The login name of the proxy is the name of the entity, and the password is entered directly in the page trust entities or search via the plugin of the identity, if option is selected on the trusted entities page.

  • Perform a search using several 'Types '.

    I looking for a file with specific content, say:

    content: qwerty

    and I would like to be able to search through two different types of files, for example, .rtf, and .txt

    I do this:

    content: 7D5MN22 TYPE:. RTF, txt.

    but it will not find the two types of files.  I can do one or the other:

    content: 7D5MN22 TYPE:. RTF

    or

    content: 7D5MN22 TYPE: txt.

    but I can't do the research on both.  Is there a way to do it, or this feature has been taken away?

    I would appreciate help, even if it's to say that I am thick and the answer is obvious.

    The value separated by commas, that I can't go to work on my XP machine, but the method mentioned by the larch GOLD seems to work well.

  • Windows Performance Index (WEI) is not available after adding more RAM and Win7 request reactivation.

    I have Win7 Home Premium 32 bit installed on new computer OEM. I added more RAM (DDR3 1333 pair). Windows has asked to be reactivated, I did. Now WEI has no active button, shows no rating at all and says that the machine is not classified. He previously worked. What was the cause? All solutions?

    Maybe Norton causes the same question. Have you tried to recalculate WEI after uninstalling Norton?
    "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • (SOLVED) Windows could not finish repairing the problem because it is impossible to perform the following action: renewing your IP address

    Computer Dell laptop Windows XP SP3 - processor Intel Celeron M 1.40 GHz, 512 MB Ram, ATI MOBILITY RADEON 9000

    The local connection is working fine but my wireless connection does not receive through my laptop. The wireless works since it goes through my PS3 and my sister's laptop perfectly.

    I used the repair, but it will say:
    Windows could not finish repairing the problem because it is impossible to perform the following action: renewing your IP address

    I used in the cmd command:
    ipconfig/renew
    Needless to say a message:
    No operations can be performed on the wireless network connection, although it has its media disconnected.

    Help, please

    Received my solution of another comforter

    Told to go to my router linksy page http://192.168.1.1 setup and change the wireless security mode. It is in mixed mode to WPA2/WPA and I changed it to WPA2 Personal and it worked!
    Thanks for trying to help JW! : D
  • Error - Cannot display the web page, not able to search using search engines.

    Original title: Impossible a search using the serarch engines

    I can see the search engines such as google, yahoo, bing, but when I try to look for a message that says I: "cannot display web page" I can surf the internet, using only if I know that the address of the site but I can not search by using search engines.  Please help me

    Hi DahliaRoberts,

    ·         What browser do you use?

    ·         You did it of any material changes or software on the computer before this problem?

    If you use Internet Explorer, you can try to optimize Internet Explorer and check to see if the problem persists.

    How to optimize Internet Explorer

    Hope the helps of information.

    Please post back and we do know.

  • Firefox under a limited Windows account search using search engines under construction on the search bar + awesome bar.

    He works in the administrator account, but not for all other limited accounts. I created a new limited account if she had no addons or changed options but research still does not work.

    If I enter anything in the awesome bar / search bar, it displays "Looking up nameofwebsite.com"instead of "Waiting for nameofwebsite.com".

    I noticed that he search using https:. If I search using google, I can take the part s of https for HTTP is used, and when I press ENTER, it works, but the browser adds in the s and research in https.

    Everything works fine except for the search functions.

    I updated Firefox and the problem seems to have disappeared.

  • Suddenly, when I search using the address field, I am is more directed directly on the site I look for ex-BBC, as I was before. To place a web page

    When I search using the address field, I am is more directed directly on the site I look for ex-BBC, as I was before.

    Instead Google web page appears with a list of proposals, and I have to click on the link to the BBC it to get on the site.

    Ways you can give me the code to insert in the "topic: config" keyword. URL

    r

    Take a look at this module.

    https://addons.Mozilla.org/en-us/Firefox/addon/keywordurl-hack/

  • How to make firefox 12 homepage search using google

    I've just updated to firefox 12, but in the homepage of firefox(default homepage), he always search using the yahoo search engine, how I can convert for the search using the google search engine?

    Hello

    You should take a look at article in the Knowledge Base using the search in Firefox bar. Your default search may have been changed by a particular site. Sites like MSN, Yahoo, etc. have been know to request to become your home page and change your search engine.

    If the address bar search has been changed, so you can take a look at Search the Web from the address bar.

    If this does not work, you should look the article How to fix preferences that will not save.

    If you are specifically talking about the topic: Home page then proceed by the-edmeister:

    Firefox button > Web Developer-> Notepad.
    Copy and paste this script into Notepad > then click on run > run

    JavaScript: {localStorage ["search-engine"] = "{\"name\":\"Google\",\"searchUrl\":\ "(_ http://www.google.com/search?q=_searchTerms & ie = utf - 8 & oe = utf-8 & aq = t & rls = org.mozilla: en - org.mozilla & client = firefox-a\"}";void(0) ;}.

    Hope this helps!

  • iPhone 6s - while trying to search using the result of Safari a padlock before and nothing will be open

    using the iPhone 6 s last updated - when trying to search using the result of Safari a padlock in front of him and nothing does not open in the list below!

    Please wait until a fix is available at Apple.

    Best.

  • Perform a sequence using the new method of execution

    Hi ppl,

    I use the Engine.NewExecution method in LabVIEW to perform a sequence using sequential process model. I have been successful in this attempt.

    Now when I tried to pass arguments to the sequence with this method I could not do

    From the help file, I found to pass property to the sequenceArgsParam in the Engine.NewExecution. I used the Engine.NewPropertyObject to create a new property object. My problem started here. I was not able to define the parameters for the property object I created. When I created an object of type container property, newExecuion method returned an error indicating that the type is the string even if the setting for my sequence was a container. When I created a method of setValString string property object returned error saying unable to find settings where the look of string upward was parameters.x

    Please help me some body. I'm stuck with this upward.  can someone give me an example of program that passes parameters to the sequence when running via the NewExecution method.

    Hello

    It is not the Engine.NewPropertyObject method to pass parameters

    I used to sequence method before running the sequence

    try to replace the step Engine.NewExecution of this VI

    the values are in a cluster table: parameter is the name of the parameter in your sequence, the value is the value to pass

    A2

    Note 1: there is only the string in this VI, it is possible to change with integer...

    Note 2: If you have a container, the parameter name is "container". "" The name of the parameter.

  • Unable to connect to the wireless network, error message "Windows could not finish repairing the problem because it is impossible to perform the following action. Renewal of your IP address.

    Original title: Unable to connect to the wireless network

    Unable to connect to the network wireless Toshiba Satellite A105 PC running Windows 7.  "Windows could not finish repairing the problem because it is impossible to perform the following action. Renewal of your IP address.  Works with Windows XP SP2, IE 8.00.6001.18702 file, I think that Version 3.  It has been installed on a disk provided by Microsoft after that old installation became corrupt (in the sense of Microsoft technical support.)  Before that, wireless network worked well.   (So unable to connect to the Internet for updates.)   Have tried to change the other settings and different messages acquired when it SHOWS that I am connected but cannot connect because of something to do with the certificate.  I don't remember what I did to try to solve this problem in the last days.

    I should add that I have tried the solutions of the previous forum on this topic, and none worked.

    Hi Marilynnla,

    Sorry to hear about the bad experience you encounter. Lets see if the network problem can somehow be archived.

    Read this article and follow the steps. Lets see if it helps in any way.

  • How can I fix a 502 Bad Gateway message when you try to perform a search?

    How can I fix a 502 Bad Gateway message when you try to perform a search

    Hi Rick1323,

    -How long have you had this problem?

    -What software changes you did on the computer before the show?

    The 502 Bad Gateway error is a status code HTTP means that a server received an invalid response from another server to which access while they were trying to load the web page or complete another application by the browser.

    502 Bad Gateway error is usually a network between servers on the Internet error, which means that the problem is not with your PC or Internet connection.

    It can also indicate a problem with the internet provider (ISP). Contact your ISP for assistance.

  • I am trying to perform a recovery using the "HP Recovery Manager", but I don't know what I should choose to do so.

    Update Code error 80070490

    There, I had a update failed on Windows Vista Service Pack 2 (KB948465).  I tried the Mr. fix it, but the execution software failed.  Some time later, I'm now at the point where all of the updates fail and gives me the error code 80070490.  I tried the system tool - didn't work.  My computer is preinstalled with vista home premium, so I have no disks.  I am trying to perform a recovery using the "HP Recovery Manager", but I don't know what I should choose to do so.  Choose 'The essential system updates for Microsoft Vista SP 1'?  If so, he wants that I uninstall first.  How can I do this?

    Hello

    For any questions about the HP recovery process, contact HP.

    Here is their Web site about this link:

    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c00809678&LC=en&DLC=en&cc=us&product=18703

    This is the Microsoft Information about your error code 0 x 80070490

    'You receive a "0 x 80070490" error code when you use Microsoft Update or Windows Update Web sites to install updates'

    http://support.Microsoft.com/kb/958044

    To make the Installation of repair upgrade in the Microsoft link, borrow Microsoft Vista DVD a friend.

    Here is the information on how to do it:

    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    See you soon.

  • Search using the Windows 7 Explorer

    Successfully, I searched and found a file in my file system. But the search engine does not tell me where the file is located. How do I know where the file is located, so I'll know where it is (and possibly move it elsewhere) and won't have to search each time.

    If you right-click on the file and click Properties on the menu that appears, you will see location information about a third of the way down on the box that appears.  You can also click on 'place to open the file' to get to the scene.  The search results window can also be customized with columns of information to your liking.  If you perform a search and then right click on any column heading, you can click to choose "folder path".  If you click on more at the bottom of the menu after right, you can choose from a long list of information.

Maybe you are looking for