I am new to oracle adf in my application one of the field is id and it is sequence generated value Whenever I entered remaining values and click on save then only it has to display with sequence generated value before saving it has to be in hide mode. Can any one help me how the approach is.
set visible property for seq field. like below
visible="#{binding.filedName.inputValue != null}"
by default seq field value is null so it will not display. once u click save button, this field value to be set to next seq value so it will display
Just remove this value from UI and do your number generation for this field in model.
You can set the visible attribute of the field in your page to be based on an expression language such as #{viewScope.showfield}, then add a setPropertyListener to your save button that sets the #{viewScope.showfield} to true.
Related
My goal is to have a button that when user clicked it, it will prompt text input. Once closed, the value inputted in prompt text will be assign/display to all the rows in a given column. So for example, I inputted '9'. Once dialog page closed, All 10 rows from column A of Interactive Grid will have '9' as a value. This is to lessen the user typing the same value for multiple rows.
If I understood you correctly, user enters the page that contains an interactive grid and starts entering values; you'd want to use the same value for some column in all rows user enters.
If that's so, then don't reinvent the wheel, but:
navigate to interactive grid's column that should have the same value throughout all rows
go to its properties
set the Duplicate copies existing value property ON
Therefore, user would enter that value only for the first row and simply duplicate that row.
Alternatively:
create a page item (let's call it P1_DEFAULT_VALUE)
set it to "Submit when ENTER pressed" (or create a submit button which would do the same; because, item's value has to be in session state, otherwise you can't use it)
navigate to interactive grid's column that should get value entered into P1_DEFAULT_VALUE
go to its properties
scroll down to Default section
set
type = Item
Item = P1_DEFAULT_VALUE
Doing so, column would "inherit" page item's value for each row entered.
I have created an interactive report with a form. In the form I have two select lists. The first select list is a list of values defined in the shared component. And the second select list is another list of values which is also defined in the shared component but this select list populates its LOV based on the selected item in the first select list.
Let the names of the select lists are:
Region.
Country(which is dependent on the selected item in Region field).
Now when I press save/create button in the form, a row is created in the report. The Region column and Country column in the report are both "Plain Text(based on List of Values)". But what I see is the Region column is showing the correct display value of the LOV but the Country column is showing the returned value of the LOV.
I want both of these columns show the display values rather than the returned value. Could anyone help me find the solution?
Are you using the same LOVs in form and interactive report? If so and in the conditional LOV (countries) you refer your form item (ex. PX_REGION) it will not work correctly in IR. Probably IR is showing the returned value because the option "show extra values" is checked.
If this is the case my suggestion is to change your IR and instead of a "Plain Text(based on List of Values)" you make it plain text and change the query to an inline query in IR query to obtain the value you want to show.
If you don't want/like to put your LOV queries in different places I suggest you to use this approach shared by Nick Buytaert
Hope this helps you solve your problem.
When you create a jqgrid there is a default button on the bottom of the grid that allows you to create new records.
However, when you open the modal, all input fields are empty.
In my situation I need this button, but I also need the exact same thing but with the possibilty of adding a few parameters so some of the fields are already filled in. The parameters would come from the selected row at that moment.
Like when I click a row where the date is set to 01/01/2099 i need the add-modal to open with the date already set to that date.
You can use beforeShowForm or afterShowForm to make any changes in the Add Form during opening. For example you can read the values from currently selected row and fill some fields of the form with new values. To be open Add form on click or double-click on the row you need just call editGridRow inside of onSelectRow/ondblClickRow callback.
I have a repeat control, repeatControls = false, rendered = true, using both indexVar and var. Value is an array from a sessionScope variable, so if 4 values, 4 items are shown.
Printing Computed Fields isn't an issue
I added an Edit Box inside repeat and set it to bind data using compositeData.editField1
no Partial refreshes
Then there is a button which has to set the data of all rows of editable fields to a sessionScope variable,
if I just do
sessionScope.put("editField1", compositeData.editField1), I just get the value of the last row. how to add the values of the other rows of edtitable fields ? There are no bindings to Notes views or documents as they aren't needed. Thanks
If you have input fields, you need to bind them. Binding them to a scope is perfectly fine. In the same question Michael was pointing to is the link to a sample with add/remove row logic (just substract the part where it goes back to the field).
Excercise 23 has all you need.
I am using the javascript tabular feature. I have hidden textboxes in one tab that I am reading values from. When reading values from the same tab the value works perfectly.
But when change the tab the value of textbox resets to null.
How can I get this value so it wont be lost.
Thanks