Refreshing a view read-only table based

Hi all

JDeveloper 11.1.1.5.0; Operating system: Windows7

Location: On page 1, we have 3 tables: the first two are master detail (like dept and emp), the third is a stand-alone table that is based on a view read-only (like a list of all employees who do not have a Department).
On the third Board, we have a column that contains a commandLink. This commandLink call action, which in turn calls an another taskflow as an inlineDocument (so as a popup).
This another taskflow has as behavior: critical use existing transaction if controls data possible and share with the taks stream call. Within this taskflow we take a few parameters to create a new line to connect a Department employee to a service (in our case, we use a table between dept and emp). We also conduct a transaction commit and rollback, depending on the choice of the user.
If the user commits the changes also perform us a query against the view of the employees without a Department (as we see in logging the query and the new number of rows) and then we return to the calling page.
We see the second table is refreshed and showing the new data, but does not update the third table.
We are sure that bc has the right number of files, but this is the iterator that always show the additional record.
When you click a button on the page, causes the table to refresh and show the correct number of lines, also by closing and reopening the panelbox, around the table, give a correct result.

What can we do to make the iterator refresh during the return of the taskflow (= popup)?

What we tried:
* Changing the properties of the iterator to always refresh or any other combination possible.
* With the help of the removeFromCollection on the line method. But this only works if the view contains entities behind (which is a bit strange, given that the definition of the method in the documentation).
Adding features behind the view
* By using the property afterListener to call a method. The problem here is that we don't have a DCBindingContainer at our disposal. So not access iterators.
* In the afterListener make a call of navigation (handleNavigation). Navigation did not.
* With the help of the partialTriggers on the third table or panelBox, pointing to the commandLink. Once we do that, no discount no longer, not even the second table.
* With the help of the partialTriggers on the third table or panelBox, pointing to the second table. Yet once, nothing happened.
All this without any success.

What else can we do to make the third refreshes table itself automatically after the return of the popup?

Thank you for all your comments and remarks.

Filip Huysmans.

Published by: Filip Huysmans on 15 June 2012 10:14

Published by: Filip Huysmans on 15 June 2012 10:15

Try to create a method call before you go back to the workflow & refresh the collection here.
Have a look here - http://jjzheng.blogspot.com/2010/11/manually-refresh-row-in-table-after.html specifically for the workflow & this http://jjzheng.blogspot.com/2010/08/manually-refresh-row-in-table-after.html

Tags: Java

