get specific values of several

This is probably a stupid question, but I can't seem to understand. I have a similar chart to below. There are project files in it, several recordings by project. Im trying to get a separate list of projects that do not have a specific value.

create table test_project)

number of project_record

Varchar2 (50) project.

project_status varchar2 (50)

);

-Select * from test_project

insert into test_project (project_record, project, project_status) values (1, '123abc', 'active');

insert into test_project (project_record, project, project_status) values (2, '123abc', 'active');

Insert into test_project (Project_Record, project, Project_Status) values (3, '123abc', 'active');

Insert Into test_project (Project_Record, project, Project_Status) Values (4, '123abc', 'total');

insert into test_project (project_record, project, project_status) values (1, "123cba", "started");

insert into test_project (project_record, project, project_status) values (2, '123cba', 'active');

Insert into test_project (Project_Record, project, Project_Status) values (3, '123cba', 'active');

insert into test_project (project_record, project, project_status) values (4, '123cba', 'guarantee');

insert into test_project (project_record, project, project_status) values (1, '321abc', 'active');

insert into test_project (project_record, project, project_status) values (2, '321abc', 'active');

Insert Into test_project (Project_Record, project, Project_Status) Values (3, '321abc', 'complete');

insert into test_project (project_record, project, project_status) values (4, '321abc', 'guarantee');

insert into test_project (project_record, project, project_status) values (1, '555abc', 'active');

insert into test_project (project_record, project, project_status) values (2, '555abc', 'active');

Insert into test_project (Project_Record, project, Project_Status) values (3, '555abc', 'active');

insert into test_project (project_record, project, project_status) values (4, '555abc', 'active');

I want to choose project_record and project where none of the project files have 'full' in it.

So if a project is complete in this document, regardlesss of the place where it should not go up.

Hello

Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!

Don't forget to post the exact results you want from this data, as well as an explanation of why.  It may be obvious to you is as a 'project', but not everyone who wants to help is also familiar with your application you are.  Is all separate project_record project, each distinct project or all the distinct combinations of these 2?

Here are the results you want?

PROJECT_RECORD PROJECT

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

1 123cba

1 555abc

2 123cba

2 555abc

3 123cba

3 555abc

4 123cba

4 555abc

?  Otherwise, each separate project is a project and the results include all the lines with project = '123abc' or '321abc', because these project_ids have a rank with project_status = "Finish."

If so, one way is:

WITH got_complete_cnt AS

(

SELECT project_record, project

, COUNTY (CASE

WHEN project_status = "Finish."

THEN 'X '.

END

) OVER (PARTITION BY project) AS complete_cnt

OF test_project

)

SELECT project_record, project

OF got_complete_cnt

WHERE complete_cnt = 0

ORDER BY project_record, project

;

Include other ways to achieve the same results

  • NOT EXISTS subquery
  • NOT IN subquery
  • Semi Join

Tags: Database

