I have an ADF table which has to populate a form after redirecting to a new page.
Basically I have to implement the Edit functionality for a record selected in the table.
I have made the following iterator bindings to the fields but am not sure of how the values will be fetched from the database. I am unable to debug the bindings as the page does not render when redirected to.
Here is a snippet of the pageDef created
<attributeValues id="sedol" IterBinding="findD1ByCaIdIter">
<AttrNames>
<Item Value="sedol"/>
</AttrNames>
</attributeValues>
Any help/tutorial/guide would be much appreciated
Hopefully you are using a data control. If so, then use the data control to populate the table. Make sure to turn on single row selection.
Then on the Edit page, add the same data control as a form. ADF's built-in row concurrency will set the selected table row to be the "current row" in the iterator and bound VO Rowset. Then, when the Edit page is displayed, it will retrieve the "current row" from the iterator and it should be the selected row from the table.
Since you seem to be new to ADF, I suggest you learn a bit more, here, here and you can try to google "oracle adf table and form edit" -> some ideas here, here, here.
Basic info like what is your data source (ADF BC or JPA) and are you familiar with ADF Data Controls and what version of ADF are you using are very helpful with questions like these.
Add a column in table in the end. drop on button (ADFfaces) and in its actionlistener add the following code:
public void editData() {
DCBindingContainer contxt = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding iter = contxt.findIteratorBinding("TestView1Iterator");
ViewObject testVo = iter.getViewObject();
Row selectedRow = testVo.getCurrentRow();
}
Related
I created a blank page and inserted textfields and button which will serve as a form. I want to display the inserted data from user once the button save is clicked, and the data will also show on the interactive grid below the page. Please help me on this.
I'd suggest another approach: use the Wizard to create Report with a Form on a table. It will create an Interactive Report (and you'll use it to review data stored into a table) and a Form (you'll use to insert new records and to update/delete existing ones).
Apex does everything for you; you'll only have to make it pretty because it'll work "as is". With your approach, you'll have to program everything yourself.
I have created Oracle apex dynamic action to create text fields dyanmically, but the event fires only once. That is only once the text fields get created.
Not sure i get what you are asking, but I can see to possible meanings:
You are using javascript to create new page items on each click, in which case I strongly advise against - the best practice would be to insert new rows into an interactive grid, which you can latter parse as a collection to do whatever you need
You still intend to create new items, look into the documentation of apex_items:
https://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_item.htm
How to populate data from a dataset or datatable into a report table using telerik reporting?
I've been trying to so by binding an objectdatasource to a datatable next I bind the object to the report table but it cant acces the default GetData() method neither display the data fields.
The easier way to achieve a simple databinding it's to use the GUI.
You're a wizard Miguel!
Open your Report in design mode.
Click the Data Source Components.
Let the Magic happen follow the wizard.
Add Your Data Item ( Report / Table / List ...)
Click, Rigth Click > Properties, Data: Datasource
You will be designing your report mainly by the GUI. Play a bit with it to learn.
I have a web application that inserts/updates/deletes records from a database. Each time a transaction is made to a table, the change is recorded with the type of modification and the previous values from a trigger. What is a good web user interface layout to view such transactions to the users? Currently we just dump the whole history table to the user in a html table row and column format. I'm looking for some interface hints to present these edit history better.
Thanks for your input.
You can use a grid representation of the database table, plain html or produced by a js framework, plenty of options out there.
For the newly inserted records with no updates, just show the record with the insertion datetime.
For records that have been updated you can add a link/button at the end of the row with a title like "history" or "previous versions" or somethink like that and when a user clicks on it, then you can open a subgrid under this record or a pop up with a new grid (depends how you will implement your grid on the first place) which will show this record's history only.
The deleted records, you can add them (at the bottom of the table maybe) but grayed out or striked out. Again you can add the history option if you want it even for deleted records.
EDIT:
You could also add some filtering functionality above your grid for the user to select/see only the inserted/updated/deleted records and of course sorting functionality on the grid columns
how to develop a scrolling table with rows which will have more than one dynamic data in one row ? It should take data from web browser.
You can create the table like view as described by Matt Lacey. For dynamic data you can create data-template for your table and bind them to your data source. When you click items in a list you can modify ur data source so that it will be reflected in your table.Note: Make sure to implement INotifyPropertyChanged so the changes in your data are reflected correctly on the UI.
To create a table, simply use a list where each item is a row in the grid and then template the item to display data inside a single row grid.
IMPORTANT: Be sure to set a fixed width on each cell so that all rows look the same and aren't resized independently.