Have 4 fields on a adf page. How to refresh their values from database one after the other based on use selection - jsf

I have an Oracle ADF page with 4 fields in the below order.
radio button (select one). Always populate the radio selection from values in database.
drop down list (select one): Empty by default. Pull the value from database based on radio button selection on 1.
drop down list (select one): Empty by default. Pull the values from database based on drop selection made on 2.
drop down list (select one): Empty by default. Pull the values from database based on drop selection made on 3.
I need to pass the values selected in 2, 3, 4 to a view/query in the model and retrieve a list and display it on a new page.
I have generated the entity and view objects in JDeveloper. How do I develop the above logic.
Any help on this is highly appreciated.

Related

Kendo UI For Angular2 - Grid Row Select

I have a working <kendo-grid> component with 10 visible rows over a data set of 34 rows (approx 4 pages). Sorting and selecting is working as expected.
<kendo-grid [data]="gridView"
[pageSize]="pageSize"
[skip]="skip"
[pageable]="true"
[height]="300"
(pageChange)="pageChange($event)"
[sortable]="{ mode: 'single' }"
[sort]="sort"
[selectable]="true"
(sortChange)="sortChange($event)"
(selectionChange)="selectionChange($event)">
Say I select second row. Then I sort the table and the selection stays on row two but of course it's highlighting a different record. It's always selecting the second row on the grid, which of course, it's what I want.
How do I clear the selected row in my (sortChange) event so at least the user isn't presented with a different selection that they one they already chose. I am open to some kind of data binding attribute for selected row that I could set to null or some property on gridView or even poking around inside #ViewChild .
Any help would be appreciated.
Normal Sort
Ascending Sort
Descending Sort
I had a similar question here: Select grid row item from code
Basically, you also need to select the grid row item from code without user interaction and this is currently not supported in the current beta build of the Kendo UI Angular2 controls.
In my application, I resort to triggering a click event on the row I want to select. :/
I do this in a case where I have 'up' and 'down' buttons to rearrange the grid and want to maintain my selection when I switch items.
var grid = document.getElementById('myGrid');
var rows = grid.getElementsByTagName('tr');
rows[idx].click(); // add one to the desired row index to skip the header row
Here's a (sloppy, minimal) Plunkr of this scenario: http://plnkr.co/edit/09dlqdl0Xchoy0e5zKRq

lotus notes creating new view but getting all documents of the database

I am new in lotus notes.
In an existing application i want to create a new view. So i created the new view and put it in the main -Views folder. i copied from blank. The formula selection is SELECT #all. Then in the design of the view i placed 2 columns with 2 fields(updateDate and updateText) these are from a new form that i made. But now if i save and preview my View it takes a long time to index and when done i see 0 documents but i can click on every row. And if i click on a random row then it will open a random document which is in the database.. as if the view populates the whole database. And i don't get the form document where i got the fields updateDate and updateText..
How come?
Since the view selection formula SELECT #all, the view selects alle documents from the database.
So you need to change the view selection formula to for instance select documents based on the form used to create them:
SELECT Form="MyNewForm"

jqgrid click select all, but not all of them selected

I use jqgrid with multiple selection. When i clicked select all for a multiple rows data, not all of them automatically checked. What was wrong with this?
If my grid has only one row, select all works.
The root reasons is that the there are duplicated row id in json data. Following example show that there exists the duplicated row id for 2 and 3. One the first of the duplicated row id will be selected when select all.
{"page":"1","total":"1","records":"10","rows":[
{"id":"10","cell":["firstaceha","Evebdfg","5","10","2000-01-30","12:30","notesss"]},{"id":"9","cell":["firstaceh","Evebdfg","7","9","2000-01-30","12:30","notesss"]},
{"id":"2","cell":["firsta","Eve","1","2","2000-01-30","12:30","notesss"]},{"id":"2","cell":["firsta","Eve","9","2","2000-01-30","12:31","notesss"]},
{"id":"3","cell":["firsta","Eveb","6","3","2000-01-30","12:30a","notesss"]},{"id":"2","cell":["firsta","Eve","8","2","2000-01-30","12:30ab","notesss"]},
{"id":"2","cell":["firsta","Eve","2","2","2000-01-30","12:30a","notesss"]},{"id":"3","cell":["firsta","Eveb","10","3","2000-01-30","12:30aa","notesss"]},
{"id":"3","cell":["firsta","Eveb","4","3","2000-01-30","12:30","notesss"]},{"id":"1","cell":["first","Eve","3","1","2000-01-30","12:30","notesss"]}]}

How to get the selectManyCheckbox row entire values to the list using JSF and datatables

Select Many Check box items to Cart :
Declare check box first column of data
Declare the command button to the above the data
Once user click the check box current row data add to the list and this list data go to the Cart page
On click the check box current row data add to the list and on submit the button the entire list data go to the Cart page.
Thanks in Advance.
You can use primefaces datatable component for select one or more rows from a table and send this information to everywhere.
Take an example of this in showcase (the datatable have many others options too).

Populate datablock2 on button click from datablock1 in oracle forms

I am new to oracle forms.Here is my question.I have 2 datablocks and 1 control block.I have 3 txtboxes in datablock1,a search button in control block and a tabular form in data block2.
Now,If I enter something in the textboxes present in datablock1 and click on search button,It should populate the tabular form in datablock2 based on the search results.
If the text boxes are null and if I click on search button,It should populate the tabular form with all the details.
Help would be much appreciated
You should created a where clause with the field entered in the when-button-pressed trigger.
Then you need to use set_block_property to set the one time where clause of the block, or if you want to use the same query when the user fires a query in the tabular form the default where property of the block.
for example:
DECLARE
v_where VARCHAR2(10);
BEGIN
v_where:='DEPTNO='||'10';
set_Block_Property('EMP',ONETIME_WHERE,v_where);
Execute_Query(all_records);
END;

Resources