APEX 3.2.1: Problems using JSON in javascript

Hi-

This post is linked to another post of mine long ago: Re: URL not found runtime error of application app using APEX_UTIL process. JSON
I'm finally back working on the project.

We have upgraded to 3.2.1 hoping to be able to use the API for x 01-10 globals series and 'addParam', also the JavaScript works $s and $v.

At this moment I have a javascript (lookupObjTypeID) page header called by an onBlur event in a page element. I also have an on demand (lookup_value) application process.

The lookup_value argument is:

***********************************************
DECLARE

p_objecttype_name varchar2 (32): = wwv_flow.g_x01; -It was (supposed to be) defined in the javascript header before calling this process; See below

BEGIN

: Test_value: = 'the lookup_value argument is enforcement. " -just trying to confirm that we are entering the process.

APEX_UTIL. JSON_FROM_SQL ("SELECT objecttype_id FROM hdb_objecttype_syn WHERE objecttype_name =" "|") p_objecttype_name | " ') ;

END;
*******************************************

The call for applications the lookup_value argument is accomplished in the header of javascript as follows:

ajax_request = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is lookup_value', 0);
ajaxRequest.addParam ('x 01', $x('P3_OBJECTTYPE_NAME').value);
ajaxResponse = ajaxRequest.get ();

When I ran it in 3.0.1 ajaxResponse value is:

! DOCTYPE HTML PUBLIC "-/ / DTD HTML 2.0 / / IN" >
< HTML > < HEAD >
< TITLE > 404 not found < /title >
< / HEAD > < BODY >
Not found
The request URL /pls/apex/ww_flow.show was not found on this server.

< HR >
< ADDRESS > Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at
MyServerName Port 7777 < / ADDRESS >
< BODY / > < / HTML >
****

When I run now to point 3.2.1 ajaxResponse is simply 'not found process.' I'm sure that this means that the application process that is not the lookup_value argument
be found. The only other 'process' it could be is: APEX_UTIL. JSON_FROM_SQL, that seems likely.

This could be the cause? The javascript code uses an obsolete API? A message in the firefox error console says the following to www.json.org/json.js:

Increase base prototypes if they have not already been completed.
These forms are obsolete. It is recommended that JSON.stringify and
JSON.parse be used instead.

If (!.) Object.prototype.toJSONString) {}
Object.prototype.toJSONString = function (filter) {}
return JSON.stringify (this, filter);
};
Object.prototype.parseJSON = function (filter) {}
return JSON.parse (this, filter);
};

I'm SURE I have an app the lookup_value argument application process. :)

Either way, x 01 is not defined by the ajaxRequest.addParam ('x 01', $x('P3_OBJECTTYPE_NAME').value); ... unless I don't know how to access the value to display in an alert message. I tried the two alert ('X 01: ' | wwv_flow.g_x01); and alert ('X 01: ': ajaxRequest.getParam ('01 x')); After using the addParam method. both are null or empty.

Thanks for your help.

Carol

Hello

Make sure that your process type is on request.
Just do same process is correct, type your name in capital letters in each where it is required/used and of course in actual process

BR, Jari

Published by: jarola November 21, 2009 03:04

And check that you have not configured the conditions when this process is run / can be run

Tags: Database

