Oracle Apex 5.1 Interactive Grid change column type by row - oracle-apex-5.1

In APEX 5.1 interactive grid I want to change the type of column (Text field or Select list) based on the content of the current row.
Actually it's a key-value editor on a two column wide table. Values on some keys are free to edit, others are restricted to specific set of values.
Is it possible to do with interactive grid?

Related

Oracle Apex LOV return mutiple value just like forms 6i lov

Oracle Apex LOV return mutiple value just like forms 6i lov
in interactive grid layout how to return mutiple value if user select from list
PLEASE SEE PICTURE
LOV
Region detail interactive grid
ig PAGE ITEM TO ig COLUMN VALUE
Dyanmic action on ig column and set value from page item
I just created an Interactive Grid and set one of the columns to be a Popup LOV. In the settings for that column, I saw this:
Once I enabled Multiple Values, I was able to select multiple values:
If that doesn't answer your question, please update your question with more detail as to what you're trying to do. The pictures you provide are not enough to understand.

how to insert items in database from two regions in single form in oracle apex application

I have created a form with two textbox items and one editable datagrid in oracle apex form. Now i want to store those two items data along with this grid's records in single database table as we can do in invoice form. My items are in form region and grid is in its sub region. How to write the insert query. I have written a query but its storing only form items data but not grid's data.
my query as follow :
insert into FOREIGN_SAMPLE (REF_NO,PARTY_NAME,PRODUCT_NAME)
values (:P22_REF_NO,:P22_PARTY_NAME,:PRODUCT_NAME);
Here, PRODUCT_NAME is field of grid view and other 2 are form items.
Here's how:
interactive grid should contain those two columns (ref_no, party_name)
as their source, use form items (:P22_REF_NO and :P22_PARTY_NAME)
once you enter values into the product_name column in the interactive grid and save changes, ref_no and party_name will be saved along with product_name
In other words: don't write your own INSERT statement.

What determines default Interactive Report column display in Oracle APEX 5?

I have an Interactive Report page in Oracle APEX 5 that includes a SQL Query with ~15 columns or so.
When I first load the report, the columns are in a certain order, and columns are set to Do Not Display (as seen under Actions-> Select Columns).
All the columns have the property Type as Plain Text and none has a condition defined in the Page Designer, under {Page Name} -> Regions -> Content Body -> {Interactive Report} -> Columns.
My Interactive Report has a dynamic query under a APEX_COLLECTION and the end user doesn't have developer privilegies.
My question is, what determines which columns are set to Do Not Display and those set to Display in Report?
When you first create an Interactive Report, all the columns will be present in the Designer under the Columns list and in the order in which they appear in the SELECT statement. When you run the page, the IR will display all the columns.
If you edit the SQL behind that IR to add columns, any new columns will appear at the end of the Columns list. You will have to run the page, select Actions > Select Columns, and add them to the displayed list of columns to have them display. You'll probably want to then select Actions > Save Report as the primary default report to have them displayed by default for your users.

Oracle Apex 5.1: Report column based on LOV(List of values) showing returned value not display value

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.

Display Column and Return Column LOV

I am working in Oracle APEX(Application Express). When I want to create a List of Values (LOV) it gives me only one option for displaying and returning value. Is there any method in APEX so that it can Display me more than one column.
No, there is no way to display more than 1 column by default.
You could alter your lov query to concatenate multiple column values into a display columns
select empno return_value, empno||': '||ename||' - '||job display_value
from emp
You can steer markup through the Popup LOV template too, if you'd want to use a fixed width font.
Use a plugin such as the SkillBuilders SuperLov. However, this plugin does not work in tabular forms.
Roll your own by using for example modal pages (again, SkillBuilders have an excellent plugin for modal pages), or through the use of javascript (ex creating new windows and handling returns)

Resources