Please tell me some link of good advance practice code on JTable&JTree
Hi, I am learning swing and developing a project .I read the sun document .Can u tell me some good link of learning the advace JTree&JTable . I want more expose in this area.
Thanks in advance,
anum
[url http://java.sun.com/docs/books/tutorial/uiswing/TOC.html]The Swing Tutorial
Similar Messages
-
Hi,
The following query is showing error An INSERT EXEC statement cannot be nested
CREATE PROCEDURE [dbo].[Procedur3]
@para1 int
AS
BEGIN
CREATE TABLE #tem
select * from detialpar where did=@para1
--this code is quite big and is called from many place so we kept it inside this SP , so that we can call the sp to get result.
END
CREATE PROCEDURE [dbo].[Procedur2]
@para1 int
@para2 datetime
AS
BEGIN
CREATE TABLE #tem
insert into #tem (value) exec [dbo].[Procedure3] @para1
exec ('select * from abc
left join #tem on id=temid
where id =' + cast(@para1 as varchar) -- i do not want to change this big dynamic query, because it has many optonal code concatinated by using "if then else".
END
CREATE PROCEDURE [dbo].[Procedure1]
@para1 int,
@para2 datetime
AS
BEGIN
delete from table1 where id=@para1
insert into table1 ( col1,col2) exec Procedure2 @para1,@para2
……. There are many blocks in this SP where we are deleting and inserting with different SP .
select Name,Amount from #Temp1
END
CREATE PROC Procedure
AS
BEGIN
SET TRANSACTION ISOLATION LEVEL SNAPSHOT
SET NOCOUNT ON
LOOP "A" starts here which gests id from a table xyz @para1
begin try
begin trans
exec [Procedure1] @para1
LOOP "A" ents here
COMMIT TRANSACTION;
END TRY
BEGIN CATCH
IF @@trancount > 0 ROLLBACK TRANSACTION;
END CATCH;
END
GO
Please tel me some good way of solving the error.
yours sincerlyYou can not do like above:
Try the below:(Not tested), Below, we do not change the code, however, we placed your dynamic execution to different procedure.
CREATE PROCEDURE [dbo].[Procedur3]
@para1 int
AS
BEGIN
CREATE TABLE #tem
insert into #tem (value)
select * from detialpar where did=@para1
--this code is quite big and is called from many place so we kept it inside this SP , so that we can call the sp to get result.
END
CREATE PROCEDURE [dbo].[Procedur2]
@para1 int
@para2 datetime
AS
BEGIN
CREATE TABLE #tem
exec [dbo].[Procedure3] @para1
END
CREATE PROCEDURE [dbo].[Procedure1]
@para1 int,
@para2 datetime
AS
BEGIN
delete from table1 where id=@para1
insert into table1 ( col1,col2)
exec ('select * from abc
left join #tem on id=temid
where id =' + cast(@para1 as varchar) -- i do not want to change this big dynamic query, because it has many optonal code concatinated by using "if then else".
……. There are many blocks in this SP where we are deleting and inserting
with different SP .
select Name,Amount from #Temp1
END
CREATE PROC Procedure
AS
BEGIN
SET TRANSACTION ISOLATION LEVEL SNAPSHOT
SET NOCOUNT ON
LOOP "A" starts here which gests id from a table xyz @para1
begin try
begin trans
exec [Procedure1] @para1
LOOP "A" ents here
COMMIT TRANSACTION;
END TRY
BEGIN CATCH
IF @@trancount > 0 ROLLBACK TRANSACTION;
END CATCH;
END
GO -
Please give me some links for pl sql exercises
Please show me some links or ebooks for plsql exercises
985011 wrote:
Please show me some links or ebooks for plsql exercisesThe best place is this forum itself..
Go through the questions.. Try to find the answer yourself.. And the compare it with the expert replies.. -
Please tell me some real time issues faced by u in SCRIPTS
please tell me some real time issues faced by u in ur experience
First understand SAP scripts are client dependent..changes automatically not reflects in all development client once it is change in once client.
We mostly see alignment issue in SAP script it is mostly because of printer settings etc...
Also we may have few problems when printing unicode characters.. for printing double digits characters... like Japanese, chinese, korean etc.. we should have a printer with unicode enabled..
Regards,
SaiRam -
Can anyone please tell me some basic infomation about Master data?
Can anyone please tell me some basic infomation about Master data like
1)The history of master data
2) Why it is so critical
3) What the advantages of it
4) What is the future of master data
Any inputs in this regard will be very helpful
Thanks in advanceHi Gowri,
Master data is backbone of any business software.It helps us to do transaction.
If you go to any ATM and do some transaction,you get a monthly statement.This monthly statement contains your address details and your transaction details.
So your address details and your account is like master data which is not changed so frequently but your transactions keep on happening on regular basis on your account and name.So your name and account are your master data which is set up once and donot change so frequently.
Similary if you create a Purchase order in SAP system.You need Material master and vendor master.The material master contains material details and vendor master contains vendor details and using that you create PO which is a transactional data which keep on happening for a particular vendor & material combination on regular basis.
So we set up master data once and make changes to these only when needed and record transaction against that.
So in first case your banking details which you enter while opening account is your master data and in next case Material Master and vendor master is master data which set up mostly once.
There are three types of data in SAP system
1. Organizational level data (ICICI Bank and Branch)
2. Master data (Your User data while opening account)
3. Transactional data (Your Regular transaction).
I hope ,you are clear on this by now.
There is a SAP software in Netweaver Stack now called MDM (Master data management) which will help to manage master data.
regards,Nishant
Please reward points if this helps.
Message was edited by:
Nishant Rajan -
Please tell me a link where I can download full version of Xcelsius 2008
Please tell me a link where I can download full version of Xcelsius 2008
1. Open SMP ftom http://service.sap.com
2. Click on SAP Support Portal
3. Login with s-user(having download access) and password. If you do not have the same, you have to get it from the basis team.
4. Go to Software Downloads > Installation and Upgrades > A-Z Index
5. Click on D
6. Click on SBOP DASHBOARDS (XCELSIUS)
7. Click on the link shown below:
8. Click on Installation Link and then you will get the download links. -
Please tell me some important tcodes
hi,
i am very new to MM .i would like know some important tcode.
Can you please tell me few tcodes in mm and their purposes.
Thanks in advance
Regards
Naresh.Pls check Links
http://www.sap-img.com/materials/list-of-sap-mm-transaction-codes.htm
http://www.sap-img.com/materials/important-sap-mm-tcodes-1.htm
http://www.sap-img.com/materials/important-sap-mm-tcodes-2.htm -
Please tel me which one is good approach of joining.
Dear all,
Table_2 has following data
c na
7.000 k
3.000 j
32.000 g
Table_1 has following data
c na
1.000 l
2.000 m
34.000 h
na is primary key for both tables.
i want only h and g should come in one row
select * from [Table_2] a CROSS JOIN table_1 b
where a.na='g' and b.na='h'
and a.c> b.c
select * from [Table_2] a inner JOIN table_1 b
on a.na='g' and b.na='h'
and a.c> b.c
select * from [Table_2] a , table_1 b
where a.na='g' and b.na='h'
and a.c> b.c
please tel me which one i should follow,
as i can see na is primary key so there can be other better methods also
please suggest.
yours sincerlyAll ways lead to Rome, they say, but I certainly prefer the solution with CROSS JOIN.
The solution with INNER JOIN could make sense depending on the business rules, but in such case I would write it as:
SELECT *
FROM [Table_2] a
JOIN table_1 b ON a.c> b.c
WHERE a.na='g'
AND b.na='h'
Or even:
SELECT *
FROM (SELECT * FROM Table_2 WHERE na = 'g') AS a
JOIN (SELECT * FROM Table_1 WHERE na = 'h') AS b ON a.c > b.c
I don't want the filtering on the individual columns in the ON clause for the JOIN. But admittedly, I rarely write queries in this style. Basically, I only do it if I do a full outer join (because else the query easily goes out of hand.)
The last version with a comma is very similar to the CROSS JOIN solution. However, while comma can be seen as a CROSS JOIN operator, it has a different precedence, which can result in unexpected compilation errors if you more JOIN operators to the query.
Erland Sommarskog, SQL Server MVP, [email protected] -
Please tell me the functionality of this piece of code
vl_faedn = sy-datum - 15.
All amount fields are 0.00 initially.
Please tell me the functionality of this code.What is the purpose of each query?
YD = Commission Advance
AB = Automatic Clearing Doc
Y4 = Commission Invoice
X4 = Commission Credit Memo
K1 = Commission Adj. Invoice
K2 = Commission Adj.Credit Memo
Retrieve the YD document type total for a Customer
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSID
WHERE BUKRS = VL_BUKRS AND
KUNNR = VL_KUNNR AND
UMSKS = 'C' AND
UMSKZ = 'C' AND
BLART = 'YD' AND
ZFBDT <= VL_FAEDN.
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_YD_AMNT = VL_YD_AMNT + VL_WRBTR.
ENDSELECT.
Retrieve the AB document type total for a Customer
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSID
WHERE BUKRS = VL_BUKRS AND
KUNNR = VL_KUNNR AND
UMSKS = 'G' AND
UMSKZ = 'G' AND
BLART = 'AB' AND
ZFBDT <= VL_FAEDN.
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_AB_AMNT = VL_AB_AMNT + VL_WRBTR.
ENDSELECT.
Retrieve the Y4 document type total for a Vendor
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSIK
WHERE BUKRS = VL_BUKRS AND
LIFNR = VL_LIFNR AND
( blart = 'Y4' OR blart = 'X4' OR blart = 'K1' OR blart = 'K2' ).
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_Y4_AMNT = VL_Y4_AMNT + VL_WRBTR .
ENDSELECT.
VL_Y4_AMNT = -1 * VL_Y4_AMNT.
Retrieve the YD document type total for a Vendor
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSIK
WHERE BUKRS = VL_BUKRS AND
LIFNR = VL_LIFNR AND
blart = 'YD'.
( BLART = 'YD' OR BLART = 'K1' OR
BLART = 'K2' ). " Insert
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_YD_AMNT1 = VL_YD_AMNT1 + VL_WRBTR.
ENDSELECT.
VL_YD_AMNT1 = -1 * VL_YD_AMNT1 .
IF VL_Y4_AMNT = 0.
VL_TOT_AMOUNT = VL_YD_AMNT1 - VL_AB_AMNT.
ELSE.
VL_TOT_AMOUNT = VL_Y4_AMNT - ( VL_YD_AMNT + VL_AB_AMNT ).
ENDIF.Hi
I dont know what functionality you are asking, Still I try to answer some things, If it's not forgive
vl_faedn = sy-datum - 15.
All amount fields are 0.00 initially.
Please tell me the functionality of this code.What is the purpose of each query?
YD = Commission Advance
AB = Automatic Clearing Doc
Y4 = Commission Invoice
X4 = Commission Credit Memo
K1 = Commission Adj. Invoice
K2 = Commission Adj.Credit Memo
Retrieve the YD document type total for a Customer
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSID
WHERE BUKRS = VL_BUKRS AND
KUNNR = VL_KUNNR AND
UMSKS = 'C' AND
UMSKZ = 'C' AND
BLART = 'YD' AND
ZFBDT <= VL_FAEDN.
The Above query retrieves field values WRBTR SHKZG from BSID table to the Local Variable VL_WRBTR & VL_SHKZG , if it satisfies the WHERE condition mentioned for the YD docu type for the Customer
What I suggests , the IF operation should be outside the SELECT-ENDSELECT. May be you have a requirement, I dont know
Atleast You have to perform SUBRC check.. Before the IF operation. for the VL_SHKZG = 'H'.
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_YD_AMNT = VL_YD_AMNT + VL_WRBTR.
ENDSELECT.
i.e., What , Here every SELECT query is performing for some document type for customer and vendor with some variable arithmetic operations .
Retrieve the AB document type total for a Customer
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSID
WHERE BUKRS = VL_BUKRS AND
KUNNR = VL_KUNNR AND
UMSKS = 'G' AND
UMSKZ = 'G' AND
BLART = 'AB' AND
ZFBDT <= VL_FAEDN.
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_AB_AMNT = VL_AB_AMNT + VL_WRBTR.
ENDSELECT.
Retrieve the Y4 document type total for a Vendor
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSIK
WHERE BUKRS = VL_BUKRS AND
LIFNR = VL_LIFNR AND
( blart = 'Y4' OR blart = 'X4' OR blart = 'K1' OR blart = 'K2' ).
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_Y4_AMNT = VL_Y4_AMNT + VL_WRBTR .
ENDSELECT.
VL_Y4_AMNT = -1 * VL_Y4_AMNT.
Retrieve the YD document type total for a Vendor
SELECT WRBTR SHKZG
INTO (VL_WRBTR, VL_SHKZG)
FROM BSIK
WHERE BUKRS = VL_BUKRS AND
LIFNR = VL_LIFNR AND
blart = 'YD'.
( BLART = 'YD' OR BLART = 'K1' OR
BLART = 'K2' ). " Insert
IF VL_SHKZG = 'H'.
VL_WRBTR = VL_WRBTR * -1.
ENDIF.
VL_YD_AMNT1 = VL_YD_AMNT1 + VL_WRBTR.
ENDSELECT.
VL_YD_AMNT1 = -1 * VL_YD_AMNT1 .
IF VL_Y4_AMNT = 0.
VL_TOT_AMOUNT = VL_YD_AMNT1 - VL_AB_AMNT.
ELSE.
VL_TOT_AMOUNT = VL_Y4_AMNT - ( VL_YD_AMNT + VL_AB_AMNT ).
ENDIF.
Reward points if useful
Edited by: GP on May 10, 2008 9:02 PM -
Could U Please Tell me the Link B/W Work Center and Plant ?
Urgent Issue ...
Hi,
The org structure is as follows-
1 st - Company code
2 nd - Plant
3 rd - Work center
First co code is created (by FICO) then Plant is created (by MM) then come s the creation of work center.
When we create a Work center it will ask about the plant in which the WC is to be created. The work center is directly linked to the plant.
Please revert with further details of your question if this answer is not satisfactory.
Award points if satisfied.
Thanks,
Hemant -
Please tell me some information about gmail
hi, everybody. I'm a long time OSX user but I never used the "mail." Now, I want to try mail with my gmail account but I found it's not that easy. First of all, what type of account is the gmail? IMAP, POP, or Exchange? Next, what is incoming mail server and outgoing mail server? Thanks so much!
Gmail offers POP, which means you can use Mail.app like a regular ISP account. If you need an invite to GMail email me at the address on http://Gnarlodious.com/
Once yiou have a Gmail address you need to enable POP (which includes SMTP). There is a help link on the GMail page that allows you to enable POP and other features.
Once that is turned on, you need to set up the Mail.app for downloading your mail (and uploading). There are excellent instruction pages on Gmail, which I believe someone else gave you. -
Could you please give me some link driver windows Ultimate for mackbook pro
hi any body there help me about downloading driver of windows 7 Ultimate for mabook pro
Well this is certainly not the appropriate place to ask for that. Try in the macbook forum please, this is Ipad troubleshooting forum.
-
Please tell me some conversion tools to generate java help
hello,
I am doing some project of migration, and I need some tools to convert from windows help file (chm) to java help file.
Anyone has some experience of that?
If not possible, what's the fastest way to do the conversion?
ThanksHello,
You don't mention what format the source files are in, so I'm assuming that you only have access to the actual .chm files and not whatever those were created from. Given that, you'll need a tool that is capable of backward converting Help output into some source format, and then converting that to JavaHelp. I don't know of anything that would convert directly from .chm to JavaHelp.
I believe that RoboHelp is capable of taking Window Help output and converting it backwards to source, and it is also supports JavaHelp, so this would be one tool to investigate.
HelpBreeze is another tool that supports both formats and is also a lot cheaper that RoboHelp.
I apologize for not having first-hand experience with either of these. We currently use a CMS tool, AuthorIT, to single source publish to JavaHelp and other outputs. -
Does FF still have a repair button?
Explain your problem maybe we can help.
All the options from that image above can be achieved by other means, and the reset option is worth trying, as mentioned by ''Ed'' in the first post
* [[Reset Firefox – easily fix most problems]] -
Please tell me what is the problem with this code
Hai,
Iam new to Swings. can any one tell what is the problem with this code. I cant see those controls on the frame. please give me the suggestions.
I got the frame ,but the controls are not.
this is the code:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class ex2 extends JFrame
JButton b1;
JLabel l1,l2;
JPanel p1,p2;
JTextField tf1;
JPasswordField tf2;
public ex2()
setDefaultCloseOperation(EXIT_ON_CLOSE);
setTitle("Another example");
setSize(500,500);
setVisible(true);
b1=new JButton(" ok ");
p1=new JPanel();
p1.setLayout(new GridLayout(2,2));
p2=new JPanel();
p2.setLayout(new BorderLayout());
l1=new JLabel("Name :");
l2=new JLabel("Password:");
tf1=new JTextField(15);
tf2=new JPasswordField(15);
Container con=getContentPane();
con.add(p1);
con.add(p2);
public static void createAndShowGUI()
ex2.setDefaultLookAndFeelDecorated(true);
public static void main(String ar[])
createAndShowGUI();
new ex2();
}import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class ex2 extends JFrame
JButton b1;
JLabel l1,l2;
JPanel p1,p2;
JTextField tf1;
JPasswordField tf2;
public ex2()
setDefaultCloseOperation(EXIT_ON_CLOSE);
setTitle("Another example");
b1=new JButton(" ok ");
p1=new JPanel();
p1.add(b1);
p2=new JPanel();
p2.setLayout(new GridLayout(2,2));
l1=new JLabel("Name :");
l2=new JLabel("Password:");
tf1=new JTextField(15);
tf2=new JPasswordField(15);
p2.add(l1);
p2.add(tf1);
p2.add(l2);
p2.add(tf2);
Container con=getContentPane();
con.add(p1, BorderLayout.NORTH);
con.add(p2, BorderLayout.CENTER);
pack();
setVisible(true);
public static void createAndShowGUI()
ex2.setDefaultLookAndFeelDecorated(true);
public static void main(String ar[])
createAndShowGUI();
new ex2();
}
Maybe you are looking for
-
Auditioning wav loops at correct tempo
Hi Forum I have been a Protools user for several years, but because of all the usual annoyances with PT I have decided to join the Logic camp, just today in fact. However one feature I am immediately missing is the protools equivalent of "Calculate E
-
For the past month (since Oct 11,2012) reporting services (SSRS 2008R2) is not starting after the server is rebooted. The service is set to automatically start and starts manually without a problem. The system event log contains the following error
-
When I send/receive an attachment the icon is changed to a generic preview
When I send or receive an attachment the native icon such as photoshop or illustrator is replaced by a generic preview icon with a magnifing loop on it. How to I stop it from changing? thanks!!!!!
-
How to install Iperf in a MAC server
I need to installed Iperf in our Mac server but I do not how to do it or where find the software, All I have found in the internet is windows base Iperf, We are trying to use the MAC mini server for IT work and network testing and is not easy for som
-
Using LDAP Query in Active Directory to see what users are still logged ?
any suggestions for a LDAP query that I can use in AD to see who is still logged into the network? It would be great to distinguish who's logged in with a screen lock which means they aren't really at their PC vs what users are actually using their P