process on the main window to stop running after the closure of a modal dialog box
Hi everyone, I am new to Oracle Forms so any help would be appreciated.Here's the scenario: I'm on MY_MODALESS_WINDOW and run a trigger that looks like:
================================
execute_trigger ('TRIGGER_1');
If form_failure then goto FAIL; end if;
show_window ('MY_MODAL_DIALOG');
synchronize;
raise form_trigger_failure;
execute_trigger('TRIGGER_2);
If form_failure then goto FAIL; end if;
< < FAIL > >
null;
================================
-No error in compilation.
-Here is the number: TRIGGER_2 has never been called/executed after the closure of the MY_MODAL_DIALOG?
Thanks again,
Published by: user12216598 on March 12, 2010 09:07
As I said before, open a modal window does not stop execution of the current procedure. If you need this behavior, put your modal window and all its components in another form module and use CALL_FORM to open this form. Then the execution stops at the CALL_FORM statement and and will continue after the CALL_FORM when you leave the form called.
Tags: Oracle Development
Similar Questions
-
Cannot process the request because a modal dialog box or the alert is active
I can't work for the life of me why I get this message when "cannot process the request because a modal dialog box or the alert is active. I simplified my code to reproduce the problem.
All I want to do is have a dialog box that allows me to edit items on the page... But it does not seem to allow it. I must be missing something simple.
var selection = app.activeDocument.selection[0]; dialog = new Window('dialog'); var button = dialog.add('button', undefined, 'Resize'); button.onClick = function() { selection.geometricBounds = [0, 0, 10, 10]; }; dialog.show();
If you use 'dialogue', then you must leave the modal state to interact with the app was done by closing the dialog box.
var w = new Window('dialog'); var v = w.add ('edittext'); var b = w.add('button'); b.onClick = function(){ w.close(1); } if (w.show()==1) alert (v.text);
Or switch to modal MOM like brother suggested dialog boxes...
Loïc
-
This occurs after the user connected to the mac Server network share and open an Indesign document.
The user has the right to full user for the network share and all documents.
This warning means that there is an open dialog box (in this case most likely off the screen or hidden behind something else).
-
How to remove "modal dialog box or alert" when the script is underway?
Hi all
I've created a script that will set the text of the rtf files from a folder to a document on a different page based on the correspondence. But if a font which was in doc file but absent on my mac, showed an error when running the script.
This means that Indesign has opened a missing alert police box and script stop to this line and the error shows "cannot process the request because a modal dialog box or the alert is active.
Is possible to remove this error and the script is continue to place all RTF files? I have little knowledge of try/catch.
indesign #target
myDoc var = app.documents.item (0);
sourceFolder var = Folder("/Users/admin4/Desktop/ec_txt");
myFiles = sourceFolder.getFiles ("*.rtf");
var myFrame1 = myDoc.pageItems.itemByID (111076); Switzerland
var myDoc.pageItems.itemByID = myFrame2 (111114); euro area
var myFrame3 = myDoc.pageItems.itemByID (111146); Germany
for (var i = 0; i < myFiles.length; i ++)
{
switch (myFiles [i].name.slice (6, myFiles [i].name.lastIndexOf ("_")))
{
case 'Switzerland_en ':
myFrame1.parentStory.insertionPoints.item(-1).place (file (sourceFolder + "/" + myFiles [i] .name))
break;
case 'Eurozone_en ':
myFrame2.parentStory.insertionPoints.item(-1).place (file (sourceFolder + "/" + myFiles [i] .name))
break;
case 'Germany_en ':
myFrame3.parentStory.insertionPoints.item(-1).place (file (sourceFolder + "/" + myFiles [i] .name))
break;
}
}
To remove alerts, you can use different levels of user interaction.
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
Not forgotten to reset after the end of the script with the following:
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
Hope it resolve your request.
--------
Green4ever
-
How to set the location of the display of the modal dialog box?
Hello
Setting the height of a modal dialog box seems to influence the position of the modal dialog in the window.
(See also the Position of the modal dialog box)
If anyone can confirm this? And if so, how can I handle it?
Thank you
Jos
Hello
Thanks John: How to persist APEX dialog size and position. HardLikeSoftware
-
Position of the modal dialog box
Hi,.
Could someone explain to me how the op i tion to the wide a modal dialog is calculated?
I put the height of my modal dialog box to 780px (all of the page of the dialog box is displayed), and the modal dialog box is displayed at the top of the window:
A user complains that the modal dialog box is located roughly halfway to the window and having to drag upward to display all items and buttons.
After you change the height to 600px, I get the same answer (the modal dialog box is about to halfway through the window) on my environments: different types of MacBook (Air/Pro), a window PC, all modern browsers.
Then sometimes (how SMART is that! ) ) the modal dialog box (with the height value 780px) is positioned at the top of the page, sometimes the top less x.
Thank you
Jos
Thanks John:
Hello
Thanks John: How to persist APEX dialog size and position. HardLikeSoftware
-
interaction of the modal dialog box with master apex 5
Hello
Apex 4.2 that my links has been built with sql only for the specified lines, links point to event opening the modal dialog box.
Can you tell me how should I format link to open the modal dialog box for interactive report?
Hi jareeq,
jareeq wrote:
Apex 4.2 that my links has been built with sql only for the specified lines, links point to event opening the modal dialog box.
Can you tell me how should I format link to open the modal dialog box for interactive report?
Please see the example of a modal dialog box of region in sample dialogue is available in packaged Application.
This will give you an idea how to call a modal dialog box for interactive report link.
or better create sample on apex.oracle.com which will be easier for users to give you the appropriate solution.
Kind regards
Jitendra
-
Windows Explorer stops running
every time I try to open a program IE... my computer, pictures, documents, Recycle Bin... whatever it is a box comes up and says expplorer windows stops running, then he gives me the box to get the windows updates when I click on that same thing windows Explorer stops running
Hello
You can use Safe Mode to troubleshoot as needed - repeatedly press F8 that you start.
---------------------------------------------------
What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
on this machine, including those you have uninstalled (they leave leftovers behind which can cause
strange problems).----------------------------------------------------
Follow these steps:
Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN
Enter this at the command prompt - sfc/scannow
How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
generates in Windows Vista cbs.log
http://support.Microsoft.com/kb/928228Also run CheckDisk, so we cannot exclude as much as possible of the corruption.
How to run the check disk at startup in Vista
http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html==========================================
After the foregoing:
How to troubleshoot a problem by performing a clean boot in Windows Vista
http://support.Microsoft.com/kb/929135
How to troubleshoot performance issues in Windows Vista
http://support.Microsoft.com/kb/950685Optimize the performance of Microsoft Windows Vista
http://support.Microsoft.com/kb/959062
To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
reference (if you have a small box at the bottom left - show for all users, then check that).How to check and change Vista startup programs
http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.htmlA quick check to see that load method 2 is - using MSCONFIG then put a list of
those here.
--------------------------------------------------------------------Tools that should help you:
Process Explorer - free - find out which files, key of registry and other objects processes have opened.
What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
each process.
http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspxAutoruns - free - see what programs are configured to start automatically when you start your system
and you log in. Autoruns also shows you the full list of registry and file locations where applications can
Configure auto-start settings.
http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspxThere are many excellent free tools from Sysinternals
http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx-Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically
When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
a program that runs in your Windows startup.
http://www.NirSoft.NET/utils/what_run_in_startup.htmlThere are many excellent free tools to NirSoft
http://www.NirSoft.NET/utils/index.htmlWindow Watcher - free - do you know what is running on your computer? Maybe not. The window
Watcher says it all, reporting of any window created by running programs, if the window
is visible or not.
http://www.KarenWare.com/PowerTools/ptwinwatch.aspMany excellent free tools and an excellent newsletter at Karenware
http://www.KarenWare.com/===========================================
Vista and Windows 7 updated drivers love then here's how update the most important.
This is my generic how updates of appropriate driver:
This utility, it is easy see which versions are loaded:
-Free - DriverView utility displays the list of all device drivers currently loaded on your system.
For each driver in the list, additional useful information is displayed: load address of the driver,
Description, version, product name, company that created the driver and more.
http://www.NirSoft.NET/utils/DriverView.htmlFor drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
Control Panel - device - Graphics Manager - note the brand and complete model
your video card - double - tab of the driver - write version information. Now, click on update
Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
Uninstall - REBOOT it will refresh the driver stack.Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
with their own software and drivers and all other main drivers that you have.Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
BIOS, Chipset and software updates on the site of the manufacturer of the system here.)Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
each installation.Always check in the Device Manager - drivers tab to be sure the version you actually install
presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
in particular that) so to install a driver - reboot - check that it is installed and repeat as
necessary.Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
manually by model.Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htmHow to install a device driver in Vista Device Manager
http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.htmlIf you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
Updates, that leaves about Windows updates but it will not install the drivers that will be generally
older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
get new manually if you wish.How to disable automatic driver Installation in Windows Vista - drivers
http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx===========================================
Refer to these discussions because many more excellent advice however don't forget to check your antivirus
programs, the main drivers and BIOS update and also solve the problems with the cleanboot method
first.Problems with the overall speed of the system and performance
http://support.Microsoft.com/GP/slow_windows_performance/en-usPerformance and Maintenance Tips
http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/19e5d6c3-BF07-49ac-a2fa-6718c988f125Explorer Windows stopped working
http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/6ab02526-5071-4DCC-895F-d90202bad8b3Hope these helps.
-
Stops running after the recall of custom Manager runtime error
I have written a custom runtime error handler based on the example of ErrorHandlerExample which comes with TestStand uses Teststand 2010 SP1. It has been implemented as a reminder of StationPostStepRuntimeError in my folder of reminders of the Station. I modified the example as follows:
(1) added code to disable the transmitter USE if it was on.
(2) added a call to an executable that sends an email to the currently logged in user.
(3) call the TestStand standard runtime error dialog box using the method DisplayRunTimeErrorDialog of engine.
(4) the user's selection process, then turn on the transmitter USE for any another option and then have an abortion.
The recall also checks the State of the break and "do not show this execution" options selected by the user. If the user selects break so the only option I can find is to call the method of the Execution.Break () API which breaks execution there in my reminder. The user must then step go out the recall. Is there a way to instruct TestStand to complete execution of callback and the break immediately after completing the callback (i.e.at the next step after the error)? I have compressed upwards and attached my modified sequence.
If not, is there a better way to do this?
Kind regards
David
Had the chance to try it yet but maybe StepOut is your solution?
The help of TS:
StepOut method
Syntax
Execution.StepOutGoal
Resumes the execution of a suspended state and then pauses again once the execution of the current sequence. -
Article not saved when the item is in a modal dialog box of jquery
Hi all
I followed the instructions here:
http://shijesh.WordPress.com/2010/04/10/jQuery-modal-form-in-Apex-4/
to create a modal jquery dialog, this is the code that I added in the html header:
my situation is a little different, my modal doesn't have to perform a sql update, just to change a field<link rel="stylesheet" href = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/ redmond/jquery-ui.css" type="text/css" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script> <script type="text/javascript"> $( function() { $('#ModalForm').dialog( { modal : true , autoOpen : false , width : 425, closeText : 'Close', stack : false, resizable : false, buttons : { Cancel : function() { closeForm(); } , Save : function() { updateMEMOVELD(); } } }); }); function openForm() { $('#ModalForm').dialog('open'); } function closeForm() { //$('#ModalForm input[type="textarea"]').val(''); $('#ModalForm').dialog('close'); } function updateMEMOVELD () { var get = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=f_memo', 0); get.add('P9_MEMOVELD',$v('P9_MEMOVELD')); var gReturn= get.get(); //alert(gReturn); //alert($v('P9_DATUM')); $s('P9_MEMOVELD',gReturn); alert($v('P9_MEMOVELD')); $s('P9_MEMOVELD_COPY',$v('P9_MEMOVELD')); $('#ModalForm').dialog('close'); } </script>
the user will then record in the main form
for some reason any field never gets updated in the db
I even created an application on the application called f_memo process:
Why my domain is not send to the db?BEGIN APEX_UTIL.SET_SESSION_STATE('P9_MEMOVELD',:P9_MEMOVELD); htp.p(:P9_MEMOVELD); END;
It works when I remove this from the header of the region:
but then of course I have more a modal dialog box< d i v id="ModalForm" title="Add Person" style=" d isplay:n one " >
What's wrong?
I put the code online at apex.oracle.com
Run the applicationworkspace XONIXRS login/password demo/demo
Click lijst (invoices) without (in the region of the right sidebar)
Then click on the button Search (search)
a report is displayed, click on edit on the first line (200900017)
now, a form appears, click the memo of pure and simple button
now the modal shows upward, change the field and click Save
Click ok (for warning) and then click on save the invoice
you stay on the same page
Now click on town
and then click on edit on the first line (200900017) new
then click on note even once, you will see that the memo has not been changed
How comes?
KR
MartinThe problem is that the creation of a region of a modal rise this area of the html code. Take a look at the DOM when you run your page and not the html source code, because that does not reflect the changes to the DOM is the loading of the page. This means that your memo field is far from the FORM tags and actually only submit to the session state. The issue is not addressed when you send page! You can follow through your debugging page. Memo is not saved and untreated.
Try saving the value of session state is not enough, it does not really matter in this case. The time that you submit the page, session state is crushed by the submitted values of the elements.
So what I did:
- Move P9_MEMOVELD to the FACTUUR region, as well as all other db fields
- change the type of hidden
- the protected value not
- in modal region to create a new page P9_MEMOVELD_POP, type textfield element
- Set the source to always use a page element as a source, with the source P9_MEMOVELD
- change of function updatememoveld:
function updateMEMOVELD () { /* var get = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=f_memo', 0); get.add('P9_MEMOVELD',$v('P9_MEMOVELD')); var gReturn= get.get(); //alert(gReturn); //alert($v('P9_DATUM')); $s('P9_MEMOVELD',gReturn); alert($v('P9_MEMOVELD')); $s('P9_MEMOVELD_COPY',$v('P9_MEMOVELD')); */ $s('P9_MEMOVELD',$v('P9_MEMOVELD_POP')); $('#ModalForm').dialog('close'); }
If you want or need the session state as a whole belongs to you, it depends on if you are using this also dynamically on the page and therefore to influence results, but I don't think it will be (it's a Memo field...)
Additional notes:
- Be careful with the jquery libraries! The standard libraries are included, but you add previous versions too! 1.4.2 this could cause problems of...
- Use your models better. Why did you would wrap a region in the div tags? Change or add a model of region to be DIV tags You can then easily assign a static id in this region and target. This will save you from enveloping the wrappers wrapped (cause it is what looks like the code that is generated in the end).
-
Is it possible to stop a script to a Photoshop built in dialog "box"?
Hi Commmunity!
When you run/build any script.
With im to listener script that can save the results of a parameter dialog box.
But is it possible, for example, to stop the script to a dialog box? (Like when you check the photoshop action 'dialogue box toggle' brand)
Any dialogue im mean this. Bulit Photoshop in dialog boxes. Levels, Saturation etc. :
I know it's own possible build dialog boxes, but this one is easier. When it is possible. (If you can do this with actions, maybe you can with script)?
Once again: the goal is to launch a script... at some point in the script stops and the dialog box is available in, after you click ok, the script continues!
Possible?
:-)
Thanks for any advice, and / or help!
Benvar desc9 = new ActionDescriptor(); desc9.putBoolean( charIDToTypeID('Clrz'), false ); var list2 = new ActionList(); var desc10 = new ActionDescriptor(); desc10.putInteger( charIDToTypeID('H '), 0 ); desc10.putInteger( charIDToTypeID('Strt'), 0 ); desc10.putInteger( charIDToTypeID('Lght'), 0 ); list2.putObject( charIDToTypeID('Hst2'), desc10 ); desc9.putList( charIDToTypeID('Adjs'), list2 ); executeAction( charIDToTypeID('HStr'), desc9, DialogModes.ALL );
-
Skillbuilders modal dialog box - condition for the parent page dialog box
Hello
When you use this great plugin, I have a dynamic action on my calling page that deals with the selection of the dialog box.
It uses
Select the type object: DOM
DOM object: document
Condition: expression javascript
($v ('P110_PROD_SEARCH') is 'BLAH')
where the js expression is to ensure that I run the correct dynamic action, especially when I have a few buttons on the page referring to different variants of the modal dialog box.
My first action is some javascript which questions the value of
this.data.modalPageCloseValue
It helps me to make decisions in subsequent actions on the opportunity to execute some pl/sql, for example
In the light of a recent issue of my about a possible bug APEX ( and since we cannot put conditions on measures - I was wondering if I could incorporate something in my condition of dynamic action to stop all the dynamic enforcement action if modalPageCloseValue is null - but it seems to be out of reach?)
ScottScott,
Ah, of course, use this:
$v('P110_PROD_SEARCH') == 'BLAH' && this.data && this.data.modalPageCloseValue
Kind regards
Danblog: http://DanielMcghan.us/
work: http://SkillBuilders.com/APEX/
Twitter: https://twitter.com/dmcghan -
Helps the modal dialog box a value back to the calling page
Greetings,
Apex Version: 4.1.0.0.32
What I'm trying to do is create a modal dialogue that is called from a form page. The user dialog box will report to IR which allow him to select a line and send a value of this line to a field of the calling page. I work in Firefox, but I get an error using IE 8. I hope that someone can show me why it does not work in Internet Explorer.
Here's how I do it:
Of the calling page:
Created a button
Action: Redirect URL
Target URL: javascript:var rc = window.showModalDialog ('f? p = & APP_ID.:70: & SESSION.: & DEBUG.:', ",'resizable: Yes;) Center: Yes; dialogWidth:1000px; dialogHeight:500px ;') ;
On the page called:
The called page is an IR report where the query returns this as one of the columns:
* (Note: I had to put a point '.' before the onclick so he could show in this thread.) It is not there in my actual code.) *
This solves the anchor:select <a href="#" name="z" style="color:blue; text-decoration:underline;" .onclick="javascript:passBack(''' || LOT_NO ||''');">Select</a>' SelectThis , column1 , column2 from sometablename;
Here is the function Javascript is called the anchor onclick:<a .onclick="javascript:passBack('232158');" href="#">Select</a>
When I run the present in Firefox, it works as expected. I click the button on the parent page. The modal dialog box is open and the report of the IR is displayed. I click on one of the links in the report and it returns the correct value to the appellant and closed page modal dialog box.function passBack(passVal1) { opener.document.getElementById("P75_ITEM1").value = passVal1; close(); }
When I run it in IE8, it fails. I click the button on the parent page. The modal dialog box is open and the report of the IR is displayed. I click on one of the links in the report and I get this error: 'opener.document is null or not an object ".
I hope that it is clear and that someone can help.
Thank you
LarryA quick google search determines that window.opener does not exist when you use window.showModalDialog
Range of suggestions to use window.open instead of window.showModalDialog to use instead of window.opener dialogArguments
Try the following:
The parent page to define a getPopupValue() function:
function getPopupValue(){ var dr = window.showModalDialog('f?p=&APP_ID.:70:&SESSION.::&DEBUG.:::','','resizable:yes;center:yes;dialogWidth:1000px;dialogHeight:500px;'); if ( (dr != undefined) && (dr != '') && (dr != false) ){ $x("P75_ITEM1").value = dr; } }
Change the url of the button to call the function:
javascript:getPopupValue();
On the popup page change the valve function for:
function passBack(passVal1) { returnValue = passVal1; close(); }
-
Foglight display size of the modal dialog box
Hello
Dashboards drilled down, I can choose how to display the detailed view. So I chose popup--> the modal dialog box. Now when I click on a line, instead of leading me to another page, it will display a popup window and view detail info. The popup window has a fixed size and I can't change it. Is there a way to change or set a certain size?
Yes. You must change the settings from the view of exploration down, not the parent view. The settings are located under Configuration-> Options of Popup. You can play with the default size, size maximum and scroll bar to display the drilled down. It took me a while to figure this one out myself.
-
I have a parent page that triggers a modal dialog box in APEX 5.0. When the user confirms in the dialog box, it closes the dialog box by using the process of dialogue.
In the parent page, if I do not have a dynamic action "Dialog box closed", the user returned to page with the values, they recently came again here. If I add a closed action dialog box to send the page, the values are lost - it's as if the page refreshes before submitting. Someone knows how to solve this problem.
Thank you.
user3282753 wrote:
Please update your forum profile with a recognizable username instead of "user3282753": Video tutorial how to change username available
Also, is it possible to display the success message from the Page of the dialog box without updating the parent page.
See Roels Blog: display a success message after you close a modal dialog box
Maybe you are looking for
-
service of Firefox without closing the
I use CCCleaner at the end of each session of my PC. Since the FF5 update, I frequently get a message of CC saying he can't clean up because FF is still ongoing. It was after I closed FF. I look in the Manager of tasks, Apps and FF is not there. Howe
-
Satellite A200 - continuous unexpected stops
Hi members, All help is appreciated in simple explanation please. My laptop is still connected to a power source, so I never use battery. Last week, each morning after having been inactive during the night; When I touch the mouse it shutsdown unexpec
-
How to get the form of Boolean control LED (round or square) in Labview 8.6?
Well, it's pretty simple... Can be any kind of response, error, errors, Style ID anything. But I can't seem to find an answer. Help, please
-
Why those my xbox tells me there is a problem with my account and pay a method
I'm trying to pay for an account or on my xbox but it keeps telling me that there is a problem with my account. He told me to visit https://account.live.com but I'm still confused
-
[HELP] H264 video camera trying to change HelloVideoCamera
I am very new to recording video and video encoding of the animals. In this line, I have error 22 camera_error_t error = camera_start_encode(mCameraHandle, NULL, NULL, NULL, NULL, NULL); fprintf(stderr, "camera_start_encode() error %d", error); //