Which region would work best to display what I need on Oracle APEX - oracle

I am trying to make a page that returns header information for all employees, but when an employee is clicked it returns all details of that employee. I have drawn up an example that may better help explain what I am trying to do. I am curious on what type of regions I should choose, and if there is an example application that I could use to base mine off of. Thanks!
https://i.stack.imgur.com/lMfjH.png

Using the wizard:
create page
report
report with form
It'll create two pages:
an interactive report (you'll use to view some info for all employees on the same page, as if they are in an Excel worksheet) and
a form, which lets you show all details related to selected employee (which means that form can contain many more items than report)

Related

Form and Report on same page (Form as detail of selected report page)

I am curently moving my small business app from ms access to Oracle Apex 20.
What I need is a page that shares both the report where I would select a row with record and form element at the top of page that would show details of the record.
Can someone give me an advice on how to start? I tried creating a blank page and inserting report and form elements manually but I am getting error No Primary Key item has been defined for form region rep7.
I suspect I need to connect the form and report with primary keys but don't know how. Closest I've been to solving my problem was watching this:
https://www.youtube.com/watch?v=H-hoMcMIs9g&ab_channel=MostafizMitul
but I couldn't quite decipher it.
Thank you
Jakub
The way you described it, it is a page whose type is Master Detail. Just follow the wizard, it'll create everything for you.
True - you can do it yourself, manually, but - why reinventing the wheel? The whole idea of Apex is to make things simpler for us, developers, to save us from boring actions we'd repeat over and over again. Let the wizard do it!

Oracle APEX Interactive Report Column Hyperlinks & Variables

I'm using APEX 5 for the first time and trying to link users to the same page from an interactive report column.
The page being linked to will display different data, depending on which row user clicked.
I don't know what data to depend on to generate the new page, my thoughts are to write (a href) statements but not sure how variables are supposed to be stored this way.
Any advice or help would be greatly appreciated!
Wrong approach, in my opinion.
You should have done this:
create a new page
choose the "Report" page type
choose "Report with Form on table"
It'll create both Interactive Report and a "linked" Form which will be used for the purpose you described. You don't even have to write a single line of code, Apex will do everything for you. You'd just click the icon at the beginning of the Interactive Report row, and it'll lead you to the Form and display values related to that very row.

Changing Salesforce report through url - update the title?

In Salesforce there is a way to programmably filter reports by adding parameters to the report url. pc#, pn# and pv# allow filters to be modified or even created out of nothing. It is also possible to use the bool_filter parameter to change how the filters are combined (AND/OR). With a Visualforce page and some Apex button code it's possible to create user friendly setup screens for very complex report filtering.
However to be really user friendly the report title (the label above the report) should change to reflect what is in the report. For example if a report shows all earnings from a specific account (by adding a blank account equals filter and then specifying an account id in the url) you would want someone looking at a print out of that report to know which account it is talking about. Depending on the layout the user will see the filters listed, but an automatically generated account id doesn't tell them much.
Can the label above the report be dynamically overidden (or added to in some fashion) with some text that better explains what the report is about?

Creating a Form in APEX to set Variables in a Query for an Interactive Report

I am a relative APEX noob.
I'm running APEX 4.0 against a 10gR2 database.
I've written a query that takes a few inputs (two date fields, for start and end, and a text field for further filtering) and created a dynamic report out of it that works when I pull the input variables (:START_DATE, :END_DATE, :OFFICE) out of it or replace them with static values.
I want to create a form on a page that submits those values to the dynamic report page for use in the query to filter the results the user sees when he or she hits the report.
I'm not having much luck finding a good step-by-step example of this. I created a blank page with two Date Pickers and a LOV select dropdown, but am unsure how to best translate those values into the dynamic report.
Can somebody point me at the right documentation for this?
The following was developed using Apex 4.1 but apart from some cosmetic changes the principles should be the same.
The data comes from the standard scott.emp schema.
Overview
This is page 1, the user can enter an empno and\or a hiredate.
When submit is pressed the following report on a different page is displayed:
How it works
On page 1 I have created the three items shown. The text items are called them P1_EMPNO, and P1_HIREDATE. The action for the button is "Submit Page"
Still on page 1, create a branch with the following values:
This branch navigates to page 2 (which is yet to be developed) and sets the values of items on page 2 with the values from page 1.
Create a new page, in this example this will be referred to page 2.
On page 2 create a new interactive report using the following query:
select e.*
from emp e
Next create two text items in the same region as the report and call these :P2_EMPNO and :P2_HIREDATE. I have found it useful to show these items during development so you can see that the correct values are being passed through to the page. You can always set them as hidden once you happy with the report.
Finally amend the query used by the interactive report to use the values supplied by page 1
Run the application.
You want to reference your page items in your query, which means you'll have to submit your page before your query will pick up the session state of them. What I do when I provide a small parameter form, is to put a button up there as well (i.e. labeled 'Query'), which does a submit.
In your report you can then reference your items. If for example you have 2 items P1_DATE_START and P1_DATE_END, your query could look like:
SELECT firstname, lastname, job
FROM employees
WHERE employment_start BETWEEN to_date(:P1_DATE_START) AND to_date(:P1_DATE_END);

Search View For Admin In magento

I have created a Sample Module (Admin Side) in Magento.. I managed To created a form and Then Stored the form field values in Database. Now I am trying To create a search view for that. to show me all the values which i have stored in my table. however i am not able to get it. when i press the tab I directly get the form view. I want the search view first and a button there which ll direct me to this form. I want it the same way as it is for product, category or any other module. Do anyone Know How can I do it.
It's called a grid. The process is kind of long to explain here, but if you search online there are a few tutorials that explain how to do it (here's one that I found useful: http://www.webspeaks.in/2010/08/create-admin-backend-module-in-magento.html). Keep in mind that you can also model your own code after core code. If you want to make a grid like the Category grid, then go look in the code how its made.

Resources