on 2017 Nov 14 10:48 AM - last edited on 2024 Feb 04 1:22 AM by postmig_api_4
I woud like to when i selected a value in combobox allow m populate certain text boxes such as, textBox1, textBox2 , how can i do that? it's an addon.
I'm creating an addon, and this time im working with form similar to bp, and payment run, So can get the information on my combo boxes, bur for example in sucursal its the defualt value, i would like to get the value from the combobox "cuenta" in the same time fill bic/swift code textbox and control no.... that's all
Hi,
Can we have some screenshots about the issue?
Kind regards,
ANKIT CHAUHAN
SAP SME Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I'm creating an addon, and this time im working with form similar to bp, and payment run, So can get the information on my combo boxes, bur for example in sucursal its the defualt value, i would like to get the value from the combobox "cuenta" in the same time fill bic/swift code textbox and control no.... that's all
Hi,
It can be done something like this:
SAPbouiCOM.Form oForm = (SAPbouiCOM.Form)SBO_Application.Forms.GetForm(BusinessObjectInfo.FormTypeEx, 1);
SAPbouiCOM.ComboBox oComboApproval = (SAPbouiCOM.ComboBox)oForm.Items.Item("23").Specific;
if (oComboApproval.Value.Trim() == "Approved")
{
SAPbouiCOM.EditText oEditStatus = (SAPbouiCOM.EditText)oForm.Items.Item("46").Specific;
oEditStatus.Value = "Test";
}
Kind regards,
ANKIT CHAUHAN
SAP SME Support
error.pngit gave me an error on the doquery 😕
SAPbobsCOM.Recordset oRecordset = ((SAPbobsCOM.Recordset) (oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)));
SAPbouiCOM.ComboBox oComboApproval = (SAPbouiCOM.ComboBox)oForm.Items.Item("cmbctbc").Specific;
if (oComboApproval.Value.Trim() != "")
{
string SqlCad5 = "select distinct DSC1.BRANCH , DSC1.Account from DSC1 inner join ODSC ON DSC1.BankCode=DSC1.BankCode where='" + ComboBox3.Value.ToString() + "'";
oRecordset.DoQuery(SqlCad5);
string ValueToExtractFromQueryResult = oRecordset.Fields.Item("BRANCH").Value.ToString();
}
}
Hi,
Check the "Where" clause in the query which is the problem for you.
Kind regards,
ANKIT CHAUHAN
SAP SME Support
User | Count |
---|---|
104 | |
10 | |
8 | |
7 | |
4 | |
4 | |
3 | |
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.