Change properties in item master data
Ina Colman
Hello,I would like to change the properties in the item master data, depending on which supplier I select in the purchasing data tab.
For example:
In the purchasing Data I select my preferred supplier: 'L000001'
--> The tickbox of item properties 1 in tab Properties is checked. ('Y')
When I select the preferred supplier 'L0000002'
--> tickbox of item properties 2 is checked.
The customize rule is attached.
Thanks!
Ina
Attachment
[url=http://www.coresystems.ch/wp-content/../wp-content/forum-file-uploads/ina_colman/eigenschappen.cocu]eigenschappen.cocu[/url]
Manuel Marhold
Hi Ina,I don't know where the problem is, but I hand the problem with the properties using the .Checked-property of the CheckBox-item.
I go to the tab of the properies, and preform a .Click on the CheckBox of it has the wrong value (checked).
Ina Colman
Hello,Thank you for your response.
But I don't know yet how I can select the right column and row in the properties table.
The code I use now is:
Matrix.GetFromUID(pVal.Form,"129").******.click()
But in the red part I have to select the row and column where I want to perform a click().
But I don't know how.
Thanks!
Ina
Manuel Marhold
Hi Ina,Pseudocode:
MatrixColumns.GetFromUID(...).Cells.Item(...).Click
You have to change the "..." to your values.
I want to reffer to the coresuite frankework help at this time.
Ina Colman
Hello,This is the code to click the checkbox. Column n°: 2 and row n°: 0
((SAPbouiCOM.CheckBox)m.Columns[2].Cells[0].Specific).Checked = true;
Manuel Marhold
Hi Ina,this is the code that dind't work correctly for me.
I had to Click the Folder "Propeties" (11) and the preform a .Clicl on the CheckBox if it has the wrong value..
Ina Colman
Hello,Exactly, the code of 2 posts above only works in the "Function button" menu.
The only difference in the optimizer is that you have to perform a click before and after you check the property. Without the click functions it won't work.
The code for the optimizer is:
Matrix m = Matrix.GetFromUID(pVal.Form, "129" );
int atlRows = m.Rows.Count;
Folder.GetFromUID(pVal.Form, "11" ).Click(SwissAddonFramework.UI.Components.Item.ClickType.Regular);
((SAPbouiCOM.CheckBox)m.Columns[2].Cells[0].Specific).Checked = true;
Folder.GetFromUID(pVal.Form, "3" ).Click(SwissAddonFramework.UI.Components.Item.ClickType.Regular);
0
Please sign in to leave a comment.
Comments
0 comments