How to make reference to a queried value?

Hello!

I have a master-detail page, but not using ViewLink (I got the time to mistake the first I tried to use it). What I need to do, is to query the secondary table based on the header_id (common column) in the main table, but the search criteria is based on another column. Then, when I asked a successful master, I need to refer to the master header_id column and use it as a parameter in the query of the secondary table. How do I do this?

Thank you.

"But you can get the handle to the line on an event so that you will have to create an event on the issue."

Did you create the EVENT on any column in the header Table? If not, on what event you want to query the detail VO?

-> "PressGoBtnEvent" I guess that's the event on your search area. If the query returns multiple lines and if you still want to view the details of the first line of header, and then use the methods vo.first () and getCurrentRow to refer to HeaderID.

Tags: Oracle Applications

Similar Questions

  • Apex 4.0: In the form of table: how to make reference to the elements?

    Hello
    I have a tabular layout with a certain query. A column in the query (say comm, is not displayed. This column is required in the table

    When a new row is added in the form of tables, I want to add a (complex) value for this column hidden by default.

    I want to add a process (before submitting) to the page.
    How can I make reference to this particular point?


    : P23_COMM: =...

    does not work. It is a column in the query, not a page element.

    Any help appreciated.
    Sincere friendships Erik

    Loop over the hidden PK table, identification of the new line (by finding with PK NULL table th eone) and assign the hidden item corresponding

    Assumung 01 is the primary key column table (use firebug to check this) and 05 is the hidden field

    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_F01.COUNT
      LOOP
         --Identify new rows
          IF ( APEX_APPLICATION.G_F01(i) IS NULL ) THEN
              APEX_APPLICATION.G_F05(i)  := 
          END IF;
      END LOOP;
    END;
    
  • How to make reference to a column name in the form report

    Hello
    How can I make reference to a column name in the form report. My problem is that "I have a form report that I have the column name when using click on the column name, it must get to the next page with the corresponding values of the column".

    Here, I realized that when I click on the name of the column (in page 1) it brings me to the next page (page 2). but in the next page (P2) I want to display (display only) the corresponding values of the column (page 1) selected, but the values are not editable and shouldn't be in the text box must be in display area.

    So, how can I write a SQL to display single source field. That is to say, how can I consult report form (page 1) in name column.

    Hello

    If you use the link in the column when you click on the need of the column value, you need to navigate to the next page and all the data accordingly select value here.

    Modify the report form and see the top of the page and click on report attribute.

    So now you have the attributes of the columns is to say what are the columns are available in the reports form.

    Click on change column what you need Ie the column when you click on its passage to the next page this column, for example, as mentioned in the previous post "Empname".

    Check the link column and give perspective of values according to your need and click on apply chages.

    Thank you & best regards
    Srikkanth.M

  • How to make a button than increse value

    HY guys, I want to make two buttons which when they press increse or decrese value that one Eurorest between them. The value I guess must be in a list. But I have no idea how to make a list of numbers and, more important still, how to add the feature to increase value to the buttons. I use Blackberry 5.0

    I know as tot creata a button for this:

    ButtonField increase is new ButtonField ('increase', ButtonField.CONSUME_CLICK);.
    Add (increase);

    Can someone help me? If you can give me an example of code, I'd really apreciate.

    If your list is to be static, you can set up a table, for example with an int]

    If you want the list to be dynamic (in size), you can use a vector. It is only necessary to objects, you should encapsulate your numbers in a class. For int which is whole.

    In your form (or), you can store the index of the currently selected number. When you click the button, you increase the index with + or - and load the new value of the vector/matrix.

  • How to make a percentage of the value of a column and then insert this value in a column

    The table below should be the result I want to achieve. This means according to what value is in Column1 which corresponds to the percentage and what value is in Column2. Column1 will make a percentage of Column2. Like 80% of 1000 = 800, what will change in Column2 of 2nd record.

    Currently my code only select the current record and insert another copy that will duplicate the same record. But now I need to calculate and replace the values in column 2 according to the perentage. I did not have my code select here because I'm afraid of you all will get confused. I only put my code insert here, pls tell me how to make the formula in the code for the percentage of Column2 thanks.

    Orginal 1st record->                                                 column1 column2 
                                                                          
    80   1000  

    Inserted copy records which is 2nd record
    (what I want to achieved)   column1 column2 
                                                                          
    80   800


    My codes

     INSERT INTO table1 (column1, column2) VALUES (tran.column1, tran.column2);

    Did it using this, thanks.

    INSERT INTO table1 (column1, column2) VALUES (tran.column1, tran.column2 * tran.column1 / 100 );

  • How to make reference to the start state?

    Hello!

    I have two States in my Application: Start (State of Base) and connected (defined by myself).

    When I put the Application.application.setCurrentState ("logged") I put the State connected, but if I try:

    Application.application.setCurrentState ("start") that it does not work.

    How can I make reference to the start state?

    Thank you very much

    Hello

    To refer to the use of the base state:

    currentState = ";

    Kind regards

    Ivan Alexander PMP

    SR Application engineer.

    FlexAppsStore.com

  • How to make a loop with variable values depending on where you are in the loop

    Hello

    I need loops / nested loops that choose different figures depending on where you are in the loop.

    The entire function must operate at times 'ml '. 'ml' is a dynamic figure.

    Loop 1 = while the loop is the first 12 iterations, "exconemp" must be equal to 100. 13-24 iterations, 'exconemp' to 102.5 equal, for 25-36 TI 105.06, 37-48, it will be 107.69. This must change each 12th iteration until he reached 'ml '. The calculation takes the value of the previous 'exconemp' and then that multiply by 0.025.

    Loop 2 = while the loop is in 120 first iterations, 'abc' should be equal to 0.015 and additional iterations should use 0.01. It should also work in a way to know if 'ml' is greater or less than 120 and work accordingly.

    My main problem is - this - how can I get loops to go like this:

    While the iteration is < 12, to do this, THEN take the final figure (12th iteration) and begin the 13-24, make this SO etc etc.

    How to produce a THEN statement? I can get the code to pick up the final values, but does not change along the way.

    I think I might better create an array for loop 1, but I'm not entirely convinced of that. Also, I think it would be better/more net if I can get "month total 1 ' and ' month 2 total ' in loops, but do not know how to do this.

    The values I need to produce (only 36 first shown):

    1-12 = 125.55, 251,65, 378.31, 505.52, 633.29, 761.63, 890.53, 1019.99, 1150.03, 1280.63, 1411.81, 1543.57
    13-24 = 1679.05, 1815.12, 1951.79, 2089.06, 2226.93, 2365.41, 2504.50, 2644.20, 2784.52, 2925.45, 3067.00, 3209.18
    25-36 = 3355.19, 3501.85, 3649.15, 3797.11, 3945.71, 4094.96, 4244.87, 4395.44, 4546.68, 4698.57, 4851.14, 5004.38

    var ml = 240 / / dynamic figure, multiple of 12 up to 780
    var exconemp;
    var exconem = 100;
    var inf = 0.025;
    Tree var;
    var tec;
    power of the var;
    var fvis;
    var abc;
    var fvee;
    MVT var;
    function myfunction() {}

    Loop 1

    While (ml < = 12) {}
    exconemp = exconem;
    // }
    so that {(ml > 12)
    exconemp = exconem * inf;
    //}

    end loop 1

    trace ("exconemp =", exconemp); employee contribution

    tree = exconemp /(1-0.2)-exconemp;
    TEC = exconemp + tree;
    trace ('tree', tree);
    trace ("tec", tec);
    power = Math.pow (1 + 0.07, 1/12);

    Loop 2

    While (ml < = 120) {}
    ABC = 0.015;
    //}
    then {}
    ABC = 0.01;
    //}

    end loop 2

    fvis = power *(1-abc/12);
    trace ("fvis =", fvis);
    FVEE = tec * fvis;
    trace ("fvee =", fvee); month 1 total
    MVT = (CET + fvee) * fvis;
    trace ("MVT =", MVT); month 2 total
    //

    for (var i: Number = 0; i < ml; i ++)
    {
    MVT = (CET + MVT) * fvis;
    trace ("tfvloop =", MVT);
    }
    }

    I hope that I've explained this well enough.

    Thanks in advance.

    I think that will do it even if I don't quite get the numbers you posted.

    Stop();

    var ml = 48; figure dynamic, multiple of 12 up to 780
    var exconemp;
    var exconem = 100;
    var inf = 0.025;
    Tree var;
    var tec;
    power of the var;
    var fvis;
    var abc = 0.15;
    var fvee;
    MVT var;

    MyFunction();

    function myfunction()
    {
    exconemp = exconem;

    for (var index: uint = 1; index)<= ml;="">
    {
    trace(index + "--------------------------------");
               
    tree = exconemp /(1-0.2)-exconemp;
    TEC = exconemp + tree;
    power = Math.pow (1 + 0.07, 1/12);
    fvis = power *(1-abc/12);
    FVEE = tec * fvis;
                       
    if(index == 1)
    {
    trace ("month 1 total =", fvee);
    }
    another if (index == 2)
    {
    MVT = (CET + fvee) * fvis;
    trace ("month 2 total =", MVT); month 2 total
    }
    on the other
    {
    MVT = (CET + MVT) * fvis; now that we're here the MVT auto perpetuates on himself
    trace ("months" + index + "total =", MVT); month total n
    }
                       
               
    If (index %12 == 0)
    {
    exconemp = exconemp *(1+inf);
    trace ("changed to exconemp to:" + exconemp);
    }
               
    If (index % 120 == 0)
    {
    ABC =. 01;
    trace ("changed abc to:" + abc);
    }
               
    }
    }

  • How to make reference to a column name in the domain constraint

    When specify us a constraint check (for SQL Server) in a field, we need to enter an expression in the syntax, for example

    Len (Phone) > 7

    Later, the Modeler will exactly this expression in the SQL code. But it would be wrong as a constraint to refer to a column name in the table (which would not be 'phone').
    So, how to make the data name Modeler to a real column in the constraint domain?

    Hello

    Use the % COLUMN as a placeholder column name - len (%COLUMN%) > 7

    Philippe

  • How to make reference to a packaged variable

    Hello

    I went through the forum where he mentions how to run a constant in a package. I want to refer to a variable declared in a package specification.
    CREATE OR REPLACE PACKAGE p1
    IS
    
    sDebugMode VARCHAR2(3) := 'ON';
    ....
    end;
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    user8731258 wrote:

    I went through the forum where he mentions how to run a constant in a package. I want to refer to a variable declared in a package specification.

    CREATE OR REPLACE PACKAGE p1
    IS
    
    sDebugMode VARCHAR2(3) := 'ON';
    ....
    end;
    

    In order to use the PL/SQL variables (including global static variables), a SQL must be created with bind variables. This requires the use of PL/SQL itself. The following is valid:

    create or replace procedure GetFooCursor( cur out sys_refcursor ) is
    begin
      --// PL/SQL creates a SQL bind variable and bind it using
      --// the PL/SQL variable
      open cur for select * from foo_table where foo_switch = p1.sDebugMode;
    end;
    

    However, you cannot do the following using SQL only:

    SQL> select * from foo_table where foo_switch = p1.sDebugMode;
    

    The SQL engine must solve what '+ p1.sDebugMode +' means. The SQL engine do not support calling PL/SQL functions. He is able to look inside PL/SQL memory variables and access of the PL/SQL engine directly.

    So if you want the SQL engine to access this variable directly, you must create a PL/SQL function that returns the value of the variable. Which is not really a great approach:

    create or replace function SillyFunc return varchar2 is
    begin
      return( p1.sDebugMode );
    end;
    

    The following SQL code can then be used:

    SQL> select * from foo_table where foo_switch = SillyFunc();
    
  • How to make reference to a guest entry by the user

    I want to set up a different dynamic report according to the prompt value title which user has entered, how can I do?

    Thanks for your help!

    Hello

    You could use a Variable presentation and to refer to this variable in the title; http://download.Oracle.com/docs/CD/E12096_01/books/AnyUser/AnyUser_Requests11.html

    Good luck

    Daan Bakboord
    http://obibb.WordPress.com

  • How to make reference to a function object in a conditional statement?

    I currently have a conditional which looks like this:

    {if(!closeFunction)}
    this.removeEventListener (CloseEvent.CLOSE, closePopUp);
    }

    closeFunction is a: type of function and it works correctly, but I have this error warning?


    3553: function value used when the Object type is expected.  Maybe the parentheses () are missing after this function reference.

    Is there a better way to check if this feature is enabled or not?

    Try

    If (closeFunction is nothing)

    Gordon Smith

    Adobe Flex SDK team

  • How to make text in the query of the child

    Hello

    I need to put a text where are child records that says "not found IN.."

    Oracle 10G
    report design consist of recordings of group and the child a man

    ex:

    main subquery
    P44001 desc BOMqty date1 total qty line1 ponum1
    .. .date2 qty line12 ponum1
    .. .date2 qty ponum2 line3

    P44002 desc BOMqty don't total "no found in.".

    P44003 desc BOMqty date4 total qty 4 ponum1
    ... date2 qty line2 ponum1
    ... date2 qty line5 ponum2


    Thank you
    Harsha

    Hi, Harsha,

    This sounds like a job for OUTER JOIN.
    For example, using tables of scott:

    SELECT       d.deptno
    ,       d.dname
    ,       NVL2 ( e.deptno
                , e.ename
                , 'No emp found'
                )     AS ename
    FROM              scott.dept  d
    LEFT OUTER JOIN      scott.emp   e  ON  e.deptno  = d.deptno
    ORDER BY  d.deptno
    ;
    

    Output:

    `   DEPTNO    DNAME             ENAME
    ----------    --------------    ------------
            10    ACCOUNTING        CLARK
            10    ACCOUNTING        KING
            10    ACCOUNTING        MILLER
            20    RESEARCH          JONES
            20    RESEARCH          FORD
            20    RESEARCH          ADAMS
            20    RESEARCH          SMITH
            20    RESEARCH          SCOTT
            30    SALES             WARD
            30    SALES             TURNER
            30    SALES             ALLEN
            30    SALES             JAMES
            30    SALES             BLAKE
            30    SALES             MARTIN
            40    OPERATIONS        No emp found
    

    Notes deptno = 40, which is located in the Department, but not in the EMP.
    If ename happened to be null in the emp, then the NULL appear in the ename column. If ename cannot be NULL, you can replace the NVL2 expression with

    NVL (e,ename, 'No emp found')
    

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    If you can demonstrate the problem using tables commonly available (such as the scott schema) then you don't have to display the sample data: right after the results and explanations.
    Always say what version of Oracle you are using (for example, 10.2.0.4.0). There is no version 10F or 10H, so it's kind of silly to say you have 10G
    See the FAQ forum {message identifier: = 9360002}

  • How to make reference to the external SWF file using if statement?

    I have a main swf file that loads several external SWF file when the user clicks a menu button. Now I want to target a specific swf file to Add an extra library child or of another swf when this specific swf file is loaded. How should I do? What should I put in the stated case?

    ///////////////////////////////////////////////////////////

    var newswf:URLRequest = new URLRequest (".") ("/ swf /" + event.target.name + ".swf");

    Loader.Load (newswf);

    addChild (loader); dynamically load SWFs

    If (newswf == ".") ("/ SWF/pubResCHETNA.swf ') //error here

    {

    FC.buttonMode = true;

    FC.addEventListener (MouseEvent.CLICK, full screen);

    }

    function fullScreen(e:MouseEvent):void

    {

    var loaderF:Loader = new Loader();

    loaderF.load (new URLRequest ("PopupFullscreen.swf"));

    addChild (loaderF);

    }

    ////////////////////////////////////////////////////////

    The State must be newswf.url == the path. However I store event.target.name as a variable and use it in the State. You use "." for your path so the condition probably will always fail.

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.UK/

  • How to make reference to what has been activated in a TileList using an ItemRenderer

    Hello

    I have a Tilelist component and I use an ItemRenderer, which is a button.

    I do not understand how to refer to what the user has clicked. So, if the first tile (which is the first Explorer) is checked, how can I know that that an individual has been clicked.

    < mx:TileList

        id ="myTL"

    dataProvider="{myAC}"

    Width="400"

    Height="400"

    ='2' columnCount

    number of lines='2' / >

    < mx:ArrayCollection id="myAC">

    < mx:Array >

        <mx:Object id="first" label="1" />

        < mx:Object label="2" / >

        < mx:Object label="3" / >

        < mx:Object label="4" / >

    < / mx:Array >

    < / mx:ArrayCollection >

    ItemRenderer:

    "" < mx:Button xmlns:mx = "http://www.adobe.com/2006/mxml"

    Click = "Alert.Show ("this was clicked') '> "

    < mx:Script >

    <! [CDATA]

    import mx.controls.Alert;

    ]]>

    < / mx:Script >

    < / mx:Button >

    Thank you.
    -Laxmidi

    Hi Laxmidi,

    Using the itemClick event you can do this by using the event object. See the code example below:

    <>

    xmlns:MX ="http://www.adobe.com/2006/mxml" > ".

    Import mx.events.ListEvent;

    Import mx.controls.List;

    Import mx.controls.Alert;

    Import mx.events.ItemClickEvent;

    private function onItemClick(event:ListEvent):void

    {

    var strAlert:String = "line of the Index Clicked element:" + event.rowIndex + "\n"; "."

    strAlert +=

    ' Column Index Clicked element: " + event.columnIndex + "\n";". "

    Alert.Show (strAlert);

    }

    ]]>

    Click = "http://www.adobe.com/2006/MXML Alert.show" ( 'It was clicked') ">"

    Import mx.controls.Alert;

    ]]>

    You can also try this by writing the Click event on the button in the TileList as itemRenderer where you can easily access the itemClicked data easily using the data object.

    Thank you

    Jean Claude

  • How to make reference to files or make a URLRequest to files

    I have a class that stores all related paths of .jpgs in an array as strings. (that works)

    He ended up giving me the underside of information stored in a table named "files".

    Try the path previously pending "file://" or "file:///".

Maybe you are looking for

  • Apple music always spoil information and album artwork exist?

    I had the trial for Apple music when firstly, he came out and tried but he kept switching my existing cover and I think that some of the information too (e.g. Summer Jams 2013 work would replace the 2Pac album artwork). Apple music would be preferabl

  • Freezes 9.2 IOS iPhone 5s

    Since updating my iPhone IOS 9.2 5, my phone freezes intermittently for as long a 15 minutes during which no time no buttons work.  I can restart, but less than a minute, it happens again.  Yet it could gofor a day or two without a problem.  It makes

  • printer suddenly stopped the copy in black.

    HP Officejet 6500 E709n stopped copy in black.  Color copy works, but has drafts.  It has black ink, scanner works via the internet and black printed books.  Diagnosis for the scan is not, no help.  Windows 7 OS shouldn't matter because it is the onl

  • control design and simulation in a loop the final amount not what I expected

    Hi the LabVIEW forum members. I have a frame control and Simulation in which I am simulating a regulator in closed loop (see file attachment).  When I apply a step of the input unit that I expected to get the answer to deposit at the unit, i.e. the s

  • How to rotate my screen view 90 degrees?

    original title: How do I rotate my screen view 90 degrees?  I accidentally it swivels and must stand in sharp to display correctly. How to rotate my screen view 90 degrees?  I accidentally turned it (I think that I pressed Shift + Ctrl + Enter or som