Passing IR column value to Oracle package

All,
I am trying to call an Oracle package from APEX and need to pass value of a IR column in that package. I have tried saying :ADJ_ID but i dont think so its pasing anything to backend.
Here are steps.
1. User runs IR
2. There is a column that I have put as 'ROLLBACK' on that report for each row which has a LINK which calls URL like
javascript:apex.confirm('Sure to Rollback the adjustment?','SUBMIT');
3. Once user confirms submit , I need to call package, package gets called but I want to send a value for that row to package, I am doing that by saying :(colon) notation but it does not work.
Thanks,
Vishal

You will have to set you page item (which you are trying to pass using the colon method in PLSQL) first
You can change your link to
*javascript:apex.confirm("Sure to Rollback the adjustment?", { request:"SUBMIT", set:{"P1_ROW_VALUE":10}});*
P1_ROW_VALUE is the Page item to set and 10 here is the value specific to the ROW
If you are using the Link section in the report attributes
then something like this would do
*javascript:apex.confirm('Sure to Rollback the adjustment?', {request:'SUBMIT',   set:{'P1_ROW_VALUE': '#COLUMN_ALIAS#' }});*
COLUMN_ALIAS is the column name whose value you want to set the item with.
Edited by: 814948 on Nov 23, 2010 8:46 AM