Similar Questions

  • How to have a createinsert operation and display a read-only table

    Hello

    I am a newbie to the ADF. I wonder how to do that? -I want a form where the user can see certain values of data read-only in a table but be able to add new lines and commit / save.

    I used an editable table, an entity based view object object and operation of createinsert. If I leave the editable table as-is (all cells are editable) add new using createinsert line works well. But if I change the cell in design view read-only, even the new line added is created in read-only, so essentially the user cannot enter any values in there.

    How can I separate the property read-only so that the table looks like read-only, but they can add new lines?

    Thank you!
    Kassouri

    Hello

    the way forward on this issue is to show a table reading and when the user clicks a command to create a new line, open a pop-up dialog box with an entry form to create the new row. After that. refresh the tabel to show change

    Frank

  • SelectOneChoice and read-only Table

    Hi Experts,

    I am very new in ADF and try to put up a form that contains a component of SelectOneChoice based on a display object.
    I have a table with a variable binding and try to run the Object(underlying read-only table) view with the value that is selected in SelectOneChoice read-only. I added a managed method bean on valueChangeListener control SelectOneChoice and successfully getting the selected value.
    Now I'm getting a reference to the ViewObject and layout NamedParameter and then running it. Here is my code:

    {} public void ChangeValue has only (ValueChangeEvent valueChangeEvent)
    int s = ((Integer) valueChangeEvent.getNewValue ()) .intValue ();
    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.
    JUCtrlListBinding listBinding = (JUCtrlListBinding) bindings.get ("SanLovVO1");
    listBinding.setSelectedIndex (s);
    currVal int = Integer.parseInt (listBinding.getSelectedValue () m:System.NET.SocketAddress.ToString ());
    System.out.println ("selected value:" + currVal);

    DCBindingContainer bc = (DCBindingContainer) (BindingContext.getCurrent () .getCurrentBindingsEntry ());
    ApplicationModule am = bc.getDataControl () .getApplicationModule ();
    ViewObject vo = am.findViewObject ("SR1");
    vo.setNamedWhereClauseParam ("p_san_header_id", currVal);
    vo.executeQuery ();
    }

    I defined a variable binding (p_san_header_id) in the object View (SR-1), then using this variable of liaison with the query of the view object. I also give a default value to the variable binding.
    Now the problem is: when page gets loaded, I can only read table has records but when I select a value in SelectOneChoice, I am not able to see changed in the table read-only if get running code managedBean and autoSubmit is true for SelectOneChoice.

    Pls help me. This is my first attempt in ADF with Jdev 11.1.1.2

    Thank you
    Sumit

    I put the default value based on the value returned by the database for selectOneChoice on the loading of the page. I just determine the index value of the corresponding value coming from the db and put it in the page scope of stream.
    Then, I put it in the value of the selectOneChoice attribute.

  • Static display LOV discriptions in a read-only table

    Attempts to display a read-only table. The user will then select a line to edit.

    If the table is editable the LOV displays very well. If it is read-only, it shows only the raw values. The majority of my LOV is static.

    Is there a way to display descriptions instead of the ID?

    see you soon
    James

    In the view object, define a list of values in the field (as usual).

    When you create the table, remove the default column (in general the output text) and replace it with a single column select (should be automatic if the view has the LOV - so drag and drop)

    Now, open the properties of the field by selecting the poplist in the column and change the unique selection of read only = true.

    It will be much better that decode, who has a number of fixed - so it's the table led - as records are added - the list will always work.

  • How to display a LOV display attribute in a read-only table?

    Guys and girls,

    With the help of Studio Edition Version 11.1.1.3.0.

    It seems that there is a certain messages on the forums about something similar to this, but nothing (that I can find) involving really read only tables.

    I have a tree table which shows a BOM. A BOM is a list of raw, subassemblies, assemblies, intermediate, sub-components, components, parts and the quantities of the two required for the production of a finished product.

    In this table tree, PARENT, CHILD, and QTY columns are displayed and are held in the BOM table. PARENT and CHILD have a LOV defined with a NAME attribute, which comes from the object View of PARTS. When I view the table tree on my. JSFF, PARENTS and CHILDREN show their number of DBSequence which had been assigned to them and is stored in the Schedule table, as opposed to the value of NAME through their LOV. A user would probably as the component name, rather than the sequence number.

    I could simply add this attribute of NAME in my view BOM with a JOIN clause object and display it like that, but it feels as if I am needlessly complicate my view object.

    How can I display the Display NAME attribute in a read-only table?

    Thank you
    Will be

    Hi Will,

    I'm sure you'll be stuck with that in a situation of read-only. You can bring in the description as a reference attribute in your VO, and it should work.

    John

  • How to show total for an Object(read only, not based on entity) view based query

    Hi Experts,

    JDEV version 12.1.3.0

    I want to show the total of column salary for reading only VO (not based on the entity, but the query based).

    The readonlyVO has some display criteria to display the data. So the total should appear only for values, I see in the user interface.

    Thank you

    Roy

    Looks like JDEV problem which was not allowing me to add the transition attribute. After the reboot of jdev im able to add the transition attribute.

  • Result to select that one ADF option allows to check read only table

    I'm new on using ADF and try to understand some things.

    Here's what I want to do.

    On the same page, I want to select a choice and a reading not results table. I will fill the table only reading based on the result of the choice of a select. Can someone tell me what I need to do to make this work?

    Or if there's an article out there that someone can tell me.

    Thank you

    In this case,.
    You create a read-only ViewObject (let's call it vo1) who will have something like: select distinct first_name of employees
    Then, you create a link between that regular VO and VO employees based on the field name like join field.
    Then you drag vo1 in a JSF page in a navigation list, and then you drag the employees in the Details vo area which lies beneath the vo1 in the data control palette.
    That's all.

  • How to do a bunch of fields read only value-based

    IM using jdev 12.1.2.

    I have a fragment with a few dozen jsff fields. I need to make these read-only or editable fields based on a value. I know how to do this for each field, but I was hoping there was a way to do this for each of them with a single property. For instance, all the fields are in a panelgrouplayout or a panelformlayout can I set a property on this provision which will set then all areas reporting to him read-only. I was just trying not to put the property read-only on each field of monkey.

    There is none of these goods or componentwhich allows you to do. All you can do is to set the readonly property of each field to the same property (bean or pagedef) and ppr the container so that the components are updated.

    Or you use a bean method that sets all the fields editiable readonly properties in a contianer orf true false. It would save that you set the property for each field.

    Timo

  • How to add the transient attribute for LOV (object of the view read-only)

    I have a view called CustomerView and attribute DepartmentId is present in it.

    Also exists DepartmentView and CustomerView.DepartmentId has an LOV from this point of view.

    I need to add a transient attribute to CustomerView which express the DepartmentName attribute in the LOV.

    Because of the view are read-only there is no entity object don't match them.

    How can I write the groovy for the transitional object expression.

    The name of the view accessor Lov's DepartmentView1

    Looking for your help. Thank you.

    Hi gcoban

    I do not understand your question correctly,

    you are not able to write to the expression property in viewObject?

    or you want to know how to write groovy for that?

    for writing groovy you need viewAccessor and you who have, you can try as Alejandro Tovar Lanz suggested

    or you can write code in RowImpl to fill in the name of the Ministry of the accessor

    See -https://blogs.oracle.com/adf/entry/combo_lov_how_to_display

    Thank you

  • How Mark Read only cases based on RadioButton selections

    I have spent the last hour looking through old discussions and found nothing on this subject, so maybe it will help others in the future as well.

    I'm building a dynamic PDF for people at work to use for troubleshooting.  Basically, it follows the same logic flow charts I have already done, but by asking questions and saying technicians what do based on their responses.  Top I have checkboxes which are kind of 'high level questions' that I want to be read-only and that they check automatically as they make their way through the radio buttons.

    My ultimate goal is to integrate this PDF file in our ticketing system and the checkboxes at the top level will show the troubleshooting that has already been accomplished without the technician having read the full PDF to find out what to do next.  If we have to send a technician on site to fix whatever it is she will also act as a report of climbing, to let him know where we could get without him being there.

    I thought this might work, but apparently I don't understand the coding as well as I thought I did.  I hope I'm close lol.

    If {(TestRadio.rawValue == 1)

    Subform1.check1.RawValue = 1;

    }

    else {}

    Subform1.check1.RawValue = 0;

    }

    Any help is greatly appreciated.  If anyone has a PDF file with an example of this work, I'd love to see it.  Thank you very much.

    Mike

    In fact, I just thought to it.  I've been away "" around the values.  Maybe this will help you always someone else, so I'll leave it to the top.  Thank you all!

    If {(TestRadio.rawValue == 1)

    Subform1.check1.RawValue = "1";

    }

    else {}

    Subform1.check1.RawValue = "0";

    }

  • Expand the view read-only object where Clause

    Hello

    Is there a way I can add another where, condition of the clause to a viewobject unalterable in my bean limit support more query? The view object has a where clause itself clause which I want to thank. However, it is not editable or based on an entity object.

    Hello

    You can use ViewCriteriaRow to add where clause dynamically.

    http://download.Oracle.com/docs/CD/E15051_01/apirefs.1111/e10653/Oracle/JBO/ViewCriteriaRow.html

    In addition, you can also use a variable binding in the where clause and use setWhereClauseParams method before calling executeQuery.

    http://download.Oracle.com/docs/CD/E15051_01/apirefs.1111/e10653/Oracle/JBO/ViewObject.html#setWhereClause (java.lang.String)

    HTH.

    Arun-

  • to view read-only slowerconnection charge?

    Since the update, then reinstall firefox and windows 7 Edition family, I get this message when you try to view google calendar. It works in Internet explorer, but I don't want to use it.

    I tried an earlier version of firefox and still no joy.

    Hello, please try to reset firefox and see if that can address the issue...

  • Add or remove lines of a treeTable with a view read-only object

    Hello-

    I get an error of Houston-25016 when I go to remove a line in a treeTable. I want to create the hierarchy of a stored procedure, have the user add and remove nodes without remind to the database. I'll walk the tree and see what has changed and made the necessary updates to the database manually.

    What is the correct method to add or remove lines form the user interface component?

    Thank you!
    Tom

    Try the definition property for each attribute in VO on still changeable.

    Amit

  • filters table based on two input fields

    Hello

    I need help, I'll have a single VO read and query is included with where clause and bind variable assume them query is like

    (select in... where updatedate > =: p_fromdate and updatedate > =: p_todate).

    In the user interface, I need to take two input fields date fromdate and to this day, when I get the table of dates (read only VO) should filter.

    what I want is if I enter Fromdate and gets stuck on day of entry values: p_fromdate and: p_todate.

    And I want without using the view criteria.

    Hello

    It would really help if you could give us some basic information, yet vital such as your version of JDev.

    There are many ways to implement your requirement. One of them uses a method of AM that will define and execute your view read-only object.

    Please follow these steps:

    (1) generate the implementation of AM class

    (2) create a custom method like the following:

    {public executeMyReadOnlyView Sub (fromDate Date, Date to date)
    ViewObjectImpl readOnlyView = getReadOnlyView();
    readOnlyView.setNamedWhereClauseParam ("p_fromdate", fromDate);
    readOnlyView.setNamedWhereClauseParam ("p_todate", to date);
    readOnlyView.executeQuery ();
    }

    (3) expose this new method via the client interface

    (4) drag this new method into the page as a button (and link the fromDate parameters and to this day)

    Antonis

  • How to make object view transitional Readonly/editable based on the role?

    Hello

    I have an edibable based on the connected or requriment overview to display data of transient object view read-only in the user role. It is updated to display object, we can define security at the level of the entities properties and therefore we can control access to the data. If it's the transitional view object how can we do this?

    I use ADF11g.

    Very urgent! I appreciate your help.

    Thank you.

    Hello

    You can override the method isAttributeUpdateable() of the viewRowImpl.
    There, you can check the role and return true or false to the current attribute.

    if(!hasRole && i ==YOURATTRIBUTEINDEX){
        return false;
    }
    

    Gabriel.

