Transfer SLD content between SLDs in SLD 640
Is it possible to transfer content between two SLD systems in SLD version 640?
1.) I have a SLD (call it sldA) that contains the ABAP and JAVA data about DEV and QA system.
2.) I have another SLD (call it sldB) that contains the ABAP and JAVA data about my Production systems.
I'm running SLD version 6.40.0 - not 700.
Is there a way to get the content of sldA into sldB and keep it syncronized? I'd like to maintain two distinct SLDs, but I'd like sldB to have information about the entire landscape. This would be a one way push from sldA to sldB. I'd like this to be an automatic process, not something I have to do manually.
Though I have not worked on such environment. Your query looks interesting...I tried to find something related.
About SLD I am sure you must be aware of "SLD Bridge Forwarding" , It exists in 700 and 6.40 as well...
Is it possible to transfer content between two SLD systems in SLD version 640?
As per the [SLD6.40 Post Installation |https://websmp102.sap-ag.de/~sapidb/011000358700001149582007E] Document I think it is possible.
You might have already checked this document, If not please check page 12.
It says you need to check gateway connections & RFCs and also need to update CIM contents.(Note 669669)
To forward data from QA& DEV to Prod - Configure the bridge between this and If you do not want to receive data from ABAP systems in your SLD, set the parameter StartRfcServer to false.( Check this [Link|http://help.sap.com/saphelp_nwpi71/helpdata/en/43/da21ba13660aa5e10000000a1553f6/frameset.htm])
I think this will make your process automatic from sldA to sldB and also you will get entire landscape information in sldB (Correct me if I am wrong)
Let us know if it was helpful....
Cheers
Similar Messages
-
SLD Content Synchronization - PI 7.0
Hello folks!
I have a question for you: I have two PI, a DEV System and a PRD system. We are using PI 7.0 SP 18
Before starting to export the data to PRD, I'd like to synchronize the recently installed SLD PRD system with the DEV SLD server.
I read this article:
http://help.sap.com/saphelp_nwpi71/helpdata/en/46/2f42f114bc59bde10000000a155369/content.htm
Where says:
The SLD content synchronization is fully supported by AS Java 7.1 and above. Additionally, an SLD of version 7.0 SP12 and above can be used as source system for unidirectional synchronization only. Systems with version 7.0 do not support the notification of listener systems.
So, as I have SP 18 it could be feasible, but all the guides I've found were talking about PI 7.1.
Does anybody know the steps to do it in 7.0 ? I'd like to have PRD server taking the info from the DEV one.
Thanx in advance,
JuanYou can achieve that by using an SLD bridge. If you have installed multiple SLD servers, the SLD bridge can be configured to send data to each of these servers. This is described on http://help.sap.com/saphelp_nw70/helpdata/en/43/da21ba13660aa5e10000000a1553f6/frameset.htm
-
Importing SLD content takes lot of time in Solman 4.0
Hi Folks,
Importing SLD content takes lot of time while installing Solution Manager 4.0. Its in the 42nd phase of 45...SQL 2005 DB.
Its stuck in Configuring system landscape directory....and NOT thrown any error as of now...touch wood.
Can anyone tell me how much time does it take OR is it gone in a loop?HI All,
Finally I have received an error during the above mentionde phase....
sapinst.log -
>>>
Import Status: PREPARING
Import Status: PREPARING
Import Status: PREPARING
ERROR: CIM_ERR_FAILED: IO error: Read timed out
<BR>CONFIGURATION=
ERROR 2007-10-22 15:55:34
CJS-30059 J2EE Engine configuration error.<br>DIAGNOSIS: Error when configuring J2EE Engine. See output of logfile java.log: 'JSE'.
java.exe.log -
>>>
Import Status: PREPARING
TYPE=A<BR>STATE=<BR>INFO_SHORT=com.sap.sld.api.wbem.exception.CIMCommunicationException: com.sap.sld.api.wbem.exception.CIMCommunicationException: CIM_ERR_FAILED: IO error: Read timed out
at com.sap.sld.api.wbem.client.WBEMHttpRequestSender.send(WBEMHttpRequestSender.java:158)
at com.sap.sld.api.wbem.client.WBEMRemoteClient.send(WBEMRemoteClient.java:720)
at com.sap.sld.api.wbem.client.WBEMRemoteClient.send(WBEMRemoteClient.java:694)
at com.sap.sld.api.wbem.client.WBEMRemoteClient.send(WBEMRemoteClient.java:638)
at com.sap.sld.api.wbem.client.WBEMRemoteClient.referencesImpl(WBEMRemoteClient.java:375)
at com.sap.sld.api.wbem.client.WBEMClient.references(WBEMClient.java:1773)
at com.sap.sld.api.wbem.client.WBEMClientUtil.referencesComplete(WBEMClientUtil.java:490)
at com.sap.lcr.pers.delta.importing.SAPCRUpgrade.collectAssociationsForRestoration(SAPCRUpgrade.java:700)
at com.sap.lcr.pers.delta.importing.SAPCRUpgrade.delete(SAPCRUpgrade.java:355)
at com.sap.lcr.pers.delta.importing.ImportHandler.loadFullImport(ImportHandler.java:1765)
at com.sap.lcr.pers.delta.importing.ImportHandler.loadImpl(ImportHandler.java:1605)
at com.sap.lcr.pers.delta.importing.ImportHandler.load(ImportHandler.java:1573)
at com.sap.ctc.util.SLDConfig.importSldContent(SLDConfig.java:812)
at com.sap.ctc.util.SLDConfig.performFunction(SLDConfig.java:154)
at com.sap.ctc.util.ConfigServlet.doGet(ConfigServlet.java:69)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.net.SocketInputStream.read(SocketInputStream.java:182)
at com.tssap.dtr.client.lib.protocol.streams.ChunkedInputStream.readLine(ChunkedInputStream.java:323)
at com.tssap.dtr.client.lib.protocol.streams.ResponseStream.readLine(ResponseStream.java:271)
at com.tssap.dtr.client.lib.protocol.impl.Response.initialize(Response.java:476)
at com.tssap.dtr.client.lib.protocol.Connection.getResponse(Connection.java:2604)
at com.tssap.dtr.client.lib.protocol.Connection.sendInternal(Connection.java:1578)
at com.tssap.dtr.client.lib.protocol.Connection.send(Connection.java:1427)
at com.sap.sld.api.wbem.client.WBEMHttpRequestSender.send(WBEMHttpRequestSender.java:142)
... 30 more
caused by:
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.net.SocketInputStream.read(SocketInputStream.java:182)
at com.tssap.dtr.client.lib.protocol.streams.ChunkedInputStream.readLine(ChunkedInputStream.java:323)
at com.tssap.dtr.client.lib.protocol.streams.ResponseStream.readLine(ResponseStream.java:271)
at com.tssap.dtr.client.lib.protocol.impl.Response.initialize(Response.java:476)
at com.tssap.dtr.client.lib.protocol.Connection.getResponse(Connection.java:2604)
at com.tssap.dtr.client.lib.protocol.Connection.sendInternal(Connection.java:1578)
at com.tssap.dtr.client.lib.protocol.Connection.send(Connection.java:1427)
at com.sap.sld.api.wbem.client.WBEMHttpRequestSender.send(WBEMHttpRequestSender.java:142)
at com.sap.sld.api.wbem.client.WBEMRemoteClient.send(WBEMRemoteClient.java:720)
at com.sap.sld.api.wbem.client.WBEMRemoteClient.send(WBEMRemoteClient.java:694)
at com.sap.sld.api.wbem.client.WBEMRemoteClient.send(WBEMRemoteClient.java:638)
at com.sap.sld.api.wbem.client.WBEMRemoteClient.referencesImpl(WBEMRemoteClient.java:375)
at com.sap.sld.api.wbem.client.WBEMClient.references(WBEMClient.java:1773)
at com.sap.sld.api.wbem.client.WBEMClientUtil.referencesComplete(WBEMClientUtil.java:490)
at com.sap.lcr.pers.delta.importing.SAPCRUpgrade.collectAssociationsForRestoration(SAPCRUpgrade.java:700)
at com.sap.lcr.pers.delta.importing.SAPCRUpgrade.delete(SAPCRUpgrade.java:355)
at com.sap.lcr.pers.delta.importing.ImportHandler.loadFullImport(ImportHandler.java:1765)
at com.sap.lcr.pers.delta.importing.ImportHandler.loadImpl(ImportHandler.java:1605)
at com.sap.lcr.pers.delta.importing.ImportHandler.load(ImportHandler.java:1573)
at com.sap.ctc.util.SLDConfig.importSldContent(SLDConfig.java:812)
at com.sap.ctc.util.SLDConfig.performFunction(SLDConfig.java:154)
at com.sap.ctc.util.ConfigServlet.doGet(ConfigServlet.java:69)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
// => Importing Data : E:/usr/sap/SOL/SYS/global/sld/model/CR_Content.zip URL=http://devsrv:50100 USER=J2EE_ADMIN ...
Import Status: PREPARING
ERROR: CIM_ERR_FAILED: IO error: Read timed out
<BR>CONFIGURATION= -
SLDCHECK error-Check and maintain the SLD content for the current client
Hi experts,
I am trying to configure PI on QAS box and getting this error when I ran SLD check. This is the only warning/error I am getting in YELLOW and the other messages were in green so thinking that is ok.
=============
Calling function LCR_GET_OWN_BUSINESS_SYSTEM
Retrieving data from the SLD server...
No corresponding business system found for system NWQ client 001
=> Check and maintain the SLD content for the current client
Summary: Connection to SLD works technically, but the SLD content may need maintenance
=> Check and maintain the SLD data content
==========
I went through some threads and readiness check document but not able to get it resolved because I am a developer and not sure about exact steps. Please give me if you have any feedback and if there is admin jobs involved I will get BASIS help but it is totally my responsibilty to get the system up and running. Any help would be greatly appreciated.
Thanks.
MithunHi Mithun,
Let me know if there is any recent changes/Patching/Upgradatiions in your server....
Perform Cacherefresh both in ABAP and JAVA Stacks..
For ABAP level cache go to SXI_CACHE -> RUNTIME->START DELTACACHE REFRESH
>>>>SXI_CACHE -> RUNTIME->COMPLETE CACHE REFRESH
CPACACHE:
For complete cache refresh u2013 http://<hostname>:<port>/CPACache/refresh?mode=full
For delta cache refresh u2013 http://<hostname>:<port>/CPACache/refresh?mode=delta
Please let me know if this doesnot resolve your issue.
Cheers!!!!
Naveen -
SAP third party Pre-delivered SLD Content - Product and SWCVs
Hi All,
I have started this thread on LinkedIn and I wanted it to be viewed by all of you for your valuable suggestions and thus from SAP too... The thread is [here|http://www.linkedin.com/groupAnswers? viewQuestionAndAnswers=&discussionID=20482912&gid=81282&commentID=16700717&trk=view_disc ]
VJ
Edited by: VijayaShankar Konam on May 22, 2010 12:12 PMHere is the thread content until now -
Hi All,
I have been working on integration of our product with SAP. We wanted our SLD objects for the product and the swcs to be delivered as part of SAP's pre-delivered SLD content, so that the client could simply import our design objects in to their PI landscape (Similar to how SAP provides PI content on service market place. We do have partnership with SAP and this product integration was not yet certified by SAP. However, they SAP agreed to supply our product and SWCs as part of the standard SAP CIM modal content).
How ever, even when we gave our SLD export to SAP, when the latest CIM modal for SLD from SAP got released, we were surprised to see that, our product and SWCvs are created with the vendor name "sap.com". This absolutely makes our product and swcvs unusable as we would not be able to look at them in the SPROXY on application systems. This was the same case with an older client that I worked with too..!! Any one had similar experience with this? Shouldn't SAP
be creating them with vendor as "<vendor>.com"? At least, our product is not owned by SAP..!!
We all know that, if sap.com is the vendor for SLD objects, only SAP could provide the proxy implementations through an SAP support pack.
Could someone from SAP PI Techies understand my point and care to respond?
Regards,
VJ -
Quick question.
I have 3 SLD's.
SLD A is a central.
SLD B is a local
SLD C is a local
I want SLD A to Bridge Forward to Both SLD B and SLD C. A unidirectional synchronization.
I'm I correct to say to set this up, I need to go into the SLD Administration of SLD B and C, under content synchronization and setup these connection?
Or do i go into SLD A and setup a connection to push to SLD B and C.
I guess the question is where to i make the config? In the Target( SLD B/C) or Source (SLD A)?Hello Joshua
As there is no Visual Admin in NW 7.4 based systems you will need to configure the SLD in the NWA
Check SLD configuration part of this blog for reference.
http://scn.sap.com/docs/DOC-44110
Configuring Central System Landscape Directory Usage - Configuring Process Integration After Installation - SAP Library
Connecting Systems to the SLD - Configuring, Working with and Administering System Landscape Directory - SAP Library
Regards
RB -
Como pasar un SLD central de PI a SLD LOCAL...???
Hola amigos necesito de su ayuda...!!!!
tengo un SLD central PI entre Desarrollo y Calidad, ya no lo quiero central, lo quiero cambiar a LOCAL
alguno de ustedes podría orientarme para resolver este asunto......???
muchas gracias...!!!Hi Swapnika,
"The SLD is a server application that communicates with a client application by using the Hypertext Transfer Protocol (HTTP)"
Server application is nothing but the SAP server, every SAP server has it's own SLD which can be treated as local SLD. it will use HTTP communication to interact with the Client's nothing but the other SAP and non-SAP systems which are configured in your SLD.
What is Central SLD and what is the difference between Central and Local SLD?
System Landscape Directory Planning Guide
Using Local and Central System Landscape Directories - SAP NetWeaver Process Integration - SAP Library
Do we have to register all SAP and non-SAP systems manually in SLD.
Yes we should register both SAP and Non-SAP systems manually in SLD.
there are 4 types of Technical and business systems in available in SLD.
Web AS ABAP : used for configuring SAP systems like SRM, CRM etc
Web AS Java : used for java systems consist of one or more instances.
Third-party : used for configuring non-SAP systems like Oracle, SQL server, Web-services etc
Stand alone Java: used for java systems that are installed on a system from an administrative perspective.
Regards
Bhargava Krishna -
Change Object Server in SLD after system copy and SLD move?
Hello,
we did the following:
- we migrated the SLD to the production system in our landscape
- we copied the NWDI to a new system
- the old object server was named sapsrv88 (object server attribute in the SLD) which was the hostname of the old SLD server
Do I have to change the object server attribute to the new hostname of the SLD? Does this have any influence on the software components that we allready developed?
Thanks and best regards
JensHello Jens,
you can rename the object server - details you'll find in SAP note 935245
When you rename it, the ID of the objects in the SLD is changed to the new ID, so normally you shouldn't have any problems with that.
If you're unsure about it, you can backup your SLD content using "Administration => Content => Backup => All Instances" - that backs up everything under /sld/active
or backup the software components you devoped using http://<hostname>:5<instance-no.>00/SCD/SCDownload
Best regards
Cornelia -
Maintaining a Single SLD is Better Or Multiple SLD is Better
Hi All,
Maintaining a Single SLd is Better Or Multiple SLD's are Better While Working with the DEV, QTY, PRD..............
Please Give me the Reason
Regards
BabuHi babu,
check this
Difference Between Central SLD & Local SLD
see what Bhabes wrote ....
SAP recommends a Single SLD.
Having a separate SLD for every environment beats the concept of SLD itself. SLD is a place where you can look and understand what components/ system run in your landscape. If you are going to hve one for every Environment, it is against the concept of SLD itself. More maintenance is another issue.
Single SLD as recommended by SLD has the problem that you do not want to provide access to a component that can be used in production to developing teams and so on .What Barry has pointed is something that is a more practical approach.
There are no hard and fast rules. A client present across Geographies, havinng multiple vendors and IT teams handling different geographies would prefer to have multiple SLD's one for each Geography and then maybe a master SLD that is going to conain all info of the other Sld's and so on., There is no direct answer to this question other than it purely depends on individual clients.
Regards
Bill
<b>reward points if it helps u</b> -
Transport targets for single SLD for (Dev & QA), another SLD for (prod)
Hi All,
My landscape is
systems: DEV ( Dev & QA )----->PRD ( prod ).
i.e, Development and Quality in one sys DEV , Production in the other PRD.
i have two business systems in DEV :
1) BS_Dev1
2) BS_Dev2
i created a group for these , say DEV_GROUP
As Dev and QA are under one SLD, there is no need of quality group right?
so i have created business sys in DEV:
which points the target business systems for BS_Dev1 & BS_Dev2
1) BS_Pro1
2) BS_Pro2
and created a target group for these, say PRO_GROUP
So my question is , as there is no QA in landscape
this would be the procedure to create the Groups and target systems for the objects of DEV (Dev & QA ) to PRD.
And then transport the objects from DEV (SLD -> Administration -> Content -> Export)
to PRD (SLD -> Administration -> Content -> Import).
Correct me if i am wrong.
Thanks
SaiHi SAI,
Check the [LINK|http://www.****************/Tutorials/Basis/Transport/Index.htm]
came across few blog on PI transport process..hope it helps:
/people/sravya.talanki2/blog/2005/11/02/overview-of-transition-from-dev-to-qa-in-xi
/people/sap.india5/blog/2005/11/03/xi-software-logistics-1-sld-preparation
/people/sap.india5/blog/2005/11/09/xi-software-logistics-ii-overview
/people/sap.india5/blog/2005/11/28/xi-software-logistics-solution-iii-cms
Regards,
Naveen. -
How do we transfer content between Portals ?
Hi all ,
How do we transfer content between Portals . In SAP R3 we transfer content using transport request. can any one explain how do we transfer content between poptals (Development, quality and porduction systems)
Thanks
Rajeev.Hi,
You will use Portal Transport to transport content between your DEV-QA-PROD system.
You will have to go to system administraton-->transport tab.
Create a transport package and add the portal content objects you wish to transport.
and download that as an EPA file and upload it to the next portal.
http://help.sap.com/saphelp_nw70/helpdata/EN/c5/56599164d0c04cb566ba0e2d7ed55c/frameset.htm
Thanks,
GLM -
Drag and Drop of cell content between 2 tables
Hi Guys,
Iam into implementing drag and drop of cell contents between 2 different tables,say Table1 and Table2.(Iam not dragging and dropping rows or cells,Just copying the content of one cell to another).
Have extended the java tutorial class "TableTransferHandler" and "StringTransferHandler" under http://java.sun.com/docs/books/tutorial/uiswing/examples/dnd/index.html#ExtendedDndDemo to satisfy my needs.
The drag is enabled for Table1 and table2 as follows.
jTable1.setDragEnabled(true);
jTable1.setTransferHandler(new TableTransferHandler());
jTable2.setDragEnabled(true);
jTable2.setTransferHandler(new TableTransferHandler());
Dont be taken aback with the code I have put.It just to show what I have done..
My questions are put at the end of the post..
//String Transfer Handler class.
public abstract class StringTransferHandler extends TransferHandler {
protected abstract String exportString(JComponent c);
protected abstract void importString(JComponent c, String str);
protected abstract void cleanup(JComponent c, boolean remove);
protected Transferable createTransferable(JComponent c) {
return new StringSelection(exportString(c));
public int getSourceActions(JComponent c) {
return COPY_OR_MOVE;
public boolean importData(JComponent c, Transferable t) {
if (canImport(c, t.getTransferDataFlavors())) {
try {
String str = (String)t.getTransferData(DataFlavor.stringFlavor);
importString(c, str);
return true;
} catch (UnsupportedFlavorException ufe) {
} catch (IOException ioe) {
return false;
protected void exportDone(JComponent c, Transferable data, int action) {
cleanup(c, action == MOVE);
public boolean canImport(JComponent c, DataFlavor[] flavors) {
JTable table = (JTable)c;
int selColIndex = table.getSelectedColumn();
for (int i = 0; i < flavors.length; i++) {
if ((DataFlavor.stringFlavor.equals(flavors))&& (selColIndex !=0)) {
return true;
return false;
}//TableTransferHandler classpublic class TableTransferHandler extends StringTransferHandler {
private int[] rows = null;
private int addIndex = -1; //Location where items were added
private int addCount = 0; //Number of items added.
protected String exportString(JComponent c) {
JTable table = (JTable)c;
rows = table.getSelectedRows();
StringBuffer buff = new StringBuffer();
int selRowIndex = table.getSelectedRow();
int selColIndex = table.getSelectedColumn();
String val = table.getValueAt(selRowIndex,selColIndex).toString();
buff.append(val);
return buff.toString();
protected void importString(JComponent c, String str) {
JTable target = (JTable)c;
DefaultTableModel model = (DefaultTableModel)target.getModel();
//int index = target.getSelectedRow();
int row = target.getSelectedRow();
int column = target.getSelectedColumn();
target.setValueAt(str, row, column);
protected void cleanup(JComponent c, boolean remove) {
}Now I want to put in the following functionality into my program...
[1]prevent dragging and dropping text in to the same table.That means I dont want to drag a cell content from Table1 and drop to another cell in Table1. Want to drag and drop cell content only from Table1 to Table2.
[2]Change cursor on a un-defined Target. That means how to prevent a drag from a particular column in Table1.Also how to prevent a drop to a particular column in Table2. How to change the cursor to a "NO-DRAG" cursoror "NO-DROP" cursor.
Could it be done using Drag Source Listener and drop Target Listener?.
If yes,How can these listeners attached to the table and how to do it?
If No,How Could it be done?
[3]Want to change the background colour of the cell being dragged and also the background colour of the target cell where the drop is made...
[4]Is there any out of the box way to make an undo in the target cell(where drop was made) so that the old cell value is brought back.
How can I extend my code to take care of the above said things.
Any help or suggestions is greatly appreciated.....
Edited by: Kohinoor on Jan 17, 2008 10:58 AMHi Guys,
Iam into implementing drag and drop of cell contents between 2 different tables,say Table1 and Table2.(Iam not dragging and dropping rows or cells,Just copying the content of one cell to another).
Have extended the java tutorial class "TableTransferHandler" and "StringTransferHandler" under http://java.sun.com/docs/books/tutorial/uiswing/examples/dnd/index.html#ExtendedDndDemo to satisfy my needs.
The drag is enabled for Table1 and table2 as follows.
jTable1.setDragEnabled(true);
jTable1.setTransferHandler(new TableTransferHandler());
jTable2.setDragEnabled(true);
jTable2.setTransferHandler(new TableTransferHandler());
Dont be taken aback with the code I have put.It just to show what I have done..
My questions are put at the end of the post..
//String Transfer Handler class.
public abstract class StringTransferHandler extends TransferHandler {
protected abstract String exportString(JComponent c);
protected abstract void importString(JComponent c, String str);
protected abstract void cleanup(JComponent c, boolean remove);
protected Transferable createTransferable(JComponent c) {
return new StringSelection(exportString(c));
public int getSourceActions(JComponent c) {
return COPY_OR_MOVE;
public boolean importData(JComponent c, Transferable t) {
if (canImport(c, t.getTransferDataFlavors())) {
try {
String str = (String)t.getTransferData(DataFlavor.stringFlavor);
importString(c, str);
return true;
} catch (UnsupportedFlavorException ufe) {
} catch (IOException ioe) {
return false;
protected void exportDone(JComponent c, Transferable data, int action) {
cleanup(c, action == MOVE);
public boolean canImport(JComponent c, DataFlavor[] flavors) {
JTable table = (JTable)c;
int selColIndex = table.getSelectedColumn();
for (int i = 0; i < flavors.length; i++) {
if ((DataFlavor.stringFlavor.equals(flavors))&& (selColIndex !=0)) {
return true;
return false;
}//TableTransferHandler classpublic class TableTransferHandler extends StringTransferHandler {
private int[] rows = null;
private int addIndex = -1; //Location where items were added
private int addCount = 0; //Number of items added.
protected String exportString(JComponent c) {
JTable table = (JTable)c;
rows = table.getSelectedRows();
StringBuffer buff = new StringBuffer();
int selRowIndex = table.getSelectedRow();
int selColIndex = table.getSelectedColumn();
String val = table.getValueAt(selRowIndex,selColIndex).toString();
buff.append(val);
return buff.toString();
protected void importString(JComponent c, String str) {
JTable target = (JTable)c;
DefaultTableModel model = (DefaultTableModel)target.getModel();
//int index = target.getSelectedRow();
int row = target.getSelectedRow();
int column = target.getSelectedColumn();
target.setValueAt(str, row, column);
protected void cleanup(JComponent c, boolean remove) {
}Now I want to put in the following functionality into my program...
[1]prevent dragging and dropping text in to the same table.That means I dont want to drag a cell content from Table1 and drop to another cell in Table1. Want to drag and drop cell content only from Table1 to Table2.
[2]Change cursor on a un-defined Target. That means how to prevent a drag from a particular column in Table1.Also how to prevent a drop to a particular column in Table2. How to change the cursor to a "NO-DRAG" cursoror "NO-DROP" cursor.
Could it be done using Drag Source Listener and drop Target Listener?.
If yes,How can these listeners attached to the table and how to do it?
If No,How Could it be done?
[3]Want to change the background colour of the cell being dragged and also the background colour of the target cell where the drop is made...
[4]Is there any out of the box way to make an undo in the target cell(where drop was made) so that the old cell value is brought back.
How can I extend my code to take care of the above said things.
Any help or suggestions is greatly appreciated.....
Edited by: Kohinoor on Jan 17, 2008 10:58 AM -
HD content between MacBook and iMac
I searched around the forums and I couldn't find anything that answered this exact question. Its a bit of a tough one im sure, so here goes.
Recently I purchased a new 13" MacBook Pro and used the automatic data transfer to set up the machine, so it has the the exact same programs as the iMac that I purchased a year ago or so. Now, I purchased a few HD TV shows on the macbook to test a way to transfer the shows between computers. I know how to do the iPod transfer method (moving content to iPod and then switching machines and checking for purchased content) But that method only worked for the standard def version of the show.
The Question: How do I get the HD version to move from macbook to imac and vice versa? Is there a method or will the standard just have to do? This is not urgent, Im just curious.The HD version is not synced to your iPod as it cannot be played there.
You'll have to connect your two Macs together or use an external HD or flash drive to transfer the HD version.
See this: How to use FireWire target disk mode, http://support.apple.com/kb/HT1661 -
I am thinking of buying a iPad but my main desktop machine uses Windows 7 and MS Office. How easy or difficult is it to transfer data files between the iPad and Windows? Are there obvious problems or the need for some form of conversion programs?
Many thanks for any advice.
DavidYou don't need conversion programs, iTunes can copy most of your content over to the iPad via the file sharing section, and some apps also support Dropbox, email attachments, transfer via your wifi network. There are a number of apps that you can get that support Microsoft office file (microsoft don't make an app versions of their software) e.g. from Apple there are Pages (word support), Numbers (excel) and Keynote (powerpoint), and from third-parties there are apps such as Documents To Go and QuickOffice HD
-
Transfering content between BWA installations
Hi,
I just want to find out what option I have if I want to transfer content between two physically separated BWA installations.
Any hint will be mostly appreciated. Using DVDs, CDs as transfer medium is desired.
Regards,
StratosStratos, I am curious if standard BWA Indexes are at all compatible with BWA Indexes for Explorer. For Explorer you need these additional new meta-data BWA Indexes for Text, Authorizations and Conversion Factors and to update main Indexes to Explorer form (this is what I just got first hand from Ty Miller from SAP
Regards,
-Vitaliy
Maybe you are looking for
-
Auto PO creation using purchase requisition
Hi, I have tried the following steps for auto PO creation using purchase requisition. i. Maintain Auto PO in Material master Purchasing view ii. Select Automatic purchase order in Vendor master- Purchase data iii. Maintain info-record iv. Create PR t
-
Drive keeps ejecting Blank DVDs but will read DVD with media in it
I am at loss what to do. Whenever I put in DVD with media in it (including +R), it plays and reads it all just fine. CD data reads no problem too. However, when I put in a Blank DVD, it chugs and ejects it out completely. Preferences are fine. It say
-
Passing date parameters to a custom folder
Is there any simple way to pass date parmeters to a custom folder?
-
I that it can be done on word press sites...wondering if there was a way to do this in muse. (it is a feed for real estate web sites that shows MLS feeds) Thanks in advance!
-
Assigning Dynamic Columns to advanceddatagrid not showing value
Hi all, Iam trying to assign the header and data columns in AdvancedDataGrid on runtime. This is the code. The data is correctly displayed in the console.But after assigning the columns array to dgShipmentSearch datagrid nothing is shown in the scree