Report Break on Form with Row Selector
Hi!
I have just upgraded to 4.1 and created a new page with a Tabular Form (insert, Update and Delete capable).
The first column in the report is the row selector, so when I set the "Report Break on first column", it breaks on the row selector. In previous releases, the row selector could be moved down in the Report Attributes, but in 4.1, there are now up/down arrows next to the row selector, so I can't move it to the second column!
Help.. anyone have a solution to this?
Thanks!
Jodie
Hello.
We have exactly the same problem. Only we are using apex 4.2.
We have a tabular form with row selector and a break column. We want to break on that break column.
But we can't move it above row selector.
How can we solve that problem?
Thanks.
Regards,
Dejan
Similar Messages
-
Interactive report with row selector?
I've just upgraded to APEX 3.1. I've been playing with all those amazing new features of interactive report but I miss one very important for me - a row selector. I used to have the traditional reports based on updatable queries with row selector that enabled multi-row-delete operations. Is it still possible to include a row selector to IRR so as to accomplish MRD?
Thanks,
ZdenekHi,
this circumstance --> "missing row selector" raises another big problem.
My Question now:
I can't do row-specific processes now as in v3.0 where i could start a single process for every marked row.
Is there any feature (that i don't know yet) to integrate process-buttons for every row in a report? Mean this button should start a process for the row, where the button was pressed.
I didn't find any information about this feature.
Thank you! -
SQL Query updateable report with row selector. Update process.
I have a SQL Query updateable report with the row selector(s).
How would I identify the row selector in an update process on the page.
I would like to update certain columns to a value of a select box on the page.
Using the basic:
UPDATE table_name
SET column1=value
WHERE some_column=some_value
I would need to do:
UPDATE table_name
SET column1= :P1_select
WHERE [row selector] = ?
Now sure how to identify the [row selector] and/or validate it is checked.
Thanks,
BobI don't have the apex_application.g_f01(i) referenced in the page source...In the page source you wouldn't find anything by that name
Identify the tabular form's checkbox column in the page(firebug/chrome developer panel makes this easy)
It should be like
<input id="..." value="" type="checkbox" name="fXX" >we are interested in the name attribute , get that number (between 01 and 50)
Replace that number in the code, for instance if it was f05 , the code would use
apex_application.g_f05
--i'th checked record' primary keyWhen you loop through a checkbox array, it only contains the rows which are checked and it is common practice to returns the record's primary key as the value of the checkbox(available as the the i'th array index as apex_application.g_f05(i) , where i is sequence position of the checked row) so that you can identify the record. -
More tha one report with row selector in the same page,
I want to have 2 reports in my page, the two reports must have a row selector.
1/ In the first report, some pl/sql is executed when the user click in a row, so I am using :
for i in 1..wwv_flow.g_f01.count loop
my pl/sql using wwv_flow.g_f01(i)
end loop;
2/ In the second report, the user will check rows in order to delete them.
HTMLDB automaticaly gives f01 to the column "row selector" for any report in the page : how can I manage this please ?
Thanks for any help!
Jina.See
http://htmldb.oracle.com/pls/otn/f?p=24317:54
The region query is
select
htmldb_item.checkbox(1,empno,'onClick="highlight_row(this,#ROWNUM#);"') chk,
ename, job, sal, comm
from emp
The Javascript function highlight_row() is "stolen" from the page HTML DB generates when it puts the builtin row selector. Put the function in the region header. The function is
<script type="text/javascript">
function highlight_row(checkBoxElemement,currentRowNum) {
if(checkBoxElemement.checked==true) {
for( var j = 0; j < checkBoxElemement.parentNode.parentNode.childNodes.length; j++ ) {
if (checkBoxElemement.parentNode.parentNode.childNodes[j].tagName=='TD') {
if(rowActive=='Y') {
rowStyle[currentRowNum] = rowStyleHover[currentRowNum];
} else {
rowStyle[currentRowNum] = checkBoxElemement.parentNode.parentNode.childNodes[j].style.backgroundColor;
checkBoxElemement.parentNode.parentNode.childNodes[j].style.backgroundColor = '#ededd6';
rowStyleHover[currentRowNum] = '#ededd6';
} else {
for( var j = 0; j < checkBoxElemement.parentNode.parentNode.childNodes.length; j++ ) {
if (checkBoxElemement.parentNode.parentNode.childNodes[j].tagName=='TD') {
checkBoxElemement.parentNode.parentNode.childNodes[j].style.backgroundColor = rowStyle[currentRowNum];
rowStyleHover[currentRowNum] = rowStyle[currentRowNum];
document.wwv_flow.x02.checked=false;
</script>I have no idea how that Javascript works, it seems to be doing some DOM black magic, but it works! :)
Hope this helps -
Calling report from a form with user input parameters
Hello,
I am new to Oracle reports. I have an application coded in 6i. I am currently running the application in Oracle Forms Builder 9i. There are also few reports which are called from the forms. Since the application was developed in 6i, the report was called using Run_Product. The forms pass a set of user parameters to the report using the parameter list pl_id. The syntax used was Run_Product(REPORTS, 'D:\Report\sales.rdf', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
I learnt that the Run_product doesnt work in 9i and we need to use run_report_object. I have changed the code to use run_report_object and using web.show_document () i am able to run the report from the form. There are 2 parameters that need to be passed from forms to reports. The parameters are from_date and to_date which the user will be prompted to enter on running the form. In the report, the initial values for these parametes are defined. So, the report runs fine for the initial value always. But when i try to change the user inputs for the form_date and to_date, the report output doesnt seem to take the new values, instead the old report with the initial values(defined in the report) runs again.
Can someone give me the code to pass the user defined parameters to the report from the forms? I have defined a report object in the forms node as REPTEST and defined a parameter list pl_id and added form_date and to_date to pl_id and used the following coding:
vrepid := FIND_REPORT_OBJECT ('REPTEST');
vrep := RUN_REPORT_OBJECT (vrepid,pl_id);
But this doesnt work.
Also, Should the parameters defined in the forms and reports have the same name?Thanks for the quick response Denis.
I had referred to the document link before and tried using the RUN_REPORT_OBJECT_PROC procedure and ENCODE functions as given in the doc and added the following SET_REPORT_OBJECT_PROPERTY in the RUN_REPORT_OBJECT_PROC :
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
But this also dint work. Please help me understand what difference does setting paramform=no OR paramform=yes make?
In the report, i have defined the user parameters as FROM_DATE and TO_DATE respectively so that they match the form datablock BLK_INPUT items FROM_DATE and TO_DATE.
My WHEN_BUTTON_PRESSED trigger is as below:
DECLARE
report_id report_object;
vrep VARCHAR2 (100);
v_show_document VARCHAR2 (2000) := '/reports/rwservlet?';
v_connect VARCHAR2 (30) := '&userid=scott/tiger@oracle';
v_report_server VARCHAR2 (30) := 'repserver90';
BEGIN
report_id:= find_report_object('REPTEST');
-- Call the generic PL/SQL procedure to run the Reports
RUN_REPORT_OBJECT_PROC( report_id,'repserver90','PDF',CACHE,'D:\Report\sales.rdf','paramform=no','/reports/rwservlet');
END;
... and the SET_REPORT_OBJECT_PROPERTY code in the RUN_REPORT_OBJECT_PROC procedure is as:
PROCEDURE RUN_REPORT_OBJECT_PROC(
report_id REPORT_OBJECT,
report_server_name VARCHAR2,
report_format VARCHAR2,
report_destype_name NUMBER,
report_file_name VARCHAR2,
report_otherparam VARCHAR2,
reports_servlet VARCHAR2) IS
report_message VARCHAR2(100) :='';
rep_status VARCHAR2(100) :='';
vjob_id VARCHAR2(4000) :='';
hidden_action VARCHAR2(2000) :='';
v_report_other VARCHAR2(4000) :='';
i number (5);
c char;
c_old char;
c_new char;
BEGIN
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,report_file_name);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY (report_id,REPORT_DESFORMAT);
hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'||get_application_property(password)||'@'||get_application_property(connect_string);
c_old :='@';
FOR i IN 1..LENGTH(report_otherparam) LOOP
c_new:= substr(report_otherparam,i,1);
IF (c_new =' ') THEN
c:='&';
ELSE
c:= c_new;
END IF;
-- eliminate multiple blanks
IF (c_old =' ' and c_new = ' ') THEN
null;
ELSE
v_report_other := v_report_other||c;
END IF;
c_old := c_new;
END LOOP;
hidden_action := hidden_action ||'&'|| v_report_other;
hidden_action := reports_servlet||'?_hidden_server='||report_server_name|| encode(hidden_action);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||hidden_action||' '||report_otherparam);
-- run Reports
report_message := run_report_object(report_id);
rep_status := report_object_status(report_message);
IF rep_status='FINISHED' THEN
vjob_id :=substr(report_message,length(report_server_name)+2,length(report_message));
message('job id is'||vjob_id);pause;
WEB.SHOW_DOCUMENT(reports_servlet||'/getjobid'||vjob_id||'?server='||report_server_name,' _blank');
ELSE
--handle errors
null;
END IF;
In the code - " hidden_action := hidden_action ||'&'|| v_report_other; " in the RUN_REPORT_OBJECT_PROC procedure above, how do i make sure that the v_report_other variable reflects the user input parameters FROM_DATE and TO_DATE ??? v_report_other is initialised as v_report_other VARCHAR2(4000) :=''; in the procedure. Will ensuring that the v_report_other contains the user input parameters FROM_DATE and TO_DATE ensure that my report will run fine for the input parameters?
Thanks in advance.
Edited by: user10713842 on Apr 7, 2009 6:05 AM -
HTMLDB_item.Date with row selector
Hi :
In my application i am using htmldb_item.datepicker and row selector to insert the date object wise
the problem wht i am facing is if suppose 10 rows are generated when i select 3rd row date and insert date picker date get populated in 2nd row similarly 2nd rows to 1st and so on
please try this query
SELECT
HTMLDB_ITEM.DISPLAY_AND_SAVE(2,NULL) "Project Objects",
HTMLDB_ITEM.DATE_POPUP(3,rownum,null,'dd-mon-yyyy',12,15) "date"
FROM
DUAL
UNION
SELECT
HTMLDB_ITEM.DISPLAY_AND_SAVE(2,SYSDATE) "Project Objects",
HTMLDB_ITEM.DATE_POPUP(3,rownum,null,'dd-mon-yyyy',12,15) "date"
FROM
DUAL
first change this query to sql updatable report and add row selector then try to select date from 2nd row ull find the problem wht i am facing
please suggest how to resolve this
thanks
sudhirya we it wont update when we use a rownum when we resort and update i did like this see if you can understand the code
DECLARE
vRow binary_integer;
BEGIN
for i in 1..htmldb_application.g_f01.count
loop
vRow := htmldb_application.g_f01(i);
UPDATE SCHEDULE_VARIANCES
SET
REVISED_START = htmldb_application.g_f02(vRow),
REVISED_END = htmldb_application.g_f03(vRow),
ACTUAL_START = htmldb_application.g_f04(vRow),
ACTUAL_END = htmldb_application.g_f05(vRow),
STATUS = htmldb_application.g_f06(vRow),
-- ACCEPTANCE = htmldb_application.g_f07(vRow),
COMMENTS = htmldb_application.g_f08(vRow)
where
PROJECT_NAME = :P25_PROJECTS AND
OBJECT_NAME = htmldb_application.g_f09(vRow) ;
end loop;
End;
here i am relating object name to row selector that is the check box so that when u sort the row also based on the object name that u select it will update this worked for me
thanks
sudhir -
Tabular Form Hide Row Selector for certain rows?
Hi,
I was curious if it is possible to hide the row selector checkbox for certain items? For instance
if a certain value is in a certain column in a row I want to hide the checkbox and in other cases show it...
Thanks in advance!Hi,
That setting does only work for an entire column.
There are at least three possibilities:
1 - Create the checkbox using APEX_ITEM.CHECKBOX (see: [http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDDCHAF])
2 - Create a custom "Named Column (row template)" report template - where you can define the layouts for each row based on up to 4 conditions
3 - Use javascript to scan data in the other columns and disable or remove the checkboxes where required
Option 1 is probably easiest but you would need to remove the Row Selector from the report as that is no longer required
Andy -
Reports XI: Infoview behavior with Row Level Security
Post Author: pwilliamsbssp
CA Forum: General
I have a report that is based off a business view that has project information with an additional table used to assign report users to certain clients (each project has a client). A filter is used to assign the report user to the current ce username.The report is scheduled by the administrator login. Each user goes to view their report on Infoview and is able to view data for only those clients specifically assigned. This functionality seems to work fine - everyone views one instance of the report and InfoView assigns the row level security.However, I'm running into a problem viewing report histories when adding or changing client assignments. The historical reports come up either blank or with erroneous information (such as the current week's information instead of the previous week's data saved with the instance of the report). I have not found a logical link between the behavior of the historical reports and the specific users. Some can see one week and not another while others have the reverse, regardless of their security assignments.Does anyone understand the behavior of view historical reports with row-level security? I have no idea what data/metadata is saved with each report instance and when the row-level security is being read. Is it read when viewing the report? or, is it specific to the structure of the data when the report was run?With other reports using the same row-level security model I'm able to view the historical reports although it has the client assignments at the time the report was created. But, at least I'm able to view the reports.Any insight welcome.Patrick WilliamsPost Author: pwilliamsbssp
CA Forum: General
Bump. Anyone is welcome to tackle this question. Please. -
How to work with [row selector] in report?
I need to solve next problem: I have a report with users roles. (Id, Role Name, Checkbox).I have two tables in DB (List of roles [id, role name] and Configuration table [role_id,group_id]). According to table content I need manipulate with this form.
1. Can I select rows depending of DB content?
2. How to determined which rows I selected (fill DB according to selected rows)?
Regards,
KostyaHi Plakode
You can change the description of GL for sure. Because in my report it is like that.
The row description in layout can be changed easily too as described by some one here.But if the row block is expandble ( which is my case ) and some GL's description needs to be changed.That's my chalange.The fact of the matter is currently it fetches some desc from skat not all and I am at loss to find out the other place holder for Row line item description.
Thanks -
How to run multiple reports From One Form with 1 report object?
Hi ALL!
i want to run multiple reports (in 10g technology) from 1 Form having only 1 report object.
i.e
IF parameter=yes THEN
Rpt_new should run
Else
Rpt_old should run
END IF;
How can i do this?
thanks
ranaRana,
I found this in the Forms online Help. You could easily found it yourself. Don't be afraid of pressing CTRL-H:
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, 'yourreportsfilename.rdf')Regards,
Martin Malmstrom -
Update Multiple Rows using Row Selector
Hi,
I want to update multiple rows using a tabular form with row selector, and an item in another region of the page, using an update expression and a button.
The syntax would be like this:
update MY_TABLE set UPDATABLE_COLUMN = :P10_NEW_VALUE where {row selector = true}
What is the syntax for the WHERE clause, anyone knows? In the manual there is no information at all for doing this.
PD. I added the row selector after creating the form, so I don't have any wizard-created MRU processes in the page.
HTMLDB version is 1.6
Thanks.Hi,
I want to update multiple rows using a tabular form with row selector, and an item in another region of the page, using an update expression and a button.
The syntax would be like this:
update MY_TABLE set UPDATABLE_COLUMN = :P10_NEW_VALUE where {row selector = true}
What is the syntax for the WHERE clause, anyone knows? In the manual there is no information at all for doing this.
PD. I added the row selector after creating the form, so I don't have any wizard-created MRU processes in the page.
HTMLDB version is 1.6
Thanks. -
Row selector in tabular form question
hi all,
i needed to use the tabular form for the report because i needed the row selector. i have around a 100 records on this. but each page shows only 15 rows which is fine. the problem i'm having is that if i wanted to select more than 1 record and these records are located on different pages of the report, how do i set the report to remember all the records i've selected?
i noticed that for example, page 1 shows records 1 - 15 then i checked record 1, then move to the next page for records 16 - 30. here i select record 20. then when i do a transaction, only record 30 is processed and record 1 is disregarded.
can anyone help me with this?
thanks
allenHi,
You should perhaps use collections. Collections are session based and can be used in a similar way as having a temp table and what you could do is store your data within the collection and then save the "selections" you made to the collection which would make your tabular form remember what you have seelected and therefore you could retrieve 1- 10 rows and then paginate to the next 10 rows. -
Hi
I have a report and added a Row Selector to it.
Now I am trying to select the individual rows by selecting the Checkboxes
My Report query is like below
select empno from emp
For this report I have added a row selecor.
And I have added a process which will execute on pressing of a button.
By processes code is like below
declare
lRow NUMBER;
BEGIN
FOR i in 1..apex_application.g_f01.count LOOP
lRow := apex_application.g_f01(i);
insert into xxtemp values(apex_application.g_f02(lRow));
END LOOP;
END;
For above code I am getting ORA-01403: no data found Error
I have gone the through the examples in this forum. But, still I am not sure where exactly I am doing mistake.
Is there any other properties I need to set up to make this code work?
Appreciate your help.
Regards
Kiran AkkirajuKiran Akkiraju,
Assumption: Your report type is 'SQL Query (updateable report) and you added a row selector by clicking 'Add Row Selector' from the tasks pane on the right (not by using the apex api's).
If this assumption is correct, just go to your report attributes for your report region, click on the edit EMPNO column, then set the following:
Tabular Form Element > Display As = Display as Text (saves state).
That should do it.
(By default, this is set to 'Standard Report Column' when creating a report and is not stored in the 'apex_application.g_f02' array you were trying to reference (in fact this wouldn't even exist which is why you were getting 'No data found'.))
Anthony
http://anthonyrayner.blogspot.com -
Accessing clustered report servers from Forms
Hi
The "Oracle Fusion Middleware Publishing Reports to the Web with Oracle Reports Services 11g R2 (11.1.2)" manual in Section 2.5 talks about setting up a High Availability environment for Reports.
It discusses how to set the cluster configuration and how to create a reports job repository in the database. It says that you need to have a unique name for each report server, finally it says that you should use Oracle Web Cache to load balance for the reports cluster.
If you are calling the report server from Forms with a run_report_object then you don't go via the web cache, so I am confused how you send your report request to the reports cluster in a load balanced fashion.
Has anyone done this or can explain how this works for Forms?
TIA
TonyI know that this is an old thread, but I've taken the liberty to bump it up, as I have the same question.
The Reports documentation describes quite succinctly how to configure the report servers to be clustered - no problem there.
The issue is that when you run a report from forms using run_report_object, you are required to specify a report server name. The Reports docs specify that all of the server names must be unique, so this seems to indicate that you cannot use a clustered report server environment from Forms, or am I missing something somewhere? Oh, wait - an insight coming here - Can you (I'll test this, but it would be good to know) specify a cluster name instead of an actual report server name? Google to the rescue:
Using RUN_REPORT_OBJECT: If the call specifies a Reports Server cluster name instead of a Reports Server name, the reports_servermap environment variable must be set in the Oracle Forms Services default.env file. If your Oracle Forms application uses multiple Reports Server cluster names, you can map each of those cluster names to a different Reports Server using reports_servermap in rwservlet.properties, as follows:
There's the answer. Sometimes writing the question down helps figure out the answer :)
Regards,
John -
Row Selector column on Interactive Report
Hi all,
I have an interactive report based on a custom SQL query. How do I add a row selctor column so I cans select individual rows? I have also tried using a tabular form which also does not display a row selctor column. This is odd as my other tabular forms display a row selctor column.
Many thanks for you help,
ChrisChris,
Usually when someone wants a row selector, it's to choose a few rows by clicking a checkbox, then doing something with them. I'm guessing that's what you're looking for?
Martin Giffy D'Souza's [blog post|http://apex-smb.blogspot.com/2009/01/apex-report-with-checkboxes-advanced.html] explains one way to do that which should work for you. I haven't tried, it, but it looks pretty comprehensive.
Good luck,
Stew
Maybe you are looking for
-
How to create user-friendly MDX parameters for MS Reporting Services?
In SQL Server Reporting Service, when I connect to my cube to create a dataset, in Query Designer I create my query with a filter. It creates the following MDX for me: SELECT NON EMPTY KPIValue("KPI1"), KPIGoal("KPI1"), KPIStatus("KPI1") ON COLUMNS,
-
How do I transfer music from my iPod to new computer? Thank you
How do I transfer music from my iPod to new computer? Thank you
-
No longer able to scan photos from my PS3650 (Pacific Image) using PSE 10.0.
Configuration: PC: Dell Inspiron 15R (new) Photo Scanner: Pacific Image PS3650 OS: Windows 8.1 Photo SW: Photoshop Elements 10.0, PSE10.0 Scanner SW: Cyberview X5, CV-X5 (an upgrade to the original Cyberview X) Beverage: Don Julio 1942 Tequila. The e
-
Dear all, I'm still a newbie on NI Insight, but when I tried to use it last weekend, here are some difficulties I encountered: 1. Whenever I load an example file that has 3D model in the layout, the model does not appear. I could see the colorbar on
-
Authorization report cats_da
Hi, The authorization report CATS_DA working with my client in such a way where my client is getting report on the employees working under him but he requires his name to be included in the report. regards amar