Php - Method cant Insert
Hi, I attempt to insert new data
but i method dont return any value...
this is my code
$crmdomain="https://secure-xxxxxxx.crmondemand.com";
function wslogin() {
global $crmdomain;
$url = $crmdomain."/Services/Integration?command=login";
$page = "/Services/Integration?command=login";
$headers = array(
"GET ".$page." HTTP/1.0",
"UserName: username",
"Password: password",
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_HEADER, true);
$data = curl_exec($ch);
if (!curl_errno($ch)) {
// Show me the result
$sessionid = substr($data,(strpos($data,"Set-Cookie:")+23),(strpos($data,";")-strpos($data,"Set-Cookie:")-23));
curl_close($ch);
return $sessionid;
else
return curl_error($ch);
$sessionid=wslogin();
$lead = array();
$lead = "John ";
$lead = "Smith";
$listOfLead = array('Lead' => $lead);
$leadWS = array('ListOfLead' => $listOfLead);
include_once 'lib/nusoap.php';
$Clase= new SoapClient("lead.wsdl" , true);
$Clase->setcookie("JSESSIONID", $sessionid);
// Error check
$err = $Clase->getError();
if ($err) {
// Show error
echo 'Error with soapclient creation' . $err . '</pre>';
// call won't work
$leadResult=$Clase->call('LeadInsert',array('LeadWS_LeadInsert_Input' => $leadWS));
print_r($leadResult);
Edited by: user10786927 on 19-ene-2009 6:38
Edited by: user10786927 on 19-ene-2009 6:47
If you check out [this other thread|http://forums.oracle.com/forums/thread.jspa?messageID=3417337#3474141] you'll see I posted a utility function that can be used to query, insert, and update any object you have a WSDL for.
Using that function this is how you create an Opportunity and then re-query for it.
$createOpportunity = array(
"OpportunityWS_OpportunityInsert_Input" => array(
"ListOfOpportunity" => array(
"Opportunity" => array(
"OpportunityName" => htmlspecialchars("Some Company", ENT_NOQUOTES, "ISO-8859-1"),
"AccountId" => "1-ZX429",
"Probability" => "10",
"SalesStage" => "Lead",
"CloseDate" => date("m/d/Y", strtotime("+90 days")),
"OpportunityType" => "New Customer-Initial Sale"
$createOpportunityResult = sodCall('wsdl/opportunity.wsdl','OpportunityInsert',$createOpportunity);
$findOpportunity = array(
"OpportunityWS_OpportunityQueryPage_Input" => array(
"ListOfOpportunity" => array(
"Opportunity" => array(
"OpportunityName" => "='Some Company'",
"AccountId" => "",
"Probability" => "",
"SalesStage" => "",
"CloseDate" => "",
"OpportunityType" => ""
$findOpportunityResult = sodCall('wsdl/opportunity.wsdl','OpportunityQueryPage',$findOpportunity);
Similar Messages
-
Hi everyone,
I've got a Flex application that works wonderfully when I test it on my machine locally. It uploads files and send variables to a PHP script (that inserts them into a DB) with no errors when I run it locally. As soon as I put it online, the upload continues to work but something between my Flex application and the PHP script fails because no data is committed to the DB. I know the PHP script works fine - not only does it work when I run the Flex application locally but when I go directly to the PHP file online, a new empty line is added to the DB.
I initially thought that this was a cross domain issue so I added the following to the root of my hosted account:
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*.MYURL"/>
<allow-http-request-headers-from domain="*.MYURL" headers="*" secure="false"/>
</cross-domain-policy>
I based this off of what I found online which seems to have done nothing for me. I'd also be happy to provide an error message but I don't get one when I debug.
Any thoughts would be greatly appreciated.Use a network monitor to see if the Flex app is truly requesting the right URL.
-Alex -
Dreamweaver mx 2004 in a php file I insert in head the
I use dreamweaver mx 2004, well in a php file I insert in
<head> the:
<base href="
http://www.Polis-Land.com/dialup"
/>
but only images[status bar-browser show this] that link to
external popup windows, all other links show eg.:
<a href="/villas/thalassa.php">THALASSA VILLAS -
LATCHI</a>
show
http://www.polis-land.com/villas/thalassa.php
rather than
http://www.polis-land.com/dialup/villas/thalassa.php
the disired , well ?
You can find php file at
http://www.polis-land.com/dialup/villas/villas.php
I have changed only one link I try
<a href="villas/thalassa.php">THALASSA VILLAS -
LATCHI</a>
but same thing...
Please note that images show:
http://www.polis-land.com/dialup#
well ???All links in a template file must be correct based on the
location of the
Template file. DW will manage them for you when you spawn
child pages.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Alan" <[email protected]> wrote in
message
news:C39E9C5B.2E6A11%[email protected]..
>
>
>> You mean make it :
>> <a href="index.php">HOME</a>
>
> No. In the template file that's in the Template folder,
it would be:
> <a href="../index.php">HOME</a>
>
>> Can I use this template for the dsl mode (no base
url) ?
>
> Yes- if by that you mean them to be document relevant
links that actually
> go
> where they point.
>
> --
> Alan
> Adobe Community Expert, dreamweaver
>
>
http://www.adobe.com/communities/experts/
>
>
> -
i need help, i cant insert my cd... just de half
it's the first time that i will use to, i only have 5 days with my new mac bookpro... y at the fisrt time i try to insert i can't
-
Since upgrading to 9.0.1, cant insert TDM plugins on a DAE track
Hi
Just upgraded to 9.0.1 and this problem arrived:
Basically I cant insert any TDM plugins on the DAE tracks. I can insert the same pugins on auxes, outputs, busses, etc but when i try on a track Logic crashes!
Please help
Thank you
PeteSame scenario here. TDM inserts on channels crash the program. Just signed up for Pro Tools course. I have been a Logic guy for 7 years. Sadly, time t move on. My studio is TDM based and Logic has been slowly evolving into a glorified Garage Band. Version 9 is the exit ramp for me.
-
ORA-22370: incorrect usage of method AnyData Insert
When I insert inherited SQL Types as payload into ANYDATA queue I am getting the following error.
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-22370: incorrect usage of method AnyData Insert
ORA-06512: at "SYS.DBMS_AQ", line 243
ORA-06512: at line 15
The above error does not happen if the strucutre is flat and not inherited from other type.
I have DOCUMENT_ADD_EVENT structure extends from EVENT_TYPE. IF I insert DOCUMENT_ADD_EVENT as payload, I get the above error but If I use DOCUMENT_ADD_EVENT_FLAT which does not extend any type works fine.
Here is the example code :
create type event_type as object
name VARCHAR2(100 CHAR),
description VARCHAR2(1000 CHAR),
actor_id number,
source_eid number,
source_scope number,
type VARCHAR2(1 CHAR)
) NOT FINAL NOT INSTANTIABLE;
CREATE TYPE DOCUMENT_ADD_EVENT UNDER event_type
properties DOCUMENT_ADDED
CREATE TYPE DOCUMENT_ADD_EVENT_FLAT AS OBJECT
name VARCHAR2(100 CHAR),
description VARCHAR2(1000 CHAR),
actor_id RAW(16),
source_eid RAW(16),
source_scope RAW(16),
type VARCHAR2(1 CHAR),
properties DOCUMENT_ADDED
DECLARE
d document_type := document_type(2,'document1');
a actor_type := actor_type(2,'actor1','[email protected]');
w workspace_type := workspace_type(2,'MarketingWorkspace');
da document_added := document_added(d,a,w);
--dae document_add_Event := document_add_event(null,null,null,null,null,null,da);
dae document_add_Event_flat := document_add_Event_flat(null,null,null,null,null,null,da);
payload SYS.ANYDATA;
Enq_ct DBMS_AQ.Enqueue_options_t;
Msg_prop DBMS_AQ.Message_properties_t;
Enq_msgid RAW(16);
begin
payload := ANYDATA.convertObject(dae);
Msg_prop.Exception_queue := null;
Msg_prop.Correlation := null;
DBMS_AQ.ENQUEUE('ocs.beehive_events', Enq_ct, Msg_prop, payload, Enq_msgid);
end;
/As said above, the example posted works on 10.2 as well as 9.2.0.5. Can you post a similar example (as my example below) that shows the problem and the exact version of the Oracle database?
SQL> create or replace type xObj as object (
2 name varchar2(32757),
3 constructor function xObj return self as result
4 );
5 /
Type created.
SQL> CREATE OR REPLACE type body xObj as
2 constructor function xObj return self as result is
3 begin
4 name := 'this is a sample';
5 return;
6 end;
7 end;
8 /
Type body created.
SQL> CREATE GLOBAL TEMPORARY TABLE DATA_TABLE ( DATA ANYDATA ) ;
Table created.
SQL> declare
2 inv xobj := xobj();
3 tmp anydata;
4 begin
5 tmp := anydata.convertObject(inv);
6 insert into data_table values(tmp);
7 end;
8 /
PL/SQL procedure successfully completed.
SQL> disconnect
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production
SQL> -
Reenable the PHP tab in insert bar
I was exploring the windows last night and found a few quite
interesting features that way however, I accidentally disabled one
which I often use : the PHP tab in insert bar. I could customise
the favorite tab to have all the PHP elements in it but I'd like to
have it the way it was.
I already did a search about it and found nothing so please
redirect me if I missed the answer, if not I'd appreciate any tip.
Thanks,
DynVAre you working on a PHP page at the time?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"DynV" <[email protected]> wrote in message
news:g9989o$54b$[email protected]..
>I was exploring the windows last night and found a few
quite interesting
> features that way however, I accidentally disabled one
which I often use :
> the
> PHP tab in insert bar. I could customise the favorite
tab to have all the
> PHP
> elements in it but I'd like to have it the way it was.
>
> I already did a search about it and found nothing so
please redirect me if
> I
> missed the answer, if not I'd appreciate any tip.
>
> Thanks,
> DynV
>
>
> -
Php form field inserts return empty string
hello -
i've created a form that has multiple inserts. it inserts the data fine if i manually parse the data to it but when i use the form to test the inserts it errors out.
i've used echo $_post variable and the variable is their. but its not being inserted into the database.
it says that the string cannot be null?
where do i go from here for debugging?
thanks, in advance for your help!
theo werntz iiI've tried entering data but it doesn't insert i've change the column type to longblob from varchar and it still doesnt insert.
here is my code: ignore the numbers and line ending with $
1 <?php require_once('Connections/upics.php'); ?>$
2 <?php$
3 if (!function_exists("GetSQLValueString")) {$
4 function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") $
5 {$
6 if (PHP_VERSION < 6) {$
7 $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;$
8 }$
9 $
10 $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);$
11 $
12 switch ($theType) {$
13 case "text":$
14 $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";$
15 break; $
16 case "long":$
17 case "int":$
18 $theValue = ($theValue != "") ? intval($theValue) : "NULL";$
19 break;$
20 case "double":$
21 $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";$
22 break;$
23 case "date":$
24 $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";$
25 break;$
26 case "defined":$
27 $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;$
28 break;$
29 }$
30 return $theValue;$
31 }$
32 }$
33 $
34 $
35 $uname="guest";$
36 $uname_id = '1' ;$
37 $pt="pictures";$
38 $picPath="pt/img_0.gif"; $
39 $picSize="1024";$
40 $
41 $editFormAction = $_SERVER['PHP_SELF'];$
42 if (isset($_SERVER['QUERY_STRING'])) {$
43 $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);$
44 }$
45 $
46 if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {$
47 $
48 $insertSQL_0 = sprintf("INSERT INTO album (album_id, album_nm, album_dt, album_pt) VALUES ( %s, %s, curdate(), '$pt')",$
49 GetSQLValueString($_POST['album_id'], "int"),$
50 GetSQLValueString($_POST['album_nm'], "text"),$
51 GetSQLValueString($_POST['album_dt'], "date"),$
52 GetSQLValueString($_POST['album_pt'], "text"));$
53 $
54 $insertSQL_1 = sprintf("insert into album_has_user (album_album_id, user_user_id, user_admin_id) values (last_insert_id(), '$uname_id', '$uname_id')",$
55 GetSQLValueString($_POST['album_has_user'], "int"),$
56 GetSQLValueString($_POST['user_user_id'], "int"),$
57 GetSQLValueString($_POST['user_admin_id'], "int"),$
58 $
59 $insertSQL_2 = sprintf("insert into title (title_id, title_title, title_dt, album_album_id, title_memo) values (last_insert_id(), %s, curdate(), last_ins ert_id(), %s)",$
60 GetSQLValueString($_POST['title_id'], "int"),$
61 GetSQLValueString($_POST['title_title'], "text"),$
62 GetSQLValueString($_POST['title_dt'], "date"),$
63 GetSQLValueString($_POST['album_album_id'], "int"),$
64 GetSQLValueString($_POST['title_memo'], "text"));$
65 $
66 $
67 $insertSQL_3 = sprintf("insert into picture (picture_id, picture_dp, picture_sz, picture_df, title_title_id) values (last_insert_id(), '$picPath', '$pic Size', 'N', last_insert_id())", $
68 GetSQLValueString($_POST['picture_id'], "int"),$
69 GetSQLValueString($_POST['picture_dp'], "text"),$
70 GetSQLValueString($_POST['picture_sz'], "text"),$
71 GetSQLValueString($_POST['picture_df'], "text"),$
72 GetSQLValueString($_POST['title_title_id'], "int"));$
73 $
74 echo $_POST['title_title'];
75 $
76 //insert users album if null$
77 mysql_select_db($database_upics, $upics);$
78 $Result1 = mysql_query($insertSQL_0, $upics) or die(mysql_error());$
79 $
80 //insert users many data$
81 mysql_select_db($database_upics, $upics);$
82 $Result2 = mysql_query($insertSQL_1, $upics) or die(mysql_error());$
83 $
84 //insert users title and comments $
85 mysql_select_db($database_upics, $upics);$
86 $Result3 = mysql_query($insertSQL_2, $upics) or die(mysql_error());$
87 $
88 //insert users picuter path$
89 mysql_select_db($database_upics, $upics);$
90 $Result4 = mysql_query($insertSQL_3, $upics) or die(mysql_error()); $
91 $
92 $insertGoTo = "picture_edit.php";$
93 if (isset($_SERVER['QUERY_STRING'])) {$
94 $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";$
95 $insertGoTo .= $_SERVER['QUERY_STRING'];$
96 }$
97 header(sprintf("Location: %s", $insertGoTo));$
98 }$
99 ?>$
100 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">$
101 <html xmlns="http://www.w3.org/1999/xhtml">$
102 <head>$
103 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />$
104 <title>Untitled Document</title>$
105 </head>$
106 $
107 <body>$
108 <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">$
109 <table align="center">$
110 <tr valign="baseline">$
111 <td nowrap="nowrap" align="right">Album Name:</td>$
112 <td><input type="text" name="album_nm" id="album_nm" value="default" size="32" /></td>$
113 </tr>$
114 <tr valign="baseline">$
115 <td nowrap="nowrap" align="center">Title:</td>$
116 <td><input name="title_title" id="title_title" type="text" value="" size="32" /></td>$
117 </tr>$
118 <tr valign="baseline">$
119 <td nowrap="nowrap" align="center">Date:</td>$
120 <td><input name="title_dt" id="title_dt" type="text" value="" size="32" /></td>$
121 </tr>$
122 <tr valign="baseline">$
123 <td nowrap="nowrap" align="center">Comments:</td>$
124 <td><textarea name="title_memo" cols="32" id="title_memo"></textarea></td>$
125 </tr>$
126 <tr valign="baseline">$
127 <td nowrap="nowrap" align="right"> </td>$
128 <td><input type="submit" value="Insert record" /></td>$
129 </tr>$
130 </table>$
131 <input type="hidden" name="album_id" value="" />$
132 <input type="hidden" name="album_dt" value="" />$
133 <input type="hidden" name="album_pt" value="" />$
134 <input type="hidden" name="MM_insert" value="form1" />$
135 </form>$
136 <p> </p>$
137 </body>$
138 </html>$
this is echo: this is the error:
default Column 'title' cannot be null
thanks in advance for you help -
Php/MySQL database insert record issue...
I have a php page that adds an "order" to a mysql database table (orders). One text field in the form is for tires/wheels. The description of the wheels often includes the " symbol for inches after a number....Everything submits fine, however when I look at the page that displays the orders all the data after the " symbol including the " symbol is gone... DOes anyone have any idea why this may be happening? It is requiring us to return and edit that area repeatedly. Any help is appreciated greatly. Thanks for your time.
Ok, so just to summarize so I am understanding this correctly. You have an ordering page for tires/wheels. A customer places an order for tires/wheels and the data is submitted successfully and this includes a symbol for measurement (in.). But on another summary page the symbol is returning a blank value.
If this is correct we need to see:
- First, the code that is inserting the symbol to the database table in question
- Second, the query and code where you are printing the data to the screen. -
PHP/MySQL Record Insert question
I am working with which PHP 4.4.2, MySQL Server 5.0 running
on Apache 2.0.55, and I am developing my web-site with Dreamweaver
8. All of which is running locally on my machine.
I am working on a real-estate website that allows landlords
around my local area to login to the web-site and add their
apartment or housing rental units into a database that students
that go to my small university can browse and search through. The
landlords register through a form that loads into a 'landlords'
table in the database and MySQL auto-increments an ID into a
'landlord_id' column which obviously assigns them their
'landlord_ID'.
My question is: When the landlord is filling out the form to
add one of their rental units ( which loads into a separate table I
called 'sites'), how can I make their 'landlord_id' (which resides
in the 'landlords' table) be entered into the 'landlord_id' column
in the 'sites' table for each site that they enter into the
database?
I'm trying to do this because when the landlord first logs
in, I'm going to have a dynamic table that displays all of the
sites they already have entered in the database, and only displays
their sites that they have already entered in by only displaying
the sites that have their 'landlord_id' in the site record.
Thanks so much for your help, and if I'm being confusing at
all, please reply or email me so I can clarify.Cade06 wrote:
> Thanks alot for your reply, but I am completely new to
MySQL, and I am not
> quite sure how the syntax works. When you say " WHERE
landlord_username =
> 'whatever' "I'm not sure what needs to go in the
'whatever' portion of the
> code. Do I need to insert static text here or something
else? I am totally out
> of my element here, sorry :-/
It's probably not so much MySQL syntax that's the problem for
you, but a
lack of understanding how to work with Dreamweaver
recordsets, server
behaviors, and sessions. Building database-driven sites with
Dreamweaver
isn't difficult, but there are a lot of things involved.
The Log In User server behavior automatically creates a
session variable
called $_SESSION['MM_Username']. You can use this as a
parameter to pass
to the SQL query in the Advanced Recordset dialog box. In the
SQL area
you would type (I'm guessing the name of your table and the
username
column):
SELECT landlord_id FROM landlords
WHERE landlord_username = 'col1'
Then click the plus button above the Variables area, and
create a
Parameter with the following values:
Name: col1
Default value: 1
Runtime value: $_SESSION['MM_Username']
You can then extract the result of the recordset, and assign
it to a
session variable like this:
$_SESSION['landlord_id'] = $row_recordsetName['landlord_id'];
> Also, I understand that I need to do this on the login
page, but do I need to
> define the recordset again on the add_site page as well?
I guess I'm still not
> quite clear on how I specify the session variable as the
value that needs to be
> entered in the sites table as the landlord_ID.
As long as the session is still valid (which it would be if
you use
Restrict Access to Page), you will always have access to that
landlord's
id through $_SESSION['landlord_id'].
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/ -
Efficient method to insert large number of data into table
Hi,
I have a procedure that accepts an input parameter, that contains, a comma seperated values as input.
Something like G12-UHG,THA-90HJ,NS-98039,........There can be more than 90,000 values in that comma seperated input paramter.
What is the most efficient way to do an insert in this case?.
3 methods I have in mind are :
1) Get individual tokens from CSV and use a plain old loop and do an insert.
2) Use BULK COLLECT & FOR ALL. However I don't know how to do this, since input is not from cursor, rather a parameter.
3) Use Table collections. Again this involves plain old looping through the collection. Same as 1st method.
Please do suggest the most efficient method.
Thanks90,000 values?? Whats the data type of the input parameter?
you can use the string to row conversion trick if you want and do a single insert
SQL> with t as (select 'ABC,DEF GHI,JKL' str from dual)
2 select regexp_substr(str,'[^,]+', 1, level) list
3 from t connect by level <= NVL( LENGTH( REGEXP_REPLACE( str, '[^,]+', NULL ) ), 0 ) + 1
4 /
LIST
ABC
DEF GHI
JKL Edited by: Karthick_Arp on Feb 13, 2009 2:18 AM -
I Cant insert all values to the table But only Default Values r inserted?
Hai,
i can insert only default values to the database. Other values are not shown in DB.
Steps I have done so far:
I have created EO based on VO and VO has the query : select * from emp. Attached to AM.
That AM is attached to the Page. The page consists of employeed details and SAVE button.
Set controller for that page and CO-PR calls create method in AM .
Default values for who columns and SLNo also set through sequence.
In CO-PFR I call apply method which commits the data.
when i run the page and giving values it is not inserted into table but only default values are inserted.
I checked with System.out.println(getattribute("my attr").toString()). It send output correctly.
But y other values are not inserted.?
Anybody plz plz help me in this regard. I am struggling with this for last 1 week. I have to apply this to another realtime scenorio? Deadline is near.
Regards,
Lakshmi ChandiranHai Prince,
Thanks for your immediate response. pls find my codes written in EO,AM,CO.
In VO i havent added anythig xcept the query.
The following fields are only getting inserted in the table.
My EOImpl code:
public void create(AttributeList attributeList) {
super.create(attributeList);
System.out.println("NOW I AM IN CREATE METHOD");
OADBTransaction transaction = getOADBTransaction();
Number EMP_ID = transaction.getSequenceValue("Employeeid");
setEmpId(EMP_ID);
setCreationDate(transaction.getCurrentDBDate());
setStartDate(transaction.getCurrentDBDate());
setLastUpdateDate(transaction.getCurrentDBDate());
setCreationDate(transaction.getCurrentDBDate());
VO:
select * from emp1
AM:
public void saveForm()
OAViewObjectImpl empvo = getEMP_VO();
System.out.println("NOW I AM IN AM SAVEFORM OF EMTS");
if ( !empvo.isPreparedForExecution())
empvo .executeQuery();
Row prow = empvo .createRow();
empvo .insertRow(prow);
prow.setNewRowState(Row.STATUS_INITIALIZED) ;
System.out.println("NOW I AM IN ROW CREATED");
public void commitdata()
System.out.println("commitMethod()") ;
getDBTransaction().commit();
CO:PR & PFR:
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
if(!pageContext.isFormSubmission())
pageContext.getApplicationModule(webBean).invokeMethod("saveForm",null);
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule EMP_AM = pageContext.getApplicationModule(webBean);
OAViewObject vo = (OAViewObject)EMP_AM.findViewObject("EMP_VO");
if ( pageContext.getParameter("BtnSave") != null )
pageContext.getApplicationModule(webBean).invokeMethod("commitdata");
s1 = (String)vo.first().getAttribute("Empname");
s12 = (String)vo.first().getAttribute("Emptype");
s3 = (String)vo.first().getAttribute("Emporg");
s4 = (String)vo.first().getAttribute("Empcity");
System.out.println(" values are " + s1+s2+s3+s4);
here i can get the values correctly printed in output as entered in the form.
I dont know where the problem is.
plz help me.
Thanks in advance,
Regards,
Lakshmi Chandiran -
How CallableStatement in JSP use setDate() method to insert the date value into DB?
Dear all,
I met a strange error message when i insert a date value into DB via JSP call PL/SQL procedures.
The error seems caused by the setDate(index, date) method with CallableStatement.
The message is: Can not find the setDate(int, java.util.Date) method in the CallableStatement interfaces.
Any ideas?
Thanks advanced.Thank you!:)
I solved it using this:
String name="david";
stmt = con1.createStatement();
String prikaz1 = "INSERT INTO table (id,age,surname,name) IN 'C:\\Users\\David\\Desktop\\db.mdb' SELECT id,age,surname,' " + name + " ' FROM table2";
stmt.executeUpdate(prikaz1); -
Cant Insert non-ascii characters?
I need to insert and retrieve non-ascii characters from Oracle8i using PHP. How is this done? Do I need to change the NLS settings? How is this done?
I also using PHP.
Thanks
PeteOk, I solved the problem.
I had to put at the top request.setCharacterEncoding("utf-8");
Spencer -
hi guys,
am using java as my front end and oracle 10g as the back end. i need to find out which is the fastest way to insert bulk( say about 100 records) of data in the database. i've used statement, prepared statements, callable statement, Updatebatch and forall. can anyone suggest someother way to insert data in a faster method.Tom Kyte discusses such an issue here.
Regards,
Georger
user10894075 wrote:
hi guys,
am using java as my front end and oracle 10g as the back end. i need to find out which is the fastest way to insert bulk( say about 100 records) of data in the database. i've used statement, prepared statements, callable statement, Updatebatch and forall. can anyone suggest someother way to insert data in a faster method.
Maybe you are looking for
-
Open order quantity for "PurRqs" and Purchase Order"
Hi, In one of my report I have to display the "Open Quantity" for 'PurRqs' I am using logic as follows: Input the "Pur Req" and its "Item Number" in table EBAN in the fields EBAN- BANFN and EBAN- BNFPO and fetch the value of fields EBAN- MENGE and E
-
No calendar alerts since OS upgrade
or is it another DST issue? I just realized that I've been missing events because my iPhone is no longer alerting me with what's on my calendar, even though it's still set up to do so. Have others been seeing this? Message was edited by: HaoleKai
-
How to change length of line in Photoshop CS3
I must be being really stupid, but I can't find out how to change the length of a line I've drawn in PS using the line tool. Can anyone help me out?
-
Importing a model from a configurator to a custom table
Hi, I'm new to Configurator. Can someone please advice in detail how to import all possible combinations from a model in the configurator to a custom table? I have created a custom table based on the items in the model. I have also written a CIO whic
-
Hi All, We have an urgent business requirement - Appreciate for an favourable response and help on this. In our current system setting for payment card There are two different A/R G/L account one is 124040 and 124035 which has been assigned with C