Processing input from .swf script and sending result
Hello;
I am slugging through the processing of data posted from an Flash based form. I have a dev server that uses php to
process input.
The php script produces the following test php file variable array:
$input['VE'] = 't';
$input['A'] = 't';
$input['ML'] = '5.1';
$input['SA'] = 't';
$input['SV'] = 't';
$input['PT'] = 'External';
$input['DEB'] = 't';
$input['DP'] = '72';
$input['AVD'] = 'f';
$input['PR'] = 't';
$input['SB'] = 'f';
$input['AR'] = '1.0';
$input['WD'] = 'f';
$input['COL'] = 'color';
$input['MP3'] = 't';
$input['LFD'] = 'f';
$input['R'] = '1440x900';
$input['L'] = 'en';
$input['TLS'] = 't';
$input['SP'] = 'f';
$input['M'] = 'Adobe Macintosh';
$input['EV'] = 't';
$input['OS'] = 'Mac OS 10.5.7';
$input['AE'] = 't';
$input['V'] = 'MAC 10,0,2,54';
$input['ACC'] = 'f';
The following is the .as code
var versionString:String = Capabilities.version;
var pattern:RegExp = /^(\w*) (\d*),(\d*),(\d*),(\d*)$/;
var result:Object = pattern.exec(versionString);
if(result != null)
trace("input: "+ result.input );
trace("plateform: "+ result[1]);
trace("major version: "+ result[2]);
trace("major version: "+ result[3]);
trace("build number: "+ result[4]);
trace("internal build number: "+ result[5]);
else
trace("unable to match regular expression");
var url:String = "http://192.168.1.7/asHandler.php";
var request:URLRequest = new URLRequest(url);
request.method = URLRequestMethod.POST;
request.data = new URLVariables(Capabilities.serverString);
var loader:URLLoader = new URLLoader(request);
The Question:
What do all the variables sent to the server mean in this context?
And, is there a tutorial focusing on form handling with Actionscript 3.0?
Thank you for info, etc
JK
I finally got the answer to this. I found it in the Action Script 2.0 and 3.0 reference documents
under capabilities.
JK
Similar Messages
-
Since downloading the new operating system on my iPhone 4S, I'm having trouble with my phone messaging. I enter a number or input a number from my contacts and send my message. I then receive a error message stating the message can't be sent and it shows a set of "1s" were added in front of the number I entered. Ex: 1 (1) xxx-xxx-xxxx. Does anyone know why this is happening and how I can fix it?
I realize this. When calling prepaid cus service it only gives you the option to input your #. If you dont the system hangs up on you. When I input my number the system doesnt recognize it and hangs up on me.
-
BPEL process to create a PDF and send it as attachment in SOAP response
We have a requirement to have a webservice created using BPEL, which can receive input from a client and create a PDF using the input and send the PDF as attachment in the SOAP response.
We have found the below link in Oracle docs and our basic understanding on the functionality given is that the MIMEService is being used to read a SOAP attachment from some other service and send it as an attachment in the SOAP response to the requester. As explained above, this doesn't completely satisfy our requirement.
http://docs.oracle.com/cd/E11036_01/integrate.1013/b28981/manipdoc.htm#BABCJIAH
Please suggest if there is any other approach that suites our requirement.
Thanks.Hi,
I have a Weblogic webservice which returns me a PDF attachment as resposne ( here I have MIME related stuff).I need to get attachment as bpel response.
I have created a BPEL process to invoke the weblogic webservice. I have explictly added the MIME part in bpel.wsdl same as weblogic webservice wsdl.
I tried to assign the response variable( of type base64binary) of bpel.wsdl and my webservice .wsdl . I am getting some error with no attachment.
Below is my xsd used in BPEL.wsdl*
<?xml version="1.0" encoding="UTF-8"?>
<schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/MIMEApp/test/BPELProcess1"
xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="process">
<sequence>
<element name="input" type="string"/>
</sequence>
</complexType>
<complexType name="processResponse">
<sequence>
<element name="result" type="string"/>
</sequence>
</complexType>
<complexType name="GetAttachmentPDF">
<sequence>
<element minOccurs="0" name="Pdf" nillable="false" type="base64Binary"/>
</sequence>
</complexType>
</schema>
Below is my BPEL.wsdl*
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="BPELProcess1"
targetNamespace="http://xmlns.oracle.com/MIMEApp/test/BPELProcess1"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:client="http://xmlns.oracle.com/MIMEApp/test/BPELProcess1"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/">
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TYPE DEFINITION - List of services participating in this BPEL process
The default output of the BPEL designer uses strings as input and
output to the BPEL Process. But you can define or import any XML
Schema type and use them as part of the message types.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/MIMEApp/test/BPELProcess1"
schemaLocation="xsd/BPELProcess1.xsd"/>
</schema>
</wsdl:types>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MESSAGE TYPE DEFINITION - Definition of the message types used as
part of the port type defintions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<wsdl:message name="BPELProcess1RequestMessage">
<wsdl:part name="payload" type="client:process"/>
</wsdl:message>
<wsdl:message name="BPELProcess1ResponseMessage">
<wsdl:part name="payload" type="client:processResponse"/>
<wsdl:part name="attachment" type="client:GetAttachmentPDF"/>
</wsdl:message>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PORT TYPE DEFINITION - A port type groups a set of operations into
a logical service unit.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- portType implemented by the BPELProcess1 BPEL process -->
<wsdl:portType name="BPELProcess1">
<wsdl:operation name="process">
<wsdl:input message="client:BPELProcess1RequestMessage"/>
<wsdl:output message="client:BPELProcess1ResponseMessage"/>
</wsdl:operation>
</wsdl:portType>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PARTNER LINK TYPE DEFINITION
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<plnk:partnerLinkType name="BPELProcess1">
<plnk:role name="BPELProcess1Provider">
<plnk:portType name="client:BPELProcess1"/>
</plnk:role>
</plnk:partnerLinkType>
<wsdl:binding name="BPELProcess1SOAP11Binding" type="client:BPELProcess1">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="process">
<soap:operation style="rpc"
soapAction="http://xmlns.oracle.com/MIMEApp/test/BPELProcess1/process"/>
<wsdl:input>
<soap:body use="literal"
namespace="http://xmlns.oracle.com/MIMEApp/test/BPELProcess1"/>
</wsdl:input>
<wsdl:output>
<mime:multipartRelated>
<mime:part>
<soap:body use="literal"
namespace="http://xmlns.oracle.com/MIMEApp/test/BPELProcess1"/>
</mime:part>
<mime:part>
<mime:content part="attachment" type="application/pdf"/>
</mime:part>
</mime:multipartRelated>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
</wsdl:definitions>
Below is my WL WS WSDL*
<?xml version="1.0" encoding="UTF-8"?>
<WL5G3N0:definitions
name="NewWSDLFile"
targetNamespace="http://www.example.org/NewWSDLFile/"
xmlns:WL5G3N5="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:WL5G3N4="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:WL5G3N3="http://www.example.org/NewWSDLFile/"
xmlns:WL5G3N2="java:com.rogers.service"
xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/"
xmlns:WL5G3N1="http://www.w3.org/2001/XMLSchema"
>
<WL5G3N0:types>
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="java:com.rogers.service"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="java:com.rogers.service"
xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://www.w3.org/2001/XMLSchema"
xmlns:s2="java:com.rogers.service" xmlns:s3="http://www.example.org/NewWSDLFile/"
xmlns:s4="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s5="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.org/NewWSDLFile/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="GetAttachmentPDF">
<xsd:sequence>
<xsd:element minOccurs="0" name="Pdf" nillable="false" type="xs:base64Binary"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="GetAttachmentResult">
<xsd:sequence>
<xsd:element minOccurs="1" name="Message" nillable="true" type="xs:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</WL5G3N0:types>
<WL5G3N0:message name="NewOperationRequest">
<WL5G3N0:part name="GetAttachment" type="WL5G3N1:string"/>
</WL5G3N0:message>
<WL5G3N0:message name="NewOperationResponse">
<WL5G3N0:part name="NewOperationResponse" type="WL5G3N2:GetAttachmentResult"/>
<WL5G3N0:part name="attachment" type="WL5G3N2:GetAttachmentPDF"/>
</WL5G3N0:message>
<WL5G3N0:portType name="NewWSDLFile">
<WL5G3N0:operation name="NewOperation">
<WL5G3N0:input message="WL5G3N3:NewOperationRequest"/>
<WL5G3N0:output message="WL5G3N3:NewOperationResponse"/>
</WL5G3N0:operation>
</WL5G3N0:portType>
<WL5G3N0:binding name="NewWSDLFileSOAP" type="WL5G3N3:NewWSDLFile">
<WL5G3N4:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<WL5G3N0:operation name="NewOperation">
<WL5G3N4:operation soapAction="http://www.example.org/NewWSDLFile/NewOperation"/>
<WL5G3N0:input>
<WL5G3N4:body use="literal" namespace="http://www.example.org/NewWSDLFile/"/>
</WL5G3N0:input>
<WL5G3N0:output>
<WL5G3N5:multipartRelated>
<WL5G3N5:part>
<WL5G3N4:body use="literal" namespace="http://www.example.org/NewWSDLFile/"/>
</WL5G3N5:part>
<WL5G3N5:part>
<WL5G3N5:content part="attachment" type="application/pdf"/>
</WL5G3N5:part>
</WL5G3N5:multipartRelated>
</WL5G3N0:output>
</WL5G3N0:operation>
</WL5G3N0:binding>
<WL5G3N0:service name="NewWSDLFile">
<WL5G3N0:port name="NewWSDLFileSOAP" binding="WL5G3N3:NewWSDLFileSOAP">
<WL5G3N4:address location="http://localhost:7001/something/NewWSDLFileImpl"/>
</WL5G3N0:port>
</WL5G3N0:service>
</WL5G3N0:definitions>
I refered the below link:
http://docs.oracle.com/cd/B14099_19/integrate.1012/b14448/manipdoc.htm.
4.16.1.1 WSDL File Contents
They are using ra:writeBinaryToFile() and ora:ReadBinaryFromFile(). I couldnt get a proper sample to understand the use of these functions.
Please advise.
Regards
Ipsita -
How do I extract email from a form and send the PDF to that user?
How do I extract email from a form and send the PDF to that user?
here you can add email to send to, CC, Subject, and body message
var oDoc = event.target;
oDoc.mailDoc({
bUI: false,
cTo: "Agency Contact Email",
cCC: "",
cSubject: "Write your title here,
cMsg: "Dear" + AgencyContact + "(" + AgencyContactEmail + ")\nThe student, " + FirstName + " " + LastName + " has applied to work at your agency. Please confirm they can work here blah blah blah.......\n\nThanks.\n\nrespectuflly,\n\nme" -
I need my application to be able to open a .pdf file which was previously synced to the iBooks PFDs Collection. I then wish to remove the file from the collection and send it to email.
I opened one of the PDF files in notepad and these are the first couple lines:
瀖ᕁމጿ␠씴豈䧉筩롈ꓳ劏ꎯ僪뚢頟뻏즏谀㿃夑퀉鲲쮂⫉笿褡밤籞冁탁ӓ轸뿐笼ⵆ횰䄌ඁ淥ة寨闤⬅鳦팥링빨嬄敎უ婏㣴ً鮓ࣿꢚ㑀녲莒ိȆ䕇纍쉉籶뺝갞伐쮠᥏넉釖ȓ겴☧ ἣ秵駻�䣞띰㖔流羀籔朼敨ꢉ糶당⬤俉膇䄐惡�ಹꛖ鍡恡ⱶᶜ�堷﹑ﱌ僿걄뎔æ䋷귪⛢⫐䅪䉙烶ꖆ႟ᗔ瘞狻틫儩六잶覱낵듘盋崾�ᦜ㺆௹뻹燴ឋ騙쬄ꏿ뽒煹�钼뇲腎稦ꃲ㈃沒ꔈ뺐뛽첑䘶畱䍣紻 ⁜哠鳾 -
Need to grab the data from Web Page and send it to SAP using PI
Hello Experts,
I need to grab the exchanges rates from the below link.
http://www.cbr.ru/scripts/XML_daily.asp?date_req=09-06-2011.
This link returns an XML . I need to get the data from this XML page and post it to SAP ECC using PI.
My requirement is that, process should start from the ECC and grabs the data from the web page which gives you the XML and post this data into ECC using PI. We have a RFC written in ECC side to post the data in ECC.
Please help me to identify the adaptor's needed and what should I need to do to initiate the process from ECC.
Would it be a Async or Sync process ?
I would really appreciate the inputs.
Thanks.
Gaurav.Hi,
Any particular reason that you want to go for a sync process as then you would need to either use a BPM (RFC to BPM where you use sync/async bridge to get the xml file from the specified link and then send the response back to ECC) or go for a synchronous Java proxy on the receiver side which will grab the exchange rates and then map back to the RFC response structure. In this case, you can avoid the BPM.
Else, as mentioned in Michal's blog, you can break it up into 2 seperate scenarios. RFC/Proxy to File and then File to IDoc/RFC/Proxy which will get the exchange rates into ECC.
Another option can be Proxy --> PI --> ECC(IDoc/Proxy/RFC). Here you can grab the exchange rates from the link in your message mapping through a UDF.
Regards -
How to accept user inputs from sql script
I want to create Tablespace useing sql script , but the location of the data file I need accept from user . (to get the location of the data file ) .
How can I accept user input from pl/sql .
Example :
CREATE TABLESPACE TSPACE_INDIA LOGGING
DATAFILE 'H:\ORACLE_DATA\FRSDB\TSPACE_INDI_D1_01.dbf'
SIZE 500M AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL;here I need to accept location of the datafile from user ie : 'H:\ORACLE_DATA\FRSDB\TSPACE_INDI_D1_01.dbf'Hi,
Whenenever you write dynamic SQL, put the SQL text into a variable. During development, display the variable instead of executing it. If it looks okay, then you can try executing it in addition to displaying it. When you're finished testing, then you can comment out or delete the display.
For example:
SET SERVEROUTPUT ON
DECLARE
flocation VARCHAR2 (300);
sql_txt VARCHAR2 (1000);
BEGIN
SELECT '&Enter_The_Path'
INTO flocation
FROM dual;
sql_txt := 'CREATE TABLESPACE SRC_TSPACE_INDIA LOGGING
DATAFILE' || flocation || ' "\SRC_TSPACE_INDI_D1_01.dbf" ' || '
SIZE 500M AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL ';
dbms_output.put_line (sql_txt || ' = sql_txt');
-- EXECUTE IMMEDIATE sql_txt;
END;
/When you run it, you'll see something like this:
Enter value for enter_the_path: c:\d\fubar
old 5: SELECT '&Enter_The_Path'
new 5: SELECT 'c:\d\fubar'
CREATE TABLESPACE SRC_TSPACE_INDIA LOGGING
DATAFILEc:\d\fubar
"\SRC_TSPACE_INDI_D1_01.dbf"
SIZE 500M AUTOEXTEND ON NEXT 1280K MAXSIZE
UNLIMITED
EXTENT MANAGEMENT LOCAL = sql_txt
PL/SQL procedure successfully completed.This makes it easy to see that you're missing a space after the keyword DATAFILE. There are other errrors, too. For example, the path name has to be inside the quotes with the file name, without a line-feed between them, and the quotes should be single-quotes, not double-quotes.
Is there some reason why you're using PL/SQL? In SQL, you can just say:
CREATE TABLESPACE SRC_TSPACE_INDIA LOGGING
DATAFILE '&Enter_The_Path\SRC_TSPACE_INDI_D1_01.dbf'
SIZE 500M AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL;though I would use an ACCEPT command to given a better prompt.
Given that you want to use PL/SQL, you could assign the value above to sql_txt. If you need a separate PL/SQL variable for flocation, then you can assign it without using dual, for example:
DECLARE
flocation VARCHAR2 (300) := '&Enter_The_Path';The dual table isn't needed very much in PL/SQL.
Edited by: Frank Kulash on Jan 10, 2013 6:56 AM -
Generate XML report from the database and send EMail - BPEL 10g
Hello,
I was looking for the solution to generate XML report with the values from databaseadapter (select result from any table ) this result can be hundred's of records.
so I have to generate the xml report from the result I received from DBADapter and send an email with that XML. I am stuck with how to generate XML ? Can any one please help me.
Thank you very muchHello,
I was looking for the solution to generate XML report with the values from databaseadapter (select result from any table ) this result can be hundred's of records.
so I have to generate the xml report from the result I received from DBADapter and send an email with that XML. I am stuck with how to generate XML ? Can any one please help me.
Thank you very much -
Accept input from Shell script in sql*plus
Hey! Guys..
i need the following info.
I am running a shell script from sql*plus. I need to accept a value from shell script into my .sql file.
thanks..
Harsh.prompt for input, pass to another shell
# contract_status_prompt.sh
read udate?"Enter week-ending date in format dd-mmm-yyyy: "
contract_status_update.sh $udate >$FDWLOG/current/contractstatusupdate`date +%d%h%y`.log
echo `date`
# End contract_status_prompt.sh
Read the variable passed and use in SQLPlus:
# contract_status_update.sh
echo "Running contract_status.sh"
echo "create records for contract_status"
echo `date`
echo " "
echo " date used is "; print $1
echo " "
sqlplus <<exit
@$FDWSQL/sqlparms
set time on
prompt *** Set contract_status_period ***
update contract_status_period
set period_date = '$1';
commit;
exit
etc. -
How to get the value from a JavaScript and send the same to Java file?
Hi.
How to get the value from a JavaScript (this JS is called when an action invoked) and send the value from the JS to a Java file?
Thanks and regards,
Leslie VYes, I am trying with web application.
In the below code, a variable 'message' carries the needed info. I would like to send this 'message' variable with the 'request'.
How to send this 'message' with and to the 'request'?
Thanks for the help :-)
The actual JS code is:
function productdeselection()
var i=0;
var j=0;
var deselectedproduct = new Array(5);
var message = "Are you sure to delete Product ";
mvi=document.forms[0].MVI;
mei=document.forms[0].MEI;
lpi=document.forms[0].LPI;
if(null != mvi)
++i;
if(null != mei )
++i;
if(null != lpi)
++i;
if(null != mvi && mvi.checked)
deselectedproduct[++j]="MVI?";
if(null != mei && mei.checked)
deselectedproduct[++j]="GAP?";
if(null != lpi && lpi.checked)
deselectedproduct[++j]="LPI?";
if( 0!=j)
if(i!=j)
for (x=0; x<deselectedproduct.length; x++)
if(null != deselectedproduct[x])
message =message+ "-" +deselectedproduct[x];
alert(message);
else
//alert(" You cannot remove all products!");
return false;
return true;
} -
Upload file from local PC and send to RFC function
Hi to all,
I have a web dynpro that do a procedure which creates a file pdf in a temp folder on my local PC. I need to upload this file and send it to an RFC function module (R/3 4.6c) which saves it to DMS on r/3 system. Which java code I have to implement to handle this file? Which kind of data type I have to create on my Func module to storage the file? and how can I save it to DMS (I have to create a new document)?
I hope I was clear.
Thank you very much
Enricohi,
regarding Functional Module storage
how to upload a pdf file and download/open it
PDF Upload
from web dynpro side you can use upload UI element
How to Upload PDF file in to Web Dynpro
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/288e9c7d-0c01-0010-5382-dbec82af50b2
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
regards,
Pradeep -
i have 4 ipods on itunes but my computer was running slow so i put windows 7 on it but it wants me to sync my ipod but if i do i will lose all my music on my ipod how do i take my music and send it to my playlist so i can sync myipod so i won't lose any music
Sync is only oneway, from PC to your device. Unless you have the music on your PC, iTunes is going to wipe out what you have on your device if you are syncing to a new library.
You can only transfer Purchased music over to Itunes on your PC.
iTunes Store: Transferring purchases from your iOS device or iPod to a computer
http://support.apple.com/kb/HT1848
As for you own music, you may have to use a third party software. A good Free one is called Sharepod which you can download from Download.com here:
http://download.cnet.com/SharePod/3000-2141_4-10794489.html?tag=mncol;2 -
How to invoke from UNIX script and pass back return code?
Though I am an experienced developer, I am new to java. I created a class containing a single method. I have performed my testing by running the class class.method from the command line in a UNIX (Solaris) environment. Now, I would like to have the class.method invoked from a UNIX shell script, and to return a success/failure indicator from the method, to the UNIX script. I modified the method to make it return char, rather than being defined as void. Within the class and method, I declared and initialized a char variable. I added a finally clause which contains a single return statement, returning the char return code variable. Within my UNIX script, I invoke the class/method as follows:
return_code = java myClass
This does not seem to be invoking the method however. Can someone please tell me what I am doing wrong? Or is more information needed in order for someone to help me out.
Please let me know.
Thanks.
Bradstdunbar,
Using your suggestion of System.exit(retVal); seems to allow the java method to be performed successfully (Thank You). But I am still having a problem with the value being recognized by the shell script.
In my script, I'm doing the following:
java MyClass inputparameter > return_code
export return_code
echo $return_code
But return_code does not seem to contain a value. Just before the System.exit(retVal); I added System.out.println("return code = " + retVal ); and I can see that retVal. When I run the java method outside of the UNIX shell script, I can see that retVal does indeed contain a value. So I think my problem might actually be the code in the UNIX script.
Thanks again.
Brad -
I want to take an Input from the Page and pass to a plsql package
Here i am extending a controller class i am get number of errors can you plz chk the syntax:-----
I am taking Attribute1 ,2,3 from the page and input it into procedure and get the out variable into project number in the page:----
public class adtDetailDataInputCO extends oracle.apps.ap.oie.webui.DetailDataInputCO
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
public void assignProjectNumber(OAPageContext pageContext, OAWebBean webBean)
OAApplicationModule oaapplicationmodule = pageContext.getApplicationModule(webBean);
OADBTransaction dbtrans = oaapplicationmodule.getOADBTransaction();
OAViewObject vo = (OAViewObject)oaapplicationmodule.findViewObject("OneReceiptBasedVO");
for (Row row = vo.first();
row != null;
row = vo.next())
String lattribute1 = (String) row.getAttribute("Attribute1");
String lattribute2 = (String) row.getAttribute("Attribute2");
String lattribute3 = (String) row.getAttribute("Attribute3");
String lProjectNumber="";
String l_status="";
String l_message="";
if (lattribute1 != null && lattribute2 != null && lattribute3 != null)
OADBTransaction txn = oaapplicationmodule.getOADBTransaction();
CallableStatement cs = txn.createCallableStatement("begin ADTP_PA_COMMON_UTILITY.get_project_from_tcc(:1,:2,:3,:4,:5,:6); END;",1);
try
cs.setString(1,lattribute1);
cs.setString(2,lattribute2);
cs.setString(3,lattribute3);
cs.registerOutParameter(4, Types.VARCHAR, 200);
cs.registerOutParameter(5, Types.VARCHAR, 0, 2000);
cs.execute();
l_status = cs.getString(4);
l_message = cs.getString(5);
cs.close();
catch (SQLException sql)
System.out.println(sql.getLocalizedMessage());
cs.close();
row.setAttribute("ProjectNumber",lProjectNumber);
row.setAttribute("TaskNumber",lTaskNumber);
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
assignProjectNumber(pageContext, webBean);
}I've done a similar PL/SQL package call using the following:
You need update or add the following to your EO using the following:
public class AcctMapEOImpl extends OAPlsqlEntityImpl //replaced with OAPlsqlEntityImpl
public void create(AttributeList attributeList)
Number n = new Number(0);
if (getEntityState() != STATUS_NEW)
super.create(attributeList);
OADBTransaction transaction = getOADBTransaction();
setFormId(n);
setCreationDate(transaction.getCurrentDBDate());
setLastUpdateDate(transaction.getCurrentDBDate());
setCreatedBy(getCreatedBy());
setLastUpdatedBy(getCreatedBy());
public void insertRow()
try
OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)getDBTransaction();
String a = "begin apps.spl_jdev_api_item_console.spl_create_part(p_acct_nbr =>:1,p_part_nbr =>:2,p_part_desc =>:3,p_part_price =>:4,p_bin_bulk_yn =>:5,p_case_lot_yn =>:6,p_serial_yn =>:7,p_repack_yn => null,p_part_length =>:8,p_part_width =>:9,p_part_height =>:10,p_part_weight =>:11,p_done_flag =>null,p_creation_date =>null,p_uom =>:12,p_revision =>null,p_trans_type =>:13,p_lock_flag =>null,p_lock_id =>null,";
String b = "p_item_status =>null,p_hazard_class_id =>:14,p_shelf_life_code =>null,p_part_weight_uom =>null,p_volume_uom =>null,p_unit_volume =>null,p_dimension_uom =>null,p_un_number_id =>null,p_un_num_desc =>null,p_haz_id_desc =>null,p_last_update_date =>null,p_last_updated_by =>null,p_created_by =>:15,p_process_key =>null,p_part_type => null,p_comm_code => null,p_cat_desc0 => null,p_attribute1 =>:16,p_attribute2 =>:17,";
String c = "p_attribute3 =>:18,p_attribute4 =>:19,p_attribute5 =>:20,p_attribute6 =>:21,p_attribute7 =>:22,p_attribute8 =>:23,p_attribute9 =>:24,p_attribute10 =>:25,p_attribute11 =>:26,p_attribute12 =>:27,p_attribute13 =>:28,p_attribute14 =>:29,p_attribute15 =>:30); end;";
String s = (a+b+c);
OracleCallableStatement oraclecallablestatement = (OracleCallableStatement)oadbtransactionimpl.createCallableStatement(s, -1);
oraclecallablestatement.setString(1,getAcctNbr());
oraclecallablestatement.setString(2,getPartNbr());
oraclecallablestatement.setString(3,getPartDesc());
oraclecallablestatement.setNUMBER(4,getPartPrice());
oraclecallablestatement.setNUMBER(5,getBinBulkYn());
oraclecallablestatement.setString(6,getCaseLotYn());
oraclecallablestatement.setString(7,getSerialYn());
oraclecallablestatement.setNUMBER(8,getPartLength());
oraclecallablestatement.setNUMBER(9,getPartWidth());
oraclecallablestatement.setNUMBER(10,getPartHeight());
oraclecallablestatement.setNUMBER(11,getPartWeight());
oraclecallablestatement.setString(12,getUom());
oraclecallablestatement.setString(13,getTransType());
oraclecallablestatement.setNUMBER(14,getHazardClassId());
oraclecallablestatement.setNUMBER(15,getCreatedBy());
oraclecallablestatement.setString(16,getAttribute1());
oraclecallablestatement.setString(17,getAttribute2());
oraclecallablestatement.setString(18,getAttribute3());
oraclecallablestatement.setString(19,getAttribute4());
oraclecallablestatement.setString(20,getAttribute5());
oraclecallablestatement.setString(21,getAttribute6());
oraclecallablestatement.setString(22,getAttribute7());
oraclecallablestatement.setString(23,getAttribute8());
oraclecallablestatement.setString(24,getAttribute9());
oraclecallablestatement.setString(25,getAttribute10());
oraclecallablestatement.setString(26,getAttribute11());
oraclecallablestatement.setString(27,getAttribute12());
oraclecallablestatement.setString(28,getAttribute13());
oraclecallablestatement.setString(29,getAttribute14());
oraclecallablestatement.setString(30,getAttribute15());
oraclecallablestatement.execute();
catch(SQLException sqlexception)
throw OAException.wrapperException(sqlexception);
catch(Exception exception)
throw OAException.wrapperException(exception);
Method added to your AM:
public void createPart()
OAViewObject vo = (OAViewObject)getPartGenerationVO1();
if (!vo.isPreparedForExecution())
vo.executeQuery();
Row row = vo.createRow();
vo.insertRow(row);
// Required per OA Framework Model Coding Standard M69
row.setNewRowState(Row.STATUS_INITIALIZED);
} // end createPart()
Code in your *VOImpl:
public void initQuery()
setWhereClauseParams(null); // Always reset
executeQuery();
} -
Calling the DTExec from Perl Script and need to get the Return Value (Sucess or Failure)
I am able to execute the SSIS Package from Perl Script using DTExec. But i need to get the return code of the SSIS Execution. Is their any option available to get the Success or Failure information from Perl ?
Exit codes returned from dtexec utility
When a package runs, dtexec can return an exit code. The exit code is used to populate the ERRORLEVEL variable, the value of which can then be tested in conditional statements or branching logic within a batch file. The following table lists
the values that the dtexec utility can set when exiting.
http://technet.microsoft.com/en-us/library/hh231187.aspx
There's a wrinkle if the package is running in the SSIS Catalog:
http://www.mattmasson.com/2012/02/exit-codes-dtexec-and-ssis-catalog/
David
David http://blogs.msdn.com/b/dbrowne/
Maybe you are looking for
-
Hey guys ! I want to print out the value of "LOT_ID" in the following statement in JSP ! How do print.ln it out ??? Please help ! <HTML> <BODY> <H1>Manufacturing Summary for Lot ID = <% request.getParameter("LOT_ID"); %> </H1><BR> </HTML>
-
Hosting an Oracle Forms Website
Hi. I'm looking for a hosting service that might allow me to provide internet access to about 1,000 folks around the U.S. I'd want these folks to be able to run a few of my Oracle web forms and store data in a small Oracle database. Then daily I woul
-
Can I use Mozilla ThunderBird for a contacts and calender for syncing Mozilla Rules
-
Security filter setup missing in one of the planning applications
We noticed recently that our users in one of the planning applications were not able to access any data. Then we noticed that the entire security filter setup went missing/wipped out for that application and had to set up manually and then a security
-
I have attempted to install the adobe flash at least a dozen times. I have two administrative profiles on my XP Home system. flash works fine on the primary profile, however after apparently successfullty installing on the second profile, attempts to