on 03-16-2015 6:24 AM
Dear All,
I want to use EditText and Matrix on the form. How can I use both of these at the same time ?
I mean how to Read the value or set value from EditText on form or in matrix.
Please help me.
Thank you.
Regards
Hi,
You can use it as follows:
1. Initialize an EditText and Matrix:
SAPbouiCOM.EditText oEditCode = (SAPbouiCOM.EditText)oForm.Items.Item("3").Specific;
SAPbouiCOM.Matrix oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("mtx_0").Specific;
2. Initialize an EditText in Matrix:
SAPbouiCOM.EditText oEditItemCode = (SAPbouiCOM.EditText)oMatrix.Columns.Item("col_0").Cells.Item(RowNum).Specific;
3. Setting the Value in these EditText:
oEditCode.Value = "Any Value";
oEditItemCode.Value = "Any Value";
4. Getting Value from these EditText:
string Code = oEditCode.Value.Trim()
string ItemCode = oEditItemCode.Value.Trim()
Hope this will help you.
Thanks & Regards
Ankit Chauhan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Every Item on the form (EditText, Matrix, Button, ComboBox) has a unique id.
You can check the unique id as follows:
In SAP:
View->System Information Enable this option.
Now place your cursor on an item. It shows something like Item = 3 or something else.
This is what you need to use actually. Similarly for Matrix Columns you need to use Column= ColUID
Hope it helps.
Thanks & Regards
Ankit Chauhan
Hi,
See in the image:
Form = 139 i.e. FormType for Sales Order Form.
Item = 4 i.e. Item Unique ID for Customer/Vendor code. // You need to use this.
ORDR is the table where the value will be stored of Customer/Vendor.
CardCode is the field where the value lies for Customer/Vendor.
Same way, you can Put cursor on matrix column and Check Column = 'Some value'
Hope it helps.
Thanks & Regards
Ankit Chauhan
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
3 | |
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.