using the APEX_ITEM API to APEX 5

Hello

Anyone successfully using the APEX_ITEM. SELECT_LIST_FROM_QUERY_XL at APEX 5.0 API call?

I copied the exact example of documentation and I get the error below.

SELECT APEX_ITEM. SELECT_LIST_FROM_QUERY_XL (3, job,'job SELECT DISTINCT FROM emp') job

WCP

The errors illustrated:

Failed to parse the SQL query:

ORA-00932: inconsistent data types: expected - got CLOB

I think I'm either missing something or there is a bug in the API. Remove the _XL works fine but I have a few tables really long to show that do not match the results of regular size.

Thanks in advance

~ Nico

Nico_M wrote:

Anyone successfully using the APEX_ITEM. SELECT_LIST_FROM_QUERY_XL at APEX 5.0 API call?

I copied the exact example of documentation and I get the error below.

SELECT APEX_ITEM. SELECT_LIST_FROM_QUERY_XL (3, job, 'Employment SELECT DISTINCT FROM emp') job

WCP

The errors illustrated:

Failed to parse the SQL query:

ORA-00932: inconsistent data types: expected - got CLOB

I think I'm either missing something or there is a bug in the API. Remove the _XL works fine but I have a few tables really long to show that do not match the results of regular size.

Assuming that you see this area of standard report, set the type of column to column report Standard (plain text + escape special characters = No in the Page Designer) and disable sorting for the column.

Tags: Database