Maybe you are looking for

  • Bootcamp error: windows support software could not be saved

    When he says his by downloading the windows support software, the progress bar moves, but very slowly, but for some reason, this error is displayed when reaching approximately 20-30%. MacBook pro mid 2015 15 inch mjlt2ll/a v.10.11.3 el capitan OSX

  • User profile is not loaded message when signing

    When I log in, my pc now shows a message saying "preparing your desktop" followed of "user profile is not loaded correctly, see log events or administrator."  These messages appear every time I log in. Plus all my settings are deleted when I sign and

  • Error-20003 of curve non linear adjustment LM with a VI curve as a good model

    Hello I was stuck for a while now, by an error when I use the non-linear curve mount LM with a VI as the model curve adjustment. The code error is-20003, and occurs in the "LM get new coefficients ' vi and analysis, said"the number of samples must be

  • Explorer Windows (Vista) does not

    I struggled for a few months with Explorer windows (Vista).  It all started after an automatic update that has been made by my computer.  Whenever I try to click on something on my windows downstairs bar it freezes and gives me the error message "Win

  • First instant Indication of ink cartridge replacement: replace any or all of the cartridges?

    After having received delivery of cartridge: Wshen I get the first instant Indication of ink cartridge replacement: replaces we one or all the cartridges? Or should I expect to get notification of replacement of cartridge separately for each color, a