I need to do an buy form
i have a problem, i'we made an form with one combo box , one text field and one text area where all the info is displayed. In the combo box there are 4 positions:Item 1 , Item 2, Item 3, Item 4. the user selects its item then types in the text field the amount of the item he wants, and in the textarea all this is displayed. this work but only with one Item. I mean, if i chose item 1 then select the amount of it it counts only this, and i want for example to add two Item 2's , and 3 Item 4's and to add everything up to make an over all price...
i need something that counts the price every time the button is pressed
sorry for my poor english
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
int selInd =jComboBox1.getSelectedIndex();
Object obj=jComboBox1.getSelectedItem();
String textIlosc= jTextField6.getText();
int liczba = Integer.parseInt(textIlosc);
double suma1=0.0;
double suma2=0.0;
double suma3=0.0;
double suma4=0.0;
double cena1=12.34;
double cena2=23.78;
double cena3=56.32;
double cena4=23.43;
if(obj.equals("Item 1")){
suma1=cena1*liczba;
ban1.deposit(suma1);
if(obj.equals("Item 2")){
suma1=cena2*liczba;
ban1.deposit(suma2);
cena=suma1+suma2;
arr1.insertP(obj , textIlosc , selInd ,cena );
// TODO add your handling code here:
You are setting the value of suma1,suma2....to Zero inside the method. What happens is ,it is initialised each time whenver the combo box is changed.
Do the initialisation outside the method. It will work fine.
Hope it helps.
thanks
Similar Messages
-
Autopopulate shipping on registration buy form
Hi all
I only have 1 possible shipping rate (determined by 5 different weight groups) for my online shop so want to be able to automatically add the shipping to the registration buy form without needing the customer to select it manually. Is there a way to do this?
thanks DebThanks Liam
Yes - thats exactly what I was after. I did find the code in the forum somewhere but have been searching and can't locate it again. My skills are not good enough to create from scratch.
cheers
deb -
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>
> -
I need to create a fillable form and then generate a reports.
Hello everybody. I need to create a fillable form and then generate a report using numbers. You know, for example if you have customers, I need to be able to write the usual , name, last name, address, and some other details and then using a standard letter I would like the form to be able to populate these fields automatically in a standard pre formatted letter by our company and then be able to print it.
Any help to point me in the right direction I would appretiate very much.
I have iwork 9 installed in my macbook proThis is acalled a mail merge and is solved using a combination of Numbers (or address book) and Pages. To get detailed help how to performa a mail merge start in Pages, then in the help menu type Mail Merge:
Also download the help files for Numbers and Pages here:
http://support.apple.com/manuals/#
Page 247 in the Pages User's Guide has details how to perform a a mail merge.
Post back with specific questions if you need to.
Regards,
Wayne -
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 to ommit the short form letter from the given string
HI,
I need to ommit the Short form letter from column data.
EX :
CREATE table #testdata
(id int identity(1,1),cust_address varchar(max))
insert into #testdata (cust_address)
select 'first street 5N, North'
union
select 'second street W, west'
union
select 'roja street 5S, South'
union
select 'temple street E, East'
union
select 'first street, Northwest, NW'
union
select 'first street, Southwest, SW'
select * from #testdata
actutal out put:
id cust_address
1 first street 5N, North
2 first street, Northwest, NW
3 first street, Southwest, SW
4 roja street 5S, South
5 second street W, west
6 temple street E, East
Need to ommit the Short form letter from this output,
condition , 1) the short form letter should have space in front of the letter ex : first street (space)N, North
so the output should be "first street, North" like that for other words like "first street, Southwest, SW" should be "first street, Southwest"
2) the short form letter should not combine with any other letter ex : first street 5N, North
here we dont need to do anything.
Required Out put :
id cust_address
1 first street 5N, North
2 first street, Northwest
3 first street, Southwest
4 roja street 5S, South
5 second street, west
6 temple street, East
Nandha KumarCREATE FUNCTION [dbo].[SplitString]
@str VARCHAR(MAX)
RETURNS @ret TABLE (token VARCHAR(MAX))
AS
BEGIN
DECLARE @x XML
SET @x = '<t>' + REPLACE(@str, ',', '</t><t>') + '</t>'
INSERT INTO @ret
SELECT x.i.value('.', 'VARCHAR(MAX)') AS token
FROM @x.nodes('//t') x(i)
RETURN
END
with cte
as
select *
from #testdata
CROSS APPLY (SELECT * FROM [dbo].[SplitString](cust_address)) AS der
) ,cte1
as
select *,
case when UPPER(token)=token COLLATE Latin1_General_BIN
then '' else token end as d
from cte
) ,CTE2
AS
(SELECT *,case when RIGHT(UPPER(D),1)=RIGHT(D,1) COLLATE Latin1_General_BIN
then replace(D,RIGHT(UPPER(D),1),'') else token end d1 FROM CTE1
SELECT m1.id,
( SELECT m2.D1 + ','
FROM cte2 m2
WHERE m2.id = m1.id
ORDER BY id
FOR XML PATH('') ) AS token
FROM cte2 m1
GROUP BY m1.id
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
NEED TO SEND MAIL FROM FORMS...
DEAR ALL,
I NEED TO SEND MAIL FROM FORMS WHEN I PRESS THE MAIL BUTTON.
I HAVE NO IDEA FOR THIS CRITERIA. IF ANY ONE EXPERIENCED WITH
THIS CRITERIA, PLS HELP ME AND GIVE ME THE CODING FOR THAT.
AND ALSO PLS EXPLAIN EACH LINE OF CODING, WHICH U POST.
THANKS IN ADVANCE
S.BERNANDASYour requirement can be done in forms. Good amounts of advice here. There 244 messages this year alone that fit the search criteria in the Oracle Forms forum.
-
Hi, I need find out a script form of MIGO
When user receive goods of PO using MIGO, they can print the goods receipt slip if they check the print box.
Now I need create a new script form instead the default one, but I can't find the configuration of it.
I think it should be SPRO->Material Management->Purchasing->Messages->Output Control->Message Types->Define message for purchase order , and I got the configuration of NEU, but the result looks not right.
Is there anyone can help me to find out the exactly configuration of the script form of MIGO?but there are no WT03 at all, all output types list below:
ET01 Material label
J1IB Excise Bonding ARE
J1IF Subcontract Challan
MLFH GR Missing Parts Msg
MLGR GR Message
MLMD GR Qty Deviation
MLUD GR under/Over deliv.
WA01 GI Note Vers.1
WA02 GI Note Vers.2
WA03 GI Note Vers.3
WAE1 GI Label Vers.1
WAE2 GI Label Vers.2
WAE3 GI Label Vers.3
WE01 GR Note Vers.1
WE02 GR Note Vers.2
WE03 GR Note Vers.3
WEE1 GR Label Vers.1
WEE2 GR Label Vers.2
WEE3 GR Label Vers.3
WEK1 Kanban Card 1
WF01 GR Prod. Ord. Vers.1
WF02 GR Prod. Ord. Vers.2
WLB1 GI Note RP Vers.1
WLB2 GI Note RP Vers.2
WLB3 GI Note RP Vers.3 -
Do customers need adobe to fill out forms
I am trying to do a meal order form to email to my customers for them to fill out and submit. Do my customers need Adobe to fill out form?
The answer depends on which Adobe FormsCentral workflow you use. If you plan to create a pdf form and email it to customers, then they will need the free Adobe Reader to fill out the form and submit the data to FormsCentral. If you create a FormsCentral HTML form and email a link to the form, then your customers will need a web browser to enter and submit data.
-
Need reference material on pdf forms
hi all,
I need to develop a pdf form in sap...But i have no knowledge about it..Can u suggest some good link or any reference so that i can have a concept of pdf forms and so that i can start developing one...Hi,
Please check the standard sap help
http://help.sap.com/saphelp_nw2004s/helpdata/en/37/47a2be350c4ac8afe36b691203971f/frameset.htm
Thanks,
Naren -
I need your help with buying one of your software programs.
I need your help with buying one of your software programs.
First of all I do not want to join this “Creative Cloud” for a monthly plan.
Adobe Illustrator CS6 is what I am wanting but every time I click on the buy button is keeps sending me to a rent page to use but I don’t want this I want to buy it program for my own use. I don’t want to rent it I want to buy it like all the other Adobe software programs that I have bought from you in the past.
Can you help with problem?
Tim Adams
[email protected]You can buy CS6 from this page
Creative Suite 6 -
I need a link to buy online battery for Mac Book Pro 15" late 2008. Can't find this battery in the Apple Store...Battery: Model No. A1281 10.8 V 50 Wh.
The only place that you can get an Apple battery is from Apple. All of the counterfeiter's will claim that they have an OEM battery for the simple reason so that they can fool you in purchasing from them.
At least from OWC you know exactly what you will be purchasing and they have a one year warranty. I have purchased two from them, one for my 2006 MBP and one for my 2010 MBP.
Ciao. -
What you need to know before buying an antenna
Isn’t it time you upgraded to an antenna? Wait… what? Upgrade to an antenna? Whether or not you’re a cord cutter (meaning you’ve cancelled your monthly television service) you might find that adding an antenna to your entertainment viewing space can be a great upgrade for a variety of reasons. Whatever those reasons are, here’s what you need to know before buying an antenna.
I don't set out to sell anything, I'm an independent writer tasked with writing stuff about things to inform people. We link stuff to help people find things if they want to buy them, but the above isn't a sales pitch, it's info to help people figure out if they want or need something.
I didn't know that there was a cabal of antenna dealers who have been promulgating a myth (as a writer: nicely done there) about the nature of NTSC and ATSC; I hadn't ever considered that the antenna market was that large. When I received the request to write an article about antennas I was actually surprised; antennas don't have the support of major telecommunications companies and I sincerely doubt that there's going to be a run on them because of this article. I saw this as a bit of a public service opportunity to talk about a technology that a small segment would be interested in.
Anyway, I'm not sure we're going to get much farther on this; yes Best Buy sells antennas, but no, they didn't ask for an ad. They asked for an article that focused on how these antennas work and what to look for. Thank you for adding your insight about ATSC - I think that was actually covered in paragraphy three, but it's nice to see it spelled out more directly.
Have a nice day - and if you'd like to discuss this directly, please send me a DM on twitter @thetechnogram -
Need itunes 7 to buy music???
It now says I need itunes 7 to buy music from itunes. Can't download itunes 7 on my PC..tried but it keeps screwing up the whole computer. So, I have a $200 ipod that I can no longer purchase music for from itunes. Does anyone have a good alternative to buy music? Apple is losing my business.
iTunes 6.05 should still work to purchase music from the iTunes Store. You only should need iTunes 7 if you want to purchase videos or movies. But it may bug you to upgrade from time to time; try turning off "Check for updates" in the iTunes General preference.
Maybe you are looking for
-
Problem with panelbox and af:table scrollbar issue and panelstretchlayout
Hi, <af:panelStretchLayout > <f:facet name="center"> <af:panelSplitter orientation="vertical" positionedFromEnd="true" inlineStyle="vertical-align:inherit;"> <f:facet name="first"> <af:subform default="false" id="xyz"> <af:panelBox background="light"
-
My wife has an I Tunes account on our PC, I have an I tune account on my Mac Book Pro. How can I get the music from her account on the PC to my account on the Mac Book and I phone?
-
I cannot update the song information on my iPod in iTunes.
I got an iPod Touch 4g about a year ago. Last month the iPod all the sudden stopped working. I took it into the store twice and the second time they simply replaced it with a new one. Since then I have been having two problems: 1) The operating syst
-
Preview in Source Monitor Failure - The Importer reported a generic error
Hello, I was wondering whether anybody might be able to help me? I'm pretty new to editing and using Premier Pro so this could be something very simple. I've shot a load of footage on a Sony PMW200 (shot 1080/25p) and copied all my footage onto a G-R
-
"Cells too small to split" importing XML
My hubris in presuming to advise other people about importing XML last week has been punished, it seems. I am trying to populate a table with data from an XML document. The XML has the following structure: order basket quantity.../quantity ti