Error in ajax on request process?
Hi all
Now, I did AJAX tow on request
1-name: Get_item_balance
Declare p_itemid number ; p_balance number ; Begin p_itemid := apex_application.g_x04; select NET into p_balance from V_ITEMS_BAL where ID = p_itemid; -- return Balance fetched sys.htp.p(p_balance); End;
and the call to this function
function f_fetch_balance(pThis) { var row_id = pThis.id.substr(4); apex.server.process ( "Get_item_balance", { x04: $(pThis).val() }, { success: function( pData ) { $('#f06_'+row_id).val(pData); } }); }
Status = has worked successfully when process turn it back on.
2 -process name: Get_item_name
Declare p_itemid number ; p_name varchar2(200) ; Begin p_itemid := apex_application.g_x04; select ITEM_NAME into p_name from T_ITEMS where ID = p_itemid; -- return Item_name fetched sys.htp.p(p_name); End;
and the call to this function
function f_fetch_itemname(pThis) { var row_id = pThis.id.substr(4); apex.server.process ( "Get_item_name", { x04: $(pThis).val() }, { success: function( pData ) { $('#f05_'+row_id).val(pData); } }); }
Status = Not worked and show the error (error: parsererror - SyntaxError: JSON.parse: unexpected character in column 1 of line 1 of the JSON data)
Please help me... Why the process did not work... ?
Thank you...
Hi Amr Abdeen,
AMR Abdeen wrote:
Please help me... Why the process did not work... ?
You don't have to write separate multiple process of Ajax and JavaScript function to retrieve multiple values for the same line.
build the JSON string in the summary for the Ajax treatment without 14,15.16.17 line
I am combining your two Ajax in a single process of Ajax and also combining your JavaScript as well.
I have also changed the name of function of process of Ajax and JavaScript, please check this as well.
Check this example
Step 1: Your Ajax process should be like this
Declare p_itemid number ; p_name varchar2(200) ; p_balance number ; l_json_str varchar2(4000) := null; Begin p_itemid := apex_application.g_x01; select ITEM_NAME,NET into p_name, p_balance from V_ITEMS_BAL where ID = p_itemid; -- build a JSON string to return l_json_str := '{ "NAME": "'||p_name||'", "BALANCE": "'||p_balance ||'" }'; sys.htp.p(l_json_str); End;
Step 2: Your Javascript function should be like this
See here the line not 6 to 10, how json parsing and assign them to the columns
function f_fetch_details(pThis) { var empDtlsJSON; var row_id = pThis.id.substr(4); apex.server.process ( "Get_item_dtls", { x01: $(pThis).val() }, { type: "GET", dataType: "json", success: function( json ) { var name = json.NAME; var balance = json.BALANCE; $('#f05_'+row_id).val(name); $('#f06_'+row_id).val(balance);} }); }
Step 3: call the function javascript in your column of lov popup as explained above
Go to the attributes report-> edit your column of lov popup-> column-> Attrbiutes element attributes-> put the code below
onchange="javascript:f_fetch_details(this);"
Hope this helps you,
Kind regards
Jitendra
Tags: Database
Similar Questions
-
Analyze the error in the application of process
Hi all
I use APEX 4.2.5 and I have a request of processes that extract the data from table.
I use the solution of Jitendra from this link
Error in ajax on request process?
Everything goes perfect until recently, I got strange error that occurred occasionally as below.
I tried to investigate and find the data I got contains the 'character as the sample data below.
AU - 1, 9 "CAB, #95
I tried to remove the 'character, the error does not appear.
My question is how to escape the "character without changing the data.
Thanks and regards,
Troy.
Lagi Troy wrote:
I use APEX 4.2.5 and I have a request of processes that extract the data from table.
I use the solution of Jitendra from this link
Error in ajax on request process?
Everything goes perfect until recently, I got strange error that occurred occasionally as below.
I tried to investigate and find the data I got contains the 'character as the sample data below.
AU - 1, 9 "CAB, #95
I tried to remove the 'character, the error does not appear.
My question is how to escape the "character without changing the data.
Run the data retrieved using
apex_javascript.escape
before transmission in JSON format. -
I can't download Windows 7 ISO. I tried 24 hours and continue to receive the same response: "error we had a problem processing your request. Please try again later. "I have a valid product key directly from the unit. This means that the Windows Support site has been down for 24 hours or is there a problem with my product key?
Try this solution:
-
Hello
I have MsSql running in the cluster environment and recently face the problem when there is a security agent installed in MsSql server, which the agent does nothing but only to capture the local database activity. The error led is as below:ID from step 1
Server NIBKSQLCLUST
Job name LSBackup_DRIB
Newspaper log shipping backup job step name.
Time 00:00:02
SQL severity 0
SQL Message ID 0
Operator by e-mail
Operator Net sent
Operator paged
Retries attempted 0
Message
2011-03-21 08:00:02.62 * error: could not retrieve parameters of backup for primary ID '26f46141-a676-41b2-8653-11f1b13de43a '. (Microsoft.SqlServer.Management.LogShipping) *.
2011-03-21 08:00:02.63 * error: could not connect to the server NIBKSQLCLUST. (Microsoft.SqlServer.ConnectionInfo) *.
2011-03-21 08:00:02.63 * error: a connection has been established with the server, but then an error occurred during the connection process. (provider: Named Pipes Provider, error: 0 - no process is on the other end of the pipe.) (.Net SqlClient data provider) *.
2011-03-21 08:00:02.63 - END OF THE TRANSACTION LOG BACKUP-
The process to run correctly when I turned off the security officer. Advice kindly the cause of this problem and is where all configurations should be set / changed in MsSql server.
Thank you
Boonlep coulibaly
Hello
I suggest you to send your request from the link and check.
-
When copying the files, I get this error which is lower thanan unexpected error prevents the operation.make a note of this error code, which might be useful if you get additional help to resolve this problem:error 0 * 8007045D: the request could not be performed because of an i/o device errorfilename DSc02828file type jpgsize 3.27 mbupdated the 09.11.2012try to jump again cancelWhats wrong here
Hello
Thanks for posting in the Microsoft community!
You have reached the right forum for your question.1. don't you make changes on the computer before the show?
2. where exactly you are trying to copy the file?Run check disk on the computer.a. click Start , and then typecmd.exe in the start search and then press ENTER.b. right-click on cmd.exe and clickrun as administrator.(c) in the command prompt, type the following command and press ENTER.Chkdsk /fNote: You may be prompted by a yes / no question. TypeYes and press ENTER.d. restart the computer so that the disk check starts. It will take about half an hour to complete the process of error checking. Do not restart the computer when the current disk check.Note: when running chkdsk on the drive hard if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data may be lost
Summary the link:Error message when you try to perform a full backup on a Windows Vista-based computer: "the application cannot be performed because of an i/o device error."
http://support.Microsoft.com/kb/952272Just reply with the results. I'd be happy to help you further. -
Firefox will not start after the upgrade to 27. Seen an error message during the upgrade process, but do not remember.
Tried running firefox.exe Pei but error message:XML parsing error: the undefined entity
Location: chrome://mozapps/content/profile/profileSelection.xul
Line 18, column 1:
"< dialog < =" "^ =" "p =" "> < / dialogue >Running on Windows XP SP3. No problem whatsoever before moving to 27. Sending of Chrome that I can't open Firefox at all.
Thank you, jschaer2000. In the meantime, he works. How long, we'll see ;-)
-
error proxy:Lucallbackproxy.exe - request reminder
Hello
I'm msz error (error proxy:Lucallbackproxy.exe - request reminder)
my windows server 2003 64-bit operating systemHow to completely remove the proxy in my system...
I don't want proxy in my delete full system...?HelloYour question of Windows is more complex than what is generally answered in the Microsoft Answers forums. Appropriate in the TechNet forums. Please post your question in the TechNet forums.You can follow the link below to ask your question:
I hope that helps! -
error that says: "the requested operation requires a rise."
I am trying to download AquaZone desktop Garden, I get an error that says: "the requested operation requires a rise" what I have to do. I have the Windows 7 operating system. Thanks in advance
--------------
-
I installed half life episode 2 1 in the Middle, the following message is displayed on the game screen and game hung when I click on the game stopped following message - microsoft Visual C ++ Library Runtime error - this application has requested the execution unusual way. -.
Hello
I suggest you follow the link and check.
-
Error when sending verification request.
I installed the server of the University Complutense of MADRID and 11.1.1.8 Capture and implement an example document oracle http://docs.oracle.com/cd/E29542_01/doc.1111/e37898/get_started.htm#ODDCM137
but instead of using the validation of text file driver this mention in the document, I select webcenter content.
but when I click on release batch its give me error sending check in request
Hello
Looks like there is a bug in Webcenter Capture 11.1.1.8 try again with the IP address instead of the host name in the driver validation
http://IP-address:16200/cs/idcplg
After changing recycle them capture Managed node in weblogic
Kind regards
Amol Germain.
-
Installed the new printer HP 8600 more. Trying to connect HP ePrint with username and password I created. Error message "Ajax submit failed: Error = 403, forbidden. What does the error message mean and why I can't connect on the site of HP ePrint?
With the help of Google Chrome. Cleared cache memory, closed, reopened, and I was able to connect. Problem solved. Thanks for your help!
-
HOW TO SET THE VALUE TO A PAGE OF AJAX ON DEMMAND PROCESS ELEMENT?
Hi, I have a javascript that calls an ajax on demmand process , and I need a the ajax process variable value is updated about my page: P2_CONTENT:
- Here's my javascript call:
doprint() function
{
Apex. Server.Process ("GENTICKET", {pageItems: "#P2_PARAM1"}, {async: false});
}
- and here is My ajax on demmand process (GENTICKET):
BEGIN
declare
CONT varchar2 (1000); -the return value is less than this length, I have already checked in my table-
Start
Here, I call a DB procedure that fills my data. I verifyed and works nice!
pro_generate (:P2_PARAM1);
Here, I select the data obtained in the previous step
Select tic_text
in cont
of t_reim
WHERE f_type =:P2_PARAM1 ;
Here, I need to set the value to display in my page field
APEX_UTIL. SET_SESSION_STATE ('P2_CONTENT', CONT); -< < < < < that doesn't work. I tried: P2_CONTENT: = cont; but does not
end;
END;
Thanks in advance for the help.
You can do all this declaratively by using dynamic actions, to try jQuery is like trying to swim before you can float.
You can influence the value returned from JavaScript with this PL/SQL:
HTP. PRN (cont);
Then include a function of success (as described in the previous link) to run code like:
success: function {(pData)
$s ('P2_CONTENT', pData);
}
-
Error message - Ajax submit failed: Error = 403, forbidden
When I try to create an account I get this error message: Ajax submit failed: Error = 403, forbidden
Hello hughesrh,
First thing I would try is clear memory cache of your browser, and then try again. If this does not work, try using a different browser. If neither works, let me know and I'll see what I can find.
-
Dear Experts,
I am facing this error in the table of 500G on win 2008 R2 64 bit RAM
Nothing in alert log or v$ recover_file
Oracle Database 11g 11.2.0.1.0 - 64bit SQL> create index L_3__SERIALIZED on L_3_PV_TD_LINE_ITEMS_FF_REL_2 (SERIALIZ ED) parallel 16 nologging; create index L_3__SERIALIZED on L_3_PV_TD_LINE_ITEMS_FF_REL_2 (SERIALIZED) parallel 16 nologging * ERROR at line 1: ORA-12801: error signaled in parallel query server P015 ORA-01115: IO error reading block from file 115 (block # 967936) ORA-27070: async read/write failed OSD-04016: Error queuing an asynchronous I/O request. O/S-Error: (OS 1117) The request could not be performed because of an I/O
-
Original title: Repetitivet sending emails from Outlook Express
When sending emails from my Outlook Express , the following occurs:
(1) as usual, send the message falls into my Outbox and begins to be sent.
(2) when the message was sent, I get a message that "some errors occurred while processing requested tasks" but no actual errors are displayed.
(3) the sent items folder does not show that a message has been sent... but a message has been sent.
(4) the original message remains in my Outbox and will be sent over and over again.
As you can imagine, it's a very embarrassing problem. All suggestions are welcome, but please keep the instructions clear and simple.
Ed *.
Hello
Windows XP Service Pack 2 is installed on your computer? To work on this question, see these steps.
It seems that there is a corruption of dbx file.
I suggest you go over your messages out of the Inbox, and then create new folders Outbox and sent items after you move the messages you want to save to a local folder that you create.
Reference:
(a) click onTools
(b) thenOptions
(c) selectMaintenance
(d) Record Store will reveal the location of your Outlook Express files.
(e) Note the location and navigate on it in Explorer Windows or, copy and paste to start and select run.
In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden.
To view these files in Windows Explorer, you must enable Show hidden files and folders
Reference:
(a) clickStart
(b) Control Panel
(c) Folder Options icon
(d) notice, or in Windows Explorer
(e) Tools
(f) the Folder Options
( viewof g).
With Outlook Express closed, find the DBX files for the items in the Outbox and sent and delete them. New ones will be created automatically when you open Outlook Express.
After you're done, followed by compacting your folders manually while working * off * and do it often.
Reference:
(a) clickOutlook Express at the top of the the folder tree so no folders are open.
(b) click onthe file
(c) work offline (or double click working online in the status bar).
(d) file
(e) file
(f) compact all folders. Wait for the compaction to complete.
General precautions for Outlook Express:
Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend about a300 MB max for less risk of corruption.
Information on the maximum size of the .dbx files that are used by Outlook Express:
http://support.Microsoft.com/?kbid=903095Compact often as specified above.
Reference:
(a) in the Tools
(b) selectOptions
(c) maintenance:
(d) uncheck Compact messages in the background and leave it unchecked. (N/a if running XP/SP2).
And backup often.
See also: error messages when you send and receive in Outlook and Outlook Express http://support.microsoft.com/kb/813514
An Outlook Express basic repair kit
http://support.Microsoft.com/kb/2398839
Hope the information is useful.
Maybe you are looking for
-
Skype crashes when you use everything related to webcam
I just bought a LOGITECH HD WEBCAM C920 When I'm working on Skype, Skype "crash" Skype crashes when: try to change the picture, trying to change the demo, trying to turn on webcam in Skype call. The webcam works on ANYTHING els. Also Skype webcam sta
-
Re: Small screen on my Satellite C850
My cat stepped on the keyboard and I now have a small screen that I could not return to normal, If I click on "optimize" it will bring to the top of the screen to normal size, but I then 2 boxes on the place of "minimize". What buttons I push to reve
-
dc7800mt: dc7800 10 Windows 64 b PCI Simple Communications and PCI Serial Port drivers missing
Can't seem to find the drivers for a dc7800 upgraded to Windows 10 64 b for PCI Simple Communications Controller and PCI Serial Port devices. Any help would be greatly appreciated. Paul_Tikkanen, are you still there?
-
'Sometimes' just will not send fax to certain numbers. Numbers change and can run on another day! usually I get error 388 and 321 codes. Call recipients who say fax work and receives other faxes. Driving me crazy!
-
I want to download live streaming video on my computer (my daughter-in-law live sonogram) if my husband can view them later. Any suggestions?