Auto-Complete Popup Lov in Apex 4.2 - oracle-apex

Have a question.
I created an Item called P2_CITY_NAME which is a Popup Lov using the following query
SELECT DISTINCT TOWN_OR_CITY A, TOWN_OR_CITY B
FROM APPS.PER_ADDRESSES
ORDER BY TOWN_OR_CITY DESC;
Now when I run the page and see the popup, I can type the city name like Texas City but if I write Tex and press Tab it does not fill automatically.
How can I fill the city name automatically without typing the whole name? Like the onces they use is ebs
I tried text area with auto-complete also but want to know whether the above can be done for popup lov?
I am using apex 4.2 and ebs r12

The easy option: transform your element,P2_CITY_NAME, into a select list.
The second option and probably the best is to instal and use a select2 plugin. I use this one. Look on the demo page if this is what you want.
And final and the hard one update to apex 5.

Related

How to set two filtering values in one column of links in an interactive report? (Oracle Apex 21.1)

I need help creating a link in Oracle APEX.
I have two Interactive Report pages created in Oracle APEX.
The first page is an Interactive Report for a list of cats. When clicking on that link, filter the second page's Interactive Report by the "fur color" column. Furthermore, I want to always be "white" in addition to the color of the selected row.
I try 2 types of methods to create a link in Link Builder.
Name = IR_FUR_COLOR, Value = &P18_FUR_COLOR. and more one line Value = White
Name = IR_FUR_COLOR, Value = &P18_FUR_COLOR.,White
But they did not work.
How should I do it? Does anyone help me?
Thank you for watching this question!
Link Builder should contain only
Name: IR_FUR_COLOR, Value: &P18_FUR_COLOR
Modify the second Interactive Report's query so that its where clause looks like this:
where fur_color in ('white', :IR_FUR_COLOR)
which means that it'll always filter white color, along with any color you pass from the previous page.
There are variations to that approach; for example, you could create another (hidden) item on the 2nd page and pass white to it and then
where fur_color in (:HIDDEN_FUR_COLOR, :IR_FUR_COLOR)

How to use images in “Select List” oracle apex?

I have a country table , with three column country code and country name and country phone code , and static file for all country flag also.
All flag image name same a country code in table ,how I can create a select list to Display country flag CONCATENATION with country name .
I went to apex.world and found this plug-in from Alan Arentsen that seems to fit the bill: https://apex.world/ords/f?p=100:710:::::P710_PLG_ID:COM.ADBC.APEX.JET.OJSELECTCOMBOBOX However, it doesn't currently support APEX 19.1+. If you don't mind experimenting a little, you could update the JS file in the plug-in (once installed) using the code I submitted in this PR: https://github.com/alanarentsen/plugin-apex-jet-ojselectcombobox/pull/6 Or you could wait until he's able to get a new version out, though I can't say how long that would take.
Another option would be to use the popup LOV and then modify the template using JavaScript to allow it to display images. If you take the plug-in or Popup LOV path and need more details, let me know and I'll provide them.

How to disable edit mode of oracle apex interactive grid on double click?

I am using an interactive grid in oracle apex. When we double click the grid it goes into an edit mode. I want to get rid of this functionality because my grid is not editable this way.
if you don't want the user to be able to edit row content, change the column type under Report -> Columns -> Your column -> Type. For example try setting it to Display only so that the users cannot change the content.
I have been trying to replicate the same from a long time. Just found a workaround for this.
Create Dynamic Action on Interactive grid on event Double Click
Set Action = Execute JavaScript Code
Use following code in action
apex.region("emp").widget().interactiveGrid("getActions").set("edit", false);
Make sure to replace emp with static ID which you should provide in IG region.

APEX 5: Make a report cell clickable and pass values

Just got started on APEX 5 and can't seem to figure out how to make cells in an Interactive Report clickable. What I'm trying to achieve is something like this:
Let's say I have a report on Page 1:
I want to be able to click on any cell in Column 2 and 3, and it should open a new page and show a list of items that made up that number, something like this:
I understand how dynamic actions work and how I can pass values but I just can't figure out how I can hyperlink or make the cells clickable, to set up any dynamic actions.
You can make the Column Type a Link and under Link Attributes, define the target page and set the items or filter report accordingly. You can have the Link Text as #COLUMN_NAME#.
I think you will find this post useful
http://www.grassroots-oracle.com/2015/12/tutorial-include-action-button-in-report.html
but most of the time you should start with a very declarative looking link builder, once you change the column Type to "Link"

how to add button for each row record in apex5

I have created an interactive report in apex5.0 with below select:
SELECT article_code,article_desc,order_date, order_status
FROM table_order
WHERE status in ('SHIP','DELIVER','CANCEL');
I want for each row record to have a button that when click it calls another page.
How to do that??
There are a couple options.
Edit the column and change the type of the column to Link.
Create an html link with an href to the page you want. Choose type display, then turn of escaping special characters in the column properties.
Calling another page is declarative, out of the box behaviour, and you'll find such examples in the documentation.
Declarative
http://docs.oracle.com/database/apex-5.1/HTMDB/editing-interactive-reports-page-designer.htm#GUID-B30458D6-9678-40D4-A477-28EE466ED50A
As link column
http://docs.oracle.com/database/apex-5.1/HTMDB/editing-interactive-reports-in-component-view.htm#GUID-48AF053F-0E34-40FA-94FE-19C0400AD499
Manual
http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-url-syntax.htm#HTMDB03019
Using dynamic action http://www.grassroots-oracle.com/2015/12/tutorial-include-action-button-in-report.html