on ‎2008 Jul 22 8:11 AM
Hi experts,
I am new to sap b1 sdk. Please tell me the steps to follow for my simple requirement.
i. I want to prepare form by using the screen pauinter. This form contains a matrix and a button.
ii. After pressing the button the data has to be displayed in matrix from database.
iii. Where I have to write coding for establishing a connection in between form and database.
iv. What Code I have to write.
v. How can I execute it.
vi. Where I have to observe the output.
Please give simple example on this.
thanks in advance.
I know vb.net.
Edited by: narayana reddy on Jul 22, 2008 9:12 AM
Request clarification before answering.
Hi narayan,
Try this code:
before that in the solution properties, set the command line arguments as
"0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056"
Private WithEvents SBO_Application As SAPbouiCOM.Application
Private oForm As SAPbouiCOM.Form
Private Sub SetApplication()
'*******************************************************************
'// Use an SboGuiApi object to establish the connection
'// with the application and rturn an initialized appliction object
'*******************************************************************
Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
SboGuiApi = New SAPbouiCOM.SboGuiApi
'// by following the steps specified above, the following
'// statment should be suficient for either development or run mode
sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
'// connect to a running SBO Application
SboGuiApi.Connect(sConnectionString)
'// get an initialized application object
SBO_Application = SboGuiApi.GetApplication()
End Sub
Public Sub New()
MyBase.New()
'//*************************************************************
'// set SBO_Application with an initialized application object
'//*************************************************************
SetApplication()
'//*************************************************************
'// Create the simple form
'//*************************************************************
oForm.Visible = True
End Sub
I hope this will solve ur problem.
Regards,
Mohana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi...
Go through the SAP Sample .
C:\Program Files\SAP\SAP Business One SDK\Samples
You will find everything......
Regards
Sanjay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi narayana,
if u installed SAP BOne means,
then u will get all the sample programs.
The path :
SAPBONE->SDK->Samples
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 53 | |
| 29 | |
| 21 | |
| 10 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.