The View of line object count goes to zero after removing the view criteria.

Hello

I use JDeveloper 11.1.1.4.

I applied viewCriteria to a viewObject. Its working fine.

But after that when I remove this ViewCriteria using removeApplyViewCriteriaName () /removeViewCriteria (), the number of lines of this same viewObject is 'null '.


Kind regards

Alok

Rather than use getRowCount(), which is not good if you get several rows in the back, use getEstimatedRowCount(), which requires the DB how many rows are returned.

Then, you can start your apuplication with - Djbo.debugoutput = console so that you see what request is sent to the db. Or you use this class VO Dump request and it & #8217; s parameter with their values. JDev & amp; ADF Goodies to get only the query and parameters of the journal.

Timo

Tags: Java

Similar Questions

  • How to change the length of line objects

    Hi all

    How to change the length of the line objects.

    I know how to change the width or height of the elements.

    Utils < Facade::IGeometryFacade > ()--> (ResizeItems)
    itemList,
    Transform::PasteboardCoordinates (),
    Geometry::OuterStrokeBounds (),
    refPoint, Geometry::ResizeTo (newWidth, newHeight)
    );

    I know the new length and PMrect of the line item before moving.

    What I want to know is how to get the new width and height of this.

    Thank you.

    Fujimori - Satoru

    Find your old address of trigonometry and read the part about the Pythagorean theorem. This will give the scale factor you need to get the old PMRect to the new

  • Query for object counts

    Oracle 11.2.0.1

    I have to generate a count of all types of objects below style.
    USERNAME     TABLES          INDEXES          MVS          PROCEDURES     FUNCTIONS     CLUSTER     
    USER1              10                   5            1                  20             5
    USER2                                2
    USER3                                                                 10
    
    TOTAL               10                5           3                     20               5           10
    Here the object count should correspond with the sum of the column total i.e. 10 + 5 + 3 + 20 + 5 + 10.

    Kindly help me, how to generate above exit.

    Thank you.
    SET        FEEDBACK        OFF
    SET        PAGESIZE        0
    spool c:\dynamic_pivot_subscript.sql
    SELECT     DISTINCT
       ',      COUNT (CASE WHEN object_type = '''
    || object_type
    || ''' '   AS txt1
    ,  'THEN 1 END)    AS "'
    || object_type
    || '_CNT"'  AS txt2
    FROM all_objects
    ORDER BY   txt1;
    SPOOL OFF;
    
    I opened c:\dynamic_pivot_subscript.sql and removed first and last lines.
    
    break on report
    select 'compute sum of "' || object_type || '_CNT" on report'
    from all_objects
    group by object_type
    /
    
    I just executed above lines which I got as query output.
    
    SET LINE 1000;
    compute sum of "TOTAL" on report
    COLUMN OWNER FOR A20;
    SET        FEEDBACK        ON
    SET        PAGESIZE        50
    spool c:\dynamic_pivot.lst
    SELECT OWNER
    @@c:\dynamic_pivot_subscript.sql
    ,COUNT(*) "TOTAL"
    FROM ALL_OBJECTS
    GROUP BY OWNER
    ORDER BY OWNER
    /
    

    Crusader dynamic source: Frank @ Re: County report and the sum of the number of lines in the number of columns

    Concerning
    Girish Sharma

  • Variable adjustment of binding of view criteria during the loading of the page

    Is there a way to define declarative variable bind according to which the page is loaded?

    I have a view object, a variable binding and a view criteria which makes use of this variable. I have two pages on each one I dropped my criteria to view as a table read-only ADF. I need the variable contains a value on the first page and others on the second. The values are static.

    In other words, I want the lines to filter a sense when I navigate to the first page, when I browse to the second.

    If there is no way to do so declaratively, I would like to know how to do it programmatically. I tried to add methods to the Module of the Application, but it seems that I can't use a custom method as an iterator of data control. I can only think of the use of two PagePhaseListeners to assign the value to this variable (using setNamedWhereClauseParam()), but this solution does not seem very right. Do not have two criteria seen separate.

    Hello

    Basically, you can use routers in your workflow, based on some properties of flow, you can determine what value to place, then call ExecuteWithParams as Chris mentioned previously.

    Kind regards
    Dimitris.

  • Create a gradient to an object that goes from solid transparent

    Is there a way to create a gradient to an object that goes from solid transparent?

    Make sure that the cursor Opacity on the gradient tool Options toolbar is not set to a different number of 100%.

  • outer join in the view criteria

    Hello world

    I use jdeveloper 11.1.1.6.0

    I want to create outer join in the view criteria, so I had to substitute getCriteriaItemClause ViewObjImpl.java method

    my query is like this:

    SELECT t1. row_no, t2.type FROM table_1 t1, t2 from table_2

    WHERE t1. row_no (+) = t2. row_no

    and t1.user_Id (+) =: bindVar

    table_1 (row_no, user_Id)

    table_2 (row_no, type)

    the part " t1.user_Id (+) =: bindVar " should be put in the display criteria

    the method:

    @Override

    public String getCriteriaItemClause (ViewCriteriaItem viewCriteriaItem) {}

    String newQeury = this.getEntityDef (0) .getAliasName () + "." + viewCriteriaItem.getColumnName () + "(+) =:bindVar .

    Return newQeury;

    }

    but when I run the criteria see exception below raises:

    oracle.jbo.expr.JISyntaxError: Houston-36000: an unexpected token expression is found.

    When I remove the sign "(+)" of newQeury

    String newQeury = this.getEntityDef (0) .getAliasName () + "." + viewCriteriaItem.getColumnName () + "=:bindVar .  remove the sign "(+)" before =:bindVar

    raises the exception below

    Houston-29000: Unexpected exception caught: oracle.jbo.expr.JIEvalException, msg = Houston-25077: t1 name not found in the given object: ViewRow [[5-1-5] oracle.jbo.Key].

    Habib

    This is a duplicate of https://forums.oracle.com/thread/2577092

    Please do not post your questions several times.

    A possible solution posted to the original thread.

    Timo

  • It's as possible use IN the operation in view criteria?

    I use Jdeveloper 11 g R (11.1.2.3) & weblogic 10 G

    In my pages, I use JSF & Facelet

    Hi all

    Is there a way to implement operator in view criteria?

    My requirement is just a seelcte like this:

    Select * from EMPLOYEES where EMPLOYEE_ID IN (2339,2340)

    I want 2339,2340 as the variable to view the object then apply view criteria and link

    the list of parameters is not fixed, so I need to use IN the operation

    Thank you

    Mohsen

    Yes, you can do it. Reading decompilation binary ADF: using bind variable for SQL statements with the paragraph

    which shows how.

    Timo

  • Control null to a variable binding in the view criteria

    Hi, greetings.

    I use Jdeveloper 11.1.2.0.

    I have a view object, LocationsView, for the locations of the database of the tenth Board.

    I want to apply a condition, ((: bind_var is null) or (: bind_var is not null and location_id =: bind_var), in this LocationsView.)

    In other words, I want to apply the condition only if the value of the bind variable is not null.

    How can I build this condition using a declarative view criteria?

    Any help and advice on this topic is greatly appreciated.

    Kind regards
    Guru K

    It should work if you set the box on her "ignore Null values" when you set criteria.

    Timo

  • When I try to start the computer in the morning, he goes off and after trying to restart the computer 2 times it becomes normal. Please give me any solution for this.

    When I try to start the computer in the morning, he goes off and after trying to restart the computer 2 times it becomes normal. Please give me any solution for this.

    Hey Abdul HamidNagoor,

    ·         Did you do changes on the computer before the show?

    ·         You get the error message?

    ·         What is the brand and model of the computer?

    Follow the steps in the article.

    Advanced Troubleshooting for General startup problems in Windows XP

    If the problem persists, follow the steps in the article.

    How do I recover from a corrupted registry that prevents Windows XP startup

    Note: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following link. http://support.Microsoft.com/kb/322756

  • My computer crashed and I tried to re-download CS6. I have a serial number for CS6. but it does not work. I noticed that there are several versions of CS 6. Which version goes with serial number [removed]? I downloaded the stand of design «»

    I have a serial number for CS6. but it does not work. I noticed that there are several versions of CS 6. I downloaded 'standard design', but it did not work. Which version goes with serial number [removed]?

    Thank you

    Bill Heinsohn

    Check your Adobe account online.  If you have registered the software version should be shown there.

    Never share your serial number publicly... anyone can use it.

  • When I choose my quick selection tool, I click and drag the first time, and he adds (my selection). BUT if I let go of the mouse button and try to select more it goes to Negative (-) and removes all selections I made and won't allow me not one

    When I choose my quick selection tool, I click and drag the first time, and he adds (my selection). BUT if I let go the mouse button and try to select it goes to Negative (-) and removes all the selections I made and not will not let me add again. I never had this problem before, you usually need to hold down the Alt (or Option MAC) to subtract from selections. No one knows what happened or how to fix this problem, maybe a setting I accidentally hit? Thanks for your suggestions! :))

    Look at the options of quick selection - particularly the four icons on the left.

  • Problem with between operator in the view criteria

    Hello

    We have a requirement. In the view criteria, we have a Timestamp attribute. We use between operator , so we have two variable bind fromDate and up to date . The search works fine if I give to plu date fromDate but if the same date for the bind variable, it does not return all records in the table .

    Any solution to overcome this peoblem?




    KR

    KR,

    So are the timestamps fromDate and up-to-date? Are they fair dates, then they will be interpreted as midnight as-des-than-present, and unless your timestamp is from midnight, it would not be between them more. You can also set - Djbo.debugoutput = console in the properties of your project to see the SQL query running in the log window.

    John

  • I need script to remove the line with 2 points, another script to remove next lines

    I need script to remove the line with 2 points, another script to remove next lines of two scripts needed help please

    Thanks in advance

    Concerning

    Lakshmiganth

    Scroll through each pathitem and look at the length of his pathPoints group.  If the length is equal to 2 and then use the remove() method to remove it.  For example (this is rough, off the top of my head):

    var lines = new Array();

    for (i = 0;  I have< app.activedocument.pathitems.length; ="" i++)="">

    If (app.activeDocument.pathItems [i].pathPoints.length == 2) {}

    Lines.push (App.activeDocument.pathItems [i]);

    }

    }

    for (i = 0;  I have< lines.length; ="" i++)="">

    Lines [i]. Remove();

    }

  • View criteria JDev 12.1.3 built invalid SQL

    Hello world

    It seems that in JDev 12.1.3 when a criterion for the view is created with a standard nested, generated when running query is not valid. It uses incorrectly alias upon accession of the two VO

    For example, I created two simple VO:

    ViewObj1 (SELECT 1 VO1_ID, "ViewObj1" DOUBLE TITLE):

    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="ViewObj1"
      Version="12.1.3.10.8"
      InheritPersonalization="merge"
      BindingStyle="OracleName"
      CustomQuery="true"
      PageIterMode="Full">
      <DesignTime>
        <Attr Name="_isExpertMode" Value="true"/>
      </DesignTime>
      <Properties>
        <SchemaBasedProperties>
          <LABEL
            ResId="model.views.ViewObj1_LABEL"/>
        </SchemaBasedProperties>
      </Properties>
      <SQLQuery><![CDATA[SELECT 1 VO1_ID, 'ViewObj1' TITLE FROM DUAL]]></SQLQuery>
      <ViewAttribute
        Name="Vo1Id"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.math.BigDecimal"
        ColumnType="NUMBER"
        AliasName="VO1_ID"
        Expression="VO1_ID"
        SQLType="NUMERIC"/>
      <ViewAttribute
        Name="Title"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="8"
        Type="java.lang.String"
        ColumnType="CHAR"
        AliasName="TITLE"
        Expression="TITLE"
        SQLType="CHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="8"/>
        </DesignTime>
      </ViewAttribute>
      <ViewCriteria
        Name="ViewObj1Criteria"
        ViewObjectName="model.views.ViewObj1"
        Conjunction="AND">
        <Properties>
          <CustomProperties>
            <Property
              Name="displayOperators"
              Value="InAdvancedMode"/>
            <Property
              Name="autoExecute"
              Value="false"/>
            <Property
              Name="allowConjunctionOverride"
              Value="true"/>
            <Property
              Name="showInList"
              Value="true"/>
            <Property
              Name="mode"
              Value="Basic"/>
          </CustomProperties>
        </Properties>
        <ViewCriteriaRow
          Name="ViewObj1Criteria_row_0"
          UpperColumns="1">
          <ViewCriteriaItem
            Name="ViewObj1Criteria_ViewObj1Criteria_row_0_Title"
            ViewAttribute="Title"
            Operator="STARTSWITH"
            Conjunction="AND"
            Value=""
            Required="Optional"/>
          <ViewCriteriaItem
            Name="ViewObj1Criteria_ViewObj1Criteria_row_0_ViewObj2"
            ViewAttribute="ViewObj2"
            Operator="EXISTS"
            Conjunction="AND"
            IsNestedCriteria="true"
            Required="Optional">
            <ViewCriteria
              Name="ViewObj2NestedCriteria"
              ViewObjectName="model.views.ViewObj2"
              Conjunction="AND">
              <ViewCriteriaRow
                Name="ViewObj2NestedCriteria_row_0"
                UpperColumns="1">
                <ViewCriteriaItem
                  Name="ViewObj2NestedCriteria_ViewObj2NestedCriteria_row_0_Vo1Id"
                  ViewAttribute="Vo1Id"
                  Operator="="
                  Conjunction="AND"
                  Value=""
                  Required="Optional"/>
                <ViewCriteriaItem
                  Name="ViewObj2NestedCriteria_ViewObj2NestedCriteria_row_0_Title"
                  ViewAttribute="Title"
                  Operator="STARTSWITH"
                  Conjunction="AND"
                  Value=""
                  Required="Optional"/>
              </ViewCriteriaRow>
            </ViewCriteria>
          </ViewCriteriaItem>
        </ViewCriteriaRow>
      </ViewCriteria>
      <AttrArray Name="KeyAttributes">
        <Item Value="Vo1Id"/>
      </AttrArray>
      <ViewLinkAccessor
        Name="ViewObj2"
        ViewLink="model.views.ViewLink"
        Type="oracle.jbo.RowIterator"
        IsUpdateable="false"/>
      <ResourceBundle>
        <PropertiesBundle
          PropertiesFile="model.ModelBundle"/>
      </ResourceBundle>
    </ViewObject>
    
    
    


    ViewObj2 (SELECT 1 VO1_id, VO2_ID 2, "ViewObj2" DOUBLE TITLE):

    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
      xmlns="http://xmlns.oracle.com/bc4j"
      Name="ViewObj2"
      Version="12.1.3.10.8"
      InheritPersonalization="merge"
      BindingStyle="OracleName"
      CustomQuery="true"
      PageIterMode="Full">
      <DesignTime>
        <Attr Name="_isExpertMode" Value="true"/>
      </DesignTime>
      <Properties>
        <SchemaBasedProperties>
          <LABEL
            ResId="model.views.ViewObj2_LABEL"/>
        </SchemaBasedProperties>
      </Properties>
      <SQLQuery><![CDATA[SELECT 1 VO1_id, 2 VO2_ID, 'ViewObj2' TITLE FROM DUAL]]></SQLQuery>
      <ViewAttribute
        Name="Vo1Id"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.math.BigDecimal"
        ColumnType="NUMBER"
        AliasName="VO1_ID"
        Expression="VO1_ID"
        SQLType="NUMERIC"/>
      <ViewAttribute
        Name="Vo2Id"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.math.BigDecimal"
        ColumnType="NUMBER"
        AliasName="VO2_ID"
        Expression="VO2_ID"
        SQLType="NUMERIC"/>
      <ViewAttribute
        Name="Title"
        IsUpdateable="false"
        IsPersistent="false"
        PrecisionRule="true"
        Precision="8"
        Type="java.lang.String"
        ColumnType="CHAR"
        AliasName="TITLE"
        Expression="TITLE"
        SQLType="CHAR">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="8"/>
        </DesignTime>
      </ViewAttribute>
      <AttrArray Name="KeyAttributes">
        <Item Value="Vo2Id"/>
      </AttrArray>
      <ResourceBundle>
        <PropertiesBundle
          PropertiesFile="model.ModelBundle"/>
      </ResourceBundle>
    </ViewObject>
    
    
    

    and created a link that joins the two on VO1_ID.

    Finally, I created a display criteria in ViewObj1:

    <ViewCriteria
        Name="ViewObj1Criteria"
        ViewObjectName="model.views.ViewObj1"
        Conjunction="AND">
        <Properties>
          <CustomProperties>
            <Property
              Name="displayOperators"
              Value="InAdvancedMode"/>
            <Property
              Name="autoExecute"
              Value="false"/>
            <Property
              Name="allowConjunctionOverride"
              Value="true"/>
            <Property
              Name="showInList"
              Value="true"/>
            <Property
              Name="mode"
              Value="Basic"/>
          </CustomProperties>
        </Properties>
        <ViewCriteriaRow
          Name="ViewObj1Criteria_row_0"
          UpperColumns="1">
          <ViewCriteriaItem
            Name="ViewObj1Criteria_ViewObj1Criteria_row_0_Title"
            ViewAttribute="Title"
            Operator="STARTSWITH"
            Conjunction="AND"
            Value=""
            Required="Optional"/>
          <ViewCriteriaItem
            Name="ViewObj1Criteria_ViewObj1Criteria_row_0_ViewObj2"
            ViewAttribute="ViewObj2"
            Operator="EXISTS"
            Conjunction="AND"
            IsNestedCriteria="true"
            Required="Optional">
            <ViewCriteria
              Name="ViewObj2NestedCriteria"
              ViewObjectName="model.views.ViewObj2"
              Conjunction="AND">
              <ViewCriteriaRow
                Name="ViewObj2NestedCriteria_row_0"
                UpperColumns="1">
                <ViewCriteriaItem
                  Name="ViewObj2NestedCriteria_ViewObj2NestedCriteria_row_0_Vo1Id"
                  ViewAttribute="Vo1Id"
                  Operator="="
                  Conjunction="AND"
                  Value=""
                  Required="Optional"/>
                <ViewCriteriaItem
                  Name="ViewObj2NestedCriteria_ViewObj2NestedCriteria_row_0_Title"
                  ViewAttribute="Title"
                  Operator="STARTSWITH"
                  Conjunction="AND"
                  Value=""
                  Required="Optional"/>
              </ViewCriteriaRow>
            </ViewCriteria>
          </ViewCriteriaItem>
        </ViewCriteriaRow>
      </ViewCriteria>
    
    
    

    At run time, when searching on an attribute in the nested criteria (ViewObj2), I get: ORA-00904: "QRSLTSQ1." "' VO1_ID ': invalid identifier.

    The query that is executed is:

    SELECT *
    FROM
      (SELECT 1 VO1_ID,
        'ViewObj1' TITLE
      FROM DUAL
      ) QRSLT
    WHERE ( ( (EXISTS
      (SELECT *
      FROM
        (SELECT 1 VO1_id, 2 VO2_ID, 'ViewObj2' TITLE FROM DUAL
        ) QRSLTSQ2
      WHERE ( (VO1_ID      = :vc_temp_1 ) )
      AND (QRSLTSQ1.VO1_ID = QRSLTSQ2.VO1_ID)
      )) ) )
    
    
    

    As you can see on line 13, it's with the help of QRSLTSQ1. VO1_ID when he is recommended to use QRSLT. VO1_ID.

    I'm doing something wrong? If not, is there a fix or a workaround for this bug?

    Thank you

    Bill

    It seams to be a strange behavior in the 12.1.3 sql builder. In this post VC Jdeveloper application encapsulating a user has reported something similar. He found a work around (last post of the thread) that you can try.

    Anyway, if thre is a fix available for what you ha vet oask support.oracle.com (paid support contract). They are the only ones who can tell you if it's a bug, after all, and if a fix is available. If this isn't the case, you can request a.

    Timo

  • Is it possible to do under select in a view criteria

    Using JDev 11.1.1.6 I wonder if it is possible to make a under select in my criteria to display for a given view object.

    For example, I have two parent-child tables, one for research and one for the search values. The lookup_type is stored in the table of research and there is a relationship 1:M between the research and the research gathered by a code values. The display criteria on the search values view object I want to define a view of criteria that retrieves values from a type to search so my criteria should look like this.

    lookupvalues.lookups_row_id = (SELECT lookups_row_id FROM research WHERE lookups.lookup_type = 'STATUS')

    The above does not work. I am able to hardcode a value as below, but that doesn't make me a lot of good. I took the request that she produced and run it in sql plus, and he turns and returned very well but does not work when inside the ADF application. No idea if we use a sub query for criteria?

    lookupvalues.lookups_row_id = 123

    FYI - I was able to find a solution to his who must perform a join on this search view object with the object of search values and then added the attribute lookup_type the display of values search object view so I can add this attribute directly to the display criteria, but I'd really rather just make a sub query if I can.

    Thank you.

    I realize, this is an old thread, but I stumbled upon a solution to this. It seems that in order to use an SQL statement in the field of value to your criteria of view you have to go to the source of the view object and IsSqlFragment value = "true" for this element of particular display criteria. For example, if you want to use a criterion for display where the salary was higher than the average salary then your point of view criteria would look like

    <>

    Name = "salary".

    ViewAttribute = "salary".

    ' Operator =' > '.

    Concert = 'AND '.

    Required = "Optional."

    IsSqlFragment = 'true '.

    Value = "(SELECT AVG_SAL FROM EMPLOYEES (SALARY) AVG)" > "

Maybe you are looking for

  • Updated to IOS 10.0.2 and can now make calls

    I have upgraded to IOS 10.0.2 this morning on my iphone 5 and now I can't make cell calls - I can get the texts, voicemails, go on the Internet (Safari), but no cell bars!  Has taken my iphone from Verizon, and they installed a new SIM card and also

  • YouTube is slowing down my computer! Any suggestions?

    Hello dear friends, I have a good MacBook Pro 2013 retina with i7 and SSD. I have noticed occasionally when I Watch youtube videos and try to make comments, while I type it needs some time to let the letters appear. Is like takes me a lot of energy a

  • How can I get the windows firewall work

    My wife got a call from someone of 'Windows', she paid and downloaded two programs that did not, the damage has been catastophical, I ended up using my windows disk and reinstalled windows XP, but still a problem, that I could not access the windows

  • How can I sort the files in descending order & vice versa

    original title: files & folders How can I sort the files in descending order & vice versa

  • How to save the image that comes from the web.

    Hi friends, I have Aproblematique I do a third party application in this application I view the images in this app I show that same image in different areas. so in this case, I'm each time the download on the net and I display. It takes a long time t