Similar Messages

  • Dml error logging: can we pass source column values to ora_err_tag$

    Hi Experts,
    We can set ora_err_tag$ values while implementing dml error logging feature.
    Can we pass source column values to ora_err_tag$ field of error table?
    Thanks,
    Dhiraj

    F5wrong forum
    Philip

  • Can be passed Formula Column value to Procedure/Function?

    Below cf_value is return after some calculation by using main query.
    Can be directly passed formula column value to procedure without assinged to placeorder?
    as below..
    f_convert(:cf_value,new_value);
    My Procedure is...
    PROCEDURE f_convert( val1 in number,val2 in out number) IS
    BEGIN
    val2 := val1 * 100;
    END;
    If anyone knows pls reply me....

    Actually, if there is any other calculations there (In Proceudre)
    Can I used is as below??
    PROCEDURE f_convert( val1 in number,val2 in out number) IS
    BEGIN
    val2 := val1 * 100;
    return (val2);
    END;
    ----A procedure cannot return a value, the return clause in my previous post was part of the function for formula column.
    Suppose you have a formula column say CF_2 then the function for it will be as:
    function cf_2formula return number
    is
    val1 number;
    val2 number;
    begin
    val2 := :cf_1 * 100; -- or val2 := val1 * 100 --parameters not allowed in formula column function
    -- All the other code that you need inclusive of calling function, procedure as in any PL/SQL block can be placed
    return (val2);
    end;So any other calculation can be used in the formula column function

  • Unable to pass report column value to url in select statement. Please help

    Hi all,
    I am trying to pass the report column value as follows:
    select key, num,
    case when Attachmentcnt(KEY) != 0 then
    'f?p=&APP_ID.:91:&SESSION.:'' '':NO::P91_KEY,P91NUM,P91_PREVPG:'And I am passing values as follows:
    {noformat}
    '#KEY#,'#NUM#','9' ELSE null
    END Attachment
    from tableA
    {noformat}
    But, I am not able to figure out correct sysntax to pass these column values. Can anyone give me some help. I appreciate it.
    rgds,
    Suma.
    Edited by: sumak on Jun 23, 2009 12:11 PM
    Edited by: sumak on Jun 23, 2009 12:22 PM

    Suma,
    If you're trying to generate a column with a URL, try something like the following:
    select key, num,
    case when Attachmentcnt(KEY) != 0 then
    'f?p=&APP_ID.:91:&SESSION.:'' '':NO::P91_KEY,P91NUM,P91_PREVPG:'
    || tableA.key || ',' || tableA.num || ',' || :P91_PREVPG
    else NULL
    end
    FROM tableA;
    But the best way to pass these would include checksum values against the values of your parameters (to make sure a user doesn't hack them). You'll need to check the Apex User manual for details - See "Understanding Session State Protection".
    Good luck,
    Stew

  • Pass array of value to Oracle Java Beans (for forms)

    Hi,
    How I can pass a array value from oracle Form to Java bean.
    With regards
    Satheesh Kumar

    Hi,
    Thanks for your immediate response.
    I have one more doubt. I am trying to create a Hirachical tree for form using Jtree. For dynmically populating tree data I want to pass array records from oracle forms.
    In my understanding, Java importer array will work if we do importing the java beans component to oracle forms, otherwise no.
    Is it possible I can pass array variable with out importing my javacomponent.
    With regards

  • How i pass table column  value to string variable or return to java applete

    Hi Master,
    How do I pass a table column value into string variable. See my code below:
    import java.sql.*;
    public class Waheed {
    public Waheed() {
    public static void main (String args [])
    String s = "9 23 45.4 56.7";
    System.out.println ("going for connection");
    // DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@fahim:1521:aamir","muhammad","mfa786");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select accid from accbal");
    System.out.println ("going for connection");
    while (rset.next())
    s= rset.getString("accid"); this line give me error
    System.out.println (rset.getString("accid"));
    System.out.println (s);
    catch(Exception e){
    e.printStackTrace();
    This line give me an error:
    s= rset.getString("accid");
    s is string variable
    Plese give me an idea how I can pass accid in s variable.
    Thanks.
    Aamir

    See the code sample in the following thread (try using upeercase).
    JDBC  connection
    Kuassi

  • Aex: dynamic url - need to pass corresponding column values to external url

    Hi All,
    I have created a report in which am trying to click on a column link which is a external url. In the url, part of column value needs to be passed as ID.
    Example: Report
    Name ID     Dept     Details
    King     FIN3413900     Finance     Link
    James     ACC3445812     Accounts     Link
    So when I click on Link it should take me to the page : (See below example)
    Display image for BLOB  Download link in Interactive Report (For King)
    Conditional regions (For James)
    MessageID is no from the column ID. (FIN3413900). Hence it needs to be passed corresponding to the row clicked.
    Common link is http://forums.oracle.com/forums/click.jspa?searchID=-1&messageID= (Only the number is derived directly from column ID).
    I hope the requirement is clear. If any clarifications required let me know.
    Please help me out with the possible solutions....Thanks in Advance....
    Regards,
    Vinoth

    Hi,
    Go to the Report Attributes of your report. The column you have defined for the column link click on the edit icon. In the Column Link section choose target URL and in the URL field enter :-
    http://forums.oracle.com/forums/click.jspa?searchID=-1&messageID=#ID# Where ID is the name of the column that holds the FIN3413900.
    Hope that makes sense :o)
    Regards
    Paul

  • How to pass report column value

    I'm trying to implement a AJAX report pull from one of the response on this forum. The report column calls the following javascript function below. The #COL2# values are dotted values like 10.2.3.5.6. The function passes values correctly passed if the values are without special characters. I tried to put the value 10.2.3.5.6 in escape(10.2.3.5.6), but didn't work. Any ideas to pass this value in javascript encode/decode way is appreciated.
    javascript:GetReport(#COL02#)
    thanks,
    Surya

    Hello Surya,
    >> I have put an example on APEX site …
    This is indeed the best and fastest way to get help.
    >> but the third version value "1.2.3" fails to display …
    String parameters should be encapsulated with single/double quote signs.
    Your first two rows could have been considered as numbers, so the systems let them pass. The third one – 1.2.3 – is not a number, but you didn’t mark it as a string.
    I changed your code to the following:
    javascript:GetReport_r1('#COL01#');And now it’s working as you need.
    General remark: I saw in your report page that you are using the “Generic Column Names”. Just so you know, this not is the optimal choice. If you don't have to use it, you should use the first option of “Query Specific Column name”. If you have to use generic columns, try to minimize the number as close as you can to the real number of columns, and not just to default of 60.
    Regards,
    Arie.

  • Dynamically passing the Columns values

    HI all,
    I am trying a pl/sql block which which take a string and execute it dynamically. Suppose below is string
    M_COL := Q'[(P_CODE=> ':DEPTNO',P_CODE_TYPE => 'STATE')]';
    Now trying to execute it. using below
    M_STR := 'SELECT CHK_DEPT' || M_COL || ' FROM EMP WHERE EMPNO=''7499''';
      EXECUTE IMMEDIATE M_STR
        INTO M_DATE;
    Now what i want is M_STR vairable to executed as
    SELECT CHK_DEPT(P_CODE=> DEPTNO,P_CODE_TYPE => 'STATE') FROM EMP WHERE EMPNO='7499'
    instead of
    SELECT CHK_DEPT(P_CODE=> 'DEPTNO',P_CODE_TYPE => 'STATE') FROM EMP WHERE EMPNO='7499'
    other in other way in parameter P_CODE Column value of DEPTNO should be passed.Also note that DEPTNO column in string M_COL is Dynamic.i.e
    M_COL := Q'[(P_CODE=> ':DEPTID',P_CODE_TYPE => 'STATE')]'; OR
    M_COL := Q'[(P_CODE=> ':EMP_ID',P_CODE_TYPE => 'STATE')]';
    Any suggestions, Please share with me.

    ibney 
    Actually you can use it by using the EMP and DEPT Table. If you Require EMP and DEPT tables structure and data, then let me know.
    Function which i created is below.
    CREATE OR REPLACE FUNCTION CHK_DEPT(P_CODE NUMBER,P_CODE_TYPE VARCHAR2) RETURN VARCHAR2 IS
      M_NAME DEPT.DNAME%TYPE;
    BEGIN
      FOR I IN (SELECT DNAME FROM DEPT WHERE DEPTNO = P_CODE) LOOP
        M_NAME := I.DNAME;
      END LOOP;
      RETURN M_NAME;
    END;

  • Oracle report problem-Passing a column value from a query block to another

    Hi I am facing a problem in oracle reports.
    I have 3 query blocks say Q1,Q2 and Q3.
    From Q1 I get a tblkey coulmn and for each value of tblkey I need to pass it on to Q2 which gives me a status and now finally Q3 will take tblkey and status to give me final output.
    Can somebody please tell me how I can do it?
    Thanks,
    Avin

    Depending on your report requirement, you may do a join of Q1, Q2, and Q3; or keep all Qs and for Q3 use subqueries ...
    Select ... from ... where tblkey, status in (
    select tblkey, status from ... where tblkey in (
    select tblkey from .... where .... ) )
    Good luck.
    DC

  • How to pass custom column value that is created in Answers to its detail report

    Hi,
        I have a custom column (in the below ex: 'Aging') which is calculated based on prompt date and arrived at the below aging buckets. I have a drill report from 'Balance' column. When I click on 100/200/125 corresponding 'Aging' value should be passed to the detail report.
    Aging
    Balance
    0-30 days
    100
    31-60 days
    200
    61-90 days
    125
    Tried putting the 'Aging' formula in detail report and make it 'is prompted' - no luck.
    Is creating the logic in RPD with a request variable (to pass prompt date) only option to  solve this? Any suggestions?
    Thanks in advance and a very happy new year.

    Finally, we used a request variable and handled this in RPD.

  • How to pass column value which is not present in source criteria

    Hi,
    In one of my report I want to pass a column value from Source report(a pivot table) to target report. The column which I want to pass is not present in the sorce report criteria. Is there any work around for this issue.
    I added this column in criteria and hidden the column. But the issue is not solved.
    Best Regards,
    TKB.

    Swati,
    I am navigating from Summary report to detail report. I am prompting the required fields in detail report. But I want to pass one more column value explicitly, which is not present in source request.
    Best Regards,
    TKB.

  • Passing common varibles for each individual package

    Hi All
    i have 4 odi packages.in each package i am calling a stored procedure.for each procedure i am passing 3 variables.is it possible for all these package i create a separate senario and then create a package which will call all the four senarios.in this case is it possible before the senario execution i decalre my varibles.so that i dont need to declare varibales inside each package which is already converted to a senario.
    Regards
    Sree

    Hi Sree,
    If i understood ur requirement right,
    You want to create a parent package which consist of 3 variables refreshed/declared followed by calling of 4 scenarios which in turn call store procedures passing the variable values from parent package?
    If so yes its possible by using ADDITIONAL VARIABLES option in ODI, you need to drag and drop the scenario inside parent package and in the properties of that u can see Additional Variables tab, in that u need to create 3 new variable list which u want to pass to that scenario.
    P.S: In the value box u need to mention as #VAR_NAME if u dont want to explicitly specify the variable value while passing.
    FYR:
    http://blogs.oracle.com/dataintegration/entry/using_parameters_in_odi_the_dy_1
    Check the last image in the above link.
    Thanks,
    Guru

  • Report Template href with column value

    I have created a Report template and want to have a field that is a href with link to other page passing column value. I'm having trouble passing the column value. If I hard code the value the href code works. If I try to pass #1# or the column name with # surrounding the link doesn't work. Any ideas would be appreciated.
    This works:
    <td><img src="/i/edit.gif" border="0" alt="Edit Icon">
    </td>
    This doesn't:
    <td><img src="/i/edit.gif" border="0" alt="Edit Icon">
    </td>
    Thanks
    Mary Jo Al-Shihabi

    Hi Sergio, thanks I finally got it working using a call to javascript:popupURL.
    <td><align="center">#PORT_APP_ID#</td>
    Thanks
    Mary Jo

  • Passing HTML column as filter

    Hi All,
    I have a requirement where i wrote go url syntax on the column formula if they click on that value it will navigate them to a real time environment page there in the data format of that column i made it as a HTML content i need to use this same column as a filter but when i am trying to pass this column value as a is prompted filter its not passing is there a work around.
    ex:
    person no ---> Column Name
    1234 ------> all this values are hyper linked need to pass this values to the next report as a is prompted value
    1235
    1236
    1237

    Probably you may not have understanded my question properly i will explain it below
    name     number      type        count    person number
    james 45 Actual 3 1234
    above mentioned is the format of the report Person Number Column values contains a hyperlink to a another environment and if the user click on COUNT column it navigates to a seperate report and it should pass Person Number and type as filters i am able to pass type but not Person Number since it is in HTML format if we change that to general format the hyperlink doesn't work so i need to keep that in HTML format and i need pass that as filter to next report.

Maybe you are looking for

  • Deleting a row from the item table

    Hi All, I have a requirement where I need to put a button to delete the selected row from the item table and for this I have written the following code: DATA lo_nd_t_bseg TYPE REF TO if_wd_context_node.     DATA lo_el_t_bseg TYPE REF TO if_wd_context

  • Free Good Return after Return Sales

    Dear Gurus, I am doin the process of free good..scenario is that i have done the sales to my customer...now he return the good becoz of damage and he want the replacement as a free good....so wht will be the process? what i am doin is that makin the

  • How can I embed a Spotify playlist in my folio?

    I'm trying to figure out how to embed a spotify playlist with an article in my folio, using the widget they provide here: https://developer.spotify.com/technologies/widgets/spotify-play-button/ I tried using the web overlay option and pasting the ifr

  • Lock Data: Enqueue and Dequeue

    Im trying to lock data from vb.net but it didnt work out. I pass the variable to my function module and inside the function contains below codes. eg: CALL FUNCTION 'ENQUEUE_EZCOL06'    EXPORTING      MODE_ZCOL06          = 'E'      MANDT             

  • Solaris 10: T1000/2000 combination, how many using it?

    Hi, Just wanted to know - how many of them are using T1000/2000 and Solaris 10? -For which applications and kind of application loads? - Don't they feel that because T1000/2000 only support Solaris 10, its a bottle-neck for them?