Discussions
Categories
- 385.5K All Categories
- 4.9K Data
- 2.5K Big Data Appliance
- 2.4K Data Science
- 453.4K Databases
- 223.2K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 47 Multilingual Engine
- 606 MySQL Community Space
- 486 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.2K ORDS, SODA & JSON in the Database
- 585 SQLcl
- 4K SQL Developer Data Modeler
- 188K SQL & PL/SQL
- 21.5K SQL Developer
- 46 Data Integration
- 46 GoldenGate
- 298.4K Development
- 4 Application Development
- 20 Developer Projects
- 166 Programming Languages
- 295K Development Tools
- 150 DevOps
- 3.1K QA/Testing
- 646.7K Java
- 37 Java Learning Subscription
- 37.1K Database Connectivity
- 201 Java Community Process
- 108 Java 25
- 22.2K Java APIs
- 138.3K Java Development Tools
- 165.4K Java EE (Java Enterprise Edition)
- 22 Java Essentials
- 176 Java 8 Questions
- 86K Java Programming
- 82 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 208 Java User Groups
- 25 JavaScript - Nashorn
- Programs
- 667 LiveLabs
- 41 Workshops
- 10.3K Software
- 6.7K Berkeley DB Family
- 3.6K JHeadstart
- 6K Other Languages
- 2.3K Chinese
- 207 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 474 Portuguese
Search button process error for interactive report (Help with linking search button, numeric item, d

Hi all,
I am trying to link the search button, numeric field and database together so when I would right down the word and click on search button, it would show the results on IR. I am following this video: https://www.youtube.com/watch?v=Nm5sVJpeZ8c and get error on Pl/SQL section. Can anyone help me to create search item?
Thanks!!!
Please, see the following screenshots for more information about questions and please let me know if i need to give any additional information.
Thanks!
Error message:
My properties and information about IR.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Best Answer
-
Hi @cs-ftw,
In your region SQL Query,
cs-ftw wrote:
Just change you where clause
WHERE ALL_THREE.NETWORK = NVL(:P13_SEARCHBAR, ALL_THREE.NETWORK);
the _id does not exists, bind variables are just variables to bind with PL/SQL in current term. They should be valid items.
Check Below example:
Links here
https://apex.oracle.com/pls/apex/f?p=119200:1:10879742758851:::::
All you need to do is remove _id from NVL.and it will work.
Regards,
Zapp
Answers
-
-
Hi @Zapp_Brannigan ,
I try to search by the information which is inside of the Network column. Do you know how can I do that? After I corrected the mistake, nothing changed - it doesn't work and gives the error I put at the end. I hope screenshots will clarify the setting I have right now. Should I add dynamic actin to Search button? What should I do next/? Can you help me with it? IF there any clarification i need to do, please let me know.
Thanks!
ERR-1002 Unable to find item ID for item "P13_SEARCHBAR_ID" in application "107".
Unexpected error, unable to find item name at application or page level.
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
-
Hi @cs-ftw,
If you have to search the network column from the search bar, you need to use your item in the Report Source.
Add your page item in Page Items to Submit, below the report query.
No need to add a DA.
Regards,
-
Hi @Zapp_Brannigan ,
As you would know already, I am new on APEX.
Can you please explain where is the report source? And in your screenshot it says about checkbox, but i don't have a checkbox. Did you attached that just to show the ending (from EMP where ename = mv1(:P1_SEARCHBAR,ename); ) ?
By saying page item, do you mean the text field which for input for the information to search?
Thanks for your help!
Screenshots are for to clarify my settings.
Thanks!
---------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------
PLEASE, LET ME KNOW IF I NEED MORE INFORMATION TO PROVIDE. THANKS!
-
Zapp just posted the example to show how the searchbar_id can be declared. You will need to change it to what you need in your report.
Go to the IR page and use that report source, add the last part to it and it should work how needed. It may need some tweaks in order to run properly.
where network = nvl(:P13_searchbar_id, network);
Although, I think there is a problem elsewhere from this and that searchbar_id is not being declared properly.
-
Hi @cs-ftw,
As you would know already, I am new on APEX.
No Problem, I am happy to help. I was new 2 years back.
Cheers.
So region source is the content of the rewgion, simple as that. you can own a empty region, where you can write your html tags and JS.
So like that an Interactive Report region is automated with tahle data nicely.
The SQL Query is source of an IR.
--the IR Query
select EMPNO,
ENAME,
JOB,
MGR,
HIREDATE,
SAL,
COMM,
DEPTNO
network, --consider your column, you want to filter with.
from EMP
where upper(network) = nvl(upper(:P2_SEARCH),network)); --read about NVL, it will return the entire result set if null is in your item.
--network = network. and upper is usually used when you are working with string matching.
-- don't worry about the button, this work has to be done on submitIf you want to limit the button, you can go to button condition and do the following,
So, it only fires when request is submit., request value has to be similar as buttons name.
Regards,
Zapp
-
Hi @AdamJaws ,
Thanks for your reply and explaining the answer of Zapp.
I just want to make sure that I did it correct. can you please see the screenshots for changes? Also, I still get an error. Where can it be? And you said that you think there can be mistake elsewhere. Where do you think it would be?
(Note: I changed the type of text field to Text Field with autocomplete because I need to use "." between the numbers which Numeric type doesn't let me use)
Thank you for your time and help!
ERROR:
--------------------------------------------------------------------------------------------------------------------------------
CHANGES:
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
OTHER SETTINGS:
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
THANKS AGAIN!
-
I do not see how you are declaring from p13_searchbar to p13_searchbar_id. That is what I think would be causing the problem. It just seems you have 2 items for 1 action.
Zapp knows what is going on better than I do with this so maybe he can see something I do not.
P.S. @Zapp_Brannigan thank you for the upper hint I had totally forgotten about that.
-
Thanks for your reply. I think that's correct that i put two items for one action. Thank you for your time and trying to help!
@Zapp_Brannigan , can you help me to make it work, please? Also, please let me know if i need to give you any additional infromation.
Thanks!!
-
Hi @cs-ftw
Just use : P13_SEARCHBAR inside nvl function, in the SQL query (region source) and remove the computation or process you have to copy value of searchbar into searchbar ID.
I am out, would not be able to make an example.
Good Luck,
Zapp