Calling a process from a link to the column in a report
Apex 4.2
I have a classic report which has links to the column. I can't call a process when you click on these links. I want to insert a record into the table when you click on this link. So I have a process for updating the database
{code}
DECLARE
l
_vc_arr2 APEX_COLLECTION_GLOBAL. VC_ARR2;
BEGIN
-apex_application.g_print_success_message: = ' sector selection: ' | : P122_SECTOR_SELECTION;
l_vc_arr2: = APEX_UTIL. STRING_TO_TABLE(:P122_SECTOR_SELECTION);
FOR z IN 1.l_vc_arr2.count LOOP
-apex_application.g_print_success_message: = 'TEST2 ';
-htp.p (l_vc_arr2 (z);
insert into ISECTOR_PHASE1_ACTIVATION
(PHASE_1_ACTIVATION_DATE, INSPECTION_SECTOR_ID, HIGH_WATER_EVENT_ID)
values (: P122_ACTIVATION_DATE.l_vc_arr2 (z),: P0_HIGH_WATER_EVENT_ID);
END LOOP;
END;
{code}
The report query is:
{code}
Select...
......
.......
-case when current_activation_status = 'Not active' then
"< a href =" f? p = & APP_ID.:122: & SESSION. Phase 1: "> click here < /a > '"
Another null
go to link,
....
{code}
Phase 1 is the name of the process. I think there may be an error in how I build the link. I build the query link, because there will be other cases that determine what process will run. That is when current_activation_status = 'active' and then '< a different link and process > '.
So I figure that if I can do it in a "if - then" clause of an instruction box, so I can change it to accommodate several "if-then" clauses in the case statement.
Also, should ASK = phase 1 in the status of the process?
Thanks in advance. Let me know if you need more information.
Just to clarify, by using a link + a request and do not put the page is a perfectly legitimate solution to this problem.
If the above code is in the region of report source query you need not use the notation #COLUMN #. You can concatenate the string together. also, I made sure to escape from your simple tics. the clause is only to create a dummy sample put to test against
with TEST_DATA as( select 'NOT ACTIVATED' CURRENT_ACTIVATION_STATUS , 1 INSPECTION_SECTOR_ID from DUAL union all select 'ACTIVATED', 2 from DUAL union all select 'ACTIVATED', 3 from DUAL union all select 'NOT ACTIVATED', 4 from DUAL ) select case when current_activation_status = 'NOT ACTIVATED' then 'Activate' else NULL end as link from test_data
Good luck
Tyson
Tags: Database
Similar Questions
-
By using the link in the column to pass column values
Hello
I have a link to the column in my report which opens a modal page, now I want to use the value of the column clicked in the page that opens.
I don't want to put any article on the opening page of the column value of click rather I want to use the value of the column of the click in my sql query.
for example:
1 P1 has the report < column link by clicking on it opens P2 >
2. on page 2, I want to use the value of the clicked column.
So far, I did
1 link to page 2
2. ask - #column_value_clicked #.
3. in the sql query, I use the same above in the where clause.
Any help...
Thank you
Rakesh
fac586 wrote:
Sunil Bhatia wrote:
Hi Rakesh,
Make use of x 01 parameter included in apex 5.0
You can create a URL to page 1 as:
f? p = 103:1:3241341234123: & x 01: #column_value_clicked #.
Make use on request P2 in the form:
Select * from test_table where id = APEX_APPLICATION. G_X01;
You have not tested who, did you?
I tested it buddy.
Link https://apex.oracle.com/pls/apex/f?p=56971
Click any bar chart and then wait that he freshen up.
Click on report of ENAME and see that he went through the parameter.
Report URL: f? p = 56971:2: & APP_SESSION. : No.: & x 01 = #ENAME #.
-Sunil Bhatia
-
Processes from a link column in the report?
Next issue to be overcome: when the user performs a search for the article, they branch to a report on a new page with the search results. Currently, they can click on a result to see a detail page and from there, add it to a "basket" of sorts. However, we want to include the function to add to the "basket" results of research.
There is a column of link already in place, but it only branches to the detail page. And the text of the page, I have 2 process for updating the tables needed by the function "basket". However, I can't determine how you used these processes to a link in the report, because it is not a 'button '.
Any suggestions?
Thanks in advance!Hello
It should work for you, provided that you can use:Expression of PL/SQL and have:
: P5_CARTADD! = 0
or
Value of the element in the Expression 1. Expression 2 =
First field would be P5_CARTADD
Second field 0
Thank you
Paul
-
Insert the loop by a report or insertion using a link of the column
Hello!
I think I have an easy one.
I created a site that lists 'problems' with the curriculum of the University. If a curriculum developer sees something that needs to be updated, they use this site to connect to the 'question' so we have a drop-down list of how the program has changed for the particular course or courses. Some 'problems' cover several courses, if a table has been created to allow the issue to join courses as needed.
The 'Courses' table contains a list of all courses at University
The 'Issue_Courses' table combines the primary key of the 'question' and the 'course' and creates the association between the questions and the courts.
The users use of page to create the associations has a report called 'add_courses' which can be consulted and filterable so that the user can refine the list of courses they want to see (the list is well into the thousands), and this report contains a column with checkboxes. This page also contains a hidden field containing the primary key of the issue, "p13_Issue_ID."
I would like to create an insert query that takes hold of the primary key of the issue of "p13_issue_ID", she travels around the report, by inserting a new record for each box checked in the report. Any help would be great! Certainly, my sql is pretty week.
Another option that I think would work, if possible, to have a "link in the column" that simply runs the insertion process by entering the primary key for the problem of "p13_issue_ID" and the id of the course of the report. Then, the user could just click on a link 'Add' or something similar on the report, which would go to the insert statement and essentially create this association. Is this possible?
Thanks in advance!
Published by: 846852 on March 23, 2011 15:12
Published by: 846852 on March 23, 2011 15:14that should have been this line
1 IN 1.APEX_APPLICATION. G_f01. COUNTY
I typed 1 instead of I
To take
BECAUSE me IN 1.APEX_APPLICATION. G_f01. COUNTY
-
Issue by passing the value of the link in the column
Hello.
Starting with a simple question, I hope. !!
I finished the examples supplied by oracle 2 day tutorial, but I can't make it work values between pages.
Here's what I did.
I created a page of report interactive (2). In the region of origin, I have the following SQL statement
Select PUPIL_NAME, class
of T_PUPILS
where CLASS = 'P '.
order of PUPIL_NAME
In the State of the page attribute section, I created a link in the column on the PUPIL_NAME column.
In the section "links" column, I put the following
Target = this Application Page
Page = 7 (this is the page I want to)
Clear Cache = 7, CIR
Name = IR_PUPIL_NAME
Value = #PUPIL_NAME #.
I created page 7 in a report. In the source page 7 region, I have the following SQL code
Select PUPIL_NAME,
JOIN_DATE,
HOME_ROOM,
HOME_FLOOR,
HOME_TEACHER
RESULT
of T_PUPIL_INFO
where PUPIL_NAME =: IR_PUPIL_NAME;
When I run the application and go to page 2, I get a list of students and their class. When I select one of the names of the student, the application moves on page 7, but instead to list information for that student, he simply says no data found.
In the URL of page 7, I can see that the: IR_PUPIL_NAME has the value of the student, I chose, but it doesn't seem to use it in the SQL statement.
Any help would be appreciated.Hello
You can try this.
Go to page 7, then on the right, click the report area and select Create page element. Type the name P7_PUPIL_NAME and deposited item text.
Change your report query page 7 as
Select PUPIL_NAME,
JOIN_DATE,
HOME_ROOM,
HOME_FLOOR,
HOME_TEACHER
RESULT
of T_PUPIL_INFO
where PUPIL_NAME = NVL (: P7_PUPIL_NAME, PUPIL_NAME);On Page 2 changing the link set the P7_PUPIL_NAME element with the value #PUPIL_NAME #.
Clear Cache 7.Run the 2 page now and click the link
Thank you
Mehabub -
Link of the column... 4 parameter passing?
Maybe this is a stupid question.
I create a link to a column in a tabular presentation in another form and I am passing parameters using attributes of column > link to the column. It's that there is a limit of 3 parameters. How can I add one more?
Thank youYou can either make the URL, or on the 3rd parameter box, you can simply add a comma and put in the other elements as follows:
P2_ITEM_1,P2_ITEM_2 | P1_ITEM_TEXT,P1_ITEM_HIDDEN
To my knowledge, this is a feature that is undocumented, but I picked up in a thread somewhere on this forum that you can do.
-
Trying to do a pop up of a link to the column
I have an interactive report (page 1) that I set a link to the column.
The column link is targeted to a different interactive (page 2) in the same application.
Everything works except when I click on the link in the column on page 1 it does not jump high page 2, but instead of this substitute page 1 in the current window.
I tried all sorts of popup window features java code, but nothing helped.
This is another simple syntax error, I do I'm sure.
Any ideas?
Thanks in advance for your time.
Anonput target = "_blank" in link attributes
-
Mark from a table where the column value is a colon-delimited list
Version: Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
Hello
This is a new query of a query Frank helped me with:
Demand is all users to restrict the report based on a multiple selection on the front-end server (application APEX) filter.
The filter returns that a colon-delimited list and the data in the table can be saved in a delimited by a colon list too. There may be 1 to n values (up to 4000 characters).
I need a WHERE clause that will allow a match, if it exists, between the data in the column of the Table and the Mult-selection list filter.
The abbreviated for this post query would be something like:
SELECT slt_id, slt_item, slt_owner
OF slt_dashboard
WHERE slt_owner IN (colon delimited page list);
The Create Table and Insert statements:
CREATE TABLE slt_dashboard ( dashboard_id NUMBER, slt_id VARCHAR2(10), slt_item VARCHAR2(2500), slt_owner VARCHAR2(4000), slt_type VARCHAR2(25), slt_year NUMBER, parent_id NUMBER ); --Insert slt_dashboard INSERT INTO slt_dashboard(dashboard_id,slt_id,slt_item,slt_owner,slt_type,slt_year,parent_id) VALUES (12,'1.1','Implement revenue enhancement initiatives','E15889:JPARISI:BDUR63','Business Commitment',2014,6); INSERT INTO slt_dashboard(dashboard_id,slt_id,slt_item,slt_owner,slt_type,slt_year,parent_id) VALUES (13,'1.2','Strengthen our Energy position','KVROMAN','Business Commitment',2014,6);
I have a function to separate the list delimited by two points in a table for the IN clause, but because these values can be saved in a delimited list of Colon in the column of the Table, I have a problem, being able to analyze the data in the column, AND the filter data.
The function is:
CREATE OR REPLACE FUNCTION get_list( p_string IN VARCHAR2 ,p_delimiter IN VARCHAR2 DEFAULT ':' ) RETURN vc_array_1 PIPELINED IS l_string VARCHAR2( 32000 ); l_array wwv_flow_global.vc_arr2; BEGIN l_array := APEX_UTIL.string_to_table( p_string ,p_delimiter ); FOR i IN l_array.FIRST .. l_array.LAST LOOP PIPE ROW ( TRIM( l_array( i ) ) ); END LOOP; RETURN; END;
The function called in the query in the form (it's just for reference in case someone wanted to know):
SELECT ... FROM ... WHERE slt_owner IN (SELECT * FROM TABLE( get_list( :P115_SLT_OWNER ) ));
But I can't use this approach because the data in the Table can be saved in a delimited list of Colon too.
Desired output:
If the Mult-Select list filter contains: E15889:JPARISI then
1.1 implementation of the E15889 revenue improvement initiatives; JPARISI (it's a semicolon between the names)
If the multiple-selection list filter contains: KVROMAN then
1.2 strengthen our position of energy KVROMAN
If the multiple-selection list filter contains: BDUR63:KVROMAN then
1.1 implementation of the BDUR63 revenue improvement initiatives
1.2 strengthen our position of energy KVROMAN
Please let me know if something is not clear.
Thank you
Joe
I went to approach the Table and the Page works perfectly.
Thank you to everyone!
Thank you
Joe
-
Interactive report conditional forwarding using the link in the column?
Hi all
I use APEX 4.2. We have an interactive report as an overview, we are the column standard link (with the pencil symbol) to go to a form of details.
Currently, we introduce the user permissions to our application. In accordance with these permissions, not all objects contained in the report can be changed by a user. I made a copy of the form that is set to read-only and eliminated all the buttons.
My question is: is it possible to redirect conditionally to the form (page 301) or reading one page (10301) according to the permissions of the user? And if I can change the symbol in the column link depending on the permissions this way? Any help would be appreciated. Thank you!
Birgitt
I got it! With 2 hidden columns and a column containing the link and icon. First, I created a table where I store my frm pages - and unalterable (afp and arp) according to the dev_class. PERM is the colum where I get 1 (authorized) or null. This column contains the link and the icon later in my report. Then I built columns hidden in my opinion like this:
CASES WHERE the afp IS NOT NULL THEN -CASE perm WHEN = 1 THEN ' f? p ='|| v ('APP_ID') | ': 301 :'|| v ('SESSION'): ':YES:301:P301_DT_ID, P301_DT_ID_4_HIST, P301_DEV_CLASS, P301_DEV_SUBCLASS :'|| v.dt_id | ',' | v.dt_id | ',' | v.DC_ID | ',' | v.DSC_ID -ELSE ' f? p ='|| v ('APP_ID') | ': 10301 :'|| v ('SESSION'): ':YES:10301:P10301_DT_ID, P10301_DT_ID_4_HIST, P10301_DEV_CLASS, P10301_DEV_SUBCLASS :'|| v.dt_id | ',' | v.dt_id | ',' | v.DC_ID | ',' | v.DSC_ID CASE perm WHEN = 1 THEN ' f? p ='|| v ('APP_ID') |': ' | AFP: ': ' | v ('SESSION') |': YES :'|| AFP |': P' | AFP | "_DT_ID, P' | AFP | "_DT_ID_4_HIST, P' | AFP | "_DEV_CLASS, P' | AFP | ' _DEV_SUBCLASS :'|| v.dt_id | ',' | v.dt_id | ',' | v.DC_ID | ',' | v.DSC_ID ELSE ' f? p ='|| v ('APP_ID') |': ' | ARP: ': ' | v ('SESSION') |': YES :'|| ARP |': P' | ARP | "_DT_ID, P' | ARP | "_DT_ID_4_HIST, P' | ARP | "_DEV_CLASS, P' | ARP | ' _DEV_SUBCLASS :'|| v.dt_id | ',' | v.dt_id | ',' | v.DC_ID | ',' | v.DSC_ID END ANOTHER NULL END show_link CASES WHERE the afp IS NOT NULL THEN CASE perm WHEN = 1 THEN ' menu/pencil2_16x16.gif. ELSE 'calmag.gif '. END "1px_trans.gif" - NOTHING ELSE END show_icon To the link column, I added the following HTML Expression:
Thanks for your help!
Birgitt
-
Adding values over the link to the column in the Apex
Hello
Is it possible to add extra or more values in the column link in the Apex. I have already 3 name of the column and the values associated with another report.
.........
For example: -.
The column link:
Text link: #COUNT #.
Value name
DATE #DATE #.
PRICE #PRICE #.
COST #COST #.
.....
I would like to add a name like 'ID' and correspondent and value #ID #.
Help, please...
Thanks in advance...
Published by: user13561710 on January 10, 2011 09:20
Published by: user13561710 on January 10, 2011 12:34Change the target in "URL".
and set the URL asf? p = & APP_ID.:
: &: NO::DATE, PRICE, COST, ID of SESSION.: #DATE #, #PRICE #, #COST #, #ID #. Replace
properly CITY
-
Hello
I'm working on apex 4,
on an html page, I have an IR and a P1_GENRE lov
I want to change the value of P1_GENRE to a second IR as a filter
so I use the link on the first IR column, fill in the name of item1 with IR_GENRE but I can't find the correct syntax to pass P1_GENRE as the value.
concerning
Jean-MarcHello
If the source is a page element, and then use & the P1_GENRE. (include the & and the.)
Take a look on: http://st-curriculum.oracle.com/obe/db/apex/r40/apexirr/apexirradv/apexirradv_ll.htm for a guide to interactive report links
Andy
Published by: ATD on Dec 15, 2010 11:34
-
Region of the column in a report
Request Express 3.1.0
I have a region of report that is displayed on a page with 3 columns. The middle column will be the longest and I want to go to this column. I've read other posts on the forum about it, though, it doesn't seem to work.
Also is it possible to truncate the display of the output to the user? The column is a varchar2 (4000) and if all the information is filled, the display on the screen would not look professional.Hello
Access from this column should be ok, if you were to build the link here as well - replace the second #comments # with:
<a href="f?p=&APP_ID.:1:&SESSION.::::P1_ITEMNAME:#LINKFIELD#">#comments#</a>
1 = page number creates a branch to
P1_ITEMNAME = the item on this page to pass a value in
#LINKFIELD # = column in this report that contains the value to passAndy
-
remove the column in a report interactiv
Hello
I wish I had a column in a report interactiv remove the line
with an X or a "delete" or...
is this possible?
or how is this possible?
concerning
MarkusHi Markus,.
I made a request for the PRICE of the APEX ORACLE in Germany this year with exactly this feature in it.
Here is the link http://apex.oracle.com/pls/otn/f?p=25500:1
Connection with a connection name: comments and password: apexuser
On the first page, you can see IR go on the Details button and you get routed to another page. You will find what you need in action. You can also download this sample application: http://www.oracle-apex-award.de/TIA-Technische-Infrastruktur.70.0.htmlUnfortunately, the application is in German. I hope you understand.
HOWTO:
Go to report attributes > column attributes and change the values for:
Link text: < img src = "" #WORKSPACE_IMAGES #tmp_user_delete.png "alt ="delete contact"> / / for the photo"
Target: URL
URL: JAVASCRIPT:CONFIRMDELETEGET(HTMLDB_DELETE_MESSAGE,'F?) P = & APP_ID.: 8: & SESSION.: P8_ACTION_DELETE: #ID #');Go to the Page change, and change the HTML header:
< script language = "JavaScript" type = "text/javascript" >
htmldb_delete_message = "'DELETE_CONFIRM_MSG" ";
function confirmDeleteGET (msg, url) {}
var confDel = msg;
confDel = confirm ("do this action you want to delete?");
If (confDel == true) {redirect (url) ;}}< /script >
Now add a process before header
Under source:
Start
delete the files where id =: P8_ACTION_DELETE;
commit;
: P8_ACTION_DELETE: = ";
end;Under conditional processing
Type: PL/SQL Expression
Expression1: P8_ACTION_DELETE IS NOT NULLGreetings,
Tobias
-
color of the column for multiple reports
Hello
I created a page with several classic reports. Each report has a pass called "Total". I would just pass Total in all the reports of colors.
I added the html header
< style type = "text/css" >
#one td [header = "Total"]
{color: blue ;}}
< / style >
I have different static IDs for all reports. for this I must repeat as below
< style type = "text/css" >
#one td [header = "Total"]
{color: blue ;}}
#two td [header = "Total"]
{color: blue ;}}
....
< / style >
Is there another way to achieve this goal of 20 reports at the same time?
Thank you
KJ
KJChellam wrote:
Hi, AEC,.
I use Apex 4.2.5 in Oracle 11 g.
I tried without the static ID, now the color does not appear in the data in the column. It's "TOTAL". Sorry I typed below.
The only reason why I can think of for that do not work, it is that the color of the column is defined by a pre-existing rule of theme with a specificity that is higher than the attribute selector. Try
td[header="TOTAL"] { color: blue !important; }
-
View the columns in your report based on the command prompt
Hello gurus,
I have a report (pivot View) with the following dimensions and facts
1 country (Dimension)
2. the dealer group (Dimension)
3. name (Dimension) of the region from the sale of parts
4. parts name (Dimension) sales representative
5 dealer account (Dimension)
6 heart FY purchases (Fact)
7. purchases of fiscal Prv (Fact)
8% change (Fact)
I have all the dimensions of filters (as guest)
The requirement is now
When I select the country from the prompt and click on go. the report is expected to show only dealer group and measures 3.
When I choose the dealer group from the prompt and press go. the report should appears with the name of parts sales region and the corresponsing measures
So I intend to use the command prompt to display the columns according to me
from now my report shows the entire column irrespective of what I select in the command prompt. (such as the report displays all my dimensions and facts). I should be able to restrict the column in the reprot based on what the user, select the prompt for
Is this possible?
Appreciate your thoughts.
Published by: 872290 on July 13, 2011 10:04Read my response here:
Maybe you are looking for
-
Replacement keyboard on Pavilion DV7-7012NR-backlit or not?
I spilled water on my HP laptop and now the keyboard doesn't work. Everything looks very good, and it works very well when a USB keyboard is connected. So, I'm looking to replace the keyboard. I had a hard time finding a good game, but... HP part Sur
-
No Ethernet connection after connection GS105 switch
Hi all I have a few questions on our new bought GS105 switch. It is said that this model is a switch so that I can plug in the cables and make them communicate. However, when I connect to my laptop to pass, it shows an Ethernet connection, but when I
-
Order the recovery disks for Windows 7 64 bit
Hello. I have trouble finding the recovery media to order on the list of downloads. I have a HP Pavilion DV6-6030ew. Thank you
-
Where to read my messages of debug?
In fact, the question should probably be: how to generate them? I made many calls from System.out.println () and finally got the Simulator is running in debug mode. Now I don't know where read these messages. I found a ton of * beep * I don't need in
-
Hello I have a cisco aironet 1100 Series wireless access point. by mistake I delete the IOS of the router and now I need to copy the IOS image again on it. I need your help please. For now, he has the Ethernet led RED, Green State, Rdio RED. T no Cis