Search results
Search results 81-100 of 102.
Dear visitor, welcome to Jabaco - Community.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
Hello A1880, thanks for the clearing-up. Cheers Stefan
Hello Manuel, if I use the following code in Visual Basic, I get the result I expected. If I use it in Jabaco, I get no result. Look at the code: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Private WinAPI Function MultiByteToWideChar Lib "kernel32.dll" ( _ ByVal CodePage As Long, ByVal dwFlags As Long, _ ByVal lpMultiByteStr As String, ByVal cchMultiByte As Long, _ ByVal lpWideCharStr As String, ByVal cchWideChar As Long) As Long Private Const CP_A...
Hello community, you find in the ActiveVB community a program to define very easy code fragments in VB for the definition of Windows API calls - you find the program here - also in English. Choose the Windows API function you need, type Ctrl+C in the APIViewer and Ctrl+V in the Jabaco editor and you have the definition you need. All you must do is to change Declare in WinAPI. I use the this program with Jabaco and save thereby a lot of work. Cheers Stefan
Hello community, here is the first "incomplete" step to use ActiveX controls with Jabaco. I collect all necessary WinAPI functions and create a form with one button. After the button click the Windows Media Player is part of the Jabaco form - not nice, but it works. To control the ActiveX component, it is necessary to use the arguments pIStream and pIUnknwon - which are here still unused. You find a great COMViewer here, to analyze COM components, the interface, methods etc. With the using of CO...
Hello community, log4j is the de facto standard framework in the Java world for logging. Here you find the complete manual from Ceki Gülcü. In the following code snippet you find a short implementation for Jabaco. It is a form with two buttons. The first button print out two message to the console, and the second changes the level of the logger. After changing the level, you see only one message in the console, because only the level WARN or higher. Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14...
Hello Gianluca, welcome to Jabaco too. I think you must add the class to your classpath. Press F1, open rt.jar - this is the Java RunTime - and open the nodes Java > SQL and activate SQL, or the class ResultSet, beneath SQL. Thus the error would have to be eliminated. Cheers Stefan
Hello community, JBGrid is a great component, but let us look to a much more powerful table grid component called Quick Table. it is easy to use Quick Table with Jabaco. Look at the following code: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 Dim table As quick#dbtable#DBTable Set table = New DBTable table.setSize 600, 300 table.setVisible True '-Set ODBC driver------------------------------------------------------- table.setDatabaseDriver "sun.jdbc.odbc.Jdb...
Hello Jan, welcome to Jabaco. Believe me, it is not very difficult to work with Jabaco and databases. Now I describe one way with the JDBC (Java DataBase Connection) ODBC (Open DataBase Connection) Bridge - JDBC-ODBC-Bridge. The first step is to create a user DSN (Data Source Name). Open your administration and choose Datasources (ODBC), activate the tab User-DSN and apply the button add. Choose the driver you need, e.g. Microsoft Access Driver (*.mdb) and apply the button complete. Fill the fie...
Hello community, you find a lot of information about SAP on the help portal. Special informations about the JCo you find here. You find a lot about JCo functions, client programming etc. It is a part of the SAP NetWeaver Library. Cheers Stefan
With this explanation note I want to create a relation between the SAP system and the Jabaco code: At first start the SAP logon pad. Select the system where you want to connect to and push the button "Eintrag ändern..." ("Change entry..."). It open a dialog where you see necessary informations for the connection object. Look at the fields "Anwendungsserver" ("Application server") and "Systemnummer" ("System number"). Login to system and on the login screen you see the next informations you need ...
Hallo Manuel, habe noch einen Vorschlag: Wenn Bilder verwendet werden, dann wird ja im Regelfall das JPG-Format benutzt. Zum Testen habe ich mal aus dem Windows-Verzeichnis eine BMP-Datei eingebunden. In der IDE wird sie auch angezeigt, jedoch nicht wenn das Projekt kompiliert und ausgeführt wird. Vielleicht wäre hier ein Hinweis von Vorteil, wenn ein Format verwendet wird, das nicht unterstützt wird. Gruß Stefan
Hallo Manuel, mal eine Frage zu Konstruktoren und Destruktoren der Klassen: Es wird ja Class_Initialize unterstützt, gilt gleiches auch für Class_Terminate? Oder heißen Sie Create und Destroy? Oder haben sie andere Namen? Wird eine Klasse instanziert, so wird Class_Initialize ausgeführt. Wird eine Klasse wieder zerstört (Geht das mit Set ClassName = Nothing?), wird dann Class_Terminate ausgeführt? Danke für die Beantwortung meiner Frage. Beste Grüße Stefan
Hello community, it is very easy to use COM with Java COM Bridge (JaCoB). You find JaCoB here. The first code is a class file, you find a detailed explanation here. Jabaco Source 1 See the class file below The second code is very easy to understand: Jabaco Source 1 2 3 4 5 6 Dim oWord As New Word() oWord.visibleApp() oWord.openDoc "c:\\dummy\\test.doc" oWord.appendText "Blablabla" oWord.Terminate() Set oWord = Nothing Cheers Stefan
Hello community, here is the next step, a snippet to read tables from SAP Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 '-Read tables with RFC_READ_TABLE----------------------------------------- Dim i, j As Integer '-Get repository instance----------------------------------------------- Dim repos As JCoRepository Set repos = dest.getRepository() '-Define function--------------------------...
Hallo A1880, Danke für Deine Hinweise. An der Referenzierung zu den Properties oder dem JCo hat es nicht gelegen, die Auflösung funktioniert in Jabaco einwandfrei. Das Beispiel habe ich in Samples & Tutorials (How to connect SAP with Jabaco via JCo (Java Connector)) eingestellt. Danke und Gruß Stefan Hallo Manuel, auch auf diesem Weg nochmal Danke für Deine Unterstützung. Der Fehler lag darin, dass die implementierte Klasse Methodennamen beinhaltete die die Worte set... und get... beinhalteten. ...
Hello community, here is a small code snippet to connect SAP. It is necessary to load and install the JCo first. You can download JCo from http://service.sap.com/connectors. You need a registration in the SAP marketplace. Now, at first the class: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 '-Begin Class myDestinationDataProvider--------------------------------- Implements DestinationDataProvider '-Variables...
Hallo Manuel, die Methode ChangePropertiesForABAP_AS fehlt in der Auflistung. Die Klasse DestinationDataProvider ist Bestandteil des SAP Java Connectors (JCo). Habe heute via Java den Connector zum Lesen von Tabellen programmiert, das hat gut funktioniert: Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 import java.util.Properties; import com.sap.conn.jco.JCoDestination; import co...
Hallo zusammen, ich habe folgende Klasse als Klassen-Modul definiert: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 '-Begin Class----------------------------------------------------------- Implements DestinationDataProvider '-Variables----------------------------------------------------------- Private eL As DestinationDataEventListener Private ABAP_AS_Prop As Properties '-----------------------------------------------------------...
Hello community, there is a phantastic library, call iText, to create PDF documents. You find it here: http://www.lowagie.com/iText/. It is a free Java library to generate PDF files on the fly. Now a small snippet how to use it with Jabaco after you add the JAR file to your classpath: Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 '-Variables--------------------------------------------------------- Dim Doc As com#lowagie#text#Docu...
Hi OlimilO, thanks for your tip, now it works. I don't know how to set a breakpoint in the gutter on the left side. but now I know. Thanks again. Cheers Stefan