Status of active query API by 'name '.

Hi all

I'm having a problem trying to query the database with the API well filtered by asset name. The requirement also includes to avoid unknown dependencies, here is the code which is a failure:

  Condition c = null; 
  c = ConditionFactory.createCondition( "name", OpTypeEnum.LIKE, "FirstDayYearHotel" );
  query = new SimpleQuery("Hotel_C", "HotelOpeningM", c, Arrays.asList("HotelName", "URL", "TypeOpeningDate",
  "OpeningDate", "Country", "Continent"));
  //The query result is fixed to avoid unknown dependencies
  query.getProperties().setFixedList(true);
  LOG.debug("is fixed list? "+query.getProperties().isFixedList());
  for (AssetData data : mgr.read(query)) {
       //AssetId continentAssetId = (AssetId) data.getAttributeData("Continent").getData();
       LOG.debug("Continent:"+data.getAttributeData("Continent").getData());
  }

And this is the error that I get for the mark by name, it's the only thing I see in the newspapers:

[2014-09-03 16:00:41,284 BST] [ERROR] [TP-Processor10] [gst.controller.facade.AssetDataManagerFacade] com.fatwire.assetapi.common.AssetAccessException: com.openmarket.basic.interfaces.AssetException: No such attribute: name

Exactly the same code works fine if I asked a question by one active attributes, such as cold, so, is possible that we can find an asset by name with the active API? It is a failure because of this?

Kind regards

Enrique

Hi Enrique.

Add the line in the query parameter.

query.getProperties () .setIsBasicSearch (true);

-Wilfred

Tags: Fusion Middleware

