Reset changes in view link table when cancel popup

Hi,
I'm using jdeveloper 11.1.2.3.0
I have a form with a table which I edit with a popup.
inside this popup I have a view link table.
On cancel the popup I would like to clear the changes that were made in the view link table.
I was trying this code:
public void popupCancelListener(PopupCanceledEvent popupCanceledEvent) {
        DCIteratorBinding it= getBindings().findIteratorBinding("MyViewLinkIterator");
        ViewObject vo = it.getViewObject();
        vo.clearCache();
        vo.executeQuery();
But it didn't work, when I open the popup again I see the changes that were made in the view link.
they weren't reset.
Any idea?
Thanks a lot!

It doesn't help.
As I check, If I'm creating a new row
after
  vo.clearCache(); 
  vo.executeQuery();
the row is still existing.
How could it happen?

Similar Messages

  • My phone no longer changes the view/picture/map when i go from vertical to the horizontal position is this some thing to do with the accelerometer

    my phone no longer changes the view/picture/map when i go from vertical to the horizontal position is this some thing to do with the accelerometer

    No, that would probably be the orientation lock. Check up by the battery icon and see if you have an icon with a small lock and a circular arrow. Either way, go to the Control Center, swiping up from the bottom of the screen. Look at the top row of icons and the orientation lock is the last one on the right. White is on, black is off. Just turn it off and you should be alright. Understand there are some apps that do not change into the landscape mode from portrait.

  • Access 97 - Changing Connection to Linked Tables

    Currently going through a migration process for an Access 97 database.
    I have managed to get everything working against my development database. I now want to port the database to a test environment for end user testing. However, my knowledge of Access is not very extensive, is there a way that I can change the link in the Access front end to point at the test environment. When I do this with the 'Linked Table Manager', using a different DSN file then I get Microsoft Jet db engine errors that the object cannot be found. This is due to the migration workbench converting the original tables names to proper Oracle formats and adding a '_R' suffix.
    Hope someone is able to help.
    Jon

    Hi,
    Can you give more details avout accessing SAP tables?
    Do you mean accessing SAP ERP, DSO, other?
    Didier

  • Change the view link from Readonly to updateable.

    Hi Experts,
    Currently i have 2 view objects and with one view link (1 to 1 mapping). When i try the following code i am getting the exception
    Integer departId= Integer.parseInt(id);
    Key key = new Key(new Object[]{departId});
    Row[] rows = departmentVO.findByKey(key, 1);
    if(rows != null && rows.length == 1) {
    employeeRow.setDepartmentVO(rows[0]);
    oracle.jbo.ReadOnlyAttrException: JBO-27008: Attribute DepartmentVO in view object EmployeeVO1 cannot be set.
    It seems the link is readonly. I have gone through the ViewLink xml file and found all the _updateable are true.  Am i missing anything?
    Please advice me.
    -t

    user,
    @ what time it error raise up.? give me some more. details.
    for eg:
    if u had a updatable view.
    in that view . a had id attribute under updatable section.
    there are options. never always, while new.
    if you check. never optios.
    if u are update something means. the error come up likes this.
    i hop u undertusd.

  • How do I prevent Acrobat from changing paths to linked files when a PDF is saved locally?

    Hi,
    I'm creating a PDF for internal company use. Each page will include a button to view a video; the videos themselves will be hosted on an internal network drive.
    When I create the button in InDesign, I create an Open File action, browse to the video I want to link to, and it creates (what appears to be) an absolute path to the file. When I export to PDF, the path still appears to be absolute in the button properties, and if I open the PDF directly from its network location, the video button opens the video and works properly.
    If the PDF is sent as an attachment or downloaded from the network and saved locally, however, the video links no longer work. The filepath in the button properties still appears to be absolute, but now points to a local folder ("C:\Users\...")
    I need users to be able to download and save the PDF locally, but I don't want to embed a dozen videos, for obvious reasons. How can I ensure, then, that the filepaths to the videos are truly absolute and will consistently point to the network location no matter where/how the PDF is saved?

    It is relative, but I don't want it to be. The problem is that I don't see any way in either Acrobat or InDesign to specify that it must be absolute.
    It sounds like if I were to keep my working file on a local drive and export from there, it would automatically create an absolute link to the network path, but another designer is also working on the project and needs to be able to access the file. I could also copy the entire working folder to a local drive before exporting each time, or manually update the links in Acrobat from a local copy of the PDF after each export... but these both seem like ridiculous extra steps that shouldn't be necessary.
    Is it really possible that neither program allows the user to control whether a link is relative or absolute? Should I post this in the InDesign forums, though the issue seems to be in Acrobat?

  • Why views are tables when published?

    Hi,
    I've seen that when I take a view inmy database and publish it in Oracle Lite, it appears at MSql in the "Tables" tab instead of in the "Views" tab. How's this?
    Is the data both in the tables that are included in the view and again in the view?
    Regards
    Juan Alvarez Ferrando

    have a look at the thread
    CONS-10033 adding view elemento to publication

  • INDEX on VIEW or TABLE when using CONTAINS function on the VIEW

    Hi,
    I'm querying a view with a contains function and I'm getting an error:
    query: select * from view where contains(name,'jack OR jill')>0
    ORA-20000: Oracle text error
    DRG-10599 column is not indexed.
    From what I gathered you can't create an index on the view, or is that possible afterall (using 10g).
    Would it be sufficent to create an index on the column in the table that the view-query is pulling the data from? or can you use the contains funtion on views at all?
    Or are there other ways of doing this better?
    Thanks,

    That particular CONTAINS clause will require a domain index on the column, NAME in your case.
    You could also do: select * from view where name in ('Jack', 'Jill')
    Depending on your need and number of records and other variables, it may be "fastest" to do the text index on the NAME column. If it is a rather small subset of data and performance is not critical then the IN clause should suffice.

  • How do I customize my "view" permanently? When changed, the view is reset the next page.

    How can I change the "view" permanently? When changed, it is reset the next page.
    == This happened ==
    Every time Firefox opened
    == Today

    Make sure that you not run Firefox in [[Private Browsing]] mode.
    In Private Browsing mode some menu items are disabled (grayed) and some features like visited links and others are disabled and not working.
    You are in Private Browsing mode if you see "Tools > Stop Private Browsing".
    See [[Private Browsing]] and http://kb.mozillazine.org/Issues_related_to_Private_Browsing
    You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    To see all History settings, choose: Tools > Options > Privacy, choose the setting '''Firefox will: Use custom settings for history'''
    UnCheck: [[ ] "Automatically start Firefox in a private browsing session"
    If you need to increase (or decrease) the font size on websites then look at:
    Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    NoSquint - https://addons.mozilla.org/firefox/addon/2592
    See also http://kb.mozillazine.org/Zoom_text_of_web_pages

  • [SOLVED] Multiple Dynamic View Objects and View Links - ADF Tree Table

    Hi all,
    I've got a method that creates 3 dynamic viewobjects using this:
                ViewDefImpl Level1ViewDef = new ViewDefImpl("Level1View");
                Level1ViewDef.addViewAttribute("LevelDescription","LEVEL1_DESCRIPTION",String.class);
                Level1ViewDef.addViewAttribute("SetOfBooksId","SET_OF_BOOKS_ID",Number.class);
                Level1ViewDef.addViewAttribute("CodeCombinationId","CODE_COMBINATION_ID",Number.class);
                Level1ViewDef.addViewAttribute("Level1","LEVEL1",String.class);
                Level1ViewDef.addViewAttribute("AccountType","ACCOUNT_TYPE",String.class);
                Level1ViewDef.addViewAttribute("PeriodYear","PERIOD_YEAR",Number.class);
                Level1ViewDef.addViewAttribute("PeriodNum","PERIOD_NUM",Number.class);
                Level1ViewDef.addViewAttribute("PeriodName","PERIOD_NAME",String.class);
                Level1ViewDef.addViewAttribute("PtdActual","PTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("YtdActual","YTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("LtdActual","LTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("BudgetName","BUDGET_NAME",String.class);
                Level1ViewDef.addViewAttribute("BudgetVersionId","BUDGET_VERSION_ID",Number.class);
                Level1ViewDef.addViewAttribute("PtdBudget","PTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("YtdBudget","YTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("LtdBudget","LTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("EncumbranceType","ENCUMBRANCE_TYPE",String.class);
                Level1ViewDef.addViewAttribute("EncumbranceTypeId","ENCUMBRANCE_TYPE_ID",Number.class);
                Level1ViewDef.addViewAttribute("PtdCommitment","PTD_COMMITMENT",Number.class);
                Level1ViewDef.addViewAttribute("YtdCommitment","YTD_COMMITMENT",Number.class);
                Level1ViewDef.addViewAttribute("LtdCommitment","LTD_COMMITMENT",Number.class);
                Level1ViewDef.setQuery(sql_level1);
                Level1ViewDef.setFullSql(true);
                Level1ViewDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
                Level1ViewDef.resolveDefObject();
                Level1ViewDef.registerDefObject();
                ViewObject vo1 = createViewObject("Level1View",Level1ViewDef);I can create the view objects fine and create a single viewlink between two of them, however i'm getting problems with 2 view links.
    This is how I'm creating a view link:
                ViewLink Level2Level1FKLink = createViewLinkBetweenViewObjects("Level2Level1FKLink1",
                                                        "Level2View",
                                                        vo1,
                                                        new AttributeDef[]{
                                                          vo1.findAttributeDef("Level1")
                                                        vo2,
                                                        new AttributeDef[]{
                                                          vo2.findAttributeDef("Level1")
                                                        "LEVEL1 = :Bind_Level1");
                ViewLink Level3Level2FKLink = createViewLinkBetweenViewObjects("Level3Level2FKLink1",
                                                        "Level3View",
                                                        vo2,
                                                        new AttributeDef[]{
                                                          vo2.findAttributeDef("Level2")
                                                        vo3,
                                                        new AttributeDef[]{
                                                          vo3.findAttributeDef("Level2")
                                                        "LEVEL2 = :Bind_Level2");I can get the data to display on an adf tree table if i'm only using a single view link, but when i try and implement 2 view link (for 3 levels on the adf tree table) i'm getting problems displaying the data.
    I'm getting the following error:
    Aug 10, 2007 2:44:39 PM oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer encodeAll
    SEVERE: Error during partial-page rendering
    oracle.jbo.NoDefException: JBO-25058: Definition Level3View of type Attribute not found in Level2View_Level2Level1FKLink1_Level2ViewThe thing is, Level3View isn't in the Level2Level1FKLink viewlink.
    I've been reading about something similar here
    BC4J Master-Detail-Detail
    but I am still unsure of what the problem is.
    Thanks in advance.

    I found the answer here:
    http://radio.weblogs.com/0118231/stories/2004/06/10/correctlyImplementingMultilevelDynamicMasterDetail.html

  • Error with view link and ADF table Tree

    Hello
    ( Note: View objects are created based on static data but not from database tables)
    I created two view objects "SuiteViewObject" and "FamilyViewObject" which are based on static data( stored in collection) but not on database entity. A veiw link "SuiteFamilyViewLink" is created from the above two view objects. An ADFTreeTable is created from the above view objects and view link. When run the jspx page containing ADFTreeTable, following error is occured in the browser.
    JBO-30003: The application pool (staticviewobjects.staticappLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26016: Cannot set user query to view "FamilyViewObj2" because it is a destination in a view link
    Any help on the above error message.?
    Thanks in Advance
    Kristi
    Bangalore
    Message was edited by:
    user576892

    Hello
    The above error is coming becuase view link's SQL query expects tables. But in my case I dont have tables, view objects are created from static data source(collection).
    How to create a view link from view objects which are created based on static data source(collection)?

  • View Link Problems

    Hi
    I have a master child relationship...
    Lets say table Employee and Table Quarters
    EMployee is master and qaurters child, in the quarters table i need to create a column called quarter name which is a transient column which will be populated at runtime...
    so i create the view link, but when the code runs for the selection of the child rows i get 0 rows returned... ie when i click on the master row a PPR event fires which should iterate through the child rows and add the qaurter names to the list....
    Please could someone tell me how to iterate through a child when selecting from a master
    this is how i am doin it currently
    XxPerfQuarterViewRowImpl row = (XxPerfQuarterViewRowImpl)first();
    if(row != null)
    String name = "Quarter "+i++;
    row.setQuarterName(name);
    while((row = (XxPerfQuarterViewRowImpl)next()) != null){
    name = "Quarter "+i++;
    row.setQuarterName(name);
    but before this logic even runs i get a null pointer cos no rows are returned please assits ASAP
    THanks IN Advance

    all that i am doin with the code is setting the current row on the MAster
    Here is the code for that
    // sets rows with master details selcections
    public void hangleMasterSelect(String view, String column, String value)
    OADBTransaction txn = getOADBTransaction();
    String detailTableText = null;
    OAViewObject vo = (OAViewObject)findViewObject(view);
    vo.reset();
    Row [] rows = vo.getFilteredRows(column,value);
    if ((rows != null) && (rows.length > 0))
    Row masterRow = rows[0];
    vo.setCurrentRow(masterRow);
    which is called from the CO for the table region as follows
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    if ("quarterSelect".equals(event))
    Serializable[] params = { "XxPerfQuarterView1", "SelectFlag", "Y" };
    am.invokeMethod("hangleMasterSelect",params);
    // am.invokeMethod("setQuarterNames");
    right... now that alll works
    but as i said to you i have to insert some dynamic data in the child table at runtime
    ie in the quarters table (which is the child) once the correct rows are returned from the master IE the rows that are linked to the master....
    i need to fo through them and set a string in a transient variable....
    like this
    public void setQuarterNames(String performanceId){
    // setWhereClause("performance_contract_id ="+performanceId);
    // executeQuery();
    int i = 1;
    XxPerfQuarterViewRowImpl row = (XxPerfQuarterViewRowImpl)first();
    if(row != null)
    String name = "Quarter "+i++;
    row.setQuarterName(name);
    while((row = (XxPerfQuarterViewRowImpl)next()) != null){
    name = "Quarter "+i++;
    row.setQuarterName(name);
    }

  • Regarding change pointers in CDHDR table.

    Hi All
    Can we write change pointers in CDHDR table when we change the status of the project (CJ20n).
    When I change the status of the project then status of the network is also changed.
    Now my requirement is , as soon as the status of the network is changed ,entry should be recorded in to CDHDR.
    I am able to record the changes when description or other things of the nework are changed but facing problem for status change.
    Can we achieve this if yes then how ?

    Hi Pranay,
    Could you please let me know how you could able to resolve this issue? i am facing same kind of problem
    Regards,
    M, Manohar

  • Undo Changes in child table (using view link)

    Hello,
    My environment : Jdev 11.1.2.2.0
    I have a master-detail relationship which is linked using View Link. My requirement is to open a popup on double clicking the master row, and the user can add/delete/modify the child rows. Also I need to provide Ok/Cancel buttons. I need to Undo all the changes done for the child when the user clicks 'Cancel'. Can anyone please help to solve this?
    Regards
    Suresh

    First u need to a custom SelectionListener and make sure that RowSelection is set to single row. Add a method in the Managed Bean and make the row as current using the below java code
    public void Master_tableListener(SelectionEvent selectionEvent) {
    // This code is to make the selected row as current programatically
    ADFUtil.invokeEL("#{bindings.*YourViewObjectName*.collectionModel.makeCurrent}",
    new Class[] { SelectionEvent.class },
    new Object[] { selectionEvent });
    Row selectedRow =
    (Row)ADFUtil.evaluateEL("#{bindings.*YourViewObjectIterator*.currentRow}");
    // Tip : U will get the above EL's when u 1st drop the Master table on the page
    // Invoke the pop up programatically
    RichPopup.PopupHints ph = new RichPopup.PopupHints();
    p1.show(ph);
    After writing this code.. All u need to do is Drop the Detail Table on the Dialog of ur popup. This way u will get all the rows of the table. So, filter this table with the foreign key using some code..
    Or u can just drop the region containing the Detail Table with the Rollback and commit
    - Saif
    Edited by: Saif Khan on Sep 11, 2012 5:34 PM

  • View link between view based on entity(table) and view based on stored proc

    I've created a view based on a stored procedure. I need to link this view to a view based on an entity which is based on a table.
    I can create the view without issue, but when I attempt to run the application module that contains the relationship I get this error:
    (oracle.jbo.InvalidOperException) JBO-26016: Cannot set user query to view "SalesentityModuleApiView2" because it is a destination in a view link
    One thing that may be notable about this is that this view started out based on a database view. I later overrode the select related methods using the example here:
    http://download-east.oracle.com/docs/html/B25947_01/bcadvvo008.htm
    Any ideas? I will gladly post some code if someone will let me know what might help diagnose this.

    Hi,
    I solved my problem with adding transient field, and changing the value of it (true | false) on set method of field that can be changed so I can get which row was updated. What exactly do you mean when you say not updateable, I'm using a vo with no entity, and I can add, remove rows, in fact I think it's a good solution because I don't want to write to database immediately.

  • View for a network node or link table

    Can a view be used for a nework node or link table? The process sdo_net.validate_network hangs when I try to validate a network based on views for the node and link tables.

    I am using a logical model. The sql statement (checking link/node relationship) that hangs is:
    select count(a.link_id) from vlinks a
    where not exists
    select * from vnodes b
    where b.node_id = a.start_node_id or b.node_id = a.end_node_id
    I gather there is a concurrency issue with my links view because it joins a table with itself. I have a link table that has the start and end nodes defined on two records. Here is my view script:
    create or replace view vlinks
    (link_id, link_name, start_node_id, end_node_id, link_type, active, link_level, cost, parent_link_id)
    as
    select a.id, 'Link '||a.id, a.nodeid, b.nodeid, 'simple', 'Y',1,0,''
    from vnodes a, vnodes b
    where a.seq=1 and b.seq>1 and a.id = b.id
    I can create tables from my views and validate them successfully through sdo_net.validate_nodes_schema, sdo_net.validate_links_schema, and sdo_net.validate_network.
    I can analyze the network model through the Java API using the reachable nodes, shortest path, and spanning tree methods without any problems.
    I guess I'll validate my view links by counting the total number of links and subtracting the number of links joined successfully at the start and end nodes - if 0 then all links are valid. E.g.:
    select count(link_id) from
    select link_id from vlinks
    minus
    select a.link_id from vlinks a, vnodes b, vnodes c
    where a.start_node_id = b.node_id
    and a.end_node_id = c.node_id

Maybe you are looking for

  • How to use thunderbolt to gigabit ethernet adapter

    hi mates. i just purchase the Thunderbolt to Gigabit Ethernet Adapter last week for my Mac Book Pro Retina. but i have no idea how it work. i tried just plug in the adapter and the LAN cable in but no luck... Any idea how it works?

  • Master 3 with scsi

    I am interested in purchasing a master 3 or similar board, and keeping finding myself back to this forum. I am new to scsi and raid. I have just installed raid1 on two sata drives on my current computer, but I am not content with the speed. I was won

  • HP P-7 1157CB video problomes

    I have a p7 1257cb desktop with a HP 2311x monitor . I have no video signial from my PC . whenever I turn on my PC I get a black screen after a few seconds my monitor goes to sleep due to lack of signal . I have tried both VGA and DVI cords same resu

  • When is my BT cabinet being upgraded for fibre?

    Hi, I live on a new build estate with about 100+ houses and whilst everywhere around us seems to be able to get fibre our cabinet has not been upgraded for fibre. I'v registered my interest on the BT site to be kept informed of fibre availability in

  • Custom button to open navigation menu + scripts?

    I just tried to make a custom button to open/close the navigation menu. Is there a custom script available for this? Does anyone know if there are any free scripts available for download/import for Adobe Captivate? Is there a way to do it within Capt