Processing mutliple records on multiple pages in a tabular form
I'm a newbie to Apex (4.0). I have a tabular form displaying 500 rows records in multiple pages. The row selector is selected by defaulted ie. all rows have been checked. Upon unselecting items in multiple page, the Multi Row Delete (Post Processing Request) only deletes the records selected on the page. It seems like the ROW SELECTOR does not keep track of the checkboxes on other pages. Any thoughts on how to solve this would be helpful.
Thank you.
Ed.
Sybrand,
Thanks for the response. So in that case, how would I approach the following requirement:
Tabular form that displays 500 records each in multiple pages. The Row Selector column is selected by default. The user will uncheck certain rows in certain pages. I would like to perform a Multi Row Delete for alll the records that were selected.
Thanks,
Ed.
Similar Messages
-
Page process throwing No data found error when deleting tabular form item
Hi guys,
I am trying to run a page process just before the Tabular form's MRU process and it's throwing a no data found error. Here is my code:
BEGIN
for i in 1..apex_application.g_f02.count LOOP
IF apex_application.g_f01(i) is not null THEN
UPDATE STOCK
SET PRODUCT_QUANTITY = PRODUCT_QUANTITY+apex_application.g_f08(i)
WHERE site_id = :P21_SITE_ID and product_id = apex_application.g_f02(i);
COMMIT;
END IF;
END LOOP;
END;Here f01 is the checkbox column and the if-statement is causing the problem because if I get rid of the update statement (leaving just the commit) then it still throws the error.
When I click on a checkbox and hit delete button which fires off both this process and then MRU I get the no data found error.
Would be grateful if someone could shed some light on this. Many thanks.
Edited by: taepodong on Jul 1, 2012 7:54 AMHi,
>
I am trying to run a page process just before the Tabular form's MRU process and it's throwing a no data found error. Here is my code:
BEGIN
for i in 1..apex_application.g_f02.count LOOP
IF apex_application.g_f01(i) is not null THEN
UPDATE STOCK
SET PRODUCT_QUANTITY = PRODUCT_QUANTITY+apex_application.g_f08(i)
WHERE site_id = :P21_SITE_ID and product_id = apex_application.g_f02(i);
COMMIT;
END IF;
END LOOP;
END;Here f01 is the checkbox column and the if-statement is causing the problem because if I get rid of the update statement (leaving just the commit) then it still throws the error.
When I click on a checkbox and hit delete button which fires off both this process and then MRU I get the no data found error.
>
You are iterating on the f02 and checking for f01 not null. That is wrong usage of the the checkbox item. Please see these links . especially the OnSubmit Process examples.
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_item.htm#CHDDCHAF
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_app.htm#AEAPI215
Regards,
PS : This is what you need to understand
>
<b>Note that check boxes displayed using APEX_ITEM.CHECKBOX will only contain values in the APEX_APPLICATION arrays for those rows which are checked. Unlike other items (TEXT, TEXTAREA, and DATE_POPUP) which can contain an entry in the corresponding APEX_APPLICATION array for every row submitted, a check box will only have an entry in the APEX_APPLICATION array if it is selected.</b>
>
Edited by: Prabodh on Jul 2, 2012 9:44 AM -
ORA-06502 on "Help Text" region when changing pages on a tabular form
Hello everybody,
We are developing an application on Apex 4.1.0.00.32. This application have some pages with tabular forms and these pages uses a page zero as template. In this page zero, we have added two sidebar regions: a list region to navigate on the application and a help text to describe how to use our application.
The problem occurs when the tabular split the records into pages (since it has more records that it can show on a single page). When the user clicks to change to another page, Apex raises an ORA-06502: PL/SQL: numeric or value error as described below:
Erro ao renderizar a região "Ajuda". ORA-06502: PL/SQL: erro: erro de conversão de caractere em número numérico ou de valor
Informações Técnicas (visível somente para desenvolvedores)
is_internal_error: true
apex_error_code: APEX.REGION.UNHANDLED_ERROR
ora_sqlcode: -6502
ora_sqlerrm: ORA-06502: PL/SQL: erro: erro de conversão de caractere em número numérico ou de valor
component.type: APEX_APPLICATION_PAGE_REGIONS
component.id: 2
component.name: Ajuda
error_backtrace:
ORA-06512: em "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 3654
ORA-06512: em "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 4204
Obs: Our database is in Brazilian Portuguese, so I guess it will be hard for some people to understand the first two lines! :)
We have tried to change the pagination style of the tabular form and change the region model of the help text but the problem still happens.
Does anyone an ideia about what this may be?
Thanks in advance!I am getting the exact same message, to the line number, also in APEX 4.1.0.0.32.
Occurs when changing pages in a classic report, Standard region template, select list pagination, when selecting a different pagination set.
In English:
Error during rendering of region "Matched Participants Help & Hints".
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
Technical Info (only visible for developers)
is_internal_error: true
apex_error_code: APEX.REGION.UNHANDLED_ERROR
ora_sqlcode: -6502
ora_sqlerrm: ORA-06502: PL/SQL: numeric or value error: character to number conversion error
component.type: APEX_APPLICATION_PAGE_REGIONS
component.id: 2
component.name: <strong>Matched Participants</strong> Help & Hints
error_backtrace:
ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 3654
ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 4204
There are no conditions on the region, and no date string within the Help text. Some HTML <strong> tags, that's it.
The Help region renders fine the first time.
The Debug info does not help any:
3.798360.00062Computation point: After Box Body4
0
3.798990.00081Processes - point: AFTER_BOX_BODY4
0
3.799790.00068Region: <strong>Matched Participants</strong> Help & Hints4
0
3.800470.00213Region rendered dynamically because request was not null4
0
3.802590.00096Add error onto error stack4
0
3.803550.00084...Error data:4
0
3.804400.00084......message: Error during rendering of region "<strong>Matched Participants</strong> Help & Hints".4
0
3.805240.00084......additional_info: ORA-06502: PL/SQL: numeric or value error: character to number conversion error4
0
3.806080.00081......display_location: ON_ERROR_PAGE4
0
3.806890.00081......is_internal_error: true4
0
3.807700.00084......apex_error_code: APEX.REGION.UNHANDLED_ERROR4
0
3.808540.00082......ora_sqlcode: -65024
0
3.809350.00234......ora_sqlerrm: ORA-06502: PL/SQL: numeric or value error: character to number conversion error4
0
3.811700.00082......error_backtrace: ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 3654 ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 4204 4
0
3.812510.00081......component.type: APEX_APPLICATION_PAGE_REGIONS4
0
3.813310.00110......component.id: 24
0
3.814420.00099......component.name: <strong>Matched Participants</strong> Help & Hints4
0
3.815400.00076...Show Error on Error Page4
0
3.816160.00344......Performing rollback4
0
3.819610.00225Processes - point: AFTER_ERROR_HEADER4
0
3.821850.00268Processes - point: BEFORE_ERROR_FOOTER4
0
3.82453-End Page Rendering
Any thoughts on where to poke around for this one?
Thanks - Karen -
Insert a new record in the middle of a tabular form
Hi,
I have a tabular form.
Pressing "Add Row" button opens a new, empty row at the bottom of the page or - if I use pagination - jumps to the page with the last record and creates a new record there.
Is it possible to open a new line in the middle of the page ?
I mean: if I have 25 records, I am on the first page (records 1-10) and the cursor is in a field of the second record and I press the "Add Row" button there should be a new, empty second line with old second record in the third line,... the old ninth record now in line 10 and disappeared record ten ?
Any idea ?
Thanks,
HeinzHeinz,
You may investigate logic using UNIONs and a manual tabular form.
Something like:
--get all records above new row
select apex_item... column1
,apex_item... column2
from yourtable
where <logic to limit rows above new record>
union
--get the new row
select apex_item... column1
,apex_item... column2
from dual
where :REQUEST = 'ADDROW'
union
--get every row not in the top query
select apex_item... column1
,apex_item... column2
from yourtable
where <logic to pull all records not pulled above new record>
For this to work you'll need to add your own "Add Row" button and associate it with a branch. Notice the select between the two unions in the above query is a select against dual. This will be your new record when pressing your "Add Row" button (:REQUEST = 'ADDROW').
The following how-to link is a reference for some of the logic you'll need when creating a manual tabular form.
http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html#MANUAL
Good Luck,
Todd -
Read Only page/region attribute - Tabular form
APEX 4.2.1/Oracle 11.1
The new readonly attribute at the page and region level works very nicely to make a page readonly without having to set the readonly condition individually on each page item. Great job.
But I noticed that tabular form inputs don't honor this setting. Is there a easy way to make a tabular form readonly as well i.e. make it look like a classic report instead of showing input (even disabled) fields?
I guess we can clone the region as a classic report region and conditionally show one or the other but that's not ideal from a maintenance perspective.
ThanksMarc - Thanks for logging the enhancement request. Couple of observations
1. The Copy Region wizard allows us to copy a tabular form region (along with its associated processes and buttons) but running the page raises errors since APEX only allows one tabular form per page. Perhaps the Copy Region wizard should check for this
2. Most tabular form regions are customized after the wizard creates them. Column headings are changed, display types, number/date formats, column links, etc. Re-doing all this to create a copy of the tabular form region as a classic report region is a bit of a chore. Maybe you can think of a easier way to do this in 5.0. Really all that needs to happen is change the Display As for all the tabular form INPUT fields to Display as Text and preserve all other customizations.
Thanks -
Multiple select lists in tabular form
Hi,
I created a tabular form with two select lists (Queries are same for both the select list and results around 300 records in the SQL).
I am getting the following error:
report error:
ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
If I changed Select list to POP list, I am not getting error.
Please suggest how to user select list in this case.
Regards,
MedaLnTInfotech wrote:
I created a tabular form with two select lists (Queries are same for both the select list and results around 300 records in the SQL).
I am getting the following error:
report error:
ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
If I changed Select list to POP list, I am not getting error.
Please suggest how to user select list in this case.It is not possible. There is a 32K limit on the HTML generated for select list items. (As a type of report, tabular forms are also subject to the 32K limit on the size of a report row.)
In terms of usability 200 options is about the maximum size I would consider sensible for a select list ( and for select lists in tabular forms, much, much fewer!)
Use Popup Key LOVs. -
I want to show records on multiple pages in jsp
hi,
i am taking records from database through resultset.resultset contains so many records ,i want to show those records page by page on JSP.when user clicks on "next" button then next records should be displayed on JSP page.What should be the solution?
Thanks.Hi
Surely paging would be better solution for same problem. Here I am attaching some sample code. Just edit as per your requirement so go through that
if(totalPages>10)
int nextSkip=end>=totalPages ? 0 : end+1;
int prevSkip=start==1 ? 0 : start-10;
if(prevSkip!=0)
if(js)
prevLink="<a href=\""+linkPage+""+prevSkip+")\" class=\"bgWhiteABlacksmallU\"><Previous</a>";
firstLink="<a href=\""+linkPage+"1)\""+" class=\"bgWhiteABlacksmallU\"><<</a>";
else
prevLink="<a href=\"../"+linkPage+"skip="+prevSkip+"\" class=\"bgWhiteABlacksmallU\"><Previous</a>";
firstLink="<a href=\"../"+linkPage+"skip=1\" class=\"bgWhiteABlacksmallU\"><<</a>";
else
prevLink="<span class=\"bgWhiteABlack\"><Previous</span>";
firstLink="<span class=\"bgWhiteABlack\"><<</span>";
if(nextSkip!=0)
if(js)
nextLink="<a href=\""+linkPage+""+nextSkip+")\" class=\"bgWhiteABlacksmallU\">Next></a>";
lastLink="<a href=\""+linkPage+"" + totalPages + ")\" class=\"bgWhiteABlacksmallU\">>></a>";
else
nextLink="<a href=\"../"+linkPage+"skip="+nextSkip+"\" class=\"bgWhiteABlacksmallU\">Next></a>";
lastLink="<a href=\"../"+linkPage+"skip="+totalPages+"\" class=\"bgWhiteABlacksmallU\">>></a>";
else
nextLink="<span class=\"bgWhiteABlack\">Next></span>";
lastLink="<span class=\"bgWhiteABlack\">>></span>";
String completeLink=firstLink+"��"+prevLink;
completeLink=completeLink+"������"+pageLinks;
completeLink=completeLink+"������"+nextLink;
completeLink=completeLink+"��"+lastLink;
//Set the required attributes for the calling page as this page is included using jsp:include action
request.setAttribute("pageRecords",pageRecords);//helps displaying the records of the current page
request.setAttribute("pageLinks",pageLinks);//provides links to the other pages
request.setAttribute("nextLink",nextLink);//provides link to the next 10 pages
request.setAttribute("prevLink",prevLink);//provides link to the previous 10 pages
request.setAttribute("firstRecordPosition",new Integer(firstRecordPosition));//gives the position of the first record in the list
request.setAttribute("lastRecordPosition",new Integer(lastRecordPosition));//gives the position of the last record in the list
request.setAttribute("recordSize",new Integer(records.size()));//gives the size of the list
request.setAttribute("currentPage",new Integer(currentPage));//provides the skip parameter
request.setAttribute("rowSize", new Integer(rowSize));//provides the rowsize value for the subsequent pages
request.setAttribute("firstLink",firstLink);//provides link to the first page of the list
request.setAttribute("lastLink",lastLink);//provides link to the last page of the list
request.setAttribute("completeLink",completeLink);//complete link with first, previous,pageLinks,next and last links
String recordStatus = "";
if(recordSize==0){
recordStatus ="No Records Found";
}else{
recordStatus = firstRecordPosition + " to " + lastRecordPosition + " Record(s) of " + recordSize;
recordStatus= "<span class=\"bgWhiteABlackb\">" + recordStatus +"</span>";
request.setAttribute("recordStatus", recordStatus); -
Select records across multiple pages
i have a resultset of 100 records. 10 records are displayed and pagination is displayed for the users to navigate to other pages. All this is accomplished using jstl.
if the user selects 2 records on page 1, navigates to page 2 and selects 2 more records, only the records from page 2 get selected. how can the records from page 1 and page 2 get selected? how can i retain selected records between pages?
can anybody please point me to some code snippets?
Thanks,
Jayashree.u have to store some where the index of the selected records..
Shanu -
Oracle WCI - How to make Contact page in a tabular form in WCI
Hii All,
Im using Oracle WebCenter Interaction . As you all know that in websites we have a section called Contact-Us under whcih we can provide few contact details. Im using a portal which has been made by using WCI so i just wanted to make a table in a page which can show the contact details. My portal has a page which already has those contact but it is not properly alligned so i just wanted to make it in the form of table.One cantact on one row like that. Please give me any suggestion to make it.Well i give u item level to apply it in the whole record including...
emp , ename & sal
any way to do it block level u can use Current Record Attribute Property block level but if u programatically do it as mentioned u can have a lock on something resemble to ur case pls have a look at Craig's Oracle Stuff How to Select Multiple Records in a block using Record Groups just to exclude the idea u want to develop.
Hope this helps...
Regards,
Amatu Allah -
How to relate a report page to a tabular form?
I have a table called PRODUCT
SQL> desc product
Name Null? Type
PRODUCTNUMBER NOT NULL VARCHAR2(15 CHAR)
PRODUCTDESCRIPTION VARCHAR2(30 CHAR)
LOCATION VARCHAR2(10 CHAR)
WARRANTY NUMBER(4)
PRODUCTSN NOT NULL VARCHAR2(25 CHAR)
STATUS VARCHAR2(20 CHAR)Now I create a view, and based on this view I create a report page
CREATE OR REPLACE VIEW V_PRODUCT_OVERVIEW AS
SELECT PRODUCTNUMBER, PRODUCTDESCRIPTION, LOCATION, WARRANTY, COUNT(PRODUCTSN) QUANTITY
FROM PRODUCT
GROUP BY PRODUCTNUMBER, PRODUCTDESCRIPTION, LOCATION, WARRANTY;For each type of product (identified by PRODUCTNUMBER), there may be many instances (identified by PRODUCTSN). I want to put an edit button beside each record on the report page. After clicking the edit button, it will redirect to a detail page, which is based on the specific PRODUCTNUMBER, where I can add or modify products.
SELECT PRODUCTSN, PRODUCTSTATUS
FROM PRODUCT
WHERE PRODUCTNUMBER = #THE_PRODUCTNUMBER_OF_LAST_PAGE#I don't know how to accomplish this, especially how to relate these two pages, and how to pass the PRODUCTNUMBER from the first page to the second. Any idea is appreciated! Thanks!Can't run sample appliation. When I run the appliation, login using "demo/#lower_case_workspace_name#", the browser comes with error message:
ORA-06550: line 2, column 8: PLS-00201: identifier 'CUSTOM_AUTH' must be declared ORA-06550: line 2, column 1: PL/SQL: Statement ignored
Error ERR-10460 Unable to run authentication credential check function. -
Multiple page formats in smartforms
we say that multiple page format is possible in smartforms but not in SAP Script. What does this multiple page format exactly means and whar does label means exactly in smartforms.
Please help.multiple page formats in smart forms means...
the first can be landscape, and the second one portrait...viveversa is also possible
label means... for example u want to print addresses of employees in an organisation... then through scripts ypu can print the labels... -
Whats mean by multiple page formats in smartform?
Hi!
Can u pls tell me whats mean by multiple page formats in smartform?
Thanks
Imran.Hi Imran,
multiple page formats in smart forms means...
the first can be landscape, and the second one portrait...viveversa is also possible
go with tcode:smartforms,specify some name and go with create.place the cursor on 'Pages and windows' folder.on right side we will have option page format:go with f4 .u will find many page formats.
Reward points if helpful.
Regards,
Omkar. -
Multiple pages with multiple images in interactive forms
Hi,
In KM I have xx01 folder ...which contains img1, img2, img3.
Now I have to get img1 iimage n 1st page of interactive from,
img2 image in second page,
img3 image in third page.
I could get the single image on the first page.
How to get muliple images in multiple pages of the interactive form.
I am using web dynpro java.In Adobe LiveCycle, add a new subform at the page level. Put your images there.
You can also click Insert > New Body Page. -
Help needed in row selection in Tabular form across pages
Hi,
I have a tabular form report similar to http://htmldb.oracle.com/pls/otn/f?p=31517:95. I want to select some rows from first page and then use the pagination to get to the next page, select some more rows and hit the submit button for processing. The rows selected in the last page alone are picked up for processing, and the ones selected in the earlier pages are lost. I see the same behaviour in Denes' example as well. I picked a row in the first page and a row in the next page, and then click "Pick Records", i see only the record i picked on the second page.
I did play around with "partial page refresh" setting for the tabular form region, but that does not help.
Is there a way to select across pages in a tabular form?
thanks,
Rams
Edited by: rams1234 on Jan 22, 2009 10:19 AMOkay. I could make this work, but this seems to be a roundabout way for me. In my case I dont have any database related query to get the values, hence the Application level process may not be needed.
When I select the checkbox, i get the value. I am hoping that I should be able to send the value to a javascript function and update the filed value in the function itself. Please see the function below..
function setFileID(pThis) {
var chkvals=pThis.value;
var fldValue = new $x('f_FILELIST').value ;
if (fldValue != 0)
{ $x('f_FILELIST').value= fldValue+'-'+chkvals;}
else
{ $x('f_FILELIST').value = chkvals ;}
This function works fine in making up the list. The issue is, when an already selected row is unselected, the value of the checkbox gets added one more time :) If I detect the checkbox status and subtract the corresponding value, this will be perfect..
Thanks for the link anyway. I am marking this question answered.
regards,
Rams.
Edited by: rams1234 on Jan 22, 2009 1:18 PM -
Losing data on a tabular form when submitting a page with validation errors
I have a window that has a regular HTML form at the top that has several items. Then on the bottom of the page, I have a tabular form where the user can enter multiple rows of information. Unfortunately, when the page is submitted, if there are any validation errors, any changes that were made in the tabular form are lost.
Any suggestionsFair enough :)
Actually what I was meaning was could I use a collection to repopulate the tabular form when I receive errors. It appears as if it may work. However, I am hitting one snag.
I have created a PL/SQL Process that runs On Submit and Before Computations/Validations. In this process, I have saving the values in the tabular form to a collection.
I was then hoping to create another process that ran after any errors occur. However, it does not appear as if any processes run when the screen redraws after a validation issue. Is there a process that runs after validations when the screen is redrawing? Will I need to do this using javascript?
Thanks
Maybe you are looking for
-
Just updates itunes and now it doesn't open at all, not even an error message
I just updated itunes and now it doesn't open, no error message comes up, it's like i never even clicked it, well for a second the 'in progress' circle spins tried restarting the computer, that wasn't any help cleaned up registry with ccleaner even o
-
I have scanned a document and then saved it to desktop. It has saved as a pdf. When I have then attached it to email and sent - an message comes up saying no plug ins - The recipent couldnt open files. How can I rectify this so that I can attach pdf
-
Reading and displaying Ms.Word document with web dynpro java
Hi, I'm using NetWever developer studio 7..0.21. I'm developing web dynpro java application.I'm in difficulty to read and display word document with its original format in web dynpro view. Is it possible? If possible , is there a blog etc.? Thanks.
-
All, I am able to generate xml file from an internal table. The problem is, if I open the file in IE everything looks good. When I open it in notepad or notepad++, everything is in one line. Can you tell me how to generate a line break after each tag
-
I updated recently to itunes 7.1 and it worked fine on my ipod (60gb video) and I figured I would connect my Mum's 4gb nano to update that too. Connected the nano and it updated the actual ipod and told me to leave it to restart, so I did. It finishe