Similar Questions

  • How to remove a discoverer report that has a status of running query

    Hello

    How to remove a discoverer report that has a status of running query

    Thank you

    Hi 925907,

    I think you would work with your DBA to kill the session associated with the workbook running.

    A query like this will provide your DBA with all the necessary information, it must:

    Select
    vs.*
    Of
    v$ session vs
    where
    vs. Program like 'dis51ws@% ';

    After the session was killed, it is a deletion of standard workbook (select file > open workbooks, and then right click on the name of the workbook, and then select delete).

    Patrick

  • Invalid API Interface name when creating Integrator

    Trying to create an interface to an integrator.  Choose the Type of Interface: API - procedure.  I put in the name of the package and hit and name of the procedure request and obtain the following error.  "Invalid API Interface name."  Any ideas on what is wrong?  I have to save the procedure somewhere first when you use a table for the interface?  If yes where?

    A workaround for your configuration might be to create a wrapper package in applications just to capture settings and then pass them to the package on your custom schema.

  • How to reissue an invitation to a staff member whose status is active, but their download for Adobe Acrobat failed?

    How to reissue an invitation to a staff member whose status is active, but their download for Adobe Acrobat failed?  This is for creative cloud for teams - Acrobat Pro DC

    Hello

    Well, they can always try to download acrobat that their subscription is active.

    But in the case where you want to invite them, simply remove the license by clicking on the 'x' on the far right of the license and then reassign the license to them.

    Kind regards

    Sheena

  • How can I check the status of activation for CS4

    I would like to check the status of activation for CS4, S/N < mod redacted >

    Click Help and, if enable is dimmed and disable is clickable, your program is currently active.  If disable is dimmed and to activate is clickable, your program is currently disabled.

  • OIM 11 g - adjustment process form data through query API

    Hello

    I would define the shape of process via the API data request. I have a user configured in AD. Now I would like to define form data to process (title) through the API request. I have imported the necessary data and that it works through UI request. But when I try to do this through query API, the value is not updated in the form of process. Can anyone help with a code example to achieve this functionality? Thank you.

    You define the data of application correctly when creating on-demand via the API? There is also the correct attribute in all reference maps data? What about the attribute itself? It is in the form of parent or child?
    Looking at the title of the ad must be the parent form data, so use the following code as an example to update all data correctly:

    
               long resKey = 0L;
               String str = null;
               String resourceKey = null;
               Map searchMap = new HashMap();
               tcResultSet resultSet = null;
               RequestData requestData = null;
               Beneficiary beneficiary = null;
               RequestBeneficiaryEntity entity = null;
               List beneficiaryList = null;
               List entityList = null;
               List entityAttrList = null; 
    
               searchMap.put(RESOURCE_ATTR_NAME, RESOURCE);
               resultSet = _resourceService.findObjects(searchMap);
               resKey = resultSet.getLongValue(RESOURCE_ATTR_KEY);
               resourceKey = Long.toString(resKey);           
    
               RequestBeneficiaryEntityAttribute parantAttr = new RequestBeneficiaryEntityAttribute();
               parantAttr.setType(TYPE.String);
               parantAttr.setName("Title");
               parantAttr.setValue("Mr.");
    
               entityAttrList = new ArrayList();
               entityAttrList.add(parantAttr);
    
               entity = new RequestBeneficiaryEntity();
               entity.setEntityKey(resourceKey);
               entity.setEntityType(RequestConstants.RESOURCE);
               entity.setEntitySubType(RESOURCE);
               entity.setEntityData(entityAttrList);
    
                  entityList = new ArrayList();
               entityList.add(entity);
    
               beneficiary = new Beneficiary();
               beneficiary.setBeneficiaryType(Beneficiary.USER_BENEFICIARY);
               beneficiary.setBeneficiaryKey(USER_KEY);
               beneficiary.setTargetEntities(entityList);          
    
               requestData = new RequestData();
               requestData.setRequestTemplateName(TEMPLATE);
               requestData.setJustification("Test");
               requestData.setBeneficiaries(beneficiaryList);
    
               RequestService reqsrvc = client.getService(RequestService.class);           
    
               str = reqsrvc.submitRequest(requestData);
    
               System.out.println("Value from submitRequest : '" + (str != null ? str : null) + "'");
    

    Just a dummy code, but it's the overall structure. Once you have submitted the request and commissioning successful, you should see the data in the form of process.

    HTH,
    BB

    Edited to add the return code by: bbagaria on Sep 5, 2011 10:18

  • Need help with query outputing group names

    I'm trying to find a way for groups of output headers, then all the records in each group etc header. It would be easy, except there is a key with what I want to do.

    Normally, if I have this data set (that I've ' borrowed' a site that showed the closest to what I was looking for):

    Example table:

    TABLE [number]

    (Name, NUMBER)

    Dave Bower 843-444-4444

    Dave Bower 843-555-5555

    Matthew Small 843-111-1111

    Matthew Small _843-222-2222

    Matthew Small 843-333-3333

    I could use the following code:

    < cfoutput query = "somequery" group = "name" >

    #name # < br >

    < cfoutput >

    #phonenumber # < br >

    < / cfoutput >

    < hr >

    < / cfoutput >

    And get this:

    Dave Bower

    843-444-4444.

    843-555-5555.

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

    Matthew Small

    843-111-1111.

    843-222-2222.

    843-333-3333.

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

    BUT my actual tables are not set up like that. Rather than recording of every name of every record, I would have an ID that is the foreign key to another table.

    Current table set up is as follows:

    TABLE [people]

    (ID, NAME)

    1 Dave Bower

    2 small Matthew

    TABLE [Phones]

    (PEOPLE_ID NUMBER)

    1 843-444-4444

    1 843-555-5555

    2 843-111-1111

    2 843-222-2222

    2 843-333-3333

    If this output actually would this give me with my current setup and request above code:

    1

    843-444-4444.

    843-555-5555.

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

    2

    843-111-1111.

    843-222-2222.

    843-333-3333.

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

    How can I keep my current setup but create a query that produces the same result from the top? (The table names of people like the group headers, but data from the phones table under that output)

    You must gather the two tables, and then group the output.

    Something along the lines of the (may vary slightly depending on your DB and the exact table structure)

    SELECT ppl.name, ph.number

    PEOPLE ppl

    INNER JOIN phones ph ON ppl.id = ph.people_id

    ORDER BY ppl.name

    See you soon

    Kai

  • Status of active 7 roles Web site with PowerShell.

    I searched for a way to monitor the site to an active role with PowerShell. I was stuck when you pull into a page request via Invoke-WebRequest and System.Net.WebClient.

    Example 1:
    $ARSURL = ""https://ars.org " "
    $Creds = get-Credential
    Invoke-WebRequest - Uri $URL - Credential $Creds
    And I get the following error: "Server error: Invoke-WebRequest.
    401-Unauthorized: access is denied due to credentials not valid. »

    Example 2:
    $webclient = new-object System.Net.WebClient
    $webclient. Credentials = new System.Net.NetworkCredential ($username, $password, $domain) object
    $webpage = $webclient. DownloadString ($url)
    And I get the following error: Exception calling 'DownloadString' with '1 ': arguments
    "The remote server returned an error: (401) unauthorized."

    Any idea on how I can connect on the site of ARS through PowerShell?

    Well - I answered a question about ARS 7 without thinking about it - I'm still not there.  This answer applies to the ARS 6.9... Can also be applied to Version 7 - if the page can be called directly.  If not, your mileage may vary.

    If you're still with me... I played with it a little too there is more to explore... but here is a style of performing the task.

    For me - a quick way to check the availability of a web site of ARS would be to remove the page and display the user ID connected on ARS service and web version + the status of the page.

    We maintain 4 distinct groups of servers ARS, and I spend the $ARSURL below three web servers ARS to check that the site is up, and he is currently pointed to the good host ARS service partner.

    $ARSURL = "myhost.myplace.com/.../About.ASPX ".

    $page = call-WebRequest - Uri $ARSURL -UseDefaultCredentials

    ($page.allelements | where {$_.tagname - eq "TBODY"}) .innertext

    Returns:

    Current user: DOMAIN\USERID

    Role: ActiveRoles administrator

    The Web Interface version: 6.9.0.5483

    Administrative service: myhostinGA.myplace.com

    Version of Service administration: 6.9.0.5483

    Ok

    Ok

    You can also - if you look at something in the script of automation in a status report - I'd go with the simple $page. StatusCode - or $page. StatusDescription

    the HTHML code for a good result is 200... I have only seen two codes is available or not.  If this is not the 'code' returned is 500.  If the page is building / busy - you will get a long wait and a "timeout."

    $ARSURL = "myhost.myplace.com/.../About.ASPX ".

    $page = call-WebRequest - Uri $ARSURL -UseDefaultCredentials

    $page. StatusDescription

    Returns

    Ok
  • domain with the active directory security / user name

    Hello

    I use weblogic 12 c, I create the provider for active directory in myrealm like going to the console >security domains>suppliers > New and I put specific provider and I don't have a ADF application using security ADF taking Kingdom deployed to the same server, weblogic, its work well with username and does not work with the id of the user for example if the user as described below:

    User ID Username Password
    aa123Test userXXXX
    bb123Test User2XXXX

    its fine work when put the username: User of Test or Test User2 but does not work with aa123 or bb123 how I let provider to keep the user id instead of the username?

    for the user name attribute active directory samAccountName, can you please try that instead of CN?

    If it doesn't work, can paste you the information from the user, you can use the ldifde command to export the user to Active Directory.

    I hope this helps.

    -Faisal

    http://www.WebLogic-wonders.com

  • question about rest api. user name and password is not valid for rest api.

    I installed the vCloud director v1.5.1 trival version, and I can browse the version by https://127.0.0.1/api/versions information.

    When I use the https://127.0.0.1/api/login, IE needs me at the entrance of username and password. I did, but it was not valid.

    Can I use the user name and password to log into vCloud Director web page, it is the system administrator.

    Using the wrong username and password? What should I do?

    concerning

    Hello

    The user name must be in the form of "username@organization" instead of the name of the user.

    If you are using a system administrator, then the name of the Organization should be 'system '.

    Kind regards

    Todor Todorov

  • JPA criteria query API SQL complex

    Try to implement JPA 2.0 and replace us a lot of SQL complicated with the criteria API in the process. I am not a SQL guru by any means and I'm new to JPA/criteria, but I've read just about everything I could find via the search engine.

    The following SQL code can even be done using criteria? This is making my head ache, and I don't want to continue the other if it is not yet possible to do.
    SELECT T2.TYPE, T2.SERIAL
        FROM TABLE1 T1, TABLE2 T2, TABLE3 T3
            LEFT OUTER JOIN TABLE4 T4 ON T4.EMPNO=T3.BOEMPNO
                WHERE T2.TYPE=T3.TYPE AND T2.SERIAL=T3.SERIAL AND T1.TYPE=T2.TYPE AND T1.SERIAL=T2.SERIAL
    Published by: 981730 on January 14, 2013 15:01

    Each of your domains must be mapped to attributes of the entity which can be used in the same way as fields in the table. If you query for the Entity2s who have Entity1s and Entity3s with matching serial and type fields. I don't know how they are mapped in entity1 + 3, so I guess that these are basic mappings. If so something similar to:

    JPQL using:
    em.createQuery ("SELECT e2 entité2 e2, entity1 e1, e3 Entity3 WHERE e2.serial = e1.serial AND e2.type = e1.type AND e2.serial = e3.serial AND e2.type = e3.type");

    API criteria:

     CriteriaBuilder qb = em.getCriteriaBuilder();
            CriteriaQuerycq = qb.createQuery(Entity2.class);
            Root root1 = cq.from(Entity1.class);
            Root root2 = cq.from(Entity2.class);
            Root root3 = cq.from(Entity3.class);
    
            Expression expression1 = qb.and(qb.equal(root2.get("serial"), root1.get("serial")), qb.equal(root2.get("type"), root1.get("type")) );
            Expression expression3 = qb.and(qb.equal(root2.get("serial"), root3.get("serial")), qb.equal(root2.get("type"), root3.get("type")) );
    
            cq.where(qb.and(expression1, expression3));
            Query testQuery = em.createQuery(cq);
    

    If a join to the T4 is necessary, I don't know why you use the outer join left, rather than an inner join that can be made the same way, as shown above. The joints using the clause YOU are supported in EclipseLink 2.5 in such nocturnal compilations added through bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=367452 but is not part of the JPA specification.

    If your entities have relationships to/from entité2 using type serial + as of foreign keys, you can use these links in your query instead.

    em.createQuery ("SELECT entity1 e1, join e3 Entity3 e2 e3.entity2 as e2 WHERE e2 = e1.entity2");

    JPA/EclipseLink will perform the joins for you based on the definitions of mapping entite2. In criteria API:

      CriteriaQuerycq = qb.createQuery(Entity2.class);
            Root root1 = cq.from(Entity1.class);
            Root root3 = cq.from(Entity3.class);
            Join  join2 = root3.join("entity2");
    
            cq.select(join2);
            cq.where(qb.equal(root1.get("entity2"), join2));
            Query testQuery = em.createQuery(cq);
    

    Hope this helps

  • status of the database api (PL/SQL) based adf BC?

    Hello

    does anyone know the status of the API database (PL/SQL) based project ADF BC?
    (mentioned here: https://groups.google.com/forum/?fromgroups#! msg/adf-methodology/TiP2JXQm_Ag/zNbD7Kyf6hUJ)

    The following link does not work:
    https://database-API-based-ADF-BC.SampleCode.Oracle.com/

    It is also not included in the sample code oracle: http://www.oracle.com/technetwork/indexes/samplecode/jdeveloper-adf-sample-522118.html

    concerning
    Peter

    Hello

    The following link does not work:
    https://database-API-based-ADF-BC.SampleCode.Oracle.com/

    Avrom and EMG moved the project to a server that no longer exists. I had the code example of Avrom (at least a copy) and intend to work with Chris Muir to again make it a project of the EMG. Due to my time constraints used to be until the end of the year.

    The code that you can download on the blog of Avrom however works fine.

    Frank

  • Get the count of the two different statuses in SQL query

    Hi Experts,
    ALTER TABLE EMP ADD STATUS INTEGER DEFAULT 1 NOT NULL;
    UPDATE EMP SET STATUS=2 WHERE EMPNO > 7700
    SELECT COUNT(*) OVER() TOTALRECORDS,EMP.DEPTNO,EMP.EMPNO FROM EMP,DEPT WHERE EMP.DEPTNO=EMP.DEPTNO
    The Select query will return the total number of the EMP, DEPT tables (the two status with 1 and 2).
    But I need to get the number of 1 and 2 separately.

    Is this possible with changes in an existing SQL query?

    Thank you
    Dharan V
    ALTER TABLE EMP ADD STATUS INTEGER DEFAULT 1 NOT NULL;
    UPDATE EMP SET STATUS=2 WHERE EMPNO > 7700
    SELECT COUNT(*) OVER() TOTALRECORDS,EMP.DEPTNO,EMP.EMPNO FROM EMP,DEPT WHERE EMP.DEPTNO=EMP.DEPTNO
    

    change this option like this

    SELECT COUNT(decode(status,1,1,null)) OVER() RECORDS_1,
           COUNT(decode(status,2,2,null)) over() RECORDS_2,
           EMP.DEPTNO,EMP.EMPNO
      FROM EMP,DEPT WHERE EMP.DEPTNO=EMP.DEPTNO
    
  • AF:table with the search query present bindvariable name in the filter text field

    I created a simple display with a criterion of the view object. The criteriy defines a group with 4 criteria. Each element of the criteria has a STARTSWITH operator and compare a column to a binding parameter. The binding variable is marked as optional.
    Then I move the data control named on my page and selected criteria "Read - Only ADF filtered table"

    When the page is displayed to the user, I had the table containing the search field in the header.
    Unfortunately, the entry to the filter of the table fields are not empty, but containing the name of the connection variable.

    text in a filter for GebeCode: VarGebeCode *.
    text in a filter for NiedCode: VarNiedCode *.
    ...

    When the user just wants to filter on a property, for example GebeCode, the user must
    (1) type in the GebeCode
    (2) delete the input for other filter box filter: NiedCode,...
    Step 2 is heavy, but if the user does not specify an empty text in the filter, no lines are selected in the query.

    1 question
    How can I get the boxes of entry filter empty the first time the page is loaded?

    2 question
    As see you in the criteria listed below, I put the box "Ignoe box" (-> UpperColumns = '1') to make my case insensitive search.
    How ever, it does not work: it is always case sensitive.

    How can I get the framework to do things?


    It is the resuling query where clause:
     ( ( ( UPPER(MITA_NAME_VORNAME_CODE) LIKE UPPER( :VarMitaNameVornameCode || '%')  )  OR  ( :VarMitaNameVornameCode IS NULL ) ) 
    AND ( ( UPPER(MITA_CODE) LIKE UPPER( :VarMitaCode || '%')  )  OR  ( :VarMitaCode IS NULL ) ) 
    AND ( ( UPPER(GEBE_CODE) LIKE UPPER( :VarGebeCode || '%')  )  OR  ( :VarGebeCode IS NULL ) ) 
    AND ( ( UPPER(NIED_CODE) LIKE UPPER( :VarNiedCode || '%')  )  OR  ( :VarNiedCode IS NULL ) ) ) 
    Code MitarbeiterViewRVOCriteria
      <ViewCriteria
        Name="MitarbeiterViewRVOCriteria"
        ViewObjectName="model.mitarbeiterDetails.view.MitarbeiterViewRVO"
        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="vcrow12"
          UpperColumns="1">
          <ViewCriteriaItem
            Name="MitaNameVornameCode"
            ViewAttribute="MitaNameVornameCode"
            Operator="STARTSWITH"
            Conjunction="AND"
            Value=":VarMitaNameVornameCode"
            IsBindVarValue="true"
            Required="Optional"
            UpperColumns="1"/>
          <ViewCriteriaItem
            Name="MitarbeiterViewRVOCriteria_vcrow12_MitaCode"
            ViewAttribute="MitaCode"
            Operator="STARTSWITH"
            Conjunction="AND"
            Value=":VarMitaCode"
            IsBindVarValue="true"
            Required="Optional"
            UpperColumns="1"/>
          <ViewCriteriaItem
            Name="MitarbeiterViewRVOCriteria_vcrow12_GebeCode"
            ViewAttribute="GebeCode"
            Operator="STARTSWITH"
            Conjunction="AND"
            Value=":VarGebeCode"
            IsBindVarValue="true"
            Required="Optional"
            UpperColumns="1"/>
          <ViewCriteriaItem
            Name="NiedCode"
            ViewAttribute="NiedCode"
            Operator="STARTSWITH"
            Conjunction="AND"
            Value=":VarNiedCode"
            IsBindVarValue="true"
            Required="Optional"
            UpperColumns="1"/>
        </ViewCriteriaRow>
      </ViewCriteria>
    Edited by: Stefan1979 the 06.11.2009 20:45

    Hello

    the case sensitive search is controlled by the 'filterFeatures' on the af: column. Due to a bug that is fixed in the next Patch set 1 of JDeveloper 11 g R1, that the search is always case-sensitive.

    Frank

  • Windows Easy Transfer transfers the status of activation for programs like Outlook?

    I have an active version of Outlook 2010 is installed and the new laptop does not. Can I transfer it without having to purchase a new license? Of course, I don't know where I left the CD and the necessary key to re - activate.

    The WET tool does not transfer programs, the only data & settings.

    You need the installation media to install a program.

    Belarc Advisor or MagicJellyBean can reveal the key on a PC equipped with Office or Office installed work component.

    You have purchased a commercial version of Microsoft Outlook provided and recovered the key as per above, download from here and this time save the file installation and the key to external media

    http://Office.Microsoft.com/en-us/products/Microsoft-Office-2010-backup-FX101853122.aspx

Maybe you are looking for