For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Hi all,
I want to add search (text item + button next to each other) near the default search item in the table. Can anyone help me to do this?
Please, see the following screenshot for more clarified question.
Thanks!!!!
Thanks for any answer!
Hi
For which?
Interactibe Report or Interactive Grid?
This question does not make logical sense. Why would you want to add an additional search to something that is already capable of doing it? The Report already has a search as you can see in your image.
For report
Thanks for helping
By creating new, i learn APEX and also the near search item will be little bit easier for search. but the main purpose to learn how to use apex.
Hi cs-ftw,
First create a region, add your buttons and make sure the region is empty container with no headers.
Give your buttons a static id.
and in the write the following code to page Javascript., "Execute when page loads"
where btn1 is the static id of the button.
var a = $("#btn1").parent().html();$("div.a-IRR-controls:last").append(a);
var a = $("#btn1").parent().html();
$("div.a-IRR-controls:last").append(a);
Regards,
Zapp
I am not at work right now but definetly will try this tomorrow and will reply any results.
Thanks a lot for helping!
hi, it didn't work. and id on't get ur point. i want to put them next to the default search item. why would i create a new region.?
Hi @"cs-ftw"
Extra region is just an container. in which when JS executes,
any_item.parent.html();
All the items will be appended to the IRR controls. In a single JQuery. So an extra region which ofcourse you'll have to hide and presents it's DOM some other place.
cs-ftw wrote:By creating new, i learn APEX and also the near search item will be little bit easier for search.
cs-ftw wrote:
By creating new, i learn APEX and also the near search item will be little bit easier for search.
Easier to search what? In order to create a working search feature the UI controls have to be hooked up to the report. How is this supposed to work?
How will this search functionality differ from that built in to the report?
but the main purpose to learn how to use apex.
You have learned that APEX does not natively support this type of customisation, largely because of the existence of several other ways to filter interactive reports. If there are compelling reasons for doing this (and I can only think of one) then it is possible, but the implementation couldn't be seen as learning "how to use APEX" because it wouldn't be being used as intended.
Hi, the method u told me didn't work. I tried@"EnigmaCoder" 's instructions on Search item for specific column (without using default search) on Apex 5.04 . it worked. but, i want search button closer. Right now, i have the following result: Can you help with it?
Thanks!
Hi @"cs-ftw",
The class where you were putting it in was IRR Button, Which will be always on the Right of the IR., according to the template Design of IR.
For a suggestion. You should avoid Two Search Fields on a single bar. UI Looks fuzzy IR Toolbar.
Use the following:
Hi, thanks for helping and t is working, but,
I get the text field to closer and the search button is still in the right side. For the search button's name (in the picture "BTN199), do we choose the Button Name (also label) ? Thanks again for helping!
Please, see the following screenshots for more information. Thanks again!
****---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------********
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------********
I understood about the part with SEARCH button. I added "BTN199" to static id which made search button to come closer.
Still, i want to move Searchbar little bit right so, it can be shown more organized and correct. Thanks for helping again!
Please, see the following screenshot for current result. Thanks!
You could add Selector + CSS line for every item and give them a decent margin, left right or bottom.
$('#BTN199').css('margin-left,'10px');
or Padding-left, right.
Hope you understood.
Hi @"Zapp_Brannigan" ,
Thank you so much for your help!!! It worked! The following is the exact code I needed and you helped me to create it. For all other users, I'll add the final code and the result here right here.
Thanks again! THE CORRECT ANSWER WAS GIVEN BY @"Zapp_Brannigan" and I used his answers and edited the search item!
//Add the following code to the page's "Execute when Page Loads".
// Customizing the place of the "Network Search" item.
$(function(){ //making search iteam and button together and right side of the deafult search
var a = $("#P13\_SEARCHBAR"); //search item var b = $("label#P13\_SEARCHBAR\_LABEL"); //it's label. var c =$("#BTN199"); //the button $(".a-IRR-actions").after(a); $("#P13\_SEARCHBAR\_LABEL").css("margin-left","800px"); //moving label (including text item and button) to right $("#P13\_SEARCHBAR").css("margin-left","5px"); //white space between the text item and "searchbar" - label $("#P13\_SEARCHBAR").css("margin-right","8px"); //white space between the text item and button $(".a-IRR-actions").after(b); $("#P13\_SEARCHBAR").after(c);
}); //end
RESULT:
To clarify where I put the code: