Need help in alignment a form
Hello,
I am new in writing HTML code. I need help to align my Form
and it's text.
Please view my code and please show me how to align all the
square boxes (the square box is where the user type the text
input). Currently I have 2 boxes but they are not aligned. The
below is my code:
<FORM name="input" method="get" >
PROJECTROOT: <INPUT TYPE=TEXT SIZE=50 NAME=proj_root>
<br>
FRONTEND: <INPUT TYPE=TEXT SIZE=50 NAME=frontend>
<br>>
<BR>
<INPUT TYPE=SUBMIT VALUE=Submit onclick="save()">
<BR>
</FORM>
Would you please help.
Thank you very much
Goober35
<form name="input" method="get" action=""> <!-- ARE
YOU SURE YOU NEED "GET"
and not "POST"? -->
<table cellspacing="0" cellpadding="0" border="0"
width="300">
<tr>
<td><label for="proj_root">PROJECTROOT:
</label></td>
<td><input type="text" size="50" name="proj_root"
id="proj_root"></td>
</tr>
<tr>
<td><label for="frontend">FRONTEND:
</label></td>
<td><input type="text" size="50" name="frontend"
id="frontend"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit"
name="submit"
id="submit" value="Submit" onclick="save()"></td>
</tr>
</table>
</form>
(your form needs an action attribute value)
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"goober35" <[email protected]> wrote in
message
news:gcjmlh$p42$[email protected]..
> Hello,
> I am new in writing HTML code. I need help to align my
Form and it's text.
> Please view my code and please show me how to align all
the square boxes
> (the
> square box is where the user type the text input).
Currently I have 2
> boxes but
> they are not aligned. The below is my code:
>
> <FORM name="input" method="get" >
> PROJECTROOT: <INPUT TYPE=TEXT SIZE=50
NAME=proj_root> <br>
> FRONTEND: <INPUT TYPE=TEXT SIZE=50 NAME=frontend>
<br>>
> <BR>
> <INPUT TYPE=SUBMIT VALUE=Submit onclick="save()">
<BR>
>
> </FORM>
>
>
> Would you please help.
>
> Thank you very much
> Goober35
>
>
> <FORM name="input" method="get" >
> PROJECTROOT: <INPUT TYPE=TEXT SIZE=50
NAME=proj_root> <br>
> FRONTEND: <INPUT TYPE=TEXT SIZE=50 NAME=frontend>
<br>>
> <BR>
> <INPUT TYPE=SUBMIT VALUE=Submit onclick="save()">
<BR>
>
> </FORM>
>
Similar Messages
-
Hi Everybody,
I'm having a Struts application that uses DynaValidatorForm for performing Validations.
The basic flow is like this -> I've got a home page, then a login page (action -> register.do) & a third page (action -> authenticate.do) which is displayed after authenticating the user.
I'm trying to re-direct the user to the home page once he directly accesses /authenticate.do
For this, in the Action class of /register, I'd defined a session attribute & set a value to it.
Then, in the Action class of /authenticate, I'm checking for the session attribute. If not present, I'm re-directing the user to home page.........
The problem that I'm facing is that when I directly access /authenticate.do, the application is not getting re-directed & instead, it is displaying error messages that User name & password (the 2 fields present in my login page) are required..........
The <action> tag of /authenticate.do has got validate="true" & hence it seems that validation occurs before re-directing....
Therefore, can someone tell me why is the application not posting the form to Action class of /authenticate........
Thanx in advance.....
Regards,
Sasidharan N<form name="input" method="get" action=""> <!-- ARE
YOU SURE YOU NEED "GET"
and not "POST"? -->
<table cellspacing="0" cellpadding="0" border="0"
width="300">
<tr>
<td><label for="proj_root">PROJECTROOT:
</label></td>
<td><input type="text" size="50" name="proj_root"
id="proj_root"></td>
</tr>
<tr>
<td><label for="frontend">FRONTEND:
</label></td>
<td><input type="text" size="50" name="frontend"
id="frontend"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit"
name="submit"
id="submit" value="Submit" onclick="save()"></td>
</tr>
</table>
</form>
(your form needs an action attribute value)
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"goober35" <[email protected]> wrote in
message
news:gcjmlh$p42$[email protected]..
> Hello,
> I am new in writing HTML code. I need help to align my
Form and it's text.
> Please view my code and please show me how to align all
the square boxes
> (the
> square box is where the user type the text input).
Currently I have 2
> boxes but
> they are not aligned. The below is my code:
>
> <FORM name="input" method="get" >
> PROJECTROOT: <INPUT TYPE=TEXT SIZE=50
NAME=proj_root> <br>
> FRONTEND: <INPUT TYPE=TEXT SIZE=50 NAME=frontend>
<br>>
> <BR>
> <INPUT TYPE=SUBMIT VALUE=Submit onclick="save()">
<BR>
>
> </FORM>
>
>
> Would you please help.
>
> Thank you very much
> Goober35
>
>
> <FORM name="input" method="get" >
> PROJECTROOT: <INPUT TYPE=TEXT SIZE=50
NAME=proj_root> <br>
> FRONTEND: <INPUT TYPE=TEXT SIZE=50 NAME=frontend>
<br>>
> <BR>
> <INPUT TYPE=SUBMIT VALUE=Submit onclick="save()">
<BR>
>
> </FORM>
> -
Need help in formating a form dealing with negative currency
Need Help!!!
Creating forms in Adobe acrobat Pro I could format a number cell to calculate additions/subtractions of currency. If the result was negative I could get the cell to show the negative result in red text and show parentheses around them. How can I do that in LiveCycle?
If i have to use formcalc - what would i type in?In LiveCycle can be done using the Numeric Field object and some formcalc script.
Use the "Numeric Field" from the Object Library. For the Field patterns (Select the placed numeric field, On object Window Object -> Field) use "num.currency{}" to show the currency(Ex: $) and "parentheses" if its negative. Write some script to show red text/border in red .
On exit event of the Numeric Field here is the script:
if($.rawValue <0) then $.font.fill.color.value = "255,0,0" endif // This will make entire text in red color if the value is negative.
if($.rawValue <0) then $.validate.nullTest = "error" endif //This will make border of the field in red color if the value is negative.
Hope this helps. -
Need help with Adobe Interactive Form Saving
Hi Gurus,
I need your help with Adobe Interactive form saving.
I have written the code in pre-save event to prompt a message when user didn't enter any value before saving. The form data should not be saved upon clicking save (Just prompt the message and exit form the form). Can u please advice me how to do this.
Regards,
Srinisee the link: http://forms.stefcameron.com/2008/04/
it says:
preSave: Failed validations will not prevent the form from being saved however Acrobat/Reader will issue a special warning message, after issuing the validation error message, to inform the user that the validations failed. Iu2019m guessing this is because the user may be saving the form to continue filling it at a later time so the save canu2019t be completely prevented.
regards,
BJagdishwar. -
Need help with PHP contact form
Hi guys,
I've made a PHP contact form for my site and need help with a couple of things:
The form action links an external PHP script (scripts/contact-form-script.php) but is there a way I can have it so the PHP script for the form is contained within the same PHP file as my contact form (contact.php)?
I tried just putting the form code at the top of contact.php but the browser automatically reads the anti-spam re-direct, so maybe that needs revising too?
The second thing is, how can I make the Name, Email and Message fields mandatory? So if a user tries to submit the form and hasn't filled in one of the required fields and clicks submit, contact.php reloads with a message at the top of the form saying something like 'Complete the required fields' and highlights the relevant field with a red border?
Here's the code for contact.php:
<form action="http://www.mydomain.com/scripts/contact-form-script.php" method="post" name="contact" id="contact">
<p><strong>Name:*</strong><br />
<input name="name" type="text" class="ctextField" /></p>
<p><strong>E-mail:*</strong><br />
<input name="email" type="text" class="ctextField" /></p>
<p><strong>Telephone:</strong><br />
<input name="telephone" type="text" class="ctextField" /></p>
<p><strong>Company:</strong><br />
<input name="company" type="text" class="ctextField" /></p>
<p><strong>Address:</strong><br />
<input name="address1" type="text" class="ctextField" /></p>
<p><input name="address2" type="text" class="ctextField" /></p>
<p><strong>Town:</strong><br />
<input name="town" type="text" class="ctextField" /></p>
<p><strong>County:</strong><br />
<input name="county" type="text" class="ctextField" /></p>
p><strong>Postcode:</strong><br />
<input name="postcode" type="text" class="ctextField" /></p>
<p><strong>Message:*</strong><br />
<textarea name="message" cols="55" rows="8" class="ctextField"></textarea></p>
<p><input name="submit" value="SEND MESSAGE" class="submitButton" type="submit" /><div style="visibility:hidden; width:1px; height:1px"><input name="url" type="text" size="45" id="url" /></div></p>
</form>
And this is the PHP I'm using to submit the form data for contact-form-script.php:
<?php
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$to = "[email protected]";
$subject = "Contact from website";
$message = $headers;
$message .= "Name: " . $_POST["name"] . "\r\n";
$message .= "E-mail: " . $_POST["email"] . "\r\n";
$message= '
<table cellspacing="0" cellpadding="8" border="0" width="500">
<tr>
<td colspan="2"></td>
</tr>
<tr bgcolor="#eeeeee">
<td width="154" style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Name</strong></td>
<td width="314" style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$name.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>E-mail address:</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$email.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Telephone number:</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$telephone.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Company:</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$company.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Address</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$address1.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$address2.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Town</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$town.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>County</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$county.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Postcode</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$postcode.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td colspan="2" style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Message</strong></td>
</tr>
<tr bgcolor="#eeeeee">
<td colspan="2" style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$message.'</td>
</tr>
<tr><td colspan="2" style="padding:0px;"><img src="images/whitespace.gif" alt="" width="100%" height="1" /></td></tr>
</table>
$url = stripslashes($_POST["url"]);
if (!empty($url)) {
header( 'Location: http://www.go-away-spam-robots.com' );
exit();
mail($to, $subject, $message, $headers);
header( 'Location: http://www.mydomain.com/sent.php' ) ;
?>
Any help on this would be greatly appreciated.
Thank you and I hope to hear from you!
SMRevised code with form validation for Name Email and Message:
<?php
if (array_key_exists('submit', $_POST)) {
$name = $_POST['name'];
$email = $_POST['email'];
$telephone = $_POST['telephone'];
$company = $_POST['company'];
$address1 = $_POST['address1'];
$address2 = $_POST['address2'];
$town = $_POST['town'];
$county = $_POST['county'];
$postcode = $_POST['postcode'];
$formMessage = $_POST['message'];
if (empty($name)) {
$warning['name'] = "Please provide your name";
if (empty($email)) {
$warning['email'] = "Please provide your email";
if (empty($formMessage)) {
$warning['message'] = "Please provide your message";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$to = "[email protected]";
$subject = "Contact from website";
$message = $headers;
$message .= "Name: " . $_POST["name"] . "\r\n";
$message .= "E-mail: " . $_POST["email"] . "\r\n";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$message= "
<table cellspacing='0' cellpadding='8' border='0' width='500'>
<tr>
<td colspan='2'></td>
</tr>
<tr bgcolor='#eeeeee'>
<td width='154' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Name</strong></td>
<td width='314' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$name."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>E-mail address:</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$email."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Telephone number:</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$telephone."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Company:</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$company."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Address</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$address1."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$address2."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Town</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$town."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>County</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$county."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Postcode</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$postcode."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td colspan='2' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Message</strong></td>
</tr>
<tr bgcolor='#eeeeee'>
<td colspan='2' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$formMessage."</td>
</tr>
<tr><td colspan='2' style='padding: 0px;'><img src='images/whitespace.gif' alt='' width='100%' height='1' /></td></tr>
</table>
$url = stripslashes($_POST["url"]);
if (!empty($url)) {
header( 'Location: http://www.go-away-spam-robots.com' );
exit();
if (!isset($warning)) {
mail($to, $subject, $message, $headers);
header( 'Location: http://www.mydomain.com/sent.php' ) ;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
p {
margin: 0;
padding: 10px 0 0 0;
.warning {
color:#C00;
</style>
</head>
<body>
<form action="" method="post" name="contact" id="contact">
<p><strong>Name:*</strong><br />
<input name="name" <?php if (isset($warning['name'])) { echo "style='border: 1px solid #C00'"; } ?> type="text" class="ctextField" />
<?php if (isset($warning['name'])) { echo "<p class='warning'>".$warning['name']."</p>"; }?>
</p>
<p><strong>E-mail:*</strong><br />
<input name="email" <?php if (isset($warning['email'])) { echo "style='border: 1px solid #C00'"; } ?>type="text" class="ctextField" />
<?php if (isset($warning['name'])) { echo "<p class='warning'>".$warning['email']."</p>"; }?>
</p>
<p><strong>Telephone:</strong><br />
<input name="telephone" type="text" class="ctextField" /></p>
<p><strong>Company:</strong><br />
<input name="company" type="text" class="ctextField" /></p>
<p><strong>Address:</strong><br />
<input name="address1" type="text" class="ctextField" /></p>
<p><input name="address2" type="text" class="ctextField" /></p>
<p><strong>Town:</strong><br />
<input name="town" type="text" class="ctextField" /></p>
<p><strong>County:</strong><br />
<input name="county" type="text" class="ctextField" /></p>
<p><strong>Postcode:</strong><br />
<input name="postcode" type="text" class="ctextField" /></p>
<p><strong>Message:*</strong><br />
<?php if (isset($warning['message'])) { echo "<p class='warning'>".$warning['message']."</p>"; }?>
<textarea name="message" <?php if (isset($warning['message'])) { echo "style='border: 1px solid #C00'"; } ?> cols="55" rows="8" class="ctextField"></textarea></p>
<p><input name="submit" value="SEND MESSAGE" class="submitButton" type="submit" /><div style="visibility:hidden; width:1px; height:1px"><input name="url" type="text" size="45" id="url" /></div></p>
</form>
</body>
</html> -
Need help for working in forms
Hi i am using oracle 10g and forms 6i.
I written one query in toad it is working fine but when i put in forms-6i it's giving error. i understood that it's not taking inline views.
Here i am going to put the query can any body please help to work in forms also.
SELECT PART_NO,DESCRIPTION,DEFECT_QTY,DESTRUCTION_QTY,DEFECT_QTY-DESTRUCTION_QTY PENDING
FROM (SELECT ESD.PART_NO,EPM.PRT_DESCRIPTION DESCRIPTION,SUM(DEFECT_QTY) DEFECT_QTY,
NVL(SUM((SELECT SUM(DECODE(TRAN_TYPE,'E',QTY))
FROM EIIS_DEFECTTRANTB
WHERE REJ_NO=ESD.DRS_NO AND PART_NO = ESD.PART_NO)),0) DESTRUCTION_QTY
FROM EIIS_SUPDEFECT_HDR ESH,
EIIS_SUPDEFECT_DTL ESD,
EPPS_PARTTB EPM
WHERE ESH.DRS_NO = ESD.DRS_NO
AND ESD.PART_NO = EPM.PRT_PARTNO
AND ESH.REJ_TYPE ='M'
AND ESH.STATUS = 2
GROUP BY ESD.PART_NO,EPM.PRT_DESCRIPTION)
WHERE DEFECT_QTY-DESTRUCTION_QTY>0
Thanks in advance...
Regards
indraIf it's working in toad it will definitely work in forms also,make sure that bind variables you are keeping should be in the data block..Try to print a message after your query so that you will know whether control is going to your query or not.
Declare
v_test VARCHAR2(100);
Begin
SELECT PART_NO,DESCRIPTION,DEFECT_QTY,DESTRUCTION_QTY,DEFECT_QTY-DESTRUCTION_QTY PENDING
INTO
FROM (SELECT ESD.PART_NO,EPM.PRT_DESCRIPTION DESCRIPTION,SUM(DEFECT_QTY) DEFECT_QTY,
NVL(SUM((SELECT SUM(DECODE(TRAN_TYPE,'E',QTY))
FROM EIIS_DEFECTTRANTB
WHERE REJ_NO=ESD.DRS_NO AND PART_NO = ESD.PART_NO)),0) DESTRUCTION_QTY
FROM EIIS_SUPDEFECT_HDR ESH,
EIIS_SUPDEFECT_DTL ESD,
EPPS_PARTTB EPM
WHERE ESH.DRS_NO = ESD.DRS_NO
AND ESD.PART_NO = EPM.PRT_PARTNO
AND ESH.REJ_TYPE ='M'
AND ESH.STATUS = 2
GROUP BY ESD.PART_NO,EPM.PRT_DESCRIPTION)
WHERE DEFECT_QTY-DESTRUCTION_QTY>0
message('Query is' || v_test);
END;Edited by: sandy on Feb 7, 2012 11:15 AM
Edited by: sandy on Feb 7, 2012 11:16 AM -
Need help filling out pdf forms on iPad
Adobe Reader (11.0.1) on my iPad2 (iOS 6.1.3) is not letting me fill out a form (just a bunch of text fields) that was created with Acrobat 8 Pro/LiveCycle. The form can be filled out fine with Reader 11.x on my WinXP desktop though. Any ideas?
No, you'll be just the same.
You need to not use LiveCycle Designer, but make the form in Adobe Acrobat. Everything you know about making forms in LiveCycle Designer will not help you at all.
These are a different kind of form, made differently, and with different features (e.g. they are always static in layout).
Also, you start with an existing PDF (not a form) for all the background and fixed text, then just add fields.
There are other things to do like avoid JavaScript. Start with very simple forms and test features, there doesn't seem to be a comprehensive list. -
Need help with hiding a form td
I am trying to set something up where I import a csv file
with only a bunch of ID numbers. From those numbers I query and get
the persons name and all that. For each record I want to show a
<select> drop down menu to choose some options. Everything
seems to be working fine right now but if I have invalid ID numbers
it still displays a drop down menu.
So say I have 13 ID numbers in the csv file and 2 of them are
invalid. It displays a form select drop down box for all 13. I want
to hide this somehow if the numbers are invalid. Here is my code:
<cfloop index="index" list="#csvfile#"
delimiters="#chr(10)##chr(13)#">
<cfset list = #listgetAt('#index#',1, ',')#>
<cfoutput>
<cfquery name="a" datasource="a">
SELECT S1.Name, S1.Cardnumber
FROM IDs S1
WHERE S1.CardNumber = ('#list#')
</cfquery>
</cfoutput>
<cfif #a.recordcount# lt 1>
<cfoutput>Invalid ID: #list#</cfoutput>
</cfif>
<cfquery name="b" datasource="a">
select Level
from IDsAccLevels
where ID = '#userid#'
ORDER BY Level
</cfquery>
Any help or ideas would be appreciated.
<cfoutput query="a">
<tr>
<td align = "left" style="PADDING-LEFT:
5px">#CardNumber#</td>
<td style="PADDING-LEFT: 5px">#Name#</td>
</cfoutput>
<form name="test" method="post" action="schedule.cfm"
target="_self" ID="testrow">
<td height=21 class="pad5">
<select name="bldgarea">
<cfoutput query="b">
<option value="#Level#">
#Level# </option>
</cfoutput>
</cfif>
</cfloop>
</select>
</form>
</td>
</td>
</tr>quote:
Originally posted by:
siriiven
Isn't that what I am doing now?
No. You are looping through a list, and running individual
queries inside that loop. -
Urgent - Need help on Coding in Forms
I created a Master/Detail form. I now wish to create a field to display the sum total of a Detail field.
I wrote a loop in a Program Unit which has the count upto last_record (Restricted Built-in) but cannot use this call from a Post Query due to Forms' limitation of not using a Restricted Built-in/Procedure in a Pre/Post trigger.
I also cannot use the call to the Program Unit in a Key-ExeQry trigger as Oracle Apps. has the Ctrl+F11 key for Execute Query. Since the form is built for query purpose for now, I wish to display the totals upon Execute Query.
Where can I make the call for this Program Unit or what code do I need to write and where in order to display the total upon Execute Query.
Any help would be greatly appreciated.hi,
sorry to hurt you. Sometimes you can solve a problem in forms without writing any code
create a field with number datatype
in the property pallette
calculation mode = summary
summary function = sum
summarized field = <name of the field of which you want a sum>
Set the block level property
Query all records = yes
now ctrl + r
F8
HTH
vinayak
(if you want the test form that i created for you you can mail me)
null -
Need help in getting process form data
Hi,
We have one IT resource type definition say SSH. We have number of IT resources-abc,xyz of same type-SSH .
When user gets provisioned to this resource, then in the resource profile, we can see resource name as SSH. In the process form of SSH we can see the IT resource name -abc,xyz
Now the requirement is I need this IT resource name from process forom of SSH. I have written one java code which sends out an email to application owner when this SSH resource is revoked. But I need to show the IT resource name-abc,xyz in the email to application owners.
Can anybody help to get the process form data?
Thanks,
Kalpana.yes, add new attribute to the process form and populate using adapter find below code
public long getITResource(String itResource) {
long returnValue = 0;
String methodName = "getITResource";
try {
tcITResourceInstanceOperationsIntf tcITResourceIntf = (tcITResourceInstanceOperationsIntf)Platform.getService(tcITResourceInstanceOperationsIntf.class);
HashMap<String, String> map = new HashMap<String, String>();
map.put("IT Resources.Name", itResource);
tcResultSet resultSet = tcITResourceIntf
.findITResourceInstances(map);
if (resultSet.getRowCount() <= 0) {
logger.error(className, methodName,
"Following IT Resource not fetched:" + map);
throw new Exception("IT Resource not fetched");
resultSet.goToRow(0);
logger.info(className, methodName, "ITResource determined.");
// Got the result
returnValue = resultSet.getLongValue("IT Resources.Key");
tcITResourceIntf.close();
ops.closeUtilityObject();
return returnValue;
} catch (Exception e) {
logger.error(className, methodName, e.getMessage());
return returnValue;
pass itResource name as literal in adapter. If it is 10g use tcUtilityFactory instead of Platforml.getService
--nayan -
Need help regarding the dunning form
Hi,
I have to display all the sales and payments of a cusomter for all the periods that are older than the run date in a dunning form. (i.e) if the run date is 04-aug-05 and if the slaes are there in 3 months(april, May, july) then i have to display three line items with sales and payments for that corresponding three months in the line items. As this is a dunning form i cannot change the print program. any table which have all the sales for a period which i can access directly in the script. can anyone suggest how to handle this.
regards,
AshaHi,
You can call a subroutine within a program (your z program)
/: PERFORM ADD_AMOUNT IN PROGRAM SAPLZFTP_F150
/: USING &W_AMOUNT&
/: ENDPERFORM
In the z program create this subroutine.
Form ADD_AMOUNT
-->FT_INVAR Text Symbol table for input variables
-->FT_OUTVAR Text Symbol table for output variables
FORM add_amount TABLES ft_invar STRUCTURE itcsy
ft_outvar STRUCTURE itcsy.
STATICS:
w_value_l TYPE f150d-salfw.
READ TABLE ft_invar INDEX 1.
IF sy-subrc IS INITIAL.
you can check all this part of the code how you want to
process your data whether its numeric or character or
whatever
w_value_l = w_value_l + ft_invar-value.
ENDIF. "IF sy-subrc IS INITIAL.
ENDFORM. " ADD_AMOUNT
TO BESPOKE THE PRINT PROGRAM FOR THE DUNNING
Dunning outputs use the function module FI_DUNNING_PRINT_NOTICE. You can copy this to a Z function module and make some changes to the data selection. You will have to look into the code and decide what changes you need.
The process to use a bespoke program to do the dunning print is as follows:
UNDER FI GLOBAL SETTINGS in the configuration,
There are Business Transaction Events. Within that you can configure the same to enable a Z function module in place of the standard function module (from the FUNCTION GROUP F150)
Create function group ZFTP_F150
Copy standard function module FI_PRINT_DUNNING_NOTICE of function group F150 to ZFTP_FI_PRINT_DUNNING_NOTICE in function group ZFTP_F150
Copy standard function module PRINT_DUNNING_NOTICE of function group F150 to ZFTP_PRINT_DUNNING_NOTICE in function group ZFTP_F150
Within the function module ZFTP_FI_PRINT_DUNNING_NOTICE, change function module call for PRINT_DUNNING_NOTICE to ZFTP_PRINT_DUNNING_NOTICE
Create a new include ZFTPI_ROUTINES within the function group and copy the subroutines LOG_MSG, LOG_MSG_TAB, & LOG_SYMSG from the function group F150 to this include
AS AN ALTERNATE, YOU CAN COPY THE WHOLE FUNCTION GROUP
Maintenance view TBE31 (SM30). Change the function module from FI_PRINT_DUNNING_NOTICE to ZFTP_FI_PRINT_DUNNING_NOTICE against the event 00001720 FI-FI entry
Hope this helps.
regards,
Satya -
Need help on Printing Samrt Form via Web Dynpro
Hi All !
How can I print smartform that is displayed as PDF in web dynpro by clicking my custom button.
I am unable to get solution please help me.
Thanks & Regards!
KrishnaHi Ragavendra !
Thank you for telling but its not the solution for my problem .
Actually I need a custom button "Print All' that prints all smart forms.
Not individually by clicking print button.
Thanks ! -
Need help with check out form - Payment method error
When I check out error comes up "Payment Method must be selected" though it is.
The 30 day account option works but Credit cards get the above error.
Anyone able to help me?
Andrew
<h1>Checkout</h1>
<p class="required-h1-tip"><span>*</span> Required field</p>
<p>Please fill out the required fields, delivery address and payment fields.</p>
<hr />
<section class="checkout form-container">
<form name="catwebformform42059" class="form-generic-a checkout-a" id="catwebformform42059" onsubmit="return checkWholeForm42059(this)" action="/FormProcessv2.aspx?WebFormID=10850&OID={module_oid}&OTYPE={module_otype} &EID={module_eid}&CID={module_cid}" enctype="multipart/form-data" method="post">
<fieldset>
<h2 class="a">1. Account Information</h2>
<!--<div class="row">
<p class="field field-a">
<label for="username">User Name <em>*</em></label>
<input type="text" value="{module_username}" id="f-username" class="text" name="UserName" />
</p>
<p class="field field-b">
<label for="password">Password <em>*</em></label>
<span class="half">
<input type="password" value="{module_password}" id="f-password" class="text" name="Password" />
</span></p>
<p class="field field-b">
<label for="confirm-password">Confirm <em>*</em></label>
<span class="half">
<input type="password" value="{module_password}" id="f-password-confirm" class="text" name="PasswordConfirm" />
</span></p>
</div>-->
<div class="row">
<p class="field field-a">
<label for="first-name">First Name <em>*</em></label>
<input type="text" name="FirstName" class="text" id="f-first-name" value="{module_firstname}" />
</p>
<p class="field field-a">
<label for="last-name">Last Name <em>*</em></label>
<input type="text" name="LastName" class="text" id="LastName" value="{module_lastname}" />
</p>
</div>
<div class="row">
<p class="field field-a">
<label for="email">Email Address <em>*</em></label>
<input type="text" name="EmailAddress" class="text" id="f-email" value="{module_emailaddress}" />
</p>
<p class="field field-a">
<label for="phone">Phone Number <em>*</em></label>
<input type="text" name="HomePhone" class="text" id="f-phone" value="{module_homephone}" />
</p>
</div>
<div class="row checkbox"><span class="tick">
<input type="checkbox" name="CampaignList_20945" class="tick" id="f-updates" />
</span>
<label for="newsletter-a">Keep me up to date on product information, sales, and special offerings.</label>
</div>
</fieldset>
<hr />
<fieldset>
<h2 class="a">2. Shipping Address</h2>
<div class="row">
<p class="field field-a">
<label for="ShippingAttention">Shipping Name: <em>*</em></label>
<input type="text" class="text" id="ShippingAttention" name="ShippingAttention" />
</p>
</div>
<div class="row">
<p class="field field-a">
<label for="shipping-addr-1">Address Line 1 <em>*</em></label>
<input type="text" class="text" id="ShippingAddress" name="ShippingAddress" />
</p>
<p class="field field-a">
<label for="shipping-addr-2">Address Line 2</label>
<input type="text" class="text" id="ShippingAddress2" name="ShippingAddress2" />
</p>
</div>
<div class="row">
<p class="field field-a">
<label for="shipping-city">City <em>*</em></label>
<input type="text" class="text" id="ShippingCity" name="ShippingCity" />
</p>
<p class="field field-a">
<label for="shipping-state">State <em>*</em></label>
<input type="text" class="text" id="ShippingState" name="ShippingState" />
</p>
</div>
<div class="row">
<div class="field field-a">
<p class="field-b">
<label for="ShippingZip">Zip / Postal Code <em>*</em></label>
<input type="text" class="text" id="ShippingZip" name="ShippingZip" />
</p>
</div>
<!-- <p class="field field-a">
<label for="shipping-phone">Phone Number <em>*</em></label>
<input type="text" id="shipping-phone" name="shipping-phone" />
</p> -->
</div>
</fieldset>
<hr />
<fieldset>
<h2 class="a">3. Billing Address</h2>
<div class="row checkbox"><span class="tick">
<input type="checkbox" class="tick" value="1" id="f-shipping-same" name="same_shipping" />
</span>
<label for="billing-same-as-shipping">Check this box if billing address is the same as shipping address.</label>
</div>
<div class="row">
<p class="field field-a">
<label for="billing-addr-1">Address Line 1 <em>*</em></label>
<input type="text" value="{module_homeaddress}" id="BillingAddress" class="text" name="BillingAddress" />
</p>
<p class="field field-a">
<label for="billing-addr-2">Address Line 2 <em>*</em></label>
<input type="text" class="text" id="BillingAddress2" name="BillingAddress2" />
</p>
</div>
<div class="row">
<p class="field field-a">
<label for="billing-city">City <em>*</em></label>
<input type="text" value="{module_homecity}" id="BillingCity" class="text" name="BillingCity" />
</p>
<p class="field field-a">
<label for="billing-state">State <em>*</em></label>
<input type="text" value="{module_homestate}" id="BillingState" class="text" name="BillingState" />
</p>
</div>
<div class="row">
<p class="field field-b">
<label for="BillingZip">Zip / Postal Code <em>*</em></label>
<input type="text" value="{module_homezip}" id="BillingZip" class="text" name="BillingZip" />
</p>
</div>
</fieldset>
<hr />
<fieldset id="credit-card-information">
<h2 class="a">4. Payment Options</h2>
<div class="row">
<h4>Approved 30 DayAccount Customer</h4>
<p class="field">Please select
</p>
<input type="radio" name="PaymentMethodType" id="PaymentMethodType" value="8" /><span style="font-size: 18px; color: #ffff00;">Account Customers Only</span><hr />
<h2>Pay by Credit Card</h2>
<p class="row row-accepted-cards">
We accept the following credit cards: <img alt="" src="temp/cards.png" /> </p>
<label for="card-type">Card Type <em>*</em></label>
<span class="select">
<select name="CardType" class="text" id="f-cc-type">
<option selected="selected" value="1">Visa</option>
<option value="2">Master Card</option>
<option value="4">American Express</option>
</select> </span>
</div>
<div class="row">
<p class="field field-a">
<label for="name-on-card">Name on Card <em>*</em></label>
<input type="text" name="CardName" class="text" id="f-cc-name" />
</p>
<p class="field field-a">
<label for="card-number">Card Number <em>*</em></label>
<input type="text" name="CardNumber" class="text" id="f-cc-number" />
</p>
</div>
<div class="row">
<p class="field card-expiration">
<label for="card-exp-month">Card Expiration <span class="offset">Month</span> <em>*</em></label>
<span class="select one">
<select name="CardExpiryMonth" class="s" id="f-cc-exp-month">
<option selected="selected" value="1">January</option>
<option value="2">February</option>
<option value="3">Mar</option>
<option value="4">Apr</option>
<option value="5">May</option>
<option value="6">Jun</option>
<option value="7">Jul</option>
<option value="8">Aug</option>
<option value="9">Sep</option>
<option value="10">Oct</option>
<option value="11">Nov</option>
<option value="12">Dec</option>
</select>
</span>
<label class="offset" for="card-exp-year">Card Expiration Year<em>*</em></label>
<span class="select">
<select name="CardExpiryYear" class="xs" id="f-cc-exp-year">
<option value="2015">2015</option>
<option value="2016">2016</option>
<option value="2017">2017</option>
<option value="2018">2018</option>
<option value="2019">2019</option>
<option value="2020">2020</option>
<option value="2021">2021</option>
<option value="2022">2022</option>
</select>
</span></p>
</div>
<div class="row">
<div style="display: none;">
<input type="radio" name="PaymentMethodType" class="tick" id="f-payment-method-cc" value="1" />
<input type="radio" name="PaymentMethodType" id="PaymentMethodType_9" value="10" />
</div>
</div>
<div class="row">
<p class="field ccvn">
<label for="ccv-number">CCV Number <em>*</em></label>
<span class="ccv">
<input type="text" name="CardCCV" class="text" id="f-cc-cvv" />
</span></p>
</div>
</fieldset>
<div class="wrap total">
<p class="sum">Total: <strong><span class="amountSpan"></span></strong></p>
<p class="action"><button class="button-a" type="submit">Checkout</button></p>
</div>
<input type="hidden" name="Amount" class="cat_textbox" id="Amount" readonly="readonly" />
<script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script>
<script language="javascript" type="text/javascript">
//<![CDATA[
var submitcount42059 = 0;function checkWholeForm42059(theForm){var why = "";if (theForm.Username) why += isEmpty(theForm.Username.value, "Username"); if (theForm.Password && theForm.PasswordConfirm) { why += isEmpty(theForm.Password.value, "Password"); why += isEmpty(theForm.PasswordConfirm.value, "Confirm Password"); if (theForm.Password.value != theForm.PasswordConfirm.value) why += appendBreak("- Password and its confirmation do not match."); if (theForm.Password.value.length < 6) why += appendBreak("- Password must be 6 characters or longer."); }if (theForm.FirstName) why += isEmpty(theForm.FirstName.value, "First Name"); if (theForm.LastName) why += isEmpty(theForm.LastName.value, "Last Name"); if (theForm.HomePhone) why += isEmpty(theForm.HomePhone.value, "Phone Number"); if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value);if (theForm.ShippingAttention) why += isEmpty(theForm.ShippingAttention.value, "Shipping Name");if (theForm.ShippingAddress) why += isEmpty(theForm.ShippingAddress.value, "Shipping Address"); if (theForm.HomePhone) why += isEmpty(theForm.HomePhone.value, "Phone Number"); if (theForm.ShippingState) why += isEmpty(theForm.ShippingState.value, "Shipping State"); if (theForm.ShippingCity) why += isEmpty(theForm.ShippingCity.value, "Shipping City"); if (theForm.ShippingZip) why += isEmpty(theForm.ShippingZip.value, "Shipping Zipcode");
if (theForm.BillingAddress) why += isEmpty(theForm.BillingAddress.value, "Billing Address"); if (theForm.BillingState) why += isEmpty(theForm.BillingState.value, "Billing State"); if (theForm.BillingCity) why += isEmpty(theForm.BillingCity.value, "Billing City"); if (theForm.BillingZip) why += isEmpty(theForm.BillingZip.value, "Billing Zipcode");
if (!theForm.PaymentMethodType || getRadioSelected(theForm.PaymentMethodType) == 1) { if (theForm.CardName) why += isEmpty(theForm.CardName.value, "Name on Card"); if (theForm.CardNumber) why += isNumeric(theForm.CardNumber.value, "Card Number"); if (theForm.Amount) why += isCurrency(theForm.Amount.value, "Amount"); } if (theForm.PaymentMethodType) why += checkSelected(theForm.PaymentMethodType, "Payment Method");if(why != ""){alert(why);return false;}if(submitcount42059 == 0){submitcount42059++;theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}}
// Credit Card info is not required if paying by PayPal, Hosted Credit Card, COD etc
function ShowCCFields(val) {
if (!document.getElementById('paymentdiv'))
return;
if (val != 1)
document.getElementById('paymentdiv').style.display = 'none';
else
document.getElementById('paymentdiv').style.display = 'inline';
//]]>
</script>
</form>
</section>Locking this thread.
You only need one post on something -
Need help with Adobe Interactive Forms
Hi Gurus,
In my Adobe Form, I have large data and I need to add new body page horizontally after my Master Page. Can any body help me?
Regards,
SriniYou don´t display the body page, it is a template. So you onlyinstantiate the master page. If you want to have some pages with different orientation or something, create a second master page and control the use of the templates/ masters for the body pages/ subforms/content part of the form.
Regards Otto -
Need help scripting a DW form to dump into a MDB
I have been tasked with building a form which will dump into
an Access MDB table. That done, I do not see in DW how to cause the
action. Although I have created the Submit button and there is an
action associated with that button type, nothing happens when the
form is filled out. So I am missing an important
link....Help!you need to submit it to another file which in turn will
insert the information on the fold field using SQL. for example...
INSERT INTO contact
VALUES FORM.Firstname, FORM.LastName, FORM.Phone
I don't know what programming code you are using (Coldfusion,
PHP, ASP ..etc).
Here's more information.
http://www.w3schools.com/sql/sql_insert.asp
Maybe you are looking for
-
How to update a column with default in a tabular form.
We have a tabular form that has a submit button that does a multi row update. We would like to update a column with a defaut like APP_USER = updated user when the row is updated. Is this possible and how?
-
How do I stop a page downloading if I don't like it ?
it only started after latest update. Desktop pc, win xp, firefox 32.0
-
Files are being used by another application?
I recently tried to update my 5.5 gen 80GB ipod by putting some pictures on it the other day, but when I tried to eject it, it told me that it couldn't because some files were being used by another application. I unsynced the pictures from it but it
-
[SOLVED]Install Scribes after Archlinux's python3 update from october
I would like to install scribes with the latest updates, but since Archlinux switched to Python3 by default (in october), I am unable to do so. Before the update, i ran without problem: bzr branch lp:scribes cd scribes sh autogen.sh make sudo make in
-
HT5293 What is X11 used for ?
I was wondering what X11 program is used for ? It is included in the Launchpad as a program which I have never used.. You help is greatly appreciated.