How To Get Value of IR Search Bar Oracle APEX 18.2 - report

I'm trying to build a dynamic action on IR(Interactive Report) to capture the search value of the search bar. The search value should be pass to a hidden page item and I will then proceed with some code using this page item value. However, I have search over the net but did not found a way to get the value.
I have tried using $("#apexir_SEARCH").val() and document.getElementById("my report search bar id which I get from inspect element").value, but both of them did not work for me. Any Idea to get the value of the search bar before/after region refresh?

document.getElementById("myReport_search_field").value is working, I was met other javascript error yesterday and hence no result is return due to that error
Thanks

Related

SSRS 22017 passing a parameter value to a url

Hi I have been trying to pass a value in to another report via a URL link, but cannot get the syntax correct, I have trawled the net and the 8 questions already in Stack and tweaked my code for each answer but cannot get it right.
I have a fully developed report that used a parameter "SALES_ORDER" you manually enter the SALES order and the report runs ok.
I have another report that is a graph of the above data with the sales order as the key to both.The graph is showing the last 10 sales orders by sales order number , when I click on the sales order number I want to be taken to the URL of the original developed report taking the sales order I clicked in in the graph so the original report uses this as the parameter.
The code for the jump to in the action box of the graph is :
="http://SERVER_NAME/Reports/report/GEMINI%20REPORTING/BY%20DEPARTMENT/PP/Manual%20Production_order_tracker_V31&rs:Command=render&SALES_ORDER="+Fields!SOPT_SALES_ORD.Value
SSRS likes the code as the graph report runs ok, I can click on the required bar for the specific sales order It then opens the correct URL page but I get the error below:
"The path of the item '/GEMINI REPORTING/BY DEPARTMENT/PP/Manual
Production_order_tracker_V31&rs:Command=render&SALES_ORDER=2900252422'
is not valid. The full path must be less than 260 characters long;
other restrictions apply. If the report server is in native mode, the
path must start with slash. (rsInvalidItemPath) Get Online Help "
The parameter in the developed report is "SALES_ORDER".
I know I could duplicate the developed report and include it in the "new project" I am working within but that then means for any change to the developed report I have to make the same changes to the one in the new project, hence wanting to hyperlink to it.
any help would be appreciated.
Thank you.
Tony King
You can use Action as Go to Report and give your Report name and Then therein you can give Parameter name and it's Value?
Screenshot for Reference

SSRS Sub-Report only using default parameter to create dataset, even though parameter is successfully being passed from the main report

I have been working with SSRS for the last year and a half or so. Everything I know from it has been learned by trial and error and google. So hopefully I get my terminology correct, but forgive me if I say something incorrectly.
I am using Visual Studios 2015, connecting to SQL 2012 server. I'm creating an asp.net/VB web application to display SSRS reports on a local site. All of my reports up to this point have been a single report with no sub-report. If "sup-report data" was desired, I created a drill-through, using an Action, to navigate to a completely separate page. This has been working really well for all my reports, but now I would like to get a little fancier.
I have been trying to create a SSRS report that contains a sub-report. The main report contains summary information about batches of a particular product that has been run (blue and white portion of the table in the picture).
If a user wants to view more specific details about the batch, they can click on the expand/collapse button of the "Process Order" column, and a sub-report below the summary line will appear with more specific information about the batch (sub report is the light grey/dark grey table).
I configured the properties on the main report to pass the ProcessOrder value as a parameter on the sub-report and create a parameter on the sub report to accept this parameter.
You can tell that this parameter is being passed successfully because I have the respective parameter being passed and displayed just above the table (and it matches the number on the main table). As you can see from the picture, I also have the Process Order number displayed on the sub-report table itself, and this number is different than what is being passed to the report. It is showing a "1", which is the default value that I gave to the SQLDataSource control on my aspx page to build the dataset. I've tried not setting a "Default value" but then I get the following error:
“Data retrieval failed for the subreport, 'test_Sub_Report2', located at: [location on hard drive] Please check the log files for more information.”
Has anyone encountered this problem before, or can anyone give me an idea of a direction to go from here? I feel like I’m very close since I’m getting the parameter successfully passed to the sub-report, but the dataset is just not using that parameter to go get the data from SQL, and I’m not sure how to tell it to do so.
I can add more details and post more of the actual code, just let me know what you need and I will do my best to get it to you. I would have included more screenshots, but I don't have enough rep points to do so yet.
You need to go into the DataSet that populates the sub-report, and go to the Parameters tab, and map the ProcessOrder parameter of the dataset to the Variable that you pass the ProcessOrder parameter to from the main report.
I ended up figuring out the answer. I used the answer from #Lazy Coder on this question: SubReport is not working after adding parameter I was adding the parameters to the sub-report incorrectly. I did have them passed to the sub-report through the table on my main report, which was getting the parameters to the sub-report, but the sub-report was not using these values to create the data set. On my test_page.aspx.vb file I had to change my SubReportProcessing Event Handler. I needed to explicitly set the parameters values there. Since the time that I originally posted this question, I added another parameter to my stored procedure as well, subTotalTime, to correctly filter my results.
Public Sub SetSubDataSource(sender As Object, e As SubreportProcessingEventArgs)
Dim report = DirectCast(sender, LocalReport).DataSources(0)
Dim subProcessOrder = e.Parameters("subProcessOrder").Values(0)
Dim subTotalTime = e.Parameters("subTotalTime").Values(0)
SqlDataSource_PPMS_test_Sub_Page.SelectParameters(1).DefaultValue = subProcessOrder
SqlDataSource_PPMS_test_Sub_Page.SelectParameters(2).DefaultValue = subTotalTime
e.DataSources.Add(New ReportDataSource("DataSet2", SqlDataSource_PPMS_test_Sub_Page))
End Sub
SqlDataSource_PPMS_test_Sub_Page is the id of my SqlDataSource object on my aspx page.

