Passing ID as csv of an interactive report parameters in a function.
Hello. I tried to add a checkbox in the first column in an interactive report and have tried to spend 'EMPNO' in the box. I tried this query.
select apex_item.checkbox2(1,EMPNO,'CHECKED')" ", EMPNO, ENAME, CASE WHEN JOB='PRESIDENT' THEN 'REMP PRES' WHEN JOB='MANAGER' THEN 'REMPMANAGER' ELSE 'REMPOTHERS' END JOB, MGR, HIREDATE, SAL, COMM, DEPTNO from EMP
Instead of boxes, I received a message on the screen in the first column as, < input type = "checkbox" name = "f01" value = "7839" CHECKED / >
I also have a button "submit" on this page. When this button is clicked, I to call a (Javascript) function passing the EMPNO of the rows with checkbox enabled in the settings. The "EMPNO" parameter should be passed as CSV (if several check boxes are selected, I want to spend the EMPNO of all audited lines as parameters in a CSV file).
I have reproduced the issue in oracle workspace.
Workspace: XXKIRAN
Username:[email protected]
Password:kiran123
App.No: 95253
Page: 4
Can someone help me on this please?
Mencis Joe wrote:
I also have a button "submit" on this page. When you click this button, I want to call a function (Javascript) which passes the EMPNO of lines with checkboxes checked in the settings. The 'EMPNO' parameter must be passed as CSV (if several check boxes are selected, I want to spend the EMPNO of all the lines that have been verified as parameters in a CSV file).
Why CSV? The first thing that the function will probably do is to convert the string to an array...
1. Add a static ID column of the box for use as a jQuery selector.
2. place the Action defined by the dynamic ActionSubmit button.
3. create a dynamic action:
Event: Click
Selection type: Button
Button: Send
Real Actions
Action: Run the JavaScript Code
Fire on Page load: NO.
Code:
var checkedIDs = $('td[headers="row-selector"] input:checked') .map(function(){ return $(this).val(); }) .get() .toString(); // Call function passing checkedIDs as parameter alert('Checked IDs: ' + checkedIDs);
Tags: Database
Similar Questions
-
Problems of interactive report PL/SQL - current function or Collections
Hello
I have a report where I want either to limit the return by date or return the set. PL/SQL has not worked in the interactive report (is it available in 3.2?) then my second idea (2 reports, one for each option) didn't work as you can have more than one IR on a page. Looking here I found people of other leaders here for collections and here for common functions.
OK I finally got the thing of collections (did not know that "function_returning_query" would be replaced by your code) but I'm not sure, it can be used in my situation? I want it to be dependent on a LOV on the page with my code predicted as:
If the value of: P5_DAYS would need to go somehow, can it be passed as a parameter?DECLARE q VARCHAR2(30000); BEGIN q := 'select UPD_ID, PROJECT,DATABASE,REF,DESCRIP,STATUS,PERSON, TO_CHAR(INS_DATE, ''HH24:MI DD-MON-YY'') AS INS_DATE from TBL_ENV_LOG'; IF :P5_DAYS != 1337 THEN q := q || ' where TBL_ENV_LOG.INS_DATE >= TO_TIMESTAMP(SYSDATE - :P5_DAYS)'; END IF; q := q || ' order by TBL_ENV_LOG.INS_DATE desc'; return(q); END;
Is there another way to do this? A lot of hidden fields is boring :/
Edit: I've used a CASE statement for a column before, could I use it for all queries?
Mike
Published by: Gerd on October 14, 2009 10:45This should however?
SELECT UPD_ID, PROJECT, DATABASE, REF, DESCRIP, STATUS, PERSON, TO_CHAR (INS_DATE, 'HH24:MI DD-MON-YY') AS INS_DATE FROM "#OWNER#"."TBL_ENV_LOG" WHERE (TBL_ENV_LOG.INS_DATE >= TO_TIMESTAMP (SYSDATE - :P5_RAD) AND:P5_RAD != 1337) OR (:P5_RAD = 1337) ORDER BY TBL_ENV_LOG.INS_DATE DESC;
(I have not checked this very well, but you get the idea)
See you soon
Ben
-
In passing a filter in an interactive report + hiding a filter of the end-user
Hello
I'm passing a predefined filter in an interactive report, this report opens with records, filtered to a specific value.
The user selects the value in a previous page, then, when he press the 'next' button, the interactive report opens with documents related to his selection only.
But! The filter is displayed in the search bar, and end users can delete it.
I need to disable or hide the filter, so that the user will not be able to remove it!
Thank you very much for the review!Looks like you shouldn't make it an IR filter but just pass on a hidden element and add a where clause clause that limits this value - this way, your users can filter even more by using all the features of IR, but inside where the clause you have in backstage.
-Sharon
-
Workaround solution for using PLSQL as a source of interactive report?
Hi all!
I have a PL/SQL anonymous block here, I wanted to use as the source for an interactive report. Only, I didn't know that interactive reports supported PL/SQL...
For example, the code:
Of course this code will not work because I do not understand everything IN the statements, but just trying to understand what it is that I'm aiming.DECLARE a_userid NUMBER; BEGIN SELECT userid INTO a_userid FROM users WHERE UPPER(username) = :APP_USER; EXCEPTION WHEN NO_DATA_FOUND THEN a_userid := 0; IF a_userid = 0 THEN SELECT distinct a.name AS Foodname, a.foodid AS Foodid FROM food a INNER JOIN foodunit c ON a.foodid = c.foodid WHERE a.foodlanguageid = :P18_LANGUAGE OR a.foodlanguageid = :P18_SET_LANGUAGE AND a.userid = 0 ORDER BY a.name; ELSIF a_userid = :APP_USER THEN SELECT DISTINCT a.name AS Foodname, a.foodid AS Foodid FROM food a INNER JOIN foodunit c ON a.foodid = c.foodid WHERE a.foodlanguageid = :P18_LANGUAGE OR a.foodlanguageid = :P18_SET_LANGUAGE AND a.userid = 0 AND a.userid = a_userid ORDER BY a.name; END IF; END;
This code point is that when a user is not logged (and visits as a public user page), it must fetch the 'NAME' and 'FOODID"FOOD table lines. I added a column of this table (named USERID) and all rows having the value '0' for this column.
Now, when a user logs on, he or she has a fixed username (registered in another table, named 'USERS'). A user is able to add foods that they own to the list.
Of course, a visitor is not supposed to see all food products that have been added to the table by registered users. So, I wanted to show the separate data. Visitors (unregistered) only see the default values (all the lines in which the userid = 0) and registered users should see both added their own food (my username is 1, then I want to see all the lines where the userid = 1) and the rows with default values (where userid = 0).
I found a way here:
http://www.oracleapplicationexpress.com/tutorials/71-Oracle-Apex-interactive-report-based-on-PLSQL-function
But it is not only makes sense to me. Y at - it is an easy way to explain how the tutorial in the link, or you know an easier way? Like making a procedure or something, or a function or a process page and somehow, refer to that in the SQL source interactive report?
Any help is greatly appreciated.
APEX version: 4.1.1.00.23Hi again,
How does this request?
SELECT DISTINCT a.name AS Foodname, a.foodid AS Foodid FROM food a INNER JOIN foodunit c ON a.foodid = c.foodid WHERE a.foodlanguageid IN (:P18_LANGUAGE, :P18_SET_LANGUAGE) AND (a.userid = :P18_USERID OR a.userid = 0) ORDER BY a.name
-
Download the interactive report csv
Hi all
I want to download a CSV file in an interactive report.
The content of the rows in Excel:
Erste, « B », « C », « D », « E », « F », « G », « H », « I », « J », « K », « L », « M », « N », « O », « P »
IBC ->, "- », « 1 », « 2 », « 3 », « 4 », « 5 », « 6 », « 7 », « 8 », « 9 », « 10 », « 11 », « 12 », « 13 », « 14 » [...]
How can I solve this problem?
Thanks for help.
Your CSV file using "comma" as the separator. Though Excel CSV file separator is 'semicolon '.
Try to define 'CSV separator' = ';' in the section 'report attributes' - 'download '.
-
Pass values of interactive report
HelloI'm sure this is an easy question, but I was not able to find the solution myself.
I have an interactive report that has 6 columns, which are:
Family name
First name
Day
Start time
End time
Link column
I need to assign an ID that is not displayed in the report, the date, the start time and end time to the variables P5_IDX, P5_DAY, P5_START and P5_END to use
only display on a different page elements. I can spend only 3 values by using the link to the column in the IR.
Is there another way to pass values more of an interactive report 3? Sorry if this has been asked and answered before. I searched the forums and didn't find an answer, but maybe a search with key words evil.
Thanks for any help,
Bob
Hi Bob,
If yu changes the target of the link of "page of this application" to "URL", you can set the URL yourself and add more parameters,
URL could look something this:
f? p = & APP_ID.: 11: & SESSION. : & DEBUG. : P11_ID, P11_P1, P11_P2, P11_P3:, #ID #, # P1, P2 # #, #P3 #.
-
Pass the value in the search on an interactive report string
Hello
I have a report interactive (page 2) page which I navigate from a main navigation page that contains a text box (: P1_PART_NO) and a button (which has details of the branch).
Can someone tell me how to pass the value of: box at the top of the interactive report of P1_PART_NO in research and have the results filtered as a result that the page is loaded.
I use apex v4.0
Thanks in advance,
ChrisIf you google
put Apex ir report
You should get some answersGus
-
I have an interactive report showing the data very well. but when I choose the download and csv, I get an empty file, a length zero. There are data in the report, but the download doesn't show anything. someone at - it see this before? It's just a standard report, nothing real fancy. It should be able to download data right?
Hello
You don't have any application process before header that could cause this?
Kind regards
Jari -
65 000 record limit downloading .csv on interactive report
Does anyone know if Apex 4.0 always has 65 000 record limitation when downloading interactive .csv report?Hello
created an interactive report on apex.oracle.com with the following SQL statement
select level from dual connect by level<=70000
and removed the value 10000 'maximum lines number. Export to CSV and got 70000 lines in the CSV export.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins -
Pass the interactive report shaped filters
Hello
I have a set of interactive reports that act as an exploration by the information. At each level, there is a button 'Create', which includes a form for creating an item at the lower level. User does not have the ability to change the filters.
For the highest level, showing that a form is empty is fine. However, we would if at lower levels to values that have been filtered are passed in the form.
A bit like:
Business-> create [employee]
-Divisions [company = company]-> create [new employee - company = company]
-Location [company = company;] Division = Division]-> create [new employee - company = company;] Division = Division]
If it makes no sense at all?
See you soon,.
Andrew
Edit: I tried to use Anthony [name] and [name] #IR_ #, no effect (except if I'm doing it wrong)
Published by: ad13 on August 12, 2009 02:38
Published by: ad13 on August 12, 2009 02:39Hi André,.
It makes no sense to me. Do you mean that, for example, you select marketing department and then on the page navigated to your query shows people in marketing? Or he assigns the Ministry of people so when you click on 'create' the user didn't specify a marketing department? If so then have an item hidden on the new page, for example: P2_DEP. Send the previous page have a link on the Department column which passes the value at this point. The Insert (to darken) or the select query (for a report) will use this item as a base for their process.
If no explanation then take 2 =)
Mike
-
Download interactive report to CSV format
Hello
We are on apex 3.1.2.00.02. I have two questions...
1. the interactive reports have a - (dash) in the columns with a null value. So when we download to excel dashboard is always there... the user wants to null. I can't find where it is set to make this dashboard in the report. Can someone help me understand how to do what really null?
2. When download us the report in csv format, it opens automatically in Excel (which we want); [the name of the tab in Excel is something like... csv] daily_bank_definition (1) if we try to rename the tab we get an Excel error on naming format invalid even if the new name is 'valid '. Is it possible to have the tabname set to what you want? Has anyone seen elsewhere this problem and have you been able to get around?
Thanks in advance for your help.
KristinaHi Kristina,
To remove the indent of null columns you must go to the attributes of the report and under Pagination, you will see "display Null values as. Just remove the - from there.
To change the tab name to what you want you will be first to save the csv file and remove the name of the [1]. Then, you should be able to change it.
Concerning
Paul
-
Interactive reports - Question about download PDF, CSV, Email, etc.
I recently installed the latest version of the APEX. I deployed as an EAR on Oracle WebLogic. Then, I created a simple
interactive report including the search bar located above the report. Downloads (emailing, pdf, etc.) do not work after I
Run the report.
What setup\configuration is required for emailing and download of other files to work?
FYI: right now I have Oracle WebLogic, Oracle 10 g, and APEX run locally on a computer based XP laptop.
Thank you in advance,
WesHi Wes,
Send a report as an e-mail requires an SMTP server. You must configure your instance settings to point to the SMTP server.
http://download.Oracle.com/docs/CD/E17556_01/doc/admin.40/e15521/adm_mg_service_set.htm#BEJBCEEH
To download a report in pdf, excel or RTF... you must have installed a reporting engine. Visit this link for details...
http://www.Oracle.com/technetwork/developer-tools/Apex/application-express/configure-printing-093060.html
Thank you
Machaan -
How to convert sql report interactive report
Hi all
I have a Sql report and I want to convert in interactive report. I found the option at the top to the right side "Interactive report migrate" but only 3 option to pass parameters.
In my SQL report (Edit button) is here and I'm passing 6 values through this button change, how can I migrate my SQL report interactive report? Please suggest me...
Thank you
Xandot wrote:
In the report links SQL query looks like:
- case Type
- When 3 then
- (select the T_STYLE Style where STYLEID =?)
- When 1 then
- 'Edit'.
- else '
||','|| ||','|| ||','|| ||',30>Edit' - end
- When 2 then '
| «, » || ||','|| ||','|| ||',30>Edit' - When 1 then '
| «, » || ||','|| ||','|| ||',30>Edit' - end as change
How to implement above interactive links, until now that I created the link on interactive using links like report:
But here its me allow only a single URL, how to put different URLS of in accordance with the condition, please suggest me.
There is no declarative support for generating links conditionally to line level in interactive reports (or indeed in the standard reports). Set the IR link column property to exclude the link columnand generate the link in the request in the original report. Set the Type of display attribute for the column Edit to report Standard column.
-
Interactive report lines order number
I'm working on an interactive report. The main problem is that the lines in the interactive report do not appear in order.
It's like query: select (list passes) from table order by ID; ID = 1, 2, 3...
When I run this code in sql commands, the result is displayed in perfect order, but when I use the same code in my interactive reports lines appear no y-intercept. any solution?
Apex version: 4.2
Topic: Productivity Applications
Model: Report IR Region.
Virat Praveen-Oracle wrote:
I'm working on an interactive report. The main problem is that the lines in the interactive report do not appear in order.
It's like query: select (list passes) from table order by ID; ID = 1, 2, 3...
When I run this code in sql commands, the result is displayed in perfect order, but when I use the same code in my interactive reports lines appear no y-intercept. any solution?
Interactive reports are sorted using the sort IR functionality. This allows you to specify the required sort order and save it as the default report. If you need a fixed sort order that is not editable by users, clear the sort options in the Search bar of IR and the column headers.
-
How to add the action button for each column in the interactive report
Hi all
I'm new in APEX, so pls forgive my question, if it's simple, but I am struggling with this problem for days now. I have interactive report and you want to add button in each row. What I want to do with this button is the following:
1. to execute some stored procedure in need of that particular line item values
2. returns a (id)
3. go in another page in the application by passing the value out of the procedure (id).
and I'm not find the way to do it. I tried now means:
1. If I add the link of the column, so I can refer to the value of the current row, I don't know how to call the stored procedure and perform actions of rest I need
2. If I add the button to the region, I do not know how to reference the values in column of a particular line of the interactive report...
and I'm stuck...
I just forms and global report and probably still think the "wrong" way .
Any help would be appreciated!
Thank you!!!
user3253917 wrote:
Please update your forum profile with a real handle instead of 'user3253917 '.
I request of the company: there is a customer who always orders the same standard product orders (always order the same products, fair amount is different). I want to make it simple for the user: instead of retyping the command (master and few records details every time yet) I want to copy selected command (copy of the master record and record details) so that the user will only change date order (in master record) and amount fields in record details).
So, in order to give him:
1. the user must be able to choose the order in which I would copy (at page 4), select it,
2. I need to make PL/SQL procedure to insert the new master record (order) and a few record details (order_items) (copy of the order/order_items chosen in step 1)
3. navigate the user to page 29, where the master account at stage 2 insterted appears, so that the user can change the date and quantities.
Any solution will be highly appreciated! Thank you very much!!!
In simple terms:
- Add a link to column "Command copies" in the report on page 4, which sets the COPY request and passes the order ID on page 29.
- On page 29, create a process before header, sequenced to be the first process executed and conditional on REQUEST be EXEMPLARY, which creates a new order as a copy of the order with the ID from page 4 and returns the ID of the new order in the PK command ID of 29 page element.
Maybe you are looking for
-
Remove the navigation of Firefox v9 software
Dear Sirs. I ask help to remove the Firefox v9 navigation software. I tried different actions in an attempt to remove it, but without success. I am seriously considering uninstalling Mozilla Firefox and use another browser. But I think there is a sol
-
Firewall turned off because I'm missing wzcsapi.dll
Wzcsapi.dll missing whear I can download because I'm missing wzcsapi.dll impossible to turn on the firewall
-
enclosure USB 2.0 for sata @ ide - recongnised but not available in xp
I have a box of HD USB 2.0 to SATA @ IDE hard drive. I plug it into my computer and he recognizes her, but I can't display all the files contained in it because it is not in the files anywhere. I ran windows updates, but still do not see it.It is a x
-
Upgrade to Windows 7 on HP 2000-2d49WM bought at Walmart
I am considering buying the 2000-2d49WM currently on sale at Walmart for my wife. But it comes with Windows 8, which she really hates. I have an unused Windows 7 Home license. I could downgrade the laptop for Win 7 after purchase, but I see no Win
-
Access a list of QObjects using Javascript of QML?
I want to access a list of QObjects of Javascript so that they are accessible for example like this: var items = mycontextproperty.getItems() for(i =0; i< items.length; i++){ items[i].name; } I expect fair access properties read-only. In C++, I have