passing the value of the table to the point

Hi guys,.

I have a question about flash cards. I created a Flash (3D Pie) chart and an element. At present the 'link' of this table column is NULL, but now I want to pass the value of the column 'value' to the order of the day, when you click the value in the graph. Does anyone know how this link should be built?
Hope you understood what I meant... If not let me know and I'll try to explain once again.


For the moment, it's just like that:
select  
NULL LINK,
s1.STATUS_NAME label,
(select count(supplier_id) from zf_asn_summary z01 where z01.status_id = z1.status_id) value 

from 
zf_asn_status s1, 
zf_asn_summary z1 
where 
y1.status_id = s1.status_id

order by s1.status_name
Thanks and greetings
Patrick

How about this one

select
'f?p='|| :APP_ID || '::' || :APP_SESSION || '::::PXX_ITEM:'|| value LINK,
label,
value
from
(select
s1.STATUS_NAME label,
(select count(supplier_id) from zf_asn_summary z01 where z01.status_id = z1.status_id) value
from
zf_asn_status s1,
zf_asn_summary z1
where
y1.status_id = s1.status_id
order by s1.status_name)

Tags: Database

Similar Questions

  • Passing a value from one table to another

    Access database:
    I have 2 tables, table 1 has a field that is a primary key (not indexed, no dups), table 2 has a field that should receive the same number as the table represented in 1.
    The problem is that when the query runs, it gets the MAX (number), but when it is inserted in table 2, all records in table 2 are updated with this number.
    Is there a way to prevent all the records in a table 2 updated and only the most recent file receiving the number in table 1?
    Any ideas?

    This is my query:

    < cftransaction >

    < cfif len (trim (form. GT Time_Spent)) 0 >
    < cfquery "InsertRecord' datasource = name ="NBProdReports">
    Insert Into TblMasterTrans (Time_Spent) Values ('#form.) Time_Spent #')
    < / cfquery >
    < / cfif >

    < cfif len (trim (form. WG Notes)) 0 >
    < cfquery "InsertRecord' datasource = name ="NBProdReports">
    Insert into TblContractInfo_SubMenuTable (Contract_Number, Transaction_Type, Num_Checks_Trans, Notes)
    Values ('#form.) Contract_Number # ',' #form. Trans_Type # ',' #form. Num_Checks_Trans # ',' #form. Notes #')
    < / cfquery >
    < / cfif >

    < name cfquery = "getTask_Number" datasource = "NBProdReports" >
    SELECT MAX (Task_Number) AS theTask_Number
    Of TblMasterTrans
    < / cfquery >

    < name cfquery = "SetTaskNumber" datasource = "NBProdReports" >
    Update TblContractInfo_SubMenuTable
    Set
    Task_Number = #getTask_Number.theTask_Number #.
    Where Task_Number = Null
    < / cfquery >

    < / cftransaction >

    In fact, you could even with impunity with a single query by selecting the Task_Number MAX in the second insert statement.



    Insert Into TblMasterTrans (Time_Spent) Values ('#form.) Time_Spent #')



    Insert into TblContractInfo_SubMenuTable (Task_Number, Contract_Number,
    Transaction_Type, Num_Checks_Trans, Notes)
    SELECT MAX (Task_Number), ' #form. Contract_Number #'.
    ' #form. Trans_Type # ',' #form. Num_Checks_Trans # ',' #form. Note #'
    Of TblMasterTrans

    Phil

  • Passing the values in a row selected on a table to a region

    A jspx, I have a table that is connected to a VO. It has an attribute "Ndc" gives the word.

    In addition, on the page, I have a region that contains a bounded workflow that has only a single fragment.

    I have a text in this fragment input, which should show the value of "Ndc", according to which line is selected on the table in the parent page.

    I use this fragment in other pages, and I am able to get the value of "Ndc" to an input parameter, I put in place for the stubborn workflow.

    But when I try to pass a value that matches my attribute "Ndc" in my table, I get either an error, or nothing is displayed.

    Should what value I be sending to the stubborn workflow? And once I get it to work, it will be as simple as putting a partial trigger on my area (showing my table) in order to get the region to refresh with the value "Ndc" selected?

    Thank you

    Joel

    Edit: So much worse, I didn't have a link put in place for my NDC attribute on my parent page. Once I did this and sent as parameter for the stubborn workflow, it worked.

    Published by: JRolls on November 15, 2010 08:42

    Hello

    What is the expression defined for the input in the pageDef parameter?

    In addition, you need to set a RefreshCondition on the task-flow-binding, I don't think that the only partialTriggers will be sufficient.

    Kind regards

    ~ Simon

  • help in passing the values in the table

    Hello
    I have a procedure that accepts as a parameter
    email_list. It is the type merge_email.

    Merge_email is now a record type:
    TYPE merge_email_value () IS RENDERING
    number of contact_type_id
    contact_email_id varchar2,
    Email_Address varchar2,
    email_priority varchar2
    );
    type merge_email is table of the merge_email_value;

    I want to test this procedure. How to pass multiple values for this setting?

    for example:
    1' st set of E-mail:
    1, 2, [email protected], 3
    2' st set of E-mail:
    1, 2, [email protected], 2

    I would like to pass these two sets of values both to this parameter IN email_list. How can I achieve this?

    Thanks for your help

    Published by: user13294597 on June 17, 2010 04:53

    You want something like that

    create or replace package my_pkg
    as
      type merge_email_value is record (
                                   contact_type_id number,
                                   contact_email_id varchar2(100),
                                   email_address varchar2(100),
                                   email_priority varchar2(100)
                                       );
    
      type email_list is table of merge_email_value;
    
      procedure my_test_procedure(pEmailList in email_list);
      procedure run_procedure;
    end;
    /
    create or replace package body my_pkg
    as
      procedure my_test_procedure(pEmailList in email_list)
      is
      begin
        for i in 1..pEmailList.count
        loop
          dbms_output.put_line(pEmailList(i).contact_type_id || '/' ||
                                   pEmailList(i).contact_email_id || '/' ||
                                   pEmailList(i).email_address || '/' ||
                                   pEmailList(i).email_priority);
        end loop;
      end;
    
      procedure run_procedure
      is
        lEmailList email_list := email_list();
      begin
        lEmailList.extend;
        lEmailList(1).contact_type_id := 1;
        lEmailList(1).contact_email_id := '2';
        lEmailList(1).email_address := '[email protected]';
        lEmailList(1).email_priority := '2';
    
        lEmailList.extend;
        lEmailList(2).contact_type_id := 1;
        lEmailList(2).contact_email_id := '2';
        lEmailList(2).email_address := '[email protected]';
        lEmailList(2).email_priority := '3';
    
        my_test_procedure(lEmailList);
      end;
    end;
    /
    begin
      my_pkg.run_procedure;
    end;
    /
    
  • How to pass the value to query LOV of rows in the table.

    simple table on the page of the ofa:

    col1 col2
    ABC lov-activated
    PQR lov-people with disabilities
    MNO lov-activated

    Col2 is lov and turned under condition if it meets certain conditions. I am capable of until.
    How to pass values in col1 to the co of lov lov query?

    Help, please
    Thank you

    Hello

    You can pass the value to LOV in this way in a region of the table.

    col1 col2

    DEPTNO empname (Lov field)
    1 lov1
    2 lov2

    requirement: lov1, you will need to pass the value of deptno 1.

    If deptno is message style text then you need to create a value of the deptnoFormValue with the attribute in the base page table area, and the same instance of vo.

    danslechamp empname lov

    fields of lov region:

    EmpName,
    DEPTNO,
    and deptnoFormValueinLov

    lov mappings: a first return to the basic page.

    a second part of the criteria

    Point lov region: deptnoFormValueinLov
    Return article: -.
    Point of criteria: deptnoFormValue
    Required: true
    Query programmatically: true

    Now create a controller for the region of Lov

    the code example is:

    Import oracle.apps.fnd.framework.OAApplicationModule;
    Import oracle.apps.fnd.framework.OAViewObject;
    java.util.Dictionary import;

    in the process request:

    OAApplicationModule m = pageContext.getApplicationModule (webBean) (OAApplicationModule);
    Dictionary passiveCriteria = pageContext.getLovCriteriaItems ();
    String deptno = (String) passiveCriteria.get ("deptnoFormValueinLov");

    System.out.println ("org code in controller of lov is" + orgcode);

    OAViewObject vo = (OAViewObject) am.findViewObject ("view instance of lov");
    vo.setWhereClause ("Organization_code =" "+ deptno +" ' "");

    System.out.println ("request after adding where clause." + vo.getQuery ());

    hope this is useful

    Kind regards
    Barros.
    [email protected]

  • Going crazy on the values of stale table f *.

    Some seriouse need help now.

    My goal is to build a table whenever a real touch.

    1. create a table based on the values programitlitly beeing past in the table

    2. This should each time when a Boolean value is true.

    3. the table building function should wait 6 s before storing in the table when the value is true

    My problem is that when I press True, and I start changing the starting value (say 0) desired value I want that it either (say 5) before six seconds pass, the value passed to the table after 6 seconds is the starting value of 0 not the value of dessired 5. This value appears the next time that I push the real button.

    It drives me crazy

    And the desired value must come within a structure of sequence because of the structure of the main VI (this is just an excerpt of this cose)

    HELP Please!

    Probably, this should solve your problem.

  • Setting the value of a table of ActiveX control

    When controling a VI through ActiveX, how is possible to set the value of a table control?

    With digital controls, I have a problem: I just use SetControlValue and it works well:

    til SetControlValue ('y', 4) for example.

    However, in trying to do the same thing with a table, the control's value becomes an empty array:

    til SetControlValue ("arr', [3-4-5]") for example.

    What is the right way to do it?

    Hi Calvin,

    Have you tried passing a string and convert it to an array entry?  You can also try to use a 'matrix' control, rather than a table, as they are handled a little differently.

  • If it is possible to pass the variable of type table in sceduler.

    Hello

    need to schedule a task to call a procedure but procedure a array as a parameter.

    Let me know we can pass the type of object as a parameter in the Scheduler.

    procedure definition: procedure (number, varchar2, ch. pakage.table_type b)

    I don't think that you can do with a PL/SQL type in a package, but you can do it with a SQL type, as shown below.

    Scott@orcl12c > test_tab CREATE TABLE

    2 (col1 NUMBER,

    VARCHAR2 (30) 3 col2.

    col3 4 VARCHAR2 (30))

    5.

    Table created.

    Scott@orcl12c > CREATE or REPLACE TYPE table_type AS TABLE OF VARCHAR2 (30);

    2.

    Type of creation.

    Scott@orcl12c > test_proc CREATE OR REPLACE PROCEDURE

    2 (a NUMBER;

    3B VARCHAR2,

    4 c. table_type)

    5 AS

    6 BEGIN

    7 BECAUSE I have 1... c.COUNT LOOP

    8 INSERT INTO test_tab (col1, col2, col3) VALUES (a, b, c (i));

    9 END OF THE LOOP;

    10 END test_proc;

    11.

    Created procedure.

    Scott@orcl12c > SHOW ERRORS

    No errors.

    Scott@orcl12c > START

    2 DBMS_SCHEDULER. CREATE_JOB

    3 (job_name-online 'test_job',

    job_type 4-online "procedure_stockee."

    5 job_action-online 'test_proc. "

    6 number_of_arguments-online 3);

    7 DBMS_SCHEDULER. SET_JOB_ARGUMENT_VALUE

    8 (job_name-online 'test_job',

    argument_position 9-online 1.

    argument_value 10-10 online);

    11 DBMS_SCHEDULER. SET_JOB_ARGUMENT_VALUE

    12 (job_name-online 'test_job',

    13 argument_position-online 2

    14 argument_value-online 'test');

    15 DBMS_SCHEDULER. SET_JOB_ANYDATA_VALUE

    16 ("test_job", 3, sys.anydata.convertCollection (table_type ("Oracle", "database")));

    17 DBMS_SCHEDULER. SELECT ("test_job");

    18 END;

    19.

    PL/SQL procedure successfully completed.

    Scott@orcl12c > DBMS_LOCK EXEC. SLEEP (5)

    PL/SQL procedure successfully completed.

    Scott@orcl12c > SELECT * FROM test_tab

    2.

    COL1 COL2 COL3

    ---------- ------------------------------ ------------------------------

    10 test Oracle

    test 10 database

    2 selected lines.

  • Pass the value to the process of request through javascript

    Hey everybody,

    I am currently struggling with the call to an application process and passing a value to it through javascript. Ideally, my javascript is triggered by a dynamic action, which itself is triggered when a user changes the value of a selection list. Below is the javascript code that is relevant:

    for (k=0; k<active_array.length; k++){
          var request = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=CAL_COLORS', 0);
          request.add('x01', check_array[j]);
           var ajaxResult = ajax.get();
           alert(ajaxResult);
          active_array[k].parentNode.style.backgroundColor=document.getElementById('P14_TEST_COLOR').value;}
    

    And she calls the application process is also shown below:

    declare
    v_color varchar2(20);
    begin
    select color into v_color from cal_colors where other_user = apex_application.g_x01 and user_id = :USER_ID;
    :P14_TEST_COLOR := v_color
    end;
    

    The issue seems to be that online 03 my JavaScript, especially since my array element is not spent properly in my process. In an attempt to debug this, I added the alert message, however, instead of any relevant information, the alert shows just the HTML page! I'm at a loss as to what I'm doing wrong here, so if anyone has any input, I would very much appreciate it.

    Basically, you need to rewrite in the http buffer, using htp.p:

    DECLARE
      v_color VARCHAR2(20);
    BEGIN
      SELECT color
        INTO v_color
        FROM cal_colors
       WHERE other_user = apex_application.g_x01
         AND user_id = :USER_ID;
    
      htp.p(v_color);
    EXCEPTION WHEN no_data_found THEN
      htp.p('white');
    END;
    

    You could potentially make it much more efficient also. At the present time you loop on what is probably an array of elements, so from a tabular form probably. Rather than call an ajax for each line, you can group together them and make a call.

    Example:

    JS, you can use this to create an array with values to be placed on the server:

    var lArray = [];
    $("input[name=f03]").each(function(){
    lArray.push($(this).val());
    });
    

    And you can use the apex.server.process api to call a process on demand:

    apex.server.process("MYPROCESS", {f01: lArray}, {success: function(pData){console.log(pData);}})
    

    As you can see, the table with the values is put in the table in the f01. You must use the option of success well since it will be asynchronous (htmldb_Get.get is a synchronous call).

    With respect to the CLASS code:

    DECLARE
      l_return VARCHAR2(4000);
    BEGIN
      FOR i IN 1..apex_application.g_f01.count
      LOOP
        l_return := l_return || '"VALUE' || i || '",';
      END LOOP;
    
      l_return := RTRIM(l_return, ',');
      IF l_return IS NOT NULL THEN
        l_return := '[' || l_return || ']';
      END IF;
    
      htp.p(l_return);
    END;
    

    It will loop through the items in the table-f01 and build a new JSON notation and write it back to the http buffer so it returns to the client. It will look like this:

    ["VALUE1", "VALUE2", "VALUE3", "VALUE4", "VALUE5", "VALUE6", "VALUE7", "VALUE8", "VALUE9", "VALUE10"]
    

    I say this because when users use your application, you do not want such a quantity of calls. A single call by treatment action would save a lot of resources. You may have to loop twice on your items to apply your backgroundcolor, but I don't voluntarily not too mention jQuery since you is perhaps not familiar with it and get scared by him.

  • Passing the value of the BONE to ODI

    Hello

    I am fairly new to ODI. My requirement is that I have to pass a value to the UNIX operating system to ODI.

    Script - files are FTPd in a UNIX directory. To load all files in the database one after the other. The number of files may vary

    My execution of the package is the following

    (1) order OS to count the number of files in the dir and store it in a variable for ODI access

    (2) OS command to move a file from FTP location to the location of the ODI and rename the file (for example: Signups_20131212.txt to Signups.txt)

    (3) ODI interface to load the file into the database

    This process would be part of a loop, the number of files, determine the number of times that the loop runs.

    My question is, how do I get the number of ODI records directly. I would like to avoid you might write in a database table and read here

    Thank you very much in advance for your help

    Thank you

    APA

    Hello

    first link is a must for everyone

    More of life than that...: ODI series & #8211; Processing all files in a directory

    With this, you will have your data. Count is good enough a count (*) from your table. Then an OdiMoveFile will rename your file (but you can follow the previous topic).

    Let us know if there is something that John wrote

  • How to pass the line of the selected as param to taskflow table?

    Hi all

    Trying to enter values of selected table row and pass them to a taskflow showing as a dialog and to find myself lost. I realized that I can grab a hold of the current line via an associated managedbean but I don't know how I can do this and then pass the values of the selected line as a parameter to a taskflow that appears when you click on view the btn. Think Miss me just something here.

    Any help is appreciated,
    Wraith

    Perhaps you will help http://www.gebs.ro/blog/oracle/oracle-adf-creating-an-addedit-bounded-task-flow-using-a-new-transaction/

  • passing the value of the item to another page

    Hello!

    I have a few questions while passing the value of the item to another presentation page and page refreshes.

    I have a page (page n ° 2) with more areas where users can fill data in some articles (text box, popups,...), then I have a region report report and button to enter a new item. When users, click the button is it redirects to another page (page no. 21), where the user enters the values to other elements (popup, text box,...) then I have 3 buttons on this page ('Cancel', "create one", "create an and create another") and now I don't know how to handle the button ' create a. Action for the button "create one" I want is that when button "create one" is clicked in a table (in my DB) should be inserted some values of page 2 and certain values on page 21, then users should be redirected to page 2, where you can see everything that you see before the user has clicked 'enter a new element button' (so all the values in the elements of the page 2 must be visible) + in this report in the region must be updated (so you can see the inserted elements on page 21)

    I hope you understand what I mean and you can help me. And sorry again for my English.

    Kind regards
    Dragan

    You can create a collection and use it in this way:

    IF apex_collection.collection_exists ("YOUR_COLLECTION") = TRUE THEN
    apex_collection.delete_collection (p_collection_name-online 'YOUR_COLLECTION');
    END IF;
                             
    apex_collection.create_collection (p_collection_name-online 'YOUR_COLLECTION');

    -Value added to the collection
    apex_collection.add_member ("p_collection_name-online 'YOUR_COLLECTION', p_c001 => ' value to save");

    -get the value of collection
    Select C001 in apex_collections where collection_name = "YOUR_COLLECTION";

    Go through this link to learn more about the collections http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm

    OR

    as you say if its only id you want to perform, then simply create an item hidden in your page 2 =>: P2_ID_SO, then capture the value in your 2 page deal and use it in page 21.

    -Manu

  • Passing the value of the element of a page to the other

    I have the following requirements.

    Page 1: Register Username (form)
    -Insert the user name in A Table
    -Redirect to the new page
    Page 2: Collect modules (form)
    -Insert the info collected in table B
    -User name of Page 1 is the primary key

    My problem:
    I can't understand how to use the value of the username (Item1) from Page 1 to Page 2.

    What I tried:
    (A) Item2 created in Page 2
    -After that treatment direction Page 1 value with the value of Item1 Item2
    -no value not transferred (failure)
    (B) source edited Item2 on Page 2 for:
    -Used: Always, replacing an existing value in session state
    -Type: point
    -Session State: per session
    -Value of source: P1_ITEM1
    & Several combinations of the two

    My question:
    Passing a value of item from a page to another seems to be a relatively basic operation.
    Am I trying to do something that APEX isn't designed to handle?
    Is there a practical way more traditional or better to deal with these issues?

    Any comments I can get would be great

    Thank you
    Dan

    Published by: 903485 on December 20, 2011 06:26

    If the value of the item has been saved in session state (it is generally except if you explicitly Apex to not save the value in session state), then you can reference any element in your application to any other page or another process. So in other words you have a process on page 2 that runs before your page content (FRONT header, AFTER the header or BEFORE REGIONS) that does something like this:

    :P2_ITEM := :P1_ITEM;
    

    If you do that, then should have recorded the value on your other section of the page. This can also be done with calculations. It can also be done with the attribute of the SOURCE of your page, article, and there is probably some other ways to do it as well. One of these should be able to meet your need. Good luck.

    Earl

  • a problem in passing multiple values in the loop settings for

    Hi all

    I am facing a problem in passing multiple values in the loop settings for.


    EX:

    CREATE or REPLACE PROCEDURE (pr_id OUT NUMBER) HAVE


    tab type is table of NUMBER;

    TEMP_TAB TAB;

    BEGIN

    Select the COLLECT LOOSE pr temp_tab pr_id;

    I'm in 1.TEMP_TAB. loop of COUNTING

    PR_ID: = temp_tab (i);

    end loop;

    END TEST;

    OUTPUT:-

    pr_id = 234578


    in the example above, I'm only a value as an out parameter. but I send you PR_ID of the loop.
    why I don't get all the values that the parameters.please offer a solution for me.

    Thank you my friend.

    More clarification, let's look at your code...

    -- create a procedure and have a single numeric out variable
    CREATE OR REPLACE PROCEDURE TEST ( pr_id OUT NUMBER ) AS
      -- declare a type as an array of numbers
      type tab is table of NUMBER;
      -- declare a varianble of that array type
      TEMP_TAB TAB;
    BEGIN
      -- query all the values from the table into the array
      select pr_id BULK COLLECT INTO temp_tab from pr;
      -- loop through each value in the array
      for i in 1..TEMP_TAB.COUNT loop
        -- set the value of the single OUT parameter, OVERWRITING any previous value it has
        PR_ID := temp_tab(i);
        -- loop around to the next value
      end loop;
      -- end the procedure with the final value of PR_ID
    END TEST;
    
  • Insert or update trigger by passing the value to the stored procedure

    My task is to write a trigger that will pass a value for an insert or update to a stored procedure.

    It's Friday and I am not clear thinking, forgive me...


    Create or replace trigger < name of the trigger >

    After you insert or update table XXX
    for each line


    Run the Just_Do_It procedure
    (userid = new.user_id).


    If the table XXX has the userid column, and I want the trigger to get it and send it to Just_Do_It.
    what Miss me?

    Thank you.
    CREATE OR REPLACE TRIGGER trigger_name
      AFTER INSERT OR UPDATE ON table_name
      FOR EACH ROW
    BEGIN
      just_do_it( :new.user_id );
    END;
    

    Justin

Maybe you are looking for

  • Satellite Pro M70 - problems with installed after Realtek sound

    Long story - but due to lack of disk space, my son removed some directories and lost avisnon sound. He seems to have deleted Realtek and Adobe Flash Player. Have reistallede the two but once installed Realtek there is a sharp wail when the PC is shut

  • Long lines (more than 40 min)

    I found 2 problems with my Sansa Clip 2 GB V01.01.30A - long queues of more than 40 minutes are not handled correctly. 1. the player jumps to the next during fast forward after 25 minutes file. 2 if I interrupt the player after 25 minutes (for exampl

  • Laptop Presario A900: update / install windows 8.1 possible on Presario A900?

    I plan to upgrade my windows OS on my compaq presario A900, running Windows Vista home (new installation). I know that HP does not provide drivers for Vista. Does anyone has installed Windows 8.1 on one of them? I'm planning to do that rather than in

  • printer-ox00000005 error code

    printer will not cancel documents.

  • search for networks

    Hey guys I'm a total newbee, so hopefully that might give me some advice: The problem is that I live near the border, so my BB sometimes chooses the wrong mobile network. Now I want to write a little app, allowing the BB to do a new search. Benjamin