Similar Questions

  • Using the EBS API from Apex application?

    Can anyone tell me any documentation on that?

    I'm looking into our options, we have a customer who is using management commands and want to create a web form through Apex at the entrance of all orders.

    I know we could build something and store data to an intermediate table of sorts, then call a program simultaneous to take data and create orders. But I was looking for a more effective method like calling the API (plsql packets) directly from the APEX page?

    I'm not sure if something along these lines is possible?

    Thoughts?

    Jeremy

    Hello

    You can call these APIs (plsql packets) directly from the APEX page?

    Yes you can, simply call the API to an Apex "after submit' process. This article (http://www.oracle.com/technology/products/database/application_express/pdf/apex_ebs_wp_cabot_consulting.pdf) has some details.

    How to configure your application is so important. Many of the more complex APIs require that the current scheme for the session's APPS and consequently the Apex application must be associated with the APPS schema so that the SQL is parsed as APPS.

    Also, for performance reasons, it is sometimes preferable for Apex validate and load data into a staging table and then use a process of Apex for the kickoff a custom concurrent application which runs in the background and calls the API to load the data into the tables of the EBS.

    Rod West

  • LAN address MAC using the windows API?

    I would like to read the MAC address of the LAN to my WIFI on my PC card.

    Apparently, this can be done using the Windows API

    Anyone tried something like this again?

    Thank you

    Hi morngoose,

    You can use the function "exec system" with "cmd/c" ipconfig/all "" "connected." Parse the string and you'll get your MAC address.

    Mike

  • How to use the 'sensors' api?

    Hi guys! I am a web-game developer but a beginner in developing blackberry applications.

    I intended to create a star atlas application and I've already finished most but failed to use the 'sensors' api.

    I referred to the example provided in the documentation of webworks 2.1 as below:

    function compassCallback(data) {
    document.write("Current azimuth:"+data.azimuth);
    }
    blackberry.sensors.setOptions("devicecompass", { delay: 1000 });
    document.addEventListener("devicecompass", compassCallback);
    

    and I added an element in the config.xml file:

    also, I added the plugin com.blackberry.sensors for the project.

    But I still can't azimuth compass...

    I really appreciate if someone could help me with this!

    I solved this problem by myself.

    The listener of the api should be placed in a "deviceready" event

  • problem using the FileConnection API (JSR 75) in an application for Blackberry "BOLD" MIDLET

    Hello

    I developed a MIDLET which is to read files and store the contents of files in arrays. I could make using the FileConnection API in J2ME (Java ME) and it works very well in mobile emulators provided by Sun, Sun Kit tool 2.5.1 wireless and Sprint Wireless tool 3.3.2 Kit. I have been using netbeans IDE 6.8 for this.

    Now, here's the deal. Playback of the files does not work when in one of the Blackberry mobile emulators. I tried to install all versions of Blackberry JDE 4.2.1 to 5.0 and test the same thing, but none of them worked.  After reading that the Blackberry plugin for Eclipse is good, I used it to find that I am always faced with the problem.

    I desperately need help. Can someone help me do the reading work file in a Blackberry emulator? I insert the code that makes the file reading. It reads a file containing a single column of 60 entries, and stores it in an array of double type.

    Vector time = new Vector();
    
    try{
    
     FileConnection filecon = (FileConnection) Connector.open("file:///" +"SDCard/BlackBerry/documents/"+"timescale.dat");
    
     if(!filecon.exists()) {    Dialog.show("Note ! ", "File doesn't exists !", "okay","cancel"); }
    
         StringBuffer sb = new StringBuffer();      try      {       InputStream in = filecon.openInputStream();       int chars;
    
           while ((chars = in.read()) != -1)// read until EOF is reached       {          if(chars == '\n') // read all characters until the end of line is reached          {              time.addElement(sb.toString().trim()); // stores all the characters as a vector element when the end of line is reached
    
                  sb.delete(0,sb.length());// clear the stringbuffer for storing the next line of the file
    
              }
    
              else          {              sb.append((char)chars); // appends each character read          }
    
          }// end of while
    
        }    catch(IOException e)    {               }
    
        filecon.close();
    
    }// end of outer try
    
       int i =0;   Enumeration etime = time.elements();
    
       while(etime.hasMoreElements() && i < 60) // timescale.dat has 60 entries in one column   {       time_1d[i]=Double.parseDouble(etime.nextElement().toString());// convert to double       i++;   }
    

    Can you elaborate on what does not work?  Is an error or exception thrown?  If Yes, what is it and what line of code triggers it?

    You have configured the BlackBerry smartphone Simulator to simulate a micro SD card?

    Use a computer filesystem in the form of microSD card

    http://supportforums.BlackBerry.com/T5/testing-and-deployment/use-a-computer-file-system-as-a-microS...

  • Can I use the public APIs of BlackBerry for automation of the tests on the Simulator?

    Hello

    I'm developing a framework of automation with BlackBerry API public.

    Is it possible to test it against the custom application and 'Core BlackBerry Applications,' for example, mail, calendar...?

    With the help of API net.rim.device.api.ui.Keypad. * can manipulate the keyboard on a simulator, is that correct?

    Thank you!

    You can use the EventInjector API for input (keyboard, trackpad and touchscreen) events Simulator to interact with built-in applications.  It will work in the Simulator and the real device.

    If you are looking just to automate something in the Simulator, you can use the BlackBerry Simulator controller.  It is a command-line tool that enables script steps in the Simulator.  For more information look in the help on the BlackBerry smartphone Simulator menu.

  • How to send e-mails using the RIM api.

    Hi all

    My requriement, it's that I need to develop an application to send e-mail using only the RIM api. Please help me by sending an email using the RIM api. I use version 4.7.0.41 JDE

    Through this Developer's Guide, Section, 'Integrate Messages'.

    http://NA.BlackBerry.com/eng/deliverables/608/BlackBerry_Application_Developer_Guide_Volume_2.PDF

  • Get the 500 error trying to create a table using the REST API

    Hello

    I tried to create a table using the REST API for Business Intelligence Cloud, but I got 500 Internal Server Error for a while now.

    Here are the details that I use to create a table.

    Capture.JPG

    and the json to create the schema that I use is

    [{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ["ROWID"]}]

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['RELATIONID']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['ID']}

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['RESPONDEDDATE']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [255], 'columnName': ['RESPONSE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_CREATEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_CREATEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_LASTMODIFIEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_LASTMODIFIEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_SYSTEMMODSTAMP']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [10], 'columnName': ['SYS_ISDELETED']},

    [{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [50], 'columnName': ['TYPE']}]

    I tried this using postman and code, but I always get the following response error:

    Error 500 - Internal server error

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.5.1 500 internal Server Error

    The server encountered an unexpected condition which prevented him from meeting the demand.

    I am able to 'get' existing table schemas, delete the tables, but I'm not able to make put them and post operations. Can someone help me to identify the problem, if there is no fault in my approach.

    Thank you

    Romaric

    I managed to create a table successfully using the API - the only thing I see in your JSON which is different from mine is that you have square brackets around your values JSON where I have not. Here is my CURL request and extract my JSON file (named createtable.txt in the same directory as my CURL executable):

    curl u [email protected]: password UPDATED h x ' X-ID-TENANT-NAME: tenantname ' h ' Content-Type: application/json '-binary data @createtable.txt https://businessintell-tenantname.analytics.us2.oraclecloud.com/dataload/v1/tables/TABLE_TO_CREATE k

    [

    {

    'columnName': 'ID',

    'dataType': 'DECIMAL ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': false

    },

    {

    'columnName': 'NAME',

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'STATUS."

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'CREATED_DATE."

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    'columnName': 'UPDATED_DATE ',.

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    }

    ]

  • Can I get the total number of records that meet the conditions of a query using the Table API?

    Hello

    A < row > TableIterator is returned when I ask operations using the index of tables. If I want to get the total number of records, I count one by one using the returned TableIterator < row >.


    Can I get the total number of records directly meets the conditions of the query?

    I can get the total number of records directly the request of the meeting of the conditions of CLI using the command Global table - name tableName - count - index index-name-field fieldName - start startValue-end endValue.

    Can I get the same results using the Table API?

    I used MongoDB and NoSQL Oracle for about a year. According to the experience of the use of these dbs, I think mongoDB querying interface is powerful. In the contras, the query interface is relatively simple, which results is a lot of work that is usually a long time in the client side.

    Hello

    Counting records in a database is a tricky thing.  Any system that gives you an accurate count of the records will have a hotspot of concurrency on updates, namely the place where the counting is maintained.  Such a count is a problem of performance in addition to competitive access problem.   The problem is even more difficult in a system widely distributed such a NoSQL database.

    The CLI has overall command that counts, but does so by brutal force - iterate keys that correspond to the parameters of the operation.  This is how you must do this within the API.  There is not a lot of code, but you have to write.  You certainly want to use TableIterator TableAPI.tableKeysIterator (), because a key iteration is significantly faster than the iteration of lines.  Just one iteration and count.

    If you use TableAPI.multiGet () and a key with a touch of brightness full then, in fact, count the results as they are returned in a single piece (a list).

    Kind regards

    George

  • Is there a way to get the data for submission of form of eloqua using the REST API?

    I was wondering if there is a way to get the data for submission of form of eloqua using the REST API?

    Thank you

    On the page that egan related, there is a 'RawData' field for FormSubmit activities. In this area, the raw sending the form query string is returned.

    Whatever it is, you can get this info from the activities of the API block, or the endpoints data Rest API.

  • Create/modify users using the RequestService API

    Hello

    I would like to create or modify users of IOM, by using the API RequestService (RequestService (Oracle Fusion Middleware Java QAnywhere for Oracle Identity Manager)), but currently, I do not know how!

    Currently I use the UserManager API to create/modify users:

    UserManager userManager = Platform.getService(UserManager.class);
    HashMap<String, Object> userAttributeValueMap = new HashMap<String,Object>();
    User user = new User("MyNewOIMUser", userAttributeValueMap);
    userManager.create(user);
    

    It works very well, but it is not possible to 'Create the user approval Workflows' using this trigger mechanism.  (use this code snippet in a custom scheduled task)

    I've already found some examples of code, using the RequestService API, but nobody uses this api to create/modify users.  (https://java.net/projects/openptk/sources/svn/show/branches/Oracle/OIM11g/examples/java/OIMClient/src/oim/client/request)

    Ideas/tips/code samples to specify this use case?

    BR,

    Mint

    This API allows you to submit the application:

    Oracle Fusion Middleware Java QAnywhere for Oracle Identity Manager

    doOperation (RequestData requestData, OIMService.Intent intention)

    This will allow you to submit and do force a request, direct provision or use some permissions has the person making the presentation for administrative roles to determine whether it is direct or claim.

    -Kevin

  • Using the REST API to delete the contact from the contacts list

    Hello world

    I am looking for some info for the creation of a request to delete a contact from a list of Contact using the REST API.   Here's what I have in Java where the contact id is 1 'and my list is 72'.     I'm open to responses in Java, c# or other languages.

    serverAddress = new URL ("https://secure.p03.eloqua.com/API/REST/1.0/assets/contact/list/72");

    establish communication stuff

    connection = null;

    Set up the initial connection

    connection = (HttpURLConnection) serverAddress.openConnection ();

    connection.setRequestMethod ("PUT");

    connection.setRequestProperty ("content-type", "json; charset=utf-8 ");"

    connection.setRequestProperty ("authorization", 'Basic BLOCKED');

    String body = '{\"membershipDeletions\":[\"1\']}";

    connection.setDoOutput (true);

    connection.getOutputStream () .write (body.getBytes ("UTF8"));

    connection.setReadTimeout (10000);

    Connection.Connect ();

    When I test with it I get a '400' HTTP response

    Thank you!

    Hi Noel,

    The following document describes the operations available for lists of contacts in the Rest API. Please note that we also have a project open source c# example illustrates the use of these endpoints.

    Repositories are all available to the public on Github. Hope this helps and please let me know if you need more information.

    Thank you

    Fred

  • vRO package import/export using the REST API, but what to rebuild a package?

    Hello

    I can export and import a package using the REST API. The package consists of all the workflows in a certain folder of the project.

    That's fine, but when we do another workflow example in the folder of our project, it is not automatically part of the package. This reduces the value of planning an export of it, because it would still this manual interaction.

    Is there a way to do it (automate/CLI/REST /...) this?

    Thank you!

    Ed

    Hello

    REST API for package management (adding/removing items to package, rebuild a package, etc.) are planned for the next version of vRO - vRO 7.1 (or whatever the COMP version it gets).

  • Run the workflow using the SOAP API with PHP

    Hello

    I'm trying to integrate workflow from code PHP using the SOAP API to Orchestrator.

    <? PHP

    Try

    {

    $parameters = array (username = > "username", password = > "passwd");

    $client = new SoapClient ('https://vcoserver:8281 / vco/vmware-vmo-webcontrol/webservice?) WSDL "); "

    $result = $client-> getAllWorkflows ($parameters);

    foreach ($result as $item)

    {

    foreach ($item as $work)

    {

    echo $work-> name;

    echo "< br >".

    echo "id";

    echo $work-> id;

    echo "< br / > ';

    }

    }

    }

    catch (Exception $e)

    {

    echo $e;

    }

    ? >

    I do not see errors/exceptions, but don't see any output as well.

    Am I missing something?

    Could you use

    print curl_error($curl);
    

    After curl_exec to check if there are errors?

    If there is an error in SSL certificate, as ' SSL certificate problem: unable to get local issuer certificate ", you can either install certificates roots (Google it for more information how to do), or disable checking of certificates by peers in CURL with something like:"

    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
    
  • Workflow of vCO of query using the REST API in PowerShell

    Hello

    I am interrogating a workflow vCO by name using the REST API of PowerShell based on this article:

    http://www.vcoteam.info/articles/learn-VCO/268-how-to-use-the-rest-API-to-start-a-workflow.html

    $username = "XXXXXX".

    $upassword = "XXXXXX".

    $auth = $username + ':' + $upassword

    $Encoded = [System.Text.Encoding]: UTF8. GetBytes ($auth)

    $EncodedPassword = [System.Convert]: ToBase64String ($Encoded)

    $headers = @{' authorization '=' basic $($EncodedPassword) ' ;}}

    $body = "<-xmlns = execution context" ". ' http://www.VMware.com/VCO ' > < / execution context > '

    #query for workflow named "donothing".

    Invoke-RestMethod-uri https://XXXX:8281/api/flow /? conditions = name = donothing -Headers $headers - body $body - ContentType "application/xml" - Get method

    Invoke RestMethod: failed to send a content-body with this type of verb.

    On line: 1 char: 1

    + Call-RestMethod-uri https://XXXX:8281/api/flow /? conditions = name = donoth ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: NotSpecified: (:)) [invoking-RestMethod], ProtocolViolationException)

    + FullyQualifiedErrorId: System.Net.ProtocolViolationException, Microsoft.PowerShell.Commands.InvokeRestMethodCommand

    The request succeeds by using the customer REMAINS on Firefox, but I can't make it work on PowerShell. (NOTE: PowerShell workflow execution works very well)

    Any help is appreciated.

    Thank you

    Juan.

    OK, I managed to do work by removing

    [System.Net.ServicePointManager]: ServerCertificateValidationCallback = {$true}

    And add this at the beginning of the script

    "Add-type @ '.

    using System.Net;

    using System.Security.Cryptography.X509Certificates;

    public class TrustAllCertsPolicy: {ICertificatePolicy

    public bool CheckValidationResult)

    ServicePoint srvPoint, X509Certificate certificate,

    WebRequest request, int certificateProblem) {}

    Returns true;

    }

    }

    "@

    [System.Net.ServicePointManager]: CertificatePolicy = New-Object TrustAllCertsPolicy

    Now I can use the GET method:

    $ret = Invoke-WebRequest - uri $URL - Headers $headers - ContentType "application/xml" - Get method

    I spent to Invoke-WebRequest so I can get the return of application Web.

    Juan.

