on 03-21-2004 2:41 PM
Hellow,
How can I get the Card Code when I'm in PartnerBussines form?
I cauched the Ivent of '134' form and I inserted there
a new button.
My button has to execute another (external)program
and to send the CardCode as a parameter.
I do it with Shell function, But how can I get the Card Code?
Can you help me and send me the code?
I need to do it s.o.s
Thank you very much
Ruthi
Hi Ruti
I assume that the user will push your button only after filling valid cardcode in the cardcode field.
First you have to catch the click on the button you've added to the form.
And than before you call your second application - you can read with the UI API the value from the cardcode field with the following code:
Dim oForm As SAPbouiCOM.Form
Dim oItem As SAPbouiCOM.Item
Dim oEditText As SAPbouiCOM.EditText
Dim Str As String
Set oForm = m_App.Forms.Item(FormUID)
Set oItem = oForm.Items.Item("5") 'CardCode field
Set oEditText = oItem.Specific
Str = oEditText.String
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What I could say is for you to go faster in your development, load the samples in the SDK directories, they are very well done and they work quiet well.
I assure you that your question will be answered as soon as you look into
private void SBO_Application_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
Good luck !
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.