I am new to ADF and JDeveloper. I am trying to create a view criteria and query panel with table using JDEveloper 11g. Right now I am able to create the view criteria, but all my search fields are showing as plain text input boxes. I actually want one of them to be shown as drop down list and one to be shown as the "select many shuttle" component.
Can anyone tell me how it can be done using JDeveloper/ADF.
Did you define an LOV for the fields in the VO?
See if this video helps: Dependent LOVs in an af:query component
1)Create a LOV for that attribute
2)Ensure that in the control hints of the attribute , the control type is "choice list".
if you want a component as LOV then you have to create LOV on that attribute on ViewObject.
but you can not show shuttle in af:query component.
http://www.javadrive.co.in/shuttle_component_in_ADF.html
http://oracleadf-java.blogspot.in/2012/11/shuttle-component-in-oracle-adf-allow.html
Related
I have to create a table with different type of fields like text box , drop-down , toggle button etc.
For eg below fields for 20 rows
Name - textbox
Gender - dropdown
I was thinking of creating a redux form and embed it into a table and repeat it for each rows. Also want to bind data per row.
But not sure how to progress with it. Please help and suggest any other way. Due to certain restriction I could not use available components..so I have to create my own component
We are having a cascading LOV -> Deaprtment, class(inputComboBoxWithLOV). Class LOV is filtered with selected value of Department. When I follow the below steps:
select a department
click on the down arrow to show filtered results, I see filtered classes with the selected department. Select a class and tab out.
clear the class field, again click on the down arrow to show filtered results.(P.S : Department field is not touched) But the class field is not showing filtered results. But when I clicked on More... to display the Search and select popup, I could see the filtered results.
Only the the combobox dropdown values were unfiltered.
On Debugging, found that the viewCriteria which was applied to filter using Department is missing. The entire Where clause is missing.
This is occurring after our latest migration to 12.1.3, earlier we were using jdeveloper 11g and never faced this issue.
Any pointers about this issue will be highly appreciated.
The LOV UI hints "Filter Combo Box Using" option was unchecked, when I checked it and tried I was able to see filtered results in the dropdown.
However I did not understand why it was not picking values from existing view criteria from the view object definition related to the LOV's view accessor and why should I explicitly check this option.
This sounds like a 12.1.3 ADF BUG. You should fill in a Service Request with Oracle about it.
If you don't have a SR account, I will be happy to fill one in your behalf, if you can provide a sample workspace running on HR schema where we can reproduce the problem.
I have a page with 3 containers, the top will be used for search form, two the left side will have the adf form and the right a table view. One thing to note is that all the 3 sections will be using the same View Object or inturn the same table. When the page is loaded I want my form to come in the createInsert view. I tried using the invoke criteria for the creatInsertaction but this is messing up my search, since the form is empty and if i do a search in the search form the validators in the ADF form will fire and every thing goes for a toes.
Please suggest any solutions for this.
Use different view instances. Probably 1 for the search and 1 for both the form and the table.
Some basic info about view instances: http://andrejusb.blogspot.be/2011/06/understanding-adf-bc-view-object.html
You can use the same viewObject but add some viewCriteria for the search part, and use a CreateInsert in your taskflow before show the view.
use mange-Bean and do create insert pragmatically inside the constructor .
How can I manipulate a search field LOV component to force it to be uppercase? I can do this for a LOV field, but I don't know how I can access the LOV pop-up search field that you get when clicking the search icon.
Please see below for field I need to make uppercase:
To be honest, I don't think you can modify the behavior or look-n-feel of the built-in search and lov components. The only possibility I see is if ADF Skinning lets you run the CSS command "text-transform: uppercase;" on the search field.
Otherwise, I would just create a custom dialog box, then build your LOV the way you want it to behave. I did that for most of my lovs in my apps. All the lov is, is a table with filtering enabled.
Good luck!
I have a requirement to create a custom form field that is basically an extjs grid. The user should be able to click a result in the grid. This clicked result should then become the fields value. Also, this field needs to extend Ext.form.field. Here's what I got:
Ext.define('MyApp.field.Grid', {
alias: 'widget.GriedField',
extend: 'Ext.form.field.Base',
I'm a lot of confused on how to add a grid to form field base. Looks like form field base's template expects HTML. How do I get it accept a component?
If you just need to select a value from a list of items. Why not use a combobox?
If you need to select multiple items. There is an example of how to use the MultiSelect ux component in the documentation examples.
http://docs.sencha.com/ext-js/4-1/#!/example/multiselect/multiselect-demo.html
If you really must use a grid. Then I wouldn't bother with trying to create a field type and cause yourself grief.
Add a listener to your grids selectionchange event and update a hidden field in your form with the value you want from the grid. Job done.
I ended up putting the grid on a form indirectly through creation of dependencies on my model.
My model has master-detail, which the detail is just a store reference. I found that using associations did not work for me.
So, in adding a field to a form, I have something that manages changed events for the model (master record) and the detail stores.