on 10-18-2007 4:26 PM
Hello,
I have a small problem in my Add-on.
Scenario:
A form with a Matrix that has a linkButtom in a readonly Column
Problem:
if i'm editing a field in the matrix and press the link button no et_VALIDATE event is created before the et_MATRIX_LINK_PRESSED event
Result:
The data is not written to da DataSource
Possible Solution:
Check where the focus is and do the DataWrite myself since the link press does not change the Focus
Question:
howto find the element in focus?
Thanks for your time in advance
Pedro Gomes
Pedro,
Are u using Xml in your program? Then u knw need to wrie in matrix_link_pressed.
I think ur problem is if u click the link button u want to show that particular form rite?
Whts ur exact problem?
Regards,
Anitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I want to show a new form on the click of the link button.
I'm using a DataLayer(my code) that is responsible for the database access. So i have to update the DataLayer before the new form is displayed.
I'm updating the DataLayer on the lostFocus event but no event is triggered before the Matrix_Link_Pressed.
The DataLayer can is similer to a XML Document.
Thanks for your reply
Pedro Gomes
Sinfic SA
Portugal
The Problem is that the DataLayer is not beenig update correctly
Message was edited by:
Pedro Gomes
Then give the link through Xml
<column uid="itemid" type="116" title="Item ID" description="" visible="1" AffectsFormMode="1" width="102" disp_desc="0" editable="1" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1" ChooseFromListUID="ItemCFL" ChooseFromListAlias="ItemCode">
<databind databound="1" table="@PUR_OA_DETAIL" alias="U_itemid" />
<ExtendedObject linkedObject="4" LinkedObjectType="4" />
</column>
Here u specific the object type where u want to connect.
Then u write in ItemEvent of Choose From List
If oCFL.UniqueID = "ItemCFL" Then
Dim oMatrix As SAPbouiCOM.Matrix
oMatrix = OA_Frm.Items.Item(pVal.ItemUID).Specific
DETAIL_oDBds.SetValue("U_itemid", DETAIL_oDBds.Offset, oDT.GetValue(0, 0))
DETAIL_oDBds.SetValue("U_itemdesc", DETAIL_oDBds.Offset, oDT.GetValue(1, 0))
If it helps give me reward points,
Regards,
Anitha
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
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.