Oracle Apex Cards Region Pagination - oracle11g

I've been playing around with the Cards region in APEX. When the page is loaded, can we manipulate and land on a specific card position of a paged card region?
For example:
We have page 1 in the application where all cards are displayed. Cards are too many, so we have paged the cards region to display only 32 on a single page and the rest of the cards on subsequent pages, 32 cards on each page. This creates a numbering with arrows at the bottom of the region (As shown in the image below) so the user can navigate between paged cards.
We have page 11 where we display detailed information about a card. Users can click a card on page 1 and go to page 11. There is a button on page 11 that brings the user back to page 1.
Now if the user clicks card # 65 to go to the card details page which is page 11, as per our pagination when a user comes back to the cards page which is page 1, that page will reset the pagination and the user will be seeing the first 32 cards rather be on card # 65.
Can there be any possibility that we can manipulate the data from apex tables to land the user on card # 65 which he clicked initially to go to the details page?

You can do it with the JS API and some additonal logic:
// go to first page
apex.region('your_static_id').call('firstPage');
// go to last page
apex.region('your_static_id').call('lastPage');
// go to first page
apex.region('your_static_id').call('gotoPage', 0);
// go to second page
apex.region('your_static_id').call('gotoPage', 1);
The docs here.

Related

page navigation with swipe using data entry forms

I am trying to teach my self Xamarin Forms. I am trying to make a bowling score card. I want to have a page where you enter the pins and other info for each turn. I want to swipe between each page for example first time up enter your results, second time swipe right to enter that turn.
What kind of control is that? is that a rotator, page viewer, or some other control.
thank you for any guidance.

Have the Elementor Addon 'Table of Content' feature initially display as the button, not the opened panel

I really like the EA 'Table of Content'. Info on it here: https://essential-addons.com/elementor/docs/table-of-content/
The problem is that when a person visits the page with the TOC enabled, the TOC opens fully which covers the text on the page. So the user has to close the TOC to read the content. Depending on your site design, this is not a problem on desktops.
But it is a real problem on mobile devices - most of the page gets covered.
All I want is the TOC to display as the standard collapsed button on the side. Then, if the user wants to look at the TOC, they can click on the button and it will open as normal.
That is, the initial state of the TOC should be closed (showing just the button on the side).
Is this possible?
This is how I want the control to initially display on the page
Here is a possibility using HTML5:
document.getElementById("eael-toc").classList.toggle('collapsed');

Is it possible to persist Drive Picker widget settings across pages?

I have 2 pages in my app. Page 1 allows the user to select a pupil and then the app shows Page 2.
On Page 2 I have a Drive Picker widget that allows the user to choose images that will be copied to a specific folder (depends on what was selected on Page 1).
If the user closes the picker on Page 2 after picking files and then opens it again without visiting Page 1 first, the Drive Picker remembers which specific folder they had navigated to and allows them to continue.
If the user visits Page 1 again first to select a different pupil and then comes back to Page 2 and uses the Picker, it seems as if the Picker gets reset and shows the user the root of their Drive again. I want to avoid this behaviour so that the user can continue to select files from their last visit (in the same session) to Page 2.
Is there anyway to access the last visited folder of the picker and store that say in a page property and then make the picker use that property the next time it is opened?
I have become a little confused as well with the options that are available to the widget and the options that are surfaced through the result object. I confess that I've tried to search stack overflow for more information on how to use result object, but cannot surface much so all of my scripts use the widget.selectedDocuments way.
You can use sessionStorage() to keep variables between pages.
It is a client side function and does not support "custom action" as far as i know, but the following functions can fix that.
function get_ss(name){return sessionStoreage.getItem(name);}
function set_ss(name, val){sessionStorage.setItem(name, val);}
when navigating from page 1 you can use a custom action to get pupil and set it in sessionStorage then navigate to page2
"Custom Action=" set_ss("pupil", app.pages.Page1.decendents.PupilName.value); app.showPage(app.pages.Page2); //going from memory on the navigation code
You can add "var pupil = get_ss("pupil");" where ever you need it from there.

How can i limit one group per page in Cognos?

I have a block with a list with 5 columns and i have grouped it on the first column. I have added sum aggregation below each group.
How can i limit results to show one group per page?
You can achieve this by using a Page Set as follows:
Go to the Report Pages in the Page Explorer
Drag a Page Set from the toolbox into Report Pages
Drag your current report page into the Detail Pages folder of the new Page Set
Click on the new Page Set
In the properties of the Page set:
Select the query of your report page
Click on Grouping and Sorting (a small dialog box appears)
From the data items on the left drag the grouping criterion into the Group folder on the right.
Close dialog.
Run the report.
The following figure shows the Report Pages windows after successful configuration.

Printing a Report that contains sub forms i print preview

I have a report that is made up off 3 subforms (cover form, details form, images form)
The cover form is just used as a cover page for my report. The details form is a continuous form that displays a paragraph of detail about 10 lines for each record added . The images form is also a continuous form that displays any images uploaded by the user. A report can be any size for example the user could add anything between 1 - 40 records to the details form and the same goes for the images form.
At the moment my report does not layout properly in print preview. what i mean by this is that for example if 4 records are in the details form in the print preview of the report 4 records are displayed on 1 page but some of the 4th records details goes onto the next page. Is there a way i can set up my report so it limits 3 records per print page, so for example if the user adds 4 records in the print preview 3 records are on one page and 1 record starts on a new page.
I seem to have got it , if you use sub reports in your report instead of sub forms it works perfectly

Resources