Web form integration in CRM
Hi All,
Can i request for any infomraion on web form integration with CRM?
Kind Regards.
Hi thomas
CRM processes Web forms much the same as regular emails. Logically there are 3 parts for Webform to CRM integration:
a) External web application: This is the application hosting the web form page.
b) Webform to Email conversion: The external application needs to convert the web form data to an email and send to CRM.
c) Webform fact gathering service (CRM): The webform fact gathering service analyzes the email structure extracts relevant information and adds this to factbase. This information may be used during rule evaluation or for other purpose.
To facilitate processing of Web forms, the external application first converts Web-form data into standard email format (i.e., SMTP) with an XML attachment. As a convention, you must name the Web form WEBFORM.XML.
Technologies such as Sun JavaMail or Microsoft ASP.NET can perform the conversion as long as the resulting email contains an attached XML document with the following mandatory tags:
1. name of the Web form
<WEBFORM_ID> </WEBFORM_ID>
2. ID of Web form email address as defined in the CRM system; determines the u201CFromu201D email address
<WEBFORM_ACCOUNT> </WEBFORM_ACCOUNT>
3. ID of the inbound CRM email address as defined in the CRM system (transaction CRM_ERMS_OUTG_EMAIL)
<ERMS_EMAILID> </ERMS_EMAILID>
u2022 : email address of the individual customer/user
<SENDER> </SENDER>
Let me know if you need further information
Regards
Rupesh Patil
Similar Messages
-
I am working on integrating a web form with Oracle CRM On-demand. This web form offers the ability for users to submit file attachments.
Rether than submit the whole file as an attachments, we would like them to submit a URL to the attachment. I would like these URLs to appear under the "Attachemnts" tab which appears at the bottom of every new Oracle profile.
I’ve attached the error message and the wsdl file that I’m using.
You can download them here:
http://www.mediafire.com/?djeeeify0zn
Also here is the code snippet that is calling the web service:
SCAPTitle.AttachmentData[] data = new SCAPTitle.AttachmentData[1];
data[0] = new SCAPTitle.AttachmentData();
data[0].Attachment = file.FileBytes;
data[0].DisplayFileName = displayFileName;
SCAPTitle.ListOfAttachmentData[] listOfAttachmentData = new SCAPTitle.ListOfAttachmentData[1];
listOfAttachmentData[0] = new SCAPTitle.ListOfAttachmentData();
listOfAttachmentData[0].Attachment = data;
CustomObject1Data[] myCustom1Data = new CustomObject1Data[1];
myCustom1Data[0] = new CustomObject1Data();
myCustom1Data[0].ListOfAttachment = listOfAttachmentData[0];
ListOfCustomObject1Data myListOfCustom1Data = new ListOfCustomObject1Data { CustomObject1 = myCustom1Data };
CustomObject1Update_Input myCustom1ObjectUpdateInput = new CustomObject1Update_Input { ListOfCustomObject1 = myListOfCustom1Data };
CustomObject1Update_Output myCustom1ObjectUpdateOutput = scap.CustomObject1Update(myCustom1ObjectUpdateInput);
This is using Visual Studio 2008.
Can you help me fix the code, so I don't get an error message?Hi,
Attachment in Ondemand are Always Child objects, they need to be associated to a parent in you case which is CustomObject1, as you can see you have not specified the CustomObject Record Id to which the Attachment needs to be associated to.
Specify the Row Id of the record to which the Attachment needs to be associated to
//Specifing the Record's RowId
myCustom1Data[0] .Id='AXSA-1234'
Regards,
Deepak H Andeli -
ABAP smart forms integration with CRM
Hi
As our ABAPers created their smartforms, now i need to integrate there designed smartforms with our CRM server. How to do it, what is the procedure...???
To do this process i worked on this following area. That is i went into Content Management in that we have Define Document Template Profile, and Next assign Document Template Profile to Application and Finally Assign Transaction Types to Templates for Folder and Doc. Template Profiles.
Here in Application the ABAPers created Z type smartforms are not displaying in that only Standard Application is displaying. So i need the link here i want to see their forms in Application. How it comes here....??????
If i get here their smartforms in Application , my problem is solved , from here i can put it in my Transaction Type.
Early reply will be Appreciated.
Regards
S.BethiHi Santosh
You may benefit from this link Re: To replace standard smartform by a custom form, to be used in PRINT PREVIEW
I have been looking for this problem as well, I have followed the configuration steps by copying from standard configuration however I cannot get the print out. I got an error message like " No manual print actions found"
Do you managed this issue?
Thanks
Mehmet -
Problem in submit button on adobe form integrated with web dynpro
Hello,
I'm facing prob in triggering web dynpro event onSubmit for Interactive form.
I've created a submit button from web dynpro activex pallete on adobe form (integrated with web dynpro) to send the form as email.
Then in the web dynpro view where this form is embedded i have created an action against onSubmit event and called a method within this.
However, on clicking Submit button this event is not getting triggered.
Please let me know what is lacking in this process?
Thanks.Hi,
I am also facing the same problem. i have developed a simple scenario under which user have to input his/her details and on submit button it will be updated to database.
I have tried the above solution but after adopting this solution all the editable fields become non-editable.
so the above solution is not working for me could you help me out.
I think ... try this....
When you create the Adobe Form from WebDynpro, you need to follow one step in SFP Transaction or inSE80 transaction. Open the Adobe Form in any one the transaction and now in SAP menu bar "Utilities" in that you will find the "INSERT THE WEBDYNPRO SCRIPT" just click on that one. Then you will see a new Script Object is being created with the name "ContainerFoundation_JS" under the "Variables" in the Heirarchy of the Object Pallete of the Adobe Form.
This step is mandatory to use the SUBMIT Button of the "WebDynpro Native", to trigger the OnSubmit event of the WebDynpro.
Thanks
Edited by: shailendra2sap on Mar 6, 2009 12:24 PM -
Need idea : Integration of CRM On Demand web services with Oracle SOA 10g
Hi Al,
Can anyone have any idea on integration of CRM on Demand Web service with Oracle SOA 10g specially BPEL 10g.
If you have any idea please share with us. Or if you know any good link on the same... please let me know.....
Thanks in advance
DebarshiAFAIK there is no such mapping available, however you may want to take a look at this Support Community thread that discusses the migration and even gives some samples.
Jani Rautiainen
Fusion Applications Developer Relations
https://blogs.oracle.com/fadevrel/ -
Create Web Form data records in Oracle CRM OnDemand
Hello,
One of our customers has a requirement to capture leads through a Web based HTML form. This captured data (First Name, Last Name, email Id) should then create a corresponding Opportunity record in Oracle's CRM OnDemand.
From what I know, CRM OnDemand is a provider in terms of Web Services and not a Taker.
Can somebody suggest on the best way to implement this?
Thanks & Regards,
Nitin JainThere are couples of web services provided by oracle for this purpose, by using that you can insert, update, query, delete records in CRM OnDemand.
So you need to write the web service client program which takes data from your web form and create record in OnDemand. It can be in any language / platform (like java, c++, PHP etc)
Check web services guide for more details.
Dinesh -
XML scheme and Web services enhancement for MS Word integration in CRM 2007
Hi,
I am trying to use the Template designer and the web services tool in order to create a MS Word template for the quotation.
We have created a new web service, using the Web Service Tool
(transaction BSP_WD_CMPWB, type WS_DESIGN_TOOL). I can use this web service when creating a quotation word template and everything works fine.
I need to enhance the web service with some custom fields and logic. I found the blog:
Web-services enhancement for MS Word integration in CRM 2007
/people/community.user/blog/2008/11/18/web-services-enhancement-for-ms-word-integration-in-crm-2007
The blog describe how to enhance the web service, extend the output
structure etc.
We have done all the steps in the blog, and everything looks fine. When
we test the web service, using the Web Service Navigator, all the new
fields we added to the output structure are displayed. The WSDL
document also looks fine, displayed from the Web Service
Administration.
The problem occur when try to create the word template using the
Template Designer. The XML scheme is not displayed in the word
document. This only happens if we use an enhanced web service.
Anyone familiar with this issue?
Kind regards,
Johan WigertHi,
You may have to upgrade your MS word 2003 to MS Word 2007.
Before you do that please opening View > toolbars > Task Pane and check if you can get XML Schema from the web service.
Regards,
Sandeep Chavan -
Is it possible to print web form data once it is added to the CRM cases.
I have a client who needs to have volunteers fill out a one page activity report. I can create the a Web form to acquire the data. The data will then be stored in the CRM as a case. What I am having trouble with, is how to easily track the cases and, more importantly, print them out individually in a readable format. Is this possible?
Hi,
The only option is to create a customer/case report which will output the data in a spreadsheet. Then you can pull the individual records accordingly and print.
I do not see any other workaround to this at this stage.
Kind regards,
-Sidney -
First ever Web Form - URL error
Hi. I'm attempting to call my first Web form, but I'm getting this error:
URL:
http://springfield01:7777/forms/frmservlet?config=ttmsmenu
ERROR:
500 Internal Server Error
Forms Servlet Error.
Missing or invalid value for baseHTML parameter.
Please check the servlet configuration to make sure this value specifies a valid file.
My FormsWeb.Cfg file is posted below. Any help would be greatly appreciated!
FORMSWEB.CFG:
# $Id: formsweb.cfg 15-apr-2005.13:17:30 pkuhn Exp $
# formsweb.cfg defines parameter values used by the FormsServlet (frmservlet)
# This section defines the Default settings. Any of them may be overridden in the
# following Named Configuration sections. If they are not overridden, then the
# values here will be used.
# The default settings comprise two types of parameters: System parameters,
# which cannot be overridden in the URL, and User Parameters, which can.
# Parameters which are not marked as System parameters are User parameters.
# SYSTEM PARAMETERS
# These have fixed names and give information required by the Forms
# Servlet in order to function. They cannot be specified in the URL query
# string. But they can be overridden in a named configuration (see below).
# Some parameters specify file names: if the full path is not given,
# they are assumed to be in the same directory as this file. If a path
# is given, then it should be a physical path, not a URL.
# USER PARAMETERS
# These match variables (e.g. %form%) in the baseHTML file. Their values
# may be overridden by specifying them in the URL query string
# (e.g. "http://myhost.mydomain.com/forms/frmservlet?form=myform&width=700")
# or by overriding them in a specific, named configuration (see below)
[default]
# System parameter: default base HTML file
baseHTML=base.htm
# System parameter: base HTML file for use with JInitiator client
baseHTMLjinitiator=basejini.htm
# System parameter: base HTML file for use with Sun's Java Plug-In
baseHTMLjpi=basejpi.htm
# System parameter: delimiter for parameters in the base HTML files
HTMLdelimiter=%
# System parameter: working directory for Forms runtime processes
# WorkingDirectory defaults to <oracle_home>/forms if unset.
workingDirectory=
# System parameter: file setting environment variables for the Forms runtime processes
envFile=default.env
# Forms runtime argument: whether to escape certain special characters
# in values extracted from the URL for other runtime arguments
escapeparams=true
# Forms runtime argument: which form module to run
form=test.fmx
# Forms runtime argument: database connection details
userid=
# Forms runtime argument: whether to run in debug mode
debug=no
# Forms runtime argument: host for debugging
host=
# Forms runtime argument: port for debugging
port=
# Other Forms runtime arguments: grouped together as one parameter.
# These settings support running and debugging a form from the Builder:
otherparams=buffer_records=%buffer% debug_messages=%debug_messages% array=%array% obr=%obr% query_only=%query_only% quiet=%quiet% render=%render% record=%record% tracegroup=%tracegroup% log=%log% term=%term%
# Sub argument for otherparams
buffer=no
# Sub argument for otherparams
debug_messages=no
# Sub argument for otherparams
array=no
# Sub argument for otherparams
obr=no
# Sub argument for otherparams
query_only=no
# Sub argument for otherparams
quiet=yes
# Sub argument for otherparams
render=no
# Sub argument for otherparams
record=
# Sub argument for otherparams
tracegroup=
# Sub argument for otherparams
log=
# Sub argument for otherparams
term=
# HTML page title
pageTitle=Oracle Application Server Forms Services
# HTML attributes for the BODY tag
# HTMLbodyAttrs=
# immediately hide the applet parent window
HTMLbodyAttrs=onLoad='javascript:self.moveTo(1601,1201)'
# HTML to add before the form
# HTMLbeforeForm=
HTMLbeforeForm=<SCRIPT LANGUAGE="JavaScript">window.opener = top;</SCRIPT>
# HTML to add after the form
HTMLafterForm=
# Forms applet parameter: URL path to Forms ListenerServlet
serverURL=/forms/lservlet
# Forms applet parameter
codebase=/forms/java
# Forms applet parameter
# imageBase=DocumentBase
imageBase=/forms/java
# Forms applet parameter
#width=1000
#width=100%
width=500
# Forms applet parameter
#height=700
#height=100%
height=500
# Forms applet parameter
separateFrame=true
# separateFrame=
# Forms applet parameter
splashScreen=no
#splashScreen=ttmslogo_new.gif
# Forms applet parameter
background=no
# background=
# background=ttmslogo_new.gif
# Forms applet parameter
logo=ttms_banner.gif
# Forms applet parameter
lookAndFeel=Oracle
# Forms applet parameter
colorScheme=teal
# Forms applet parameter
restrictedURLparams=HTMLbodyAttrs,HTMLbeforeForm,pageTitle,HTMLafterForm,log,allow_debug,allowNewConnections
# Forms applet parameter
formsMessageListener=
# Forms applet parameter
recordFileName=
# Forms applet parameter
serverApp=default
# Forms applet archive setting for JInitiator
archive_jini=frmall_jinit.jar
# Forms applet archive setting for other clients (Sun Java Plugin, Appletviewer, etc)
archive=frmall.jar
# Number of times client should retry if a network failure occurs. You should
# only change this after reading the documentation.
networkRetries=0
# Page displayed to Netscape users to allow them to download Oracle JInitiator.
# Oracle JInitiator is used with Windows clients.
# If you create your own page, you should set this parameter to point to it.
jinit_download_page=/forms/jinitiator/us/jinit_download.htm
# Parameter related to the version of JInitiator
jinit_classid=clsid:CAFECAFE-0013-0001-0022-ABCDEFABCDEF
# Parameter related to the version of JInitiator
jinit_exename=jinit.exe#Version=1,3,1,22
# Parameter related to the version of JInitiator
jinit_mimetype=application/x-jinit-applet;version=1.3.1.22
# Page displayed to users to allow them to download Sun's Java Plugin.
# Sun's Java Plugin is typically used for non-Windows clients.
# (NOTE: you should check this page and possibly change the settings)
jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
# Parameter related to the version of the Java Plugin
jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
# Parameter related to the version of the Java Plugin
jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
# Parameter related to the version of the Java Plugin
jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
# EM config parameter
# Set this to "1" to enable Enterprise Manager to track Forms processes
em_mode=0
# Single Sign-On OID configuration parameter
oid_formsid=%OID_FORMSID%
# Single Sign-On OID configuration parameter
oracle_home=/apps/oracle9i/product/oracleforms
# Single Sign-On OID configuration parameter
formsid_group_dn=%GROUP_DN%
# Single Sign-On OID configuration parameter: indicates whether we allow
# dynamic resource creation if the resource is not yet created in the OID.
ssoDynamicResourceCreate=true
# Single Sign-On parameter: URL to redirect to if ssoDynamicResourceCreate=false
ssoErrorUrl=
# Single Sign-On parameter: Cancel URL for the dynamic resource creation DAS page.
ssoCancelUrl=
# Single Sign-On parameter: indicates whether the url is protected in which
# case mod_osso will be given control for authentication or continue in
# the FormsServlet if not. It is false by default. Set it to true in an
# application-specific section to enable Single Sign-On for that application.
ssoMode=false
# The parameter allow_debug determines whether debugging is permitted.
# Administrators should set allow_debug to "true" if servlet
# debugging is required, or to provide access to the Forms Trace Xlate utility.
# Otherwise these activities will not be allowed (for security reasons).
allow_debug=false
# Parameter which determines whether new Forms sessions are allowed.
# This is also read by the Forms EM Overview page to show the
# current Forms status.
allowNewConnections=true
# EndUserMonitoring
# EndUserMonitoringEnabled parameter
# Indicates whether EUM/Chronos integration is enabled
EndUserMonitoringEnabled=
# EndUserMonitoringURL
# indicates where to record EUM/Chronos data
EndUserMonitoringURL=
# Example Named Configuration Section
# Example 1: configuration to run forms in a separate browser window with
# "generic" look and feel (include "config=sepwin" in the URL)
# You may define your own specific, named configurations (sets of parameters)
# by adding special sections as illustrated in the following examples.
# Note that you need only specify the parameters you want to change. The
# default values (defined above) will be used for all other parameters.
# Use of a specific configuration can be requested by including the text
# "config=<your_config_name>" in the query string of the URL used to run
# a form. For example, to use the sepwin configuration, your could issue
# a URL like "http://myhost.mydomain.com/forms/frmservlet?config=sepwin".
[sepwin]
separateFrame=True
lookandfeel=Generic
# Example Named Configuration Section
# Example 2: configuration forcing use of the Java Plugin in all cases (even if
# the client browser is on Windows)
[jpi]
baseHTMLJInitiator=basejpi.htm
# Example Named Configuration Section
# Example 3: configuration running the Forms ListenerServlet in debug mode
# (debug messages will be written to the servlet engine's log file).
[debug]
serverURL=/forms/lservlet/debug
# Sample configuration for deploying WebUtil. Note that WebUtil is shipped with
# DS but not AS and is also available for download from OTN.
[webutil]
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
archive_jini=frmall_jinit.jar
archive=frmall.jar
lookAndFeel=oracle
[ttmsmenu]
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
baseHTMLjinitiator=webutiljini.htm
baseHTMLjpi=webutiljpi.htm
baseHTML=webutilbase.htm
archive_jini=frmall_jinit.jar
archive=frmall.jar
lookAndFeel=oracle
width=500
height=500
background=no
form=ttmsmenu.fmx# or by overriding them in a specific, named configuration (see below)
[default]
this line seems to start a named section that finishes nowhere.
comment this line (put a # in front of it)
FRancois -
Help needed with Custom Web ADI Integrator for Mail Merge
Hello,
I've created a custom web adi integrator to generate letters to advise of end of probationary periods.
The problem is that at the end of the process when the letter is opened in Word 2007, it only displays one record, and does not allow me to "preview results" and cycle through the records (this part is greyed out). It appears that the letter is not merged with the data spreadsheet although it does display one record from it.
Our EBS version is 12.1.3 and we are using Office 2007.
These are the steps I have followed so far (in brief):
- Create a view to provide data (names, addresses etc).
- Set up a new custom function (similar to seeded function HR Integrator Setup).
- Add the custom function and other functions to Desktop Integration responsibility.
- Add the relevant functions to end user's responsibility menu.
- Add new category "other" to HR_ADI_DOCUMENT_TYPE lookup.
- Create Download Excel Integrator by choosing Desktop Integration -> HR Integrator Setup. Enter "PER" for application and my view for the View Name. Upload.
- Create another Excel document by choosing Desktop Integration -> HR Maintain Form Function Associations, and choose the integrator created above. Enter my custom function name in the generated spreadsheet and upload.
- Define a layout for the new integrator.
- Run the integrator under the end user responsibility and save the resulting spreadsheet, which is full of data as expected.
- Create the letter in Word, using the saved spreadsheet as the data source for the merge. At this point the merge is successful.
- Go to Desktop Integration -> Document Management and upload the Word mail merge document. Associate it with the custom document type created earlier.
- Link this document to my integrator.
- Go in as end user responsibility and run the integrator.
At this point after enabling macros it loads 2 spreadsheets (one full of data) and the Word document, but the Word document only displays one record (approx the 10th in the list - there are about 100 in total). All of the relevant merge-related menu items on the "Mailings" tab are greyed out.
Can anyone offer any pointers please?
I did wonder whether it mattered if I changed the names of documents, e.g when I download and save the resulting spreadsheet full of data which I then use to merge to in the Word Doc, is it OK to call the spreadsheet anything or should it be left as the default name?
Many thanks,
HazelHi Nandhakumar.P,
thanks for your response. Please find the answers below:
- Set up a new custom function (similar to seeded function HR Integrator Setup).
System Administrator -> Application -> Function. Query back the seeded User Function Name = "HR Integrator Setup", make a note of the details, then add a custom function entitled "NTC_HR_LETTERS" with the same details.
- Add the custom function and other functions to Desktop Integration responsibility.
System Administrator -> Application -> Menu. Query back User Menu Name = "Desktop Integration Menu" and add the following functions:
WITHOUT PROMPT
a. HR Integrator Setup
b. HR Maintain Integrator Form Functions
c. HR Disable Integrator
d. HR ADI Document Overwrite Page
e. HR ADI Document Upload Page
f. The custom function created in previous step ("NTC_HR_LETTERS")
WITH PROMPT
g. HR ADI Document Management Page
- Add the relevant functions to end user's responsibility menu.
System Administrator -> Application -> Menu. Query back menu attached to custom responsibility of end user that will perform the action once set up.
Add the following:
a. The custom function "NTC_HR_LETTERS" as created previously (without prompt)
b. Desktop Integration - Create Document (With Prompt. This function will be used to generate letters)
- Add new category "other" to HR_ADI_DOCUMENT_TYPE lookup.
SA_Application Developer -> Application -> Lookups -> Common. Query back Type = HR_ADI_DOCUMENT_TYPE and add a new entry entitled "Other". This document type is later assigned to the Word document I upload and link to the integrator.
I hopoe that answers your questions.
Regards,
Hazel -
Where are my Web Form entries stored in the webBasics plan?
Where are my Web Form entries stored in the webBasics plan? Currently—in my trial site—I can access Web Form responses through a Custom Report. Will this option be available to me in the webBasics plan?
My hope is to use the webBasics plan with a Web Form (and a few custom fields) and have the reponses stored for me in the Businsess Catalyst interface.You do not get the CRM element of BC with the webbasic plan. With BC storing the forms it creates "cases" Which are stored against the "Customer" in the "CRM". You dont have access ot that with the webbasic plan.
-
Process Tax in E-Commerce Web Form
Hi Everyone,
This is a bit of a hairy one, I've had a chat with one of the support guys and I thought I'd run the issue past the forum to see if anyone had any ideas about it.
We've got a client who has a webform with credit card processing taking place (with eWay) - only the client will be using it. He wants to type in a GST (Australian 10%) inclusive price in the form. When he receives the system invoice email he wants to see the GST exclusive and inclusive amounts, as well as the GST amount charged.
Does anyone know if this is possible?
There's only 1 form field that will affect the payment amount, and as far as I'm aware there isn't a form field which will affect the tax amount.
The support guy said that if I add javascript to the System Invoice Email to calculate the 10% amount etc, it will calculate that before the email gets sent out.
I really highly doubt that it will work - as far as I'm aware I actually need to alter the BC database amount, as only module and template tags will get output, and all other code is 'as is', and relies on the browser or email program to work. In this case, I'm 99% sure that all email programs/clients remove all scripts. And seeing as I can only alter the BC database amount before the fact (using javascript in the form itself), and I can only alter 1 amount - the payment amount, I'm stuck!
Any ideas out there?I've had a look at the shopping cart area, and the tax dropdown, which has the following javascript onchange:
ApplyTaxRate(this.value,1030964,0,1,9807); where 9807 is the catalog ID
Also, the source points to the /CatalystScripts/Java_OnlineShopping.js file which references the tax code.
Is there a way of integrating these parts of the shopping cart, or the payment form, into a regular e-commerce enabled web form? -
Question:
I have been using two web forms to allow access to a secure zone. Of them, one is for the trial user access and another is for the paid user access.
The problem is: Can I use discount codes for the secure zone access? I can't see the way of integrating eCommerce discount codes with web forms.
Answer:
Discount codes don't actually work with secure zone access since you have to accept payment through web forms. However, I hired an outside developer to write some code for me, which I don't mind sharing:
Put this in the Head of your document:
<script type="text/javascript">
function refreshAmountToCharge() {
var frm = document.forms[0];
var defaultAmountToCharge = 100;
var couponCode = "ABC123"; // A tribute to Michael Jackson...
var percentOff = 50;
var couponCode2 = "DISCOUNT2";
var percentOff2 = 67;
var couponCode3 = "DISCOUNT3";
var percentOff3 = 99;
var couponCode4 = "DISCOUNT4";
var percentOff4 = 75;
/* Fixed amount coupon c*/
var fixedCouponCode1 = "FIXED1";
var fixedAmount1 = 20.00;
var fixedCouponCode2 = "FIXED2";
var fixedAmount2 = 6.00;
var fixedCouponCode3 = "FIXED3";
var fixedAmount3 = 7.00;
var amountToCharge = defaultAmountToCharge.toFixed(2);
if (frm.couponCode.value.toUpperCase() == couponCode)
amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff / 100)).toFixed(2);
else if (frm.couponCode.value.toUpperCase() == couponCode2)
amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff2 / 100)).toFixed(2);
else if (frm.couponCode.value.toUpperCase() == couponCode3)
amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff3 / 100)).toFixed(2);
else if (frm.couponCode.value.toUpperCase() == couponCode4)
amountToCharge = (defaultAmountToCharge - (defaultAmountToCharge * percentOff4 / 100)).toFixed(2);
else if (frm.couponCode.value.toUpperCase() == fixedCouponCode1)
amountToCharge = (defaultAmountToCharge - fixedAmount1).toFixed(2);
else if (frm.couponCode.value.toUpperCase() == fixedCouponCode2)
amountToCharge = (defaultAmountToCharge - fixedAmount2).toFixed(2);
else if (frm.couponCode.value.toUpperCase() == fixedCouponCode3)
amountToCharge = (defaultAmountToCharge - fixedAmount3).toFixed(2);
frm.Amount.value = amountToCharge;
// ----------- End Coupon Code Javascript ---------------------
</script>
Then, you'll need a Coupon Code field in your form:
<div class="item">
<label for="couponCode">Coupon Code</label><br />
<input type="text" name="couponCode" id="couponCode" class="cat_textbox" />
<a href="javascript:refreshAmountToCharge()">Update</a>
</div>
That's it. Let me know if you have any questions. You can set multiple codes, either percentage based or fixed amount. Experiment with it to make sure it works as expected.This is great Mario! Thanks so much for sharing. It works very well.
One thing I want to add is a validation for the coupon update action. If the coupon is no longer valid or entered incorrectly, a message would be great, because the person might no even notice the fact that the amount did not change even though they think they entered a valid discount code.
Sean -
Hello all
I'm running forms 6i. I have a problem with web forms not
allowing focus to a text field when using the mouse to click on
the text field.
if i call form individual like this
http://myhost:myport/dev60cgi/ifcgi60.exe?
form=formname.fmx&config=smstest.dat
it will work fine. But if call this form from push button in the
othor form the mouse navigater did not work. All forms work fine
in client server mode.
Please help. Thank You.Hello Carlos Toso.
I would like to say think you very much for your replay.
this is my Oracle Forms Builder information
Forms [32 Bit] Version 6.0.8.12.1 (Production)
Oracle Toolkit Version 6.0.8.12.1 (Production)
PL/SQL Version 8.0.6.0.0 (Production)
Oracle Procedure Builder V6.0.8.12.1 Build #520 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0
(Production)
Oracle Query Builder 6.0.7.0.0 - Production
Oracle Virtual Graphics System Version 6.0.5.36.0 (Production)
Oracle Tools GUI Utilities Version 6.0.5.35.0 (Production)
Oracle Multimedia Version 6.0.5.34.0 (Production)
Oracle Tools Integration Version 6.0.8.10.2 (Production)
Oracle Tools Common Area Version 6.0.5.32.1
Oracle CORE Version 4.0.6.0.0 - Production
can you help me please how to search for patch 7 or 8 and is
this okay this my form builder version. Because i try to seach
in Metalink and i couldn't find the patch.
thankx a lot. -
Adobe form integration in webdynpro
Gudday,
I need to integrate my adobe form in webdynpro using ABAP and fill the form from the browser which should get updated in the database.
I hav form which will display fields like pernr,vorna,nachn.
After inserting the form integration element...what is context to be filled with??
how should i do the binding from my WDA to adobe forms...i tried one example..but couldnt get the result at the end..
Can anyone please.......suggest clear step-by-step procedure to proceed further.
Awaiting your reply.
Thanks,
Deepthi.Hi,
Hope this would help you - /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
Thanks and Regards,
Anto.
Maybe you are looking for
-
Displaying a PDF Returned from a Custom Service
I have been given a PDF Fillable Form(XFA). I have added a button so that when the user clicks the button it passes the form data as xml to a URL (my custom web service). The custom web service takes the data, renders a totally separate PDF and ret
-
2 different itunes accounts, one iPad
Is there a way to download content from 2 different itunes accounts onto the same ipad? I use mine for both school work and personal use.
-
How to install JDK6 and Netbeans 6 in a non-global zone?
Hi, I have a Solaris system where I want to deploy separate containers for several developers. I'm having difficulty in installing JDK 6 and Netbeans 6, I get lots of missing package errors in non-global zone. What would be the best approach for inst
-
How to edit the customizing infotype
Hi All, I want to make some changes in a customizing infotype i.e. 9003.I want to know the procedure.
-
Asian language add-on (MAC)
Hello Everyone: Since I reinstalled Mountain Lion, Adobe Reader XI has encountered some errors. Besides unexpected crashes, I can't open PDF documents edited in Chinese or other Asian languages. Whenever I try to open a Chinese PDF document, the appl