Similar Questions

  • Problems using Captivate in JavaScript variables

    I am running JavaScript associated with click box in Captivate. The script is designed to assign a variable that is defined for the user with a value based on the user by clicking on this area. I was able to assign a value using the code:

    document. Captivate.SetVariable ('Item1', 1);

    where 'Item1' is a variable I set. However, now I'd like to be able to use the value of Item1 update as part of a calculation of the total number of items clicked on this page. I tried the code:

    document. Captivate.SetVariable ('Total', document. Captivate.GetVariable ("Item1") + document. It ptivate. GetVariable ("Item2") + document. Captivate.GetVariable ("Item3"));

    where 'Total' is a variable I set. I tried several variations on this code but none worked (I could get to show the values of the variables, but it seems to be to treat them as text rather than adding the values). I am able to implement multiple actions and that the system is running the first JavaScript and then also use the Increment function to add to the variable 'Total '. But I prefer this if possible in JavaScript. Can someone tell me if there is a script that will allow me to perform a calculation in JavaScript based on a combination of variables defined by the user? If so, examples of code would be greatly appreciated. Thank you!

    Try this link.

    http://JavaScript.about.com/library/blstrnum.htm

    Google can do wonders when you take the time to research.

  • ATTENTION: nsIJSON.decode is obsolete. Use JSON.parse instead.

    ATTENTION: nsIJSON.decode is obsolete. Use JSON.parse instead. Symptom. WHN I open a new tab, the creen goes on with my screens recorded, but none of them will load.

    Try Firefox Safe mode to see how it works there.

    A way of solving problems, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open the mode without failure of Firefox 4.0 + by pressing the SHIFT key when you use the desktop Firefox or shortcut in the start menu.
    • Or use the Help menu option, click restart with the disabled... modules while Firefox is running.

    Do not choose anything at the moment, just use 'continue in safe mode.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before using the shortcut of Firefox (without the Shift key) to open it again.

    If it's good in Firefox Safe mode, your problem is probably caused by an extension, and you need to understand that one.

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themes

    When find you what is causing that, please let us know. It might help others who have this problem.

  • JVM error 104: eception native error when you use json jar in the blackberry Simulator

    I'm developing an application where I have to use JSON to fill a listfield.

    I find my JSON response string and now being converted into a JSON object.

    I imported the

    org.json.me.JSONObject
    

    and have referenced the jar JSON as a dependency file after making it a library.

    I use the JDE 4.5... How can I solve this? Thank you.

    I solved this problem by including the file given by Peter Strange at this url:

    http://supportforums.blackberry.com/t5/Java-Development/JSON-library/m-p/573687
    

    Then, I changed the name of the package to reflect mine. This has resolved the original error.

  • Use JSON with REST API vCO 5.1

    I'm developing a simple REST client to run a workflow in vCO.  I am using perl and the module REST::Client, which is pretty simple.  I can retrieve the items in the inventory and definition for my target workflow, but when I try to POST a run, I get an error report by stating:

    The request sent by the client is syntactically incorrect.

    I use JSON (as is the default output of the vCO if no Content-Type is specified, and my personal preference), and the JSON format documentation is pretty sparse compared to the XML documentation.  The documents describe the context of execution as follows:

    { "parameters" : [ { "name" : "...", "type" : "...", "description" : "...", "scope" : "local", "value" : { } }, ... ] }

    My workflow accepts two string for the input parameters and returns a string as output parameter.  I read that the scope and description fields are optional, and I am omitting the two.  Clearly, however, Miss something needed on the structure of the execution context.  Can anyone help to shed light on this?

    Complete debugging:

    Accept: application/json
    Accept-Encoding: gzip, x-gzip, deflate, bzip2-x
    Authorization: *.
    User-Agent: REST::Client/249
    Content-Length: 137
    Content-Type: application/json
    {"parameters":[{"value":"10.0.0.0/24","name":"network","type":"string"},{"value":"test-hostname.dom","name":"hostname","type":"string"}]}

    HTTP/1.1 400 Bad Request
    Connection: close
    Date: Wednesday, December 5, 2012 19:01:11 GMT
    Server: vCO Server
    Content-Length: 965
    Content-Type: text/html; charset = utf-8
    Client-Date: Wednesday, December 5, 2012 19:06:21 GMT
    Client-Peer: *: 8281
    Customer-response-Num: 1
    Client-SSL-Cert-Issuer: /C=US/O=VMware/OU=VMware/CN=localhost.localdom
    Client-SSL-Cert-subject: /C=US/O=VMware/OU=VMware/CN=localhost.localdom
    Client-SSL-Cipher: DHE-RSA-AES256-SHA
    Client SSL-Socket-class: IO::Socket
    Client alert-SSL: certificate of the peer unaudited
    Title: JBossWeb/2.0.1.GA - error report


    < html > < head > < title > JBossWeb/2.0.1.GA - error report < / title > < style > <!-H1 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76; do-size: 22px ;}} H2 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76; do-size: 16px ;}} H3 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76; do-size: 14px ;}} BODY {do-family: Tahoma, Arial, without serif; color: black; background-color: white ;}} B {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76 ;}} P {do-family: Tahoma, Arial, without serif;: white background; color: black; do-size: 12px ;}} A {color: black ;}} B.SID {color: black ;}} HR {color: # 525 76 ;} - > < / style > < / head > < body > < h1 > State HTTP 400 - < / h1 > < HR size = "1" = "noshade" noshade > < p-type > < b > < /b > < /p > < p > < b > report message < /b > < u > < / u > < / p > < p > < b > description < /b > < u > the request sent by} the client was syntactically incorrect (). < /u > < /p > < HR size = "1" noshade "noshade" = > < h3 JBossWeb/2.0.1.GA > < / h3 > < body / > < / html >

    There was a problem with the value of the format JSON deserialization, it is fixed and will be available in version 5.1 of U1.

  • Using JSON in border animated

    Hello together,

    I'm trying to use JSON in edge animate.

    My goal is to put all the texts and images of edge animate in a JSON file.

    The text file looks like:

    var = JSONObject

    {

    Text of the page

    "text':"Hello. "

    'image': {}

    'src': ' images/test.png '.

    }

    };

    There is no problem with the reading of the text of the file:

    sym.setVariable ("text", JSONObject.text);

    SYM.$("text").html (sym.getVariable ("Text"));

    But it doesn´t work with the loading of the image. I tried like

    sym.setVariable ("image", JSONObject.image.src);

    SYM. $("test_image") .css ({' background', sym.getVariable ('image')});

    but no luck. Can someone help me?

    Hello

    (1) your error: you do not use the property CSS background as required.

    SYM. $("test_image") .css ("background-image", "url (" + sym.getVariable ('image') + ")");


    (2) another solution: previous post.

  • Compaq Evo D5pM - problems using this model number, never find what he listed...

    Compaq Evo D5pM - (Pent4 - 1.7 GHz) problems using this model looking for parts or information number.  Serial number has not been useful.

    Someone said "aka Compaq D510." Trying to buy memory model (found on the case) my number wasn't so I tried to use D510 (it was listed). Apparently not the same computer / mine use 168 pins sticks and D - 510 came 188 pins. I did my 'upgrade' purchase by check the number of pins and using the already installed type.

    My computer is a vertical minitower - looks like D - 510-, but like I said the components are different.

    I was wondering if anyone knows a model Compaq Evo w / same components (P4 1.7 GHz; 168 pin memory) I could use for research purposes. The smallest horizontal model Evo often uses different (smaller) maps, etc..

    Tried the Ctrl-Alt-S keyboard shortcut to bring up the model number (etc.), but my keyboard shortcuts do not work on this computer. Run a search for edge came up with nothing to tune.

    I tried HP support and drivers.  With the help of several model numbers and found that absolutely nothing for HP Compaq or "Compaq" is in the list.

    It is a great 3rd computer that I've updated w / spare parts, use it remotely, especially for music. Only problem was the dark model number. If anyone has something useful to add would be most appreciated. Thanks in advance...

    PS I'm currently trying to identify MB for what it's worth, but a number of alternative model that works would be great.

    Hello:

    Your model is a d500 CMT HP.

    1 GB 128 x 64-133 MHz PC133, 168P DIMM, 3.3V, sync

    Type of memory: , (non - ECC)
    Maximum memory: 3 GB
    Slots: 3

    This is the page for support and drivers for your PC.

    http://h20566.www2.HP.com/portal/site/hpsc/public/PSI/home/?cc=us & lang = in & sp4ts. OID = 96294 & Task = & AC.admitted = 1389381517647.876444892.199480143

    QuickSpecs:

    http://h18000.www1.HP.com/products/QuickSpecs/productbulletin.html#spectype=North_America & type = HTML & docid = 10946

    Because nobody does more than the memory, it will be hard to find and very expensive.

    You can plan on paying more $ $70 / 1 GB chip if you do not find the specification above used on a place like eBay.

    You can buy a newer, faster CMT from HP on eBay for less than $70 delivered.  Memory is much cheaper to buy as well.

    http://www.eBay.com/ITM/HP-DC7600-Pentium-4-3-0GHz-40Gb-512MB-DVDRW-XPPRO-30-day-warranty-/281231108334?PT=Desktop_PCs & Hash = item417aae28ee

  • I have problems using the parental control. I want to block facebook from a user account. I have facebook in the ban list, but apparently not block. I have Vista. What should I do to block facebook?

    I have problems using parental controls. I want to block facebook from a user account. I have facebook in the ban list, but apparently not block. I have Vista. What should I do to block facebook?

    Have you followed all the steps like that?

    http://www.howtogeek.com/HOWTO/Windows-Vista/use-parental-controls-to-filter-websites-in-Windows-Vista/

    It is an alternative.

    http://explore.live.com/Windows-Live-Family-Safety?OS=other

    http://Windows.Microsoft.com/en-us/Windows-Vista/protecting-your-kids-with-family-safety

    If this post answers your question, click mark as answer .

  • How to use json webservice in blackberry waterfalls

    1. how to use json WebService in the cascades of blackberry.

    2.i need to get data from url link in the qml page. give suggession with examples if possible.

    my link of web service contains the type of array

    for example: {'address': ['zone': 'RCS', 'city': 'ght']}

    Description:

    JSON link--> http://192.168.1.251:410/Mobile/Service1.svc/english/Category?CountryID=1

    using link above please ask how to recover data from json webservice cascading... I need answer to the method of waterfalls...

    Finally, I am me anser for service web json

    Response---> http://stackoverflow.com/questions/18598886/how-to-use-json-webservice-in-blackberry-cascades/186230...

  • unknown problem using WMP 12 no sound when played the song in the folder but has sound when he played in the player

    Hi all

    I have a weird problem using WMP (Windows Media Player v12).  When I double-click a song of in my library, the trail seems to play, but didn't have all the sounds.

    However, if I hover over the same path and then click Preview, the pop-up, the track plays with sound.

    When the track (s) do not play, all indications show the way to correctly play through of progress ' Now Playing ' screen, but no sound.

    In the past, when I clicked on any MP3 file, he would play using WMP.  Now, when I click on an MP3 file, it brings just "Now Playing" and looks LIKE he plays, but no sound.

    I have looked & looked for clues as to why it may be of WMP, but I can't understand the problem.  I also searched the Web for 'day' drivers in the Win System Manager, but Win says that pilots are "up to date".

    I have rebuilt the DB Library (twice) by removing the DB files in from WMP to a procedure in a WMP support forum. I also went to check the audio device in Device Mgr Win (mine is one on one). Everything seemed ok.  I also changed the devices to "Win by default" to what I think my onboard audio device is called.  I thought that that can do, but it's not.

    I was struggling with this since the day of the year.  Please help me solve this problem!

    Here is a link to my system features:

    http://Speccy.Piriform.com/results/0JAQshtlODwFxgwHeGb4rfq

    Hi, Pie,

    Welcome to the Microsoft community.

    Appreciate your efforts to try to resolve the problem that you have set so far. I guess that is not a problem with the driver that ultimately, the songs are playable using the media player. It could be a corrupted in Windows Media Player framework that is causing the problem. Let's run the Windows Media Player troubleshooting utility that resets all parameters to the player. Check out the link to do so:

    http://Windows.Microsoft.com/en-za/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Please let us know the results.

  • problems using the snap have amd, playback of Jpeg files

    Original title: I'm having problems using the component feature snap-in.

    Sometimes a single document disappears. When this happens while the document program is managed by then will not work. The document seems to be flying around the office. The last time this happened I had a doc JPEG upward and now I can't see what is JPEG. I don't know why the document wants to fly around, and I don't know how to get my use of the JPEG back.

    Hey Graham,.

    To view all jpeg images in the Viewer Windows photo or any other photo software visualization, you must configure this software as a default value in the default programs.

    Check out the link that allows you to configure the program as default.

    http://Windows.Microsoft.com/en-in/Windows7/change-which-programs-Windows-uses-by-default

    You can try to run the Aero Troubleshooter and see if that makes a difference.

    http://Windows.Microsoft.com/en-in/Windows7/open-the-Aero-Troubleshooter

    If the problem persists, provide us newspapers observer of events, as well as the error message if you receive a message.

    http://Windows.Microsoft.com/en-in/Windows7/open-Event-Viewer

  • Help to use JSON in 12.1 Oracle database

    Hello

    I would like to help to implement JSON in my 12.1 Oracle database:

    Here is my current data model:

    Table met_p6_point

    CREATE THE TABLE EIGJSON. MET_P6_POINT

    (

    INTEGER ID,

    DATE_VALID TIMESTAMP (6) NOT NULL,

    FLOAT VALUE (126)

    )

    some data:

    THE VALUE OF THE ID, DATE_VALID,

    867154,01/01/2015 03:00 000000, 6

    867155,01/01/2015 01:00, 000000, 4

    2015/01-867155,01 02:00, 000000, 3

    ...

    saves the County: 37 006 645

    Table met_p6_ref

    CREATE THE TABLE EIGJSON. MET_P6_REF

    (

    ID INTEGER NOT NULL,

    TYPE_PREV INTEGER NOT NULL,

    LOCATION INTEGER NOT NULL,

    DATE_PUBLI TIMESTAMP (6) NOT NULL

    )

    some data

    ID, TYPE_PREV, LOCALIZATION, DATE_PUBLI

    615,1,497,26/06/2013 18:00, 000000

    616,1,510,26/06/2013 18:00, 000000

    617,1,579,26/06/2013 18:00, 000000

    618,1,588,26/06/2013 18:00, 000000

    ...

    saves the County: 1217964

    Table met_panier32

    CREATE THE TABLE EIGJSON. MET_PANIER32

    (

    ID INTEGER NOT NULL,

    WMO INTEGER,

    NAME VARCHAR2 (45 BYTES) DEFAULT NULL,

    LAT FLOAT (126).

    LON FLOAT (126).

    WEIGHT FLOAT (126).

    CP INTEGER NOT NULL,

    INSEE INTEGER NOT NULL,

    VARCHAR2 (100 BYTE) DEPT NOT NULL,.

    VARCHAR2 (100 BYTE) REGION NOT NULL,.

    X_DEPT FLOAT (126).

    Y_DEPT FLOAT (126)

    )

    some data

    ID, WMO, NAME, LAT, LON, WEIGHT, CP, INSEE, DEPARTMENT, REGION, X_DEPT, Y_DEPT

    1,2, BOULOGNE ON SEA, 50, 727, 1, 6, 0, 01, 62200, 62160, 62, 31, 85, 115

    2.5, ABBEVILLE, 50, 111, 1, 838, 0, 01, 80100, 80001, 80, 22, 110, 70

    3.15, LILLE, 50, 635, 3, 064, 0, 03, 59000, 59350, 59, 31, 205, 120

    4.27, CAEN, 49, 18, - 0, 357, 0, 025, 14000, 14118, 14, 25, 195, 110

    5 110, BREST, 48, 391-4, 485, 0, 042, 29200, 29019, 29, 53, 120, 100

    ...

    record count: 32

    Table cal_hor

    CREATE THE TABLE EIGJSON. CAL_HOR

    (

    HL24 TIMESTAMP (6) NOT NULL,

    TIMESTAMP (6) UTC NOT NULL,.

    WHOLE TIME

    )

    HL24, UTC, HOUR
    26/01/2010-06:00, 000000, 26/01/2010 05:00, 000000, 6
    26/01/2010-07:00, 000000, 26/01/2010-06:00, 000000, 7
    26/01/2010-08:00, 000000, 26/01/2010-07:00, 000000, 8
    26/01/2010-09:00, 000000, 26/01/2010-08:00, 000000, 9

    ...

    saves the County: 96433

    I want to create a new table:

    CREATE THE TABLE EIGJSON. MET_P6_REF_POINTB
    (
    ID INTEGER NOT NULL,
    TYPE_PREV INTEGER NOT NULL,
    LOCATION INTEGER NOT NULL,
    DATE_PUBLI TIMESTAMP (6) NOT NULL,
    CLOB DATA
    )

    How to insert data into the new table?

    I am trying to find an INSERT SQL command like this:

    INSERT INTO met_p6_ref_pointb

    SELECT 'ID', location, type_prev, date_publi,

    row_to_json (met_p6_point): jsonb

    OF met_p6_ref

    Join met_p6_point using ('ID');

    But there is no row_to_json in oracle 12.1

    Suspicion and advice would be appreciated.

    Thanks adavance.

    I have the solution. This is the query.

    I think he can help other people who want to use JSON data:

    INSERT INTO met_p6_ref_pointb

    SELECT 'ID', type_prev, localization, date_publi, "{'ID':}" | ID | ","DATE_VALID":'''|| LTRIM (DATE_VALID) | " ', 'VALUE': ' | {VALUE |'} '

    OF met_p6_ref

    Join met_p6_point using ('ID');

    It works for me.

  • I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I had created a slideshow of practice and the background image was not displayed as an image in itself. How to

    I'm having a problem using the slideshow module in LR 6.3. The slideshow contains the background image as one of the images to display. Earlier, I have created a slideshow of practice and the background image was not displayed as an image in itself. How to make it behave?

    Another approach, perhaps a little more elegant (?). Create a collection that includes images for the slideshow. Include the background image in the collection. Drag the background image in the Panel to designate. Then, remove this image from the collection and create the slide show. I just tried and it works, too.

  • Problem using the REST API by wavemaker

    Hello

    I have a problem using other api with wavemaker. When I do a query GET with the RESTClientin FireFox, everything is fine for example:

    get https://XXX.XXX.XXX.XXX:8281 / vco/api/result:

    1. Status Code: 200 OK
    2. Cache-Control: private
    3. Content-Type: application/xhtml+xml;charset=UTF-8
    4. Date: Sun, 06 Apr 2014 16:50:04 GMT
    5. Expires: Thu, 01 Jan 1970 00:00:00 UTC
    6. Server: Apache-Coyote/1.1
    7. Transfer-Encoding: chunked

    But when I try to connect to the same url using wavemaker I recive: the answer is not in a valid XML Format.

    I use Orchestrator 5.5 and far as I could see the token is no longer required in the header. Anyone know why I get this error message?

    Thank you!

    Well half a day looking, then finally I thought to it:

    The header should be: accept: application/xml

  • Are there problems using Adobe CC with 10 Windows?

    Are there problems using Adobe CC with 10 Windows?

    Hi Michael,

    This might be useful: https://helpx.adobe.com/creative-cloud/kb/Windows_10_compatibility_FAQ.html

    Kind regards

    Sheena

Maybe you are looking for

  • iTunes does not synchronize with the iPhone SE

    My new iPhone IS will not sync with my iTunes library.  Whenever I connect it to my PC, I get the error message shown above.  The iPhone and iTunes are running with the latest version of the software, as shown in the image below. I don't know what co

  • Many lines appear on the screen of Qosmio F10

    Hello I have a problem with my Qosmio F10 screenI see a lot of lines on the screen. And I have to disable the VGA driver or run the screen by using the options below. I plugged the laptop with external LCD display, and the same problem appears! That'

  • Can Toshiba inform us after each update of the BT stack?

    When Toshiba publishes an update of the BT stack, it would be really good to know about this by e-mail instead of having to check the downloads page. Does anyone know of an email list that I can subscribe to who distributes such information?

  • Expire on Serial read

    I have a problem with reading the data in labview and also in MAX.  MAX said the device is very good, and I can even communicate to update the attributes correctly.  I'm certan, that data are transmitted properly because I'm able to recover the data

  • Using recovery disks (windows 8.1) to re-install on a replacement hard drive

    Hello, I just ordered a DELL Inspiron 3000 desktop computer. I read that DELL power supply is no longer reinstallation DVD.  What happens when (if) the hard drive in the new PC goes wrong? Could I then form a new hard drive in my machine and use reco