Issue with Finder in Drupal 7

So, I am using Drupal 7 and I'm having an issue with the Finder module.
I have a view set up with a list of a specific content type. In my Finder I have 2 select lists set up to filter the view, both with a blank option appended to the beginning, and also a text box.
When I view the page and select a value from either of the select lists the page works fine. The problem pops up when I leave both select lists blank and the text field empty. Instead of returning all results, which is the behavior I want, it return no results.
In the Finder module for my select lists I have 1 of the "Choices" set to Used Values and I have the field set to the correct content type I want to filter on. The 2nd Select List is set to "Available Options." Both Select Lists have the "Empty Choice" setting set to "empty."
If there is any other information I can provide, let me know.
This has been a very difficult bug to Google and I am hoping someone can point me in the right direction.
Answered.....Sort of.
The problem turns out to be version of WebForm module that is being used. We were using version 7.x-4.3, which is the latest, but rolled back to version 7.x-4.1 and the issue resolved itself.
It seems odd to me that a product that is used by hundreds of thousands of people would let a bug this annoying slip by.

Error 3022 Cannot add a duplicate value because of a key constrain

I am trying to insert a value into a table and i am getting an error 3022(It says that there might be a problem with a relation, a key or index). I have not created the table myself but i found out the specific column that triggers the error. I have checked that its not a key, index and there is not a relation to that table that depends on that specific column.
Is there anything i can do to avoid that error?
Thanks in advance.
No offense intended, but I tend to believe the application. There must be an index or a relation that you believe is innocuous but is actually the cause of the error. Therefore, I recommend the following:
In Access, with all tables closed, click the "Database Tools" tab on the ribbon and then click the "Database Documenter" button in the "Analyze" section of the ribbon bar. In the dialog box that appears, place a checkmark beside the table in question and then click the "Options..." button. In the options dialog, make sure that the highest level of detail is selected:
Click "OK" to close the Print Table Definition dialog, then click "OK" again to run the Documenter report.
Study the report carefully. If you don't see the cause of your error then, in the "Data" section of the ribbon, click "PDF or XPS". Save the report as PDF, upload the PDF to a site like wikisend.com, and then post the link here so we can retrieve the report.
Oh, and update your question to tell us exactly how you are trying to insert the data, and in what field(s). If you are using an INSERT query, post the actual SQL code you are trying to use.

How to change values of parameters in PRD

In a report I set the client then the client's product. The client drop down is populated by a query that returns the client's id and client's name. Then I use the client's id on the second query to return that client's products. It works nicely up until I've selected a client and then a product and I want to change the client. On this case, the product's drop down displays the product query ids for the previous client.
I've googled a bit and found that there's a function to be added on the second parameter's "Post-Processing Formula" field. I've tried using something like that:
=IF(HASCHANGED[id_client];[id_product]="")
But it didn't work. What's the correct syntax for this? Is there an onchange implementation?
Thanks in advance,
I am using report designer 3.9.0. I performed a similar test. Both of the parameter's are drop down list and the second parameter automatically gets blank when first parameter has been changed.
This gives a syntax error on Report Designer 3.9
=IF(HASCHANGED[id_client];[id_product]="")
HASCHANGED needs ()
This does not give a sytax error
=IF(HASCHANGED([id_client]);[id_product]="")

Resources