Similar Questions

  • getting specific values of an array

    Line 10 of the block diagram creates a table after taking the values of table x and y of line 1 and then made the following xsin (theta) + ysin (theta) of calculation. ---> shown in the table in face Panel

    What I need to know how to create a table consists of x and y which give the xpos value, in this case, 1 in the table from the front panel.


  • Get rid of BarChart legend and create a horizontal line to a specific value

    Hey,.
    I work with barregraphes.
    1st screen: I want to disable the legend of my Barchart.
    http://imgur.com/wMo6Tfv, DRiNA9C
    Second screen: I want to create a line in my Barchart on a specific value 700 as seen on the screen.
    http://imgur.com/wMo6Tfv, DRiNA9C #1
    Is this Possible? Also: what object to set the ID to change the color bar. I tried

    Chart histogram;
    barchart.setId ("Chart");

    CSS:
    #barchart
    {
    -fx-background-color: red;
    }
    But it did not work. Thank you!

    No, you do not miss anything. I had a temporary brain freeze. You can add nodes directly to an arbitrary region.

    If this makes it a little harder. You need to add the line to the container in which your chart is maintained, and of course this means that you understand the coordinates of the line relative to this container. To simplify a bit, axis has a scale property of conversion of units of the axis to display units, and also according to the docs of css, the table has a child with the css class "table-horizontal-zero line." So one possible strategy is to enter this line and figure the change in the coordinates needed him. There is still work to do to find the correct coordinates relative to the container, and if you want it to run with things move (for example, when the user resizes the window), you need to do a lot of link.

    This seems to work:

    import java.util.Arrays;
    import java.util.List;
    
    import javafx.application.Application;
    import javafx.beans.binding.DoubleBinding;
    import javafx.beans.property.DoubleProperty;
    import javafx.beans.property.SimpleDoubleProperty;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.chart.CategoryAxis;
    import javafx.scene.chart.LineChart;
    import javafx.scene.chart.NumberAxis;
    import javafx.scene.chart.XYChart;
    import javafx.scene.control.Button;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.Region;
    import javafx.scene.shape.Line;
    import javafx.stage.Stage;
    import javafx.util.StringConverter;
    
    public class LineChartSample extends Application {
    
      @Override
      public void start(Stage stage) {
        stage.setTitle("Line Chart Sample");
        final CategoryAxis xAxis = new CategoryAxis();
        final NumberAxis yAxis = new NumberAxis();
        yAxis.setTickLabelFormatter(new StringConverter() {
    
          @Override
          public Number fromString(String string) {
            return Double.parseDouble(string);
          }
    
          @Override
          public String toString(Number value) {
            return String.format("%2.2f", value);
          }
    
        });
        xAxis.setLabel("Month");
    
        final LineChart lineChart = new LineChart(
            xAxis, yAxis);
    
        lineChart.setTitle("Stock Monitoring, 2010");
        lineChart.setAnimated(false);
    
        final XYChart.Series series = new XYChart.Series<>();
        series.setName("My portfolio");
    
        final List> data = Arrays.asList(
    
        new XYChart.Data("Jan", 23),
            new XYChart.Data("Feb", 14),
            new XYChart.Data("Mar", 15),
            new XYChart.Data("Apr", 24),
            new XYChart.Data("May", 34),
            new XYChart.Data("Jun", 36),
            new XYChart.Data("Jul", 22),
            new XYChart.Data("Aug", 45),
            new XYChart.Data("Sep", 43),
            new XYChart.Data("Oct", 17),
            new XYChart.Data("Nov", 29),
            new XYChart.Data("Dec", 25));
    
        series.getData().addAll(data);
    
        final AnchorPane chartContainer = new AnchorPane();
        AnchorPane.setTopAnchor(lineChart, 0.0);
        AnchorPane.setBottomAnchor(lineChart, 0.0);
        AnchorPane.setLeftAnchor(lineChart, 0.0);
        AnchorPane.setRightAnchor(lineChart, 0.0);
        chartContainer.getChildren().add(lineChart);
    
        Button button = new Button("Show line");
        button.setOnAction(new EventHandler() {
    
          @Override
          public void handle(ActionEvent event) {
    
            final double lineLevel = 35;
    
            final Region chartRegion = (Region) lineChart
                .lookup(".chart-plot-background");
    
            final Line zeroLine = (Line) lineChart
                .lookup(".chart-horizontal-zero-line");
    
            final DoubleProperty startX = new SimpleDoubleProperty(0);
            final DoubleProperty endX = new SimpleDoubleProperty(0);
            final DoubleProperty y = new SimpleDoubleProperty(0);
    
            startX.bind(new DoubleBinding() {
              {
                super.bind(chartRegion.boundsInParentProperty());
              }
    
              @Override
              protected double computeValue() {
                double x = chartRegion.getBoundsInParent().getMinX();
                for (Node n = zeroLine.getParent().getParent(); n != chartContainer && n.getParent() != null; n = n.getParent()) {
                  x += n.getBoundsInParent().getMinX();
                }
                return x;
              }
            });
    
            endX.bind(new DoubleBinding() {
              {
                super.bind(chartRegion.boundsInParentProperty());
              }
    
              @Override
              protected double computeValue() {
                double x = chartRegion.getBoundsInParent().getMaxX();
                for (Node n = zeroLine.getParent().getParent(); n != chartContainer && n.getParent() != null; n = n.getParent()) {
                  x += n.getBoundsInParent().getMinX();
                }
                return x;
              }
            });
    
            y.bind(new DoubleBinding() {
              {
                super.bind(chartRegion.boundsInParentProperty(),
                    yAxis.scaleProperty(), zeroLine.startYProperty());
              }
    
              @Override
              protected double computeValue() {
                double y = zeroLine.getStartY() + lineLevel * yAxis.getScale();
                for (Node n = zeroLine.getParent().getParent(); n != chartContainer && n.getParent() != null; n = n.getParent()) {
                  y += n.getBoundsInParent().getMinY();
                }
                return y;
              }
            });
    
            Line line = new Line();
            line.startXProperty().bind(startX);
            line.endXProperty().bind(endX);
            line.startYProperty().bind(y);
            line.endYProperty().bind(y);
    
            chartContainer.getChildren().add(line);
          }
    
        });
    
        BorderPane root = new BorderPane();
        root.setCenter(chartContainer);
        root.setTop(button);
    
        Scene scene = new Scene(root, 800, 600);
        lineChart.getData().add(series);
    
        stage.setScene(scene);
        stage.show();
    
      }
    
      public static void main(String[] args) {
        launch(args);
      }
    }
    
  • Filter for a specific value object type

    I would like to know if the documents loaded on an object type can be interrogated for a specific value. For ex, I wanted to fetch all the records of the emp and load it into an object. I wanted to ask the object out of the loop to query for a specific deptno. I understand a query simpe SQL would be much faster in the scenario below, but the report itself used in our system uses several tables and some of them have millions of records from different sources as accounts suppliers, accounts receivable, accounting, etc. and they are treated differently for each source before that the result will be published the report. I took the table emp for example and wanted to know if the type of object can be queried for a specific column outside the loop.

    DECLARE

    CURSOR cur_emp IS SELECT * FROM EMP;

    TYPE emp_obj IS TABLE OF cur_emp % ROWTYPE INDEX BY PLS_INTEGER;

    l_emp_tab emp_obj;

    BEGIN

    OPEN cur_emp.

    LOOP

    Get the cur_emp COLLECT LOOSE l_emp_tab LIMIT 1000;

    EXIT WHEN l_emp_tab.count = 0;

    BECAUSE me IN 1.l_emp_tab.count

    Loop

    dbms_output.put_line (' Ename:' | l_emp_tab (i) .ename |', Deptno:' | .deptno l_emp_tab (i));

    END LOOP;

    END LOOP;

    -Can I ask specific employee to a deptno outside the loop FOR without using a temporary table

    -something like "SELECT * FROM TABLE (type_name) WHERE DEPTNO = x_Deptno.

    END;

    /

    In a collection of table selection is not effective, there are better ways to do it.

    Why not create a view?

    create view...

    Select * from source1 Union all the

    Select * from source2 Union all the

    Select * from source3

    -or-

    Using ref cursor return... clause, so you can make conditional cursors

    If somecondition then

    Open the NEWS for

    Select * source1;

    on the other

    Open the NEWS for

    Select * from source2.

    end if;

    -or-

    Dynamics based SQL ref cursor

    DECLARE

    TYPE EmpCurTyp IS REF CURSOR;

    v_emp_cursor EmpCurTyp;

    employees emp_record % ROWTYPE;

    v_stmt_str VARCHAR2 (200);

    v_e_job employees.job%TYPE;

    BEGIN

    -Dynamic SQL statement with placeholder:

    v_stmt_str: = ' SELECT * FROM employees WHERE job_id =: I;

    -Open the cursor & specify bind argument in the USING clause:

    V_emp_cursor OPEN FOR v_stmt_str with the HELP of 'MANAGER ';

    -Extraction of the lines of result set one at a time:

    LOOP

    SEEK v_emp_cursor INTO emp_record;

    EXIT WHEN v_emp_cursor % NOTFOUND;

    END LOOP;

    -Close the cursor:

    CLOSE V_emp_cursor;

    END;

    /

    -or-


    Load in an intermediate table (as a temporary table)

  • Is it possible to get the value of the resistance of a circuit with NI USB-4065 USB without using studio measure?

    Hi, I'm working on a project where there partly to measure resistance values in different parts of the circuit. Now, the company where I work currently at wants to get the NI USB-4065 USB. I use visual studio 2005 c# to develop applications and I need to know if I needed measurement studio or are there drivers (dll) just to get the values of resistance and General measures of circuit. I have need the controls or anything, just to programatically read the NI USB-4065 USB key values when I need the application.

    Any help would be appreciated. Thank you.

    Yes, you can have several NI 4065 DMM in your system. When you use the API OR-DMM, you open the handles separately for each DMM by using its name. His name can be configured inside the measurement and Automation Explorer (MAX).

    In addition, you can go ahead and install OR DMM today. It is downloadable for free on ni.com. NOR-DMM (and most of the pilots NOR) supports the simulation. You go to MAX and create your simulated three 4065 s. Then you can start writing your program now. Since these devices are simulated, they will not return the real tensions (obviously) and that it won't react realistic hardware triggers if you use (obviously), but they are pretty close to the real deal to allow you to write a lot of code and become familiar with the API. No need to wait until you get the material - you can be really ready for it by using the simulation.

  • [.ini files] Get the value of multiple labels with the same name

    Hello!

    In an ini.files, I need to get the value of each tag named in a certain way in a section, but unfortunately, I have 3 or 4 tags with the same name in several sections. I don't know how to retrieve these values, the program always consider that the first tag and not others, I tried to remove each tag after obtaining its values, that he did not.

    Does anyone have an idea to solve the problem?

    Thank you!

    As you can read in my last post, you must read and throw 'x' lines:

    OpenFile)

    Skip lines

    for (i = 0; i< x;="" i++)="" readline="">

    Start reading the useful lines

    ReadLine () / / read a line

    ... / / Interpret the line

    Don't forget to add a control during i/o operations of robust error and to check the end of the file.

  • Get the value of point of contact OFA

    Hi guys,.

    I am new to oaf, so this may seem like a very novice question. I tried several things, but could not solve it.

    There is an advancedtable region in my page. The first column of the advanced table has been put to contain elements of binding while the rest of the columns are messagestyledtext. The advancedtable would be filled with a few details of the item with the first column is the item number. The requirement is to fill in the details of article on click in the item number which essentially appear as hyperlinks.

    I try to get the number of the first column.

    pageContext.getParameter ("itemnumber");    ['itemnumber' is the ID of the binding inside the column inside the advancedtable element]

    This returns null, so I can't get the item number. Can someone please help me solve this?

    Thank you

    Sasmas

    You can see the bottom of thread for "the line being returned as null Reference".

    https://community.Oracle.com/thread/581600

    As an alternative, you can add parameters, p_item_num to the PPR method with value in the form ${oa.current.ItemNumber} (if the number represents the VO attribute name)

    In the processFormRequest, get the value using "pageContext.getParameter ("p_item_num")"

    Therefore, the code will be

     public void processFormRequest(OAPageContext pageContext,
                                       OAWebBean webBean) {
            super.processFormRequest(pageContext, webBean);
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            String event = pageContext.getParameter("event");
            if ("itemLinkClicked").equals(event)) {
            {
                   String itemNumber = pageContext.getParameter("p_item_num");
    
                    Serializable[] parameters = { itemNumber };
                    am.invokeMethod("fetchItemDetails", parameters);  
    
            }
        }
    

    Thank you

  • Get the value of the portfolio-parent

    Hello

    Sorry, I'm in trouble explaiing what I want to do, but I'll try my best.

    I have four 'levels' portfolio and ideally, I would like to have a user select a year in the high parent page and have it spread down to the forms under.  I went as far only to create a category for all portfolios that accesses the value of parents above him.  Once on the level of form, I am unable to get this value.  I guess that the getHomePortfolio method does not once on the level of form, but I don't know.

    Unfortunately it doesn't seem to be the documentation with examples on how to use the functions at all so I'm poking around in hopes of understanding how everything fits together.  Unfortunately, I was in it for a year without any chance to find the most of.

    Does anyone have information on how I can create a global variable that is accessible from any level?

    Thank you.

    No, just another way to get the desired response. Probably you won't need the audit NaN since your RegEx is specific enough that it will return only an index for any string of 2000-20 to 2099-20.

    I suspect that you will need a text category for each position of FY you need year and add the "FY" + starting value of the year.

    V/r,

    Gene

  • Cannot get the value of the session variable (using row wise initialization).

    Hi all

    I have a scenario where I'm trying to get the value of the variable session of two columns.

    Table of database consists of the name of USER, Country_Region, columns Country_SubRegion.

    For example: ChadraKanth, Americas, America West is the data.

    I wrote a Sql query in the block of session initialization:

    Select "CR", Country_Region, Country_SubRegion

    of row_wise_init

    where USERID = ": the USER"

    When I test the RPD code gives the result like this:

    CR WesternAmerica of Americas.

    In my report I have two columns, a region and an another subregion.

    When I try to filter with the session variable "CR" for the column region his error giving: session variable is not initialized with

    This is the default.

    Question:

    1. session variable is contains several values in the column?

    2. how to filter the report on columns of region and sub region?

    Please suggest me.

    Kind regards

    Chandra Khalil.

    Hello

    A session variable cannot store more than one column, 1 variable = 1 value (column 1), horizontal initialization allows to store several lines, multiple values in the same variable.

    If to a user, you have several lines with multiple values, you need horizontal initialization, but it cannot store in the variable the value of the region and subregion.

  • How to get the value of the interactive report into apex 5 column

    Hello

    I want to create the master detail report with ajax.

    If I want to get the value of a specific column of interactive report when click on one line and has a value of element of selected row column value.

    Then use the elements of value to refresh the details report.

    You have a better idea to refresh the report Details according to select line of the master report without refreshing the whole page?

    Hi SYSMAN2007,

    SYSMAN2007 wrote:

    I want to create the master detail report with ajax.

    If I want to get the value of a specific column of interactive report when click on one line and has a value of element of selected row column value.

    Then use the elements of value to refresh the details report.

    You have a better idea to refresh the report Details according to select line of the master report without refreshing the whole page?

    You can do this with the help of dynamic action. You need to get the value of the column of a line click in IR (using jQuery) and set the value to the elements which, in turn, can be used as a filter to other reports on the same page.

    See: How to use the values in the columns of an interactive report (Apex 5)

    Can you reproduce your problem on apex.oracle.com and share the credentials of the workspace, so that I can demonstrate how this can be achieved.

    See an example of how it can be done with dynamic actions: https://apex.oracle.com/pls/apex/f?p=35467:5

    Kind regards

    Kiran

  • Create a filter with a large list of non-specific values

    I am familiar with a filter using "value in" option to include a list of specific values of construction. If the list of values is non-specific?

    For example, I am creating a filter that shows me all the addresses that start with these:

    admin@*,all@*,billing@*,everyone@*,feedback@*,ftp@*,hostmaster@*,info@*,investorrelations@*,ispfeedback@*,ispsupport@*,jobs@*,list-request@*,marketing@*,news@*,nobody@*,noreply@*,spam@*,subscribe@*,support@*,tech@*,trouble@*,undisclosed-recipients@*,unsubscribe@*,usenet@*,uucp@*,webmaster@*,www@*

    I tried to add with the * using "value in" without success.

    Maybe it's two separate issues, because what I'm really trying to figure out how to build a filter based on the example above and perhaps using the "have a value" is not the road to go at all.

    Thank you.

    Your right, Corey. Several filters are necessary. Not funny, its not like the dentist. Its something you have to do. Maybe Eloqua should make it a policy to send a lollipop after that each of us must do for the first time!

    Using filters in comma as instructions BUT is something that I wanted, since a very long time.

  • How to use Ajax get multiple values in an array?

    Hi All-

    I am using AJAX to get multiple values in a table using example of Denes Kubicek in the following link-

    http://apex.oracle.com/pls/otn/f?p=31517:239:9172467565606:NO:

    Basically, I want to use the drop-down list to fill the rest of the values in the form.

    I created the example (Ajax get several values, 54522 application) on the Oracle site.

    http://apex.oracle.com/pls/apex/f?p=4550:1:0:

    Workspace: iConnect

    Login: demo

    password: demo

    I was able to reproduce his example on page 1 (homepage).

    However, I want to use system generate a table to complete this example and was not able to complete the data correctly.

    Page 2 (method 2) is that I'm struggling to fill the column values. When I checked the item application values in the Session, and values seems to be filled properly.

    That's what I did on this page:

    1 create an Application process on-demand - Set_Multi_Items_Tabular2:

    DECLARE
      v_subject my_book_store.subject%TYPE;
      v_price my_book_store.price%TYPE;
      v_author my_book_store.author%TYPE;
      v_qty NUMBER;
    
      CURSOR cur_c
      IS
      SELECT subject, price, author, 1 qty
      FROM my_book_store
      WHERE book_id = :temporary_application_item2;
    BEGIN
      FOR c IN cur_c
      LOOP
      v_subject := c.subject;
      v_price := c.price;
      v_author := c.author;
      v_qty := c.qty;
      END LOOP;
    
      OWA_UTIL.mime_header ('text/xml', FALSE);
      HTP.p ('Cache-Control: no-cache');
      HTP.p ('Pragma: no-cache');
      OWA_UTIL.http_header_close;
      HTP.prn ('<body>');
      HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
      HTP.prn ('<item id="f04_' || :t_rownum || '">' || v_subject || '</item>');
      HTP.prn ('<item id="f05_' || :t_rownum || '">' || v_price || '</item>');
      HTP.prn ('<item id="f06_' || :t_rownum || '">' || v_author || '</item>');
      HTP.prn ('<item id="f07_' || :t_rownum || '">' || v_qty || '</item>');
      HTP.prn ('</body>');
    END;
    
    
    
    
    
    

    2. create two objects application - TEMPORARY_APPLICATION_ITEM2, T_ROWNUM2

    3. put the following text in the Page header:

    <script language="JavaScript" type="text/javascript">
    function f_set_multi_items_tabular2(pValue, pRow){
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_Multi_Items_Tabular2',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM2',pValue)
    get.add('T_ROWNUM2',pRow)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM2','null')
    }
        gReturn = get.get('XML');
        if(gReturn){
            var l_Count = gReturn.getElementsByTagName("item").length;
            for(var i = 0;i<l_Count;i++){
                var l_Opt_Xml = gReturn.getElementsByTagName("item")[i];
                var l_ID = l_Opt_Xml.getAttribute('id');
                var l_El = html_GetElement(l_ID);    
                if(l_Opt_Xml.firstChild){
                    var l_Value = l_Opt_Xml.firstChild.nodeValue;
                }else{
                    var l_Value = '';
                }
                if(l_El){
                    if(l_El.tagName == 'INPUT'){
                        l_El.value = l_Value;
                    }else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
                        l_El.parentNode.innerHTML = l_Value;
                        l_El.parentNode.id = l_ID;
                    }else{
                        l_El.innerHTML = l_Value;
                    }
                }
            }
        }
        get = null;
    }
    </script>
    
    
    Add the follwing to the end of the above JavaScript:
    
    <script language="JavaScript" type="text/javascript">
    function setLOV(filter, list2)
    {
     var s = filter.id;
     var item = s.substring(3,8);
     var field2 = list2 + item;
     
     f_set_multi_items_tabular2(filter, field2);
    }
    
    
    
    
     
    
    
    

    4 query in the form:

    select
    "BOOK_ID",
    "BOOK",
    "SUBJECT",
    "PRICE",
    "AUTHOR",
    "QTY",
    "BOOK_ID" BOOK_ID_DISPLAY
    from "#OWNER#"."MY_BOOK_STORE"
    
    
    
    
    
    

    5. in the column of Book_ID_DISPLAY attribute:

    Add the following code to the attributes of the element: onchange = "javascript:f_set_multi_items_tabular2(this.value,'#ROWNUM#'); »

    Changed-> onchange = "javascript:setLOV(this,'f03'); »

    Now, T_ROWNUM2 returns the value as f03_0001. But TEMPORARY_APPLICATION_ITEM2 returns in the form [object HTMLSelectElement]...

    Please help me to see how I can fill the data in the tabular presentation format. Thank you in advance!

    Ling

    Updating code in red...

    Ling

    LC says:

    Application Item Value Item Name
    54522 3 TEMPORARY_APPLICATION_ITEM2
    54522 f03_0003 T_ROWNUM2

    No T_ROWNUM2 should be 0003.

    I made a copy of your page to make corrections.

    There are several problems.

    First you where submiting T_ROWNUM2 whereas you would use: t_rownum in the pl/sql code.

    I changed the name of the element in the f_set_multi_items_tabular2.

    Secondly you where now affecting the rownumber f03_0001 for the first line.

    Resulting XML returned as follows.

    this xml genericly sets multiple items
    CSS Mastery
    22
    Andy Budd
    1
    
    

    I changed the following text in the show_lov.

    var point = s.substring (4.8);

    var Field2 = item;

    I also had a compilation of pl/sql code error, there was a); missing the end of the last item. Fixed that too.

    But why do you think lpad won't work for lines 10 and more.

    LPAD ('10', 4, '0') will give "0010"

    LPAD ('100 ', 4,'0 ') will give "0100"

    LPAD ('1000 ', 4,'0 ') will give '1000'

    So unless you have more than 9999 lines you would have no problem.

    Nicolette

  • How to fill out (display) values for several blocks in which there is no relationship between the blocks (tables).

    Hello.

    Is it possible to fill in the values (execute_query) several blocks where there is absolutely no relationship between the tables in the same form?

    There is no relationship between the tables. All are separate tables with different columns. None of the names of columns match

    & also the values of the columns do not match. I created blocks for all tables. When I click on run, only the first block of values (first picture) is filled.

    other values of block did not get filled. Is it possible to fill in the values for all of the blocks where there is not relationship, or when there is no master block?

    Is there something I can do for this? It is mandatory for me to put all the blocks in a single form.

    Help me, please. Please do not respond.

    Thank you.

    Create a key-EXEQRY-trigger on the block where 'throw you' the quers. In it, put something like

    GO_BLOCK ('BLOCK1');

    EXECUTE_QUERY;

    GO_BLOCK ('BLOCK2');

    EXECUTE_QUERY;

    ...

  • As a dynamic form on the form? And how to get their value

    Hi all

    I want to make a form that would be a granular user to choose from a specific list of values to be passed as a parameter. Here is a script, it creates what I need, but the names of radio buttons are not unique. Can you please how to make, at the end of this form (window), I get the value of the selected radiobutton list item?

    #target photoshop
    app.bringToFront();
    var par = Array("Select your choise","test 1","test 2", "test 3");
    
    var rez = ask(par);
    alert(rez)
    
    function ask(par){
    wask = new Window('dialog', '');
    wask.orientation = "column";
    wask.alignment="top";
    wask.spacing=0;
        grs0 =wask.add('group');
        grs0.spacing=0;
        grs0.add('statictext', undefined, par[0]);
        grs0.alignment="top";
        grs0.preferredSize.height = 40;
            grs1 =wask.add('group');
            grs1.spacing=0;
            grs1.alignment="left";
            grs1.preferredSize.height = 20*par.length;
            grs1.orientation = "column";
        for(var i=1;i<par.length;i++){
            var g = grs0 +i;
            r= "rb"+i;
            r = grs1.add("radiobutton", undefined, par[i]);
            r.alignment="left";
            }
    bt1 = wask.add ("button", undefined, "Select");
    bt2 = wask.add ("button", undefined, "Close");
    
    bt1.onClick = function(){
    
    }
    
    wask.show();
    }
    
    
    
    

    I think that there are at least two ways to do something like that. One way would be to give the names of controls. You can find and then by name.

    var par = Array("Select your choise","test 1","test 2", "test 3");
    
    var rez = ask(par);
    if( rez == 1) alert(wask.findElement('rb1').value);
    
    function ask(par){
        wask = new Window('dialog', '');
        wask.orientation = "column";
        wask.alignment="top";
        wask.spacing=0;
        grs0 =wask.add('group');
        grs0.spacing=0;
        grs0.add('statictext', undefined, par[0]);
        grs0.alignment="top";
        grs0.preferredSize.height = 40;
            grs1 =wask.add('group');
            grs1.spacing=0;
            grs1.alignment="left";
            grs1.preferredSize.height = 20*par.length;
            grs1.orientation = "column";
        for(var i=1;i
    

    Another way would be to use an eval statement in the loop that creates the controls. Something like

    var par = Array("Select your choise","test 1","test 2", "test 3");
    
    var rez = ask(par);
    if( rez == 1) alert(wask.rb1.value);
    
    function ask(par){
        wask = new Window('dialog', '');
        wask.orientation = "column";
        wask.alignment="top";
        wask.spacing=0;
        grs0 =wask.add('group');
        grs0.spacing=0;
        grs0.add('statictext', undefined, par[0]);
        grs0.alignment="top";
        grs0.preferredSize.height = 40;
            grs1 =wask.add('group');
            grs1.spacing=0;
            grs1.alignment="left";
            grs1.preferredSize.height = 20*par.length;
            grs1.orientation = "column";
        for(var i=1;i		   
  • best way to find the maximum value that is less than a specific value?

    Hello guys,.

    What is the fastest way to find a record that has value max of a field and there is a limitation to a specific value for ex:

    example 1:
    create table dummy(master_id number, detail_id number, some_value varchar2(80));
     
    insert into dummy values (1,1,'bla bla1');
    insert into dummy values (1,2,'bla bla2');
    insert into dummy values (1,3,'bla bla3');
    insert into dummy values (2,1,'bla bla4');
    insert into dummy values (2,2,'bla bla5');
    insert into dummy values (2,3,'bla bla6');
    insert into dummy values (2,4,'bla bla7');
    commit;
    I want to get:
    1 3 bla bla3
    2 4 bla bla7
    And these applications give a correct result:
    Select * 
    from   dummy d1
    where  detail_id = (select max(detail_id) from dummy d2 where d2.master_id = d1.master_id);
     
    OR next one which i prefered.
     
    Select *
    From   (Select d1.* , row_number() over(partition by master_id order by detail_id desc) r
            from   dummy d1)
    Where  r = 1;
    If these solutions are enough or is there a better way?

    Edited by: elcaro on 13.Ara.2011 04:02

    Edited by: elcaro on 14.Ara.2011 04:31

    Please try this with your new test tables:

    select m.master_id,
           m.master_data,
           max(d.id) keep (dense_rank last order by data_value, d.id) d_id,
           max(d.master_id)  keep (dense_rank last order by data_value, d.id) d_master_id,
           max(data_value) keep (dense_rank last order by data_value, d.id) d_data_value,
           max(date_data)  keep (dense_rank last order by data_value, d.id) d_date_data
    from master_dummy m, detail_dummy d
    where m.master_id=d.master_id
    and d.date_data <= to_timestamp('04012010','ddmmyyyy')
    group by m.master_id, m.master_data
    

    Published by: hm on 14.12.2011 05:18

    (I added d.id column in the order by the dense_rank. clause that could make a difference when there is more than one line with the same data_value).

Maybe you are looking for

  • Stops working right click magic mouse

    In the last two weeks, the secondary click takes a while to start working. It is always checked as enabled in system preferences.  If I uncheck and then save, it works.  But I don't know if that's really fix something, or if the problem resolves itse

  • Mail to drain my battery

    I have an iPhone 6, running version 9.2.  The last two days, my battery drained in less than 12 hours per day.  It is said that my mail app uses 81% of my battery - especially with the background activity.  I rarely use my phone for Messaging.  My se

  • KB951847 fails to install with error 0 x 643

    I am trying to install the update (KB951847) x 86 for the past four weeks, without success, he keeps referring to the error 0 x 643, can anyone help? Original title: I am trying to install the update (KB951847) x 86 for the past four weeks, without s

  • Unable to upgrade to Windows Vista Basic to Windows XP on hp pv6000

    Original title: upgrade upgrade vista basic to windows xp on hp pv6000 and my wireless is not wrking nor showing in my taskbar please help

  • Windows Genuine?

    Essentials Security said sometimes that my computer is not protected and that I don't have windows genuine.  I had all sorts of problems with my computer.  It is slow and the habit to always stay connected to the internet.  He said also that I had a