Forms compilation script
Hi,
I am using a batch file to compile all my Forms, Reports, libraries. I do not want to hardcode the username/ password to the database in this batch file. Is there an alternate way by which I can do the same thing without having to hardcode the passwords ?
Thanks
IQ
I used to use this windows .bat script for fmb files:
so say you call it compileall.bat
then to call it from the dos prompt like so. The id and password are not coded in a script:
compileall myuser/mypassword@myinstance
rem . Username/Password@connect_string = %1
@echo on
IF %1 == "" GOTO END
@echo Removing old FMX files
rem del *.fmx
@echo Creating the new FMX files
FOR %%F in (*.fmb) DO start /w ifcmp60 userid=%1 batch=y module=%%F
@echo.
@echo Done!!! Remember to move the FMX files into your runtime directory.
@echo.
:END
It's something like this for forms 11:
rem . Username/Password@connect_string = %1
@echo on
IF %1 == "" GOTO END
FOR %%F in (*.fmb) DO start /w frmcmp.exe userid=%1 module=%%F statistics=NO logon=YES compile_all=YES
@echo.
@echo Done!!! Remember to move the FMX files into your runtime directory.
:END
Edited by: lake on Jul 20, 2011 8:09 PM
Edited by: lake on Jul 20, 2011 8:12 PM
Similar Messages
-
Compile script for Unix?
We have just re-hosted our Forms/Reports 11g onto a Solaris server. I would like to have a script (bash) that would compile a form or plsql library that I can give to the other developers (we're all new to Unix). Ideally it would either prompt the developer for the module and db connection string (user/password@db) or allow this on the command line. Does anyone know where I might find a script to do this or an example since I'm new to shell scripts?
If you only want to do one file at a time and are looking for a way to "fill in the blanks" rather than knowing the command line syntax, you can use the UI. If an X session is available, the Forms Compiler will launch a GUI if no arguments are passed into it. For example: frmcmp.sh
The GUI will ask the user for the file, username, password, and all of the possible compiler options. Many of the options are check boxes.
If X is not available then just use the command line directly:
frmcmp_batch.sh module=/home/someuser/myforms/myapp.fmb compile_all=yes userid=scott/tiger@orcl -
'Automated' FORMS Compiler?
Hello all
FORMS Builder 10.1.2.0.2
DB 10gR2
OS: Win2k3
I was wondering if anyone can guide me to 'automated' FORMS Compiler. By that I meant, is there a way to compile FORMS after hours?
Here's the situation:
All of us know FORMS are not able to compile when there is a user on it.
We restart our Application Server every night around 2:00am - which should clear all connections to the FORMS.
I was wondering if it's possible to call the compiler after the AS restarts and compile a particular / a bunch of FORMS that are too busy for normal business hours to compile?
ThanksNever mind .. found these
script to compile all forms / reports?
forms 10g release 2 compilation of fmb? -
What is the diff b\w open form and start form in scripts.
Hi,
can any one tell me what is the diff andb\w open form and start form in scripts.when we should use open form and when start form.Hi Friend.
I have understood some usefull information and would like to share with you.
Within one transaction, you can open and close several layout sets using OPEN_FORM and
CLOSE_FORM, however not simultaneously. You can use parameters in the OPEN_FORM to control
whether the output is stored in the same print request. But also the SAP spool decides,
depending on several plausibility checks, whether new output is appended to an existing
print request or whether to create a new print request anyway.
CALL FUNCTION 'OPEN_FORM'
CALL FUNCTION 'CLOSE_FORM'
CALL FUNCTION 'OPEN_FORM'
CALL FUNCTION 'CLOSE_FORM'
You cannot combine ABAP/4 list output and SAPscript output in one print request.
START A LAYOUT SET AGAIN
Usually a print program does not print only one urging letter or one account statement, but
several layout sets for different customers. To have the output for each customer begin with
the start page of the layout set, you must start the current layout set again and again.
To start a layout set again, you must first end the current layout set and then open the
layout set again. Within one print request, first call the function module END_FORM. It
executes the final processing for the current layout set. Then start the layout set again
using START_FORM. Output then begins again on the start page of the desired layout set.
CALL FUNCTION 'OPEN_FORM'
CALL FUNCTION 'START_FORM'
CALL FUNCTION 'END_FORM'
CALL FUNCTION 'START_FORM'
CALL FUNCTION 'END_FORM'
CALL FUNCTION CLOSE_FORM
Hope your obstacle is cleared.
If not do ask me again? -
Calculation of values in a dunning form (SAP Script)
Hi Experts!
I want to add values to a sum (dunning-amount + dunning-fee + interest) in a dunning form (SAP Script; Z150_DUNN_02).Therefore I'm using a subroutine (Z_FI_KX_DUNN_02_INTEREST) to summarize. Problem is the format of the output-field &Z_FAEBT&. It's not similar to field &MHNK-FAEBT& which was formerly printed (without calculation of interest and dunning-fees.
/: DEFINE &Z_FAEHW& := &MHNK-FAEHW&
/: DEFINE &Z_ZINHW& := &MHNK-ZINHW&
/: DEFINE &Z_MHNGH& := &MHNK-MHNGH&
/: DEFINE &Z_FAEBT& := &MHNK-FAEBT&
/: PERFORM ZFAEBT IN PROGRAM Z_FI_KX_DUNN_02_INTEREST
/: USING &Z_FAEHW&
/: USING &Z_ZINHW&
/: USING &Z_MHNGH&
/: CHANGING &Z_FAEBT&
/: ENDPERFORM
/: ENDIF
A3 &MHNK-WAERS& &Z_FAEBT(C)&
It would be fine to get a hint how to format the field &Z_FAEBT& correctly. Must be done in the subroutine Z_FI_KX_DUNN_02_INTEREST by a special WRITE-command? Is it possible to add these values only in the form?
Thanks for support!
Regards, Berndhi!
I defined the field like you said! After moving this field to a numeric field to add the different amounts the
following error occurred:
Runtime errors CONVT_NO_NUMBER
Exception CX_SY_CONVERSION_NO_NUMBER
Occurred on 16.06.2009 at 15:15:25
Unable to interpret " 1.316,59" as a number.
Definition:
FORM zfaebt TABLES in_par STRUCTURE itcsy
out_par STRUCTURE itcsy.
TABLES: mhnk.
DATA: z_faehw_num LIKE mhnk-faehw,
z_zinhw_num LIKE mhnk-zinhw,
z_mhngh_num LIKE mhnk-mhngh,
z_faebt_num LIKE mhnk-faebt.
DATA: z_faehw TYPE string,
z_zinhw TYPE string,
z_mhngh TYPE string,
z_faebt TYPE string.
statement:
READ TABLE in_par WITH KEY 'Z_FAEHW'.
CHECK sy-subrc = 0.
z_faehw = in_par-value.
z_faehw_num = z_faehw.
I suppose a type-conflict.
Regard, Bernd -
How to assign modified forms (SAP scripts etc.,) to Dunning texts
Hello, how do I assign forms (SAP scripts etc.,) to dunning texts according to no 5 above?
I've copied the form f150_dunn_01 and modified it. Now I want to assign my modified form to dunning text. In txn fbmp I have created new procedure and when I clicked on Dunning texts it takes me to dunning text screen where I should be able to assign my modified form. But the screen is greyed out and not editable. Is there anything I'm missing or I've permission issue?
Please help
Regards
Naz
Most of the config for Dunning is done with TCode FBMP.
Key Steps are :-
1. Define the dunning procedure or use the standard
2. Define the dunning levels (desired stages of reminder)
3. Define the dunning interval (frequency of reminder)
4. Line item grace periods & Min.days in arrears (acct) govern the criteria for picking items to be dunned along with Minimum amounts
5. Assign forms (SAP scritps etc.,) to dunning texts. Forms contain the contents of the reminder notice and the format of notice.
6. You can include the Sp GL Transactions as well.
7. Customer/Vendor Master Records needs to be updated with the Dunning
8. Procedure etc, Dunning tab in the master data
9. Use F150 to run.Hi Praveen,
Ok let me go through the steps that I have done so for.
1. New dunning procedure 004 been created in Txn FBMP
2. Then by choosing the assigned dunning procedure 004, trying to update the form by selecting the company code and then Dunning text. But the screen is grayed out.
Please pass me your email address then I will send you the screen shoots.
Thanks
Naz -
Webutil form compilation error
Hi all
I configured webutil on Application server 10g on linux. but when i compile the demo form on application server using
/u01/app/oracle/OraHome_2/bin/frmcmp.sh module=$ORACLE_HOME/forms/WU_TEST_106.fmb userid=webutil/webutil@orant module_type=form compile_all=yes OUTPUT_FILE=$ORACLE_HOME/forms/WU_TEST_106.fmx
it give me the errors
FRM-18108: Failed to load the following objects.
Source Module:webutil.olb
Source Object: WEBUTIL
Compiling procedure GET_CLIENTINFO...
Compilation error on procedure GET_CLIENTINFO:
PL/SQL ERROR 201 at line 3, column 35
identifier 'WEBUTIL_CLIENTINFO.GET_USER_NAME' must be declared
PL/SQL ERROR 0 at line 3, column 3
Statement ignored
PL/SQL ERROR 201 at line 4, column 35
identifier 'WEBUTIL_CLIENTINFO.GET_IP_ADDRESS' must be declared
PL/SQL ERROR 0 at line 4, column 3
Statement ignored
Compilation errors have occurred.
Form not created
==========================================
i search a lot but failed ..
any solution regarding this plz thanks in advance.[oracle@appserver ~]$ /u01/app/oracle/OraHome_2/bin/frmcmp_batch.sh module=$ORACLE_HOME/forms/webutil.pll userid=webutil/webutil@orant module_type=library compile_all=yes OUTPUT_FILE=$ORACLE_HOME/forms/webutil.plx
Forms 10.1 (Form Compiler) Version 10.1.2.0.2 (Production)
Forms 10.1 (Form Compiler): Release - Production
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
Compiling library WEBUTIL...
Invalidating Package Spec CLIENT_IMAGE......
Invalidating Package Spec CLIENT_OLE2......
Invalidating Package Spec CLIENT_TEXT_IO......
Invalidating Package Spec CLIENT_TOOL_ENV......
Invalidating Package Spec CLIENT_WIN_API_DEBUG......
Invalidating Package Spec CLIENT_WIN_API......
Invalidating Package Spec CLIENT_WIN_API_ENVIRONMENT......
Invalidating Package Spec CLIENT_WIN_API_PRELOAD......
Invalidating Package Spec JAVA_EXCEPTION......
Invalidating Package Spec WEBUTIL_BROWSER......
Invalidating Package Spec WEBUTIL_CLIENTINFO......
Invalidating Package Spec WEBUTIL_C_API......
Invalidating Package Spec JAVA_SYSTEM......
Invalidating Package Spec JAVA_APPSERV_READER......
Invalidating Package Spec DELIMSTR......
Invalidating Package Spec WEBUTIL_FILE......
Invalidating Package Spec JAVA_APPSERV_WRITER......
Invalidating Package Spec WEBUTIL_DB_LOCAL......
Invalidating Package Spec JAVA_FILE......
Invalidating Package Spec WEBUTIL_FILE_TRANSFER......
Invalidating Package Spec WEBUTIL_HOST......
Invalidating Package Spec WEBUTIL_SEPARATEFRAME......
Invalidating Package Spec WEBUTIL_CORE......
Invalidating Package Spec WEBUTIL_SESSION......
Invalidating Package Spec WEBUTIL_UTIL......
Invalidating Package Body WEBUTIL_UTIL......
Invalidating Package Body WEBUTIL_SESSION......
Invalidating Package Body WEBUTIL_SEPARATEFRAME......
Invalidating Package Body WEBUTIL_HOST......
Invalidating Package Body WEBUTIL_FILE_TRANSFER......
Invalidating Package Body WEBUTIL_FILE......
Invalidating Package Body WEBUTIL_DB_LOCAL......
Invalidating Package Body WEBUTIL_C_API......
Invalidating Package Body WEBUTIL_CORE......
Invalidating Package Body WEBUTIL_CLIENTINFO......
Invalidating Package Body WEBUTIL_BROWSER......
Invalidating Procedure Body SHOW_WEBUTIL_INFORMATION......
Invalidating Package Body JAVA_SYSTEM......
Invalidating Package Body JAVA_FILE......
Invalidating Package Body JAVA_EXCEPTION......
Invalidating Package Body JAVA_APPSERV_WRITER......
Invalidating Package Body JAVA_APPSERV_READER......
Invalidating Package Body DELIMSTR......
Invalidating Package Body CLIENT_WIN_API_PRELOAD......
Invalidating Package Body CLIENT_WIN_API_ENVIRONMENT......
Invalidating Package Body CLIENT_WIN_API_DEBUG......
Invalidating Package Body CLIENT_WIN_API......
Invalidating Package Body CLIENT_TOOL_ENV......
Invalidating Package Body CLIENT_TEXT_IO......
Invalidating Package Body CLIENT_OLE2......
Invalidating Package Body CLIENT_IMAGE......
Invalidating Procedure Body CLIENT_HOST......
Invalidating Function Body CLIENT_GET_FILE_NAME......
Compiling Package Spec CLIENT_IMAGE......
Compiling Package Spec CLIENT_OLE2......
Compiling Package Spec CLIENT_TEXT_IO......
Compiling Package Spec CLIENT_TOOL_ENV......
Compiling Package Spec CLIENT_WIN_API_DEBUG......
Compiling Package Spec CLIENT_WIN_API......
Compiling Package Spec CLIENT_WIN_API_ENVIRONMENT......
Compiling Package Spec CLIENT_WIN_API_PRELOAD......
Compiling Package Spec JAVA_EXCEPTION......
Compiling Package Spec WEBUTIL_BROWSER......
Compiling Package Spec WEBUTIL_CLIENTINFO......
Compiling Package Spec JAVA_SYSTEM......
Compiling Package Spec JAVA_APPSERV_READER......
Compiling Package Spec DELIMSTR......
Compiling Package Spec WEBUTIL_FILE......
Compiling Package Spec JAVA_APPSERV_WRITER......
Compiling Package Spec WEBUTIL_DB_LOCAL......
Compiling Package Spec JAVA_FILE......
Compiling Package Spec WEBUTIL_FILE_TRANSFER......
Compiling Package Spec WEBUTIL_HOST......
Compiling Package Spec WEBUTIL_SEPARATEFRAME......
Compiling Package Spec WEBUTIL_CORE......
Compiling Package Spec WEBUTIL_SESSION......
Compiling Package Spec WEBUTIL_UTIL......
Compiling Package Body WEBUTIL_UTIL......
Compiling Package Body WEBUTIL_SESSION......
Compiling Package Body WEBUTIL_SEPARATEFRAME......
Compiling Package Body WEBUTIL_HOST......
Compiling Package Body WEBUTIL_FILE_TRANSFER......
Compiling Package Body WEBUTIL_FILE......
Compiling Package Body WEBUTIL_DB_LOCAL......
Compiling Package Body WEBUTIL_C_API......
Compiling Package Body WEBUTIL_CORE......
Compiling Package Body WEBUTIL_CLIENTINFO......
Compiling Package Body WEBUTIL_BROWSER......
Compiling Procedure Body SHOW_WEBUTIL_INFORMATION......
Compiling Package Body JAVA_SYSTEM......
Compiling Package Body JAVA_FILE......
Compiling Package Body JAVA_EXCEPTION......
Compiling Package Body JAVA_APPSERV_WRITER......
Compiling Package Body JAVA_APPSERV_READER......
Compiling Package Body DELIMSTR......
Compiling Package Body CLIENT_WIN_API_PRELOAD......
Compiling Package Body CLIENT_WIN_API_ENVIRONMENT......
Compiling Package Body CLIENT_WIN_API_DEBUG......
Compiling Package Body CLIENT_WIN_API......
Compiling Package Body CLIENT_TOOL_ENV......
Compiling Package Body CLIENT_TEXT_IO......
Compiling Package Body CLIENT_OLE2......
Compiling Package Body CLIENT_IMAGE......
Compiling Procedure Body CLIENT_HOST......
Compiling Function Body CLIENT_GET_FILE_NAME......
Done.
[oracle@appserver ~]$
here is the code how i compile webutil.. its done sucessfully. -
How to use the 'Username' filed's value in form level scripting?
Hi,
I have applied the Rights Management for a form. I wanted to use the 'Username' field's value, which is present in below image for the form side scripting. How can we get this value? Any script is there to extract this value in the form?
Thanks in advance,
ArjunHi Jo,
Thanks for the reply. The settings (MobileEngine.Security.SyncPasswordFieldAtLogon=true) in my Mobile client is such that when i open it i am asked the User, Logon Password and the Synchronization password(which is not mandatory). So if I dont even enter it during logon i am asked to enter it when i hit the sync button on the client.
But if i have entered it during logon and then hit the sync button on the client, that time i am not asked to re-enter my sync passwd and the client syncs with the b/e. Which means that the sync passwd i had entered during logon is definitely stored somewhere.
What i mean by using the sync passwd in applications is this :-
-> In a generic sync appln before synchronising with the b/e we need to give the sync passwd to the SyncManager. How do we get this sync password from the user of the appln?
-> We can either ask him to enter it as in input to a jsp OR else since he has already entered it during logon we need not ask him to enter it again and retrieve it via some API.
Is this possible.
Thanks & Regards,
Saurabh.
Message was edited by:
Saurabh Agarwal -
Hi All. Could anyone resolve my issue.
I was created a package with an Script task written in VB.Net.
The Package was executing Successfully in BIDS.
But when i tried to exceute the same using Sql server Agent Job, Its getting Failed with the below error message
"Executed as user: Admin. Microsoft (R) SQL Server Execute Package Utility Version 11.0.2100.60 for 32-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 5:12:27 PM Error: 2013-03-13 17:12:32.33
Code: 0x00000005 Source: Checking Alcon Files Checking Alcon Files Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.
End Error Error: 2013-03-13 17:12:32.33 Code: 0x00000005 Source: Checking Alcon Files Checking Alcon Files Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict
in class 'ScriptMain'., ScriptMain.vb, 156, 22 End Error Error: 2013-03-13 17:12:32.36 Code: 0x00000005 Source: Checking Alcon Files Checking Alcon Files Description: The binary
code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully. End Error Error: 2013-03-13 17:12:34.28 Code: 0x00000005
Source: Formating Excel Sheet Formating Excel Sheet Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors. End Error Error: 2013-03-13 17:12:34.28
Code: 0x00000005 Source: Formating Excel Sheet Formating Excel Sheet Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict in class 'ScriptMain'., ScriptMain.vb, 191, 22 End Error
Error: 2013-03-13 17:12:34.29 Code: 0x00000005 Source: Formating Excel Sheet Formating Excel Sheet Description: The binary code for the script is not found. Please open the script in the
designer by clicking Edit Script button and make sure it builds successfully. End Error Error: 2013-03-13 17:12:51.56 Code: 0x00000004 Source: Checking Alcon Files Description:
The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully. End Error Error: 2013-03-13 17:12:51.56 Code: 0xC0024107
Source: Checking Alcon Files Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 5:12:27 PM Finished: 5:12:51 PM
Elapsed: 24.336 seconds. The package execution failed. The step failed."
Please give some solution to this.
Thanks in advanceAre you editing this job in SQL 2012? Is it wrapping your paths in \"? Like for example does the command line tab on the step look like this:
/FILE "\"D:\yourPathGoesHere.dtsx\"" /CONFIGFILE "\"D:\yourPathGoesHere.dtsConfig\"" /CHECKPOINTING OFF /REPORTING E
That's the problem I had, and I resolved it by recreating the whole thing via SQL Script and getting rid of all those \" things. I think that is preventing SSIS from looking up the precompiled binaries for your Script Task. So you should edit the command
line manually:
/FILE "D:\yourPathGoesHere.dtsx" /CONFIGFILE "D:\yourPathGoesHere.dtsConfig" /CHECKPOINTING OFF /REPORTING E
Please write back whether that helps you. David Dye's answer didn't help me at all. -
Hi all
would someone beable to help?
I have been using a free php form data script on my website but I am finding that when people fill in the form that not all the form submissions are getting through and I am not sure if it is the php form script
Would any one be to direct me to a good free php data script that is simple to use
many thanks for your help!hi there
many thanks for your help!
ok, am little new to this, so do you mean in my contact.php script I have?
not sure what I would be looking for?
I tried to attach to this post but copuld so zipped it for download here; http://www.thevineproject.org.uk/contact.zip
thanks for your help -
Hi. I got a program to write a php form processing script. My submit form is for photo submission to my domain email. I published to site and did a test to see if it works i got this error:
Warning: require_once(F:\Domains\mydomain\mydomain.com\wwwroot/includes/Upload_Photos-lib.php): failed to open stream: No such file or directory in F:\Domains\mydomain\mydomain.com\wwwroot\Upload_Photos.php on line 24 Fatal error: require_once(): Failed opening required 'F:\Domains\mydomain\mydomain.com\wwwroot/includes/Upload_Photos-lib.php' (include_path='.;C:\php\pear') in F:\Domains\mydomain\mydomain.com\wwwroot\Upload_Photos.php on line 24
What does this mean? How can i solve this so that i can process my form?See if the below form helps: You need to create a folder on your server named - upload - this is where any files uploaded will be stored (make sure the folder is writable. Also change the email address where the information that someone who has uploaded a file will go to. Look for the following in the code: $to ="XXXXXXXXXXXX.com";
<!DOCTYPE html>
<head>
<meta charset="UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
#wrapper {
width: 400px;
margin: 0 auto;
</style>
</head>
<body>
<div id="wrapper">
<?php if(isset($_POST['submit'])) {
$name = trim($_POST['name']);
if(empty($name)) {
$error['name'] = "Please provide your name";
$location = trim($_POST['location']);
if(empty($location)) {
$error['location'] = "Please provide your location";
$email = trim($_POST['email']);
if(empty($email)) {
$error['email'] = "Please provide your email";
$category_description = trim($_POST['category_description']);
if(empty($category_description)) {
$error['category_description'] = "Please provide the category or description";
$terms_conditions = trim($_POST['terms_conditions']);
if(empty($terms_conditions)) {
$error['terms_conditions'] = "Please accept the terms & conditions";
$allowedExts = array(
"doc",
"docx",
"rtf",
"txt",
"pdf",
"jpeg",
"jpg",
$allowedMimeTypes = array(
'application/msword',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/rtf',
'application/x-rtf',
'text/richtext',
'text/rtf',
'application/plain',
'application/pdf',
'image/gif',
'image/jpeg',
$extension = end(explode(".", $_FILES["file"]["name"]));
if (empty($_FILES["file"]["name"])) {
$selectFile = 'Please select a file to upload';
elseif ( ! ( in_array($extension, $allowedExts ) ) ) {
$fileTypeNotAllowed = 'File type not allowed';
elseif ($_FILES["file"]["size"] > 2097152) {
$fileTooLarge = 'Please provide a smaller file';
elseif (file_exists("upload/" . $_FILES["file"]["name"])) {
$fileExists = $_FILES["file"]["name"] . " already exists, Please change the file name ";
elseif (in_array( $_FILES["file"]["type"], $allowedMimeTypes ) )
if(!empty($_POST['terms_conditions'])) {
move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]);
$fileName = $_FILES["file"]["name"];
$fileUploadSuccessful = 'File uploaded successfully';
$to = "XXXXXXXXXXXXX.com";
$subject = "Upload to website";
$headers = "From: $email\r\n";
$headers .= "Reply-To: $email\r\n";
$message = "Name: $name\n\n";
$message .= "Location: $location\n\n";
$message .= "Email Address: $email\n\n";
$message .= "Category/Description: $category_description\n\n";
$message .= "File: $fileName\n\n";
mail($to, $subject, $message, $headers);
$sent = "Mail was sent successfully";
?>
<h1>Form</h1>
<?php
foreach ($error as $value) {
echo "<p>".$value."</p>";
if(isset($formFieldError)) {
echo "<p>".$formFieldError."</p>";
if(isset($selectFile)) {
echo "<p>".$selectFile."</p>";
if(isset($fileTypeNotAllowed)) {
echo "<p>".$fileTypeNotAllowed."</p>";
if(isset($fileTooLarge)) {
echo "<p>".$fileTooLarge."</p>";
if(isset($fileExists)) {
echo "<p>".$fileExists."</p>";
if(isset($fileUploadSuccessful)) {
echo "<p>".$fileUploadSuccessful."</p>";
?>
<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<p>
<label for="name">Name<br>
<input type="text" name="name" id="name" value="<?php if(isset($name)) {echo $name; } ?>"/>
</label>
</p>
<p>
<label for="location">Location<br>
<input type="text" name="location" id="location" value="<?php if(isset($location)) {echo $location; } ?>"/>
</label>
</p>
<p>
<label for="email">Email<br>
<input type="text" name="email" id="email" value="<?php if(isset($email)) {echo $email; } ?>" />
</label>
</p>
<p>
<label for="category_description">Category and Description<br>
<input type="text" name="category_description" id="category_description" value="<?php if(isset($category_description)) {echo $category_description; } ?>" />
</label>
</p>
<p>
<label for="file">File Attachment:<br>
<input type="file" name="file" id="file" />
</label>
</p>
<p>
<label for="terms_conditions">Terms & Conditions:
<input name="terms_conditions" type="checkbox" value="accept" <?php if(isset($_POST['terms_conditions'])) {echo "checked"; } ?>> (Please check)
</label>
</p>
<input type="submit" name="submit" value="Submit" />
</form>
</div>
</body>
</html> -
What is a good resource for pre-made PHP Form Mailer Scripts.
This is for use with a website hosted on GoDaddy.
My client has a few requirements that the GoDaddy script does
not offer (and the script I chose from GoDaddy is uneditable). I
know nothing about scripting but thought I could use a pre-made
script and modify it...is that crazy thinking on my part?
Here are the special requests from my client:
- They'd like to see the time the form was submitted in EST
(the GoDaddy script puts the time in military time in another time
zone in the subject line). Can this appear in the body of the email
as well as the subject line?
- They'd like the form to be sent to the person submitting it
as well as to their company
- They would like to be able to REPLY TO the email they
receive with the form submission and have it be addressed to the
person submitting the form. The current script has the email
addressed to themselves (the company) if they click REPLY TO, so
they are replying to themselves
- Although this has nothing to do with the Form Mailer script
as far as I can guess, they asked that the person filling out the
form be able to print it prior to submitting (in my opinion,
though, if i can have a copy of the submission sent to the
submitter, there's no reason for this). But if anyone knows how to
do this, please let me know.
- Finally, the client wants to know if each submission can
have a unique tracking number assigned to it.
Thank you all. Any feedback is appreciated.
RichardHi,
I can without any doubt recommend Forms 2 Go:
http://www.bebosoft.com/products/formstogo/index.php
Very easy to use and even someone like me who don't know a
lot of
programming, use it extensively.
Deon
"RichyZee" <[email protected]> wrote in
news:gcvkac$fcp$[email protected]:
> What is a good resource for pre-made PHP Form Mailer
Scripts. This is
> for use with a website hosted on GoDaddy.
>
> My client has a few requirements that the GoDaddy script
does not
> offer (and
> the script I chose from GoDaddy is uneditable). I know
nothing about
> scripting but thought I could use a pre-made script and
modify it...is
> that crazy thinking on my part?
>
> Here are the special requests from my client:
>
> - They'd like to see the time the form was submitted in
EST (the
> GoDaddy
> script puts the time in military time in another time
zone in the
> subject line). Can this appear in the body of the email
as well as the
> subject line?
>
> - They'd like the form to be sent to the person
submitting it as well
> as to
> their company
>
> - They would like to be able to REPLY TO the email they
receive with
> the form
> submission and have it be addressed to the person
submitting the form.
> The current script has the email addressed to themselves
(the company)
> if they click REPLY TO, so they are replying to
themselves
>
> - Although this has nothing to do with the Form Mailer
script as far
> as I can
> guess, they asked that the person filling out the form
be able to
> print it prior to submitting (in my opinion, though, if
i can have a
> copy of the submission sent to the submitter, there's no
reason for
> this). But if anyone knows how to do this, please let me
know.
>
> - Finally, the client wants to know if each submission
can have a
> unique
> tracking number assigned to it.
>
> Thank you all. Any feedback is appreciated.
>
> Richard
>
> -
EBS Forms functional script runs fine in OpenScript but not from OTM
Hi,
I have an EBS forms functional test script which runs fine in OpenScript, but when scheduled from OTM, the web part runs fine but when it comes to forms, the script fails with the following error:
Forms Object Not Found! XPath: //forms:window[(@name='NAVIGATOR')], Type: oracle.oats.scripting.modules.formsFT.helper.test.FormWindow, Cause: No Matches <Less>
I have performed all the steps below already:
1) Stopping the OATS Agent service and changing it to manual.
2) Starting the command prompt and running the AgentManagerService command as mentioned in your forum.
3) The console displays
C:\>C:\OracleATS\agentmanager\bin\AgentManagerService.exe -c AgentManagerService
.conf
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.0.3)
jvm 1 |
4) I have added the test in the OTM with the following command line settings:
-browser.type InternetExplorer -formsft.startup_timeout 30 -formsft.action_timeout 20 -formsft.response_timeout 10 -delayPercentage -1 -delayMin 0 -delayMax 5 -FormsAutomationEnabler.bat -enableForms true
But each time the script fails, please note that my script has assets and they are placed within the script folder.
Please help me on this at earliest.
Thanks,
AartiHello Aarti!
I had the same problem and this steps help to solve the problem:
You need to enable Forms Automation under agent. Please follow by below steps.
1.open command prompt
2.cd C:\OracleATS\agent
3.FormsAutomationEnabler.bat -enableForms true
4. Run script from OTM
Attila -
Can i invoke a function of a compiled script from java?
Hi,
Can i invoke a function of a 'CompiledScript' from java with parameters?
TIAsabre150 wrote:
I don't know about anyone else but I don't understand what you are trying to do.<Goldie mode>
Bwahahaha, you are one of the oligarchs here and yet you don't know what Compiled Scripts are? Even Chaucer wrote about them, which the Queen of England told me when we shared a kebab in my working-class pals' kebab shop.
</Goldie mode> -
Remittance Advice Form in Scripts
Hi All..
I am doing Remittance Advice Form in Scripts. I want to print Purchase Order No. I want to read it from line items. For that I copied the Standard Pgm( RFFOUS_C) into Z pgm( ZRFFOUS_C). I copied standard form( F110_IN_AVIS) INTO Z form. For this I am writing PERFORM statement in the form like this
DEFINE &ZEBELN& = ' '
PERFORM GET_EBELN IN PROGRAM ZRFFOUS_C
USING ®UP-BUKRS&
USING ®UP-BELNR&
CHANGING &ZEBELN&
ENDPERFORM
Even In the place of PROGRAM ZRFFOUS_C, I am trying to use another Z pgm like Ztest.
In both case while creating payment advise I am getting an error PERFORM_TOO_MANY_PARAMETERS. And getting job is cancelled.
Even it is not creating Spool Request for Remittance Advice.
In z pgm I ma writing the perform statement like this
FORM GET_EBELN USING ZBUKRS TYPE BSEG-BUKRS
ZBELNR TYPE BSEG-BELNR
CHANGING ZZEBELN TYPE BSEG-EBELN.
SELECT SINGLE EBELN FROM BSEG INTO ZZEBELN
WHERE BUKRS = ZBUKRS
AND BELNR = ZBELNR
AND BUZEI = 2.
ENDFORM.
PLZ GIVE ME SUGGESTIONS ASAP..
Regards
RajendraHello,
Your form in the program should be like this.
FORM GET_EBELN TABLES i_inval STRUCTURE itcsy
i_outval STRUCTURE itcsy.
data: w_burks like t001-bukrs.
READ TABLE i_inval with key = 'REGUP-BUKRS'.
w_bukrs = i_inval-value.
read all other data from the input table as above
give back the values
READ TABLE i_outval with key = 'ZEBELN'.
out_tab-value = w_zebeln.
MODIFY out_tab INDEX sy-tabix.
endform
regards,
Naimesh
Maybe you are looking for
-
Crystal Report Server Backup and Recovery problem
I have a problem on the backup Crystal Report Server My Environment: - Windows Server 2003 - Crystal Report Server XI R2 - MySQL Database for Central Management Server System Tables(Default setting in the Crystal Report Server installation) - Tomcat
-
Sub-Contraction challen creation.
Hi , While creating sub-contracting challen . i am geeting below error. Please specify the number of line items for the challans. Message no. 8I802 Please Guide me SAM
-
Issue with office web apps sorry, there was a problem and we can't open this document.
Hi All, i am having issue when trying to open the word file using office web apps farm. i have multi-tier farm (2 wfe, 2 apps and 2 owa). is that something wrong with certificate or the way AAM configured. Can anyone give me some direction please?
-
My only local print shop can't open a .pages document
Help! I have to have the brochure I've worked on for a week printed this afternoon, and the printer is pc only, can't open my file. When I save it as a word document, it is not possible to read the document, and much of the content is missing...it ge
-
when launching adobe captivate 7, i am required to login, I login and captivate never launches