Maybe you are looking for

  • No all-in-One boot

    I have a computer that I have a problem with setting... It is an all-in-one PC 20-2000 a When it is turned on the fan turns and the only sign of life is the light of flashing card reader The research I found that a few HP desktop computers had this p

  • Problems when you watch live broadcasts.

    When you use full screen on a show live I do not get a clear picture.but I get a great view when watching videos.

  • Event ID 8193 of VSS for backup

    My backup program uses VSS. -until recently successfully.  This is now the default.  The event log shows error VSS event no. 8193.  Backup log programs see the "aborted GatherMetadata pending VSS finish.  Run the "vssadmin list writers" command shows

  • Conflict of opinions about laptop battery use - which is the best way to go?

    The current issue of PCWorld Magazine States that you should NOT use the battery if your laptop is plugged into the wall outlet or surge limiter; I have a HP laptop three year with Vista & IE 8, FWIW. "However, when I disconnected the battery while u

  • Windows Media Player 12 DRM Security Upgrade 2.5.0.1

    GOOD NEWS for anyone trying to upgrade Windows Media Player 12 DRM security (if any)! If you have, as me, the way to http://drmlicense.one.microsoft.com/indivsite/en/indivit.aspsite. Discover the button upgrade is grayed out, and remains Gray, EVEN a