Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Oracle APEX 4 question

Posted on 2013-05-23
4
Medium Priority
?
551 Views
Last Modified: 2013-05-31
I am new to Oracle APEX and have built what I think is a simple application.  I built an interactive report.  I have 4 parameters for the report, and I display the report in a region on the same page based on the query parameters. The report only displays two columns, an ID number (not unique), and a unique type.

Column1(IDCODE)       REP_TYPE
0987654321                  SAMPLE
0987654321                 ANOTHERSAMPLE

What I want to do is to set an item value to that of what is in Column1(IDCODE).  The reason I need to do that is so that I can then pass that item back to my database in a second query.
I hope this makes sense, I can elaborate further if necessary.
Thanks for any help you can give.
0
Comment
Question by:newtoperlpgm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:ianmills2002
ID: 39193249
I assume you want to click on the value and kick off the second query?

Is this 2nd query used in a another report?
0
 

Author Comment

by:newtoperlpgm
ID: 39194571
Hello,
Something like that.  Yes, when I click on the link for that value I need that value to run a query against my database.  The 2nd query is actually a query outside of APEX, in Oracle though, so I need to have that value to store, and pass.  It gets more complicated...the report is not an APEX report, it's an Oracle Report 10 report.  That part I can do, if I have the value...
Thanks very much for your response and help.
0
 
LVL 6

Accepted Solution

by:
ianmills2002 earned 2000 total points
ID: 39198310
I usually use standard reports in my APEX apps. In there, I can change the column definition to include a link to run some javascript.

e.g. Put this in the HTML Expression of the column definition
<a href="javascript:" onClick="javascript:variant_selected(#MDL_ID#, #MRG_ID#);" title="Click to view Accessories"><u>#VARIANT#</u></a>

That javascript function I will setup to set the value of the page item.

e.g.
function variant_selected(pi_MDL_ID, pi_MRG_ID) {
    $x_Value('P3_MRG_ID', pi_MRG_ID);
    $x_Value('P3_MDL_ID', pi_MDL_ID);
}


I just had a look at the interactive reports. It looks like in the column definition on the report, you may be able to set the value in the Column Link section of the column definition.

I also tried the same functionality and my javascript functionality worked. I put the link into "Link Text" field. Set the target to the same page as the report. I then had to put the Item names into the Item section before the link appeared on the report.
0
 

Author Comment

by:newtoperlpgm
ID: 39211000
Thank you.  
Your solution below worked for me.
I just had a look at the interactive reports. It looks like in the column definition on the report, you may be able to set the value in the Column Link section of the column definition.
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question