Filtering values in Matrix
Hi All,
We have a UDO with three tables. In fact it contains a Mater table, a child table and child to child. But in UDO we defined the third table as a child to master itself.
We created a form in which we have header part for master table and two matrix for child tables.
The problem we facing is that when user selects a record in first matrix, he should be able to enter data related to that row in the second matrix. When he moves to the next row in first matrix, second matrix should hide existing data and should be ready to accept data related to current row in first matrix without loosing the earlier entered data related to first row. The same should happen while updation also.
Please help
Thanks in Advance
Ajith G
Hi Satish,
This is Toms on behalf of Mr Ajith. on the above query.
The functionality is like this:
We want to create an Item Property master screen.
Defining new properties and its applicability to Item Groups and its values
applicable to each Item Group.
Property:.......Item group...........Values
Colour......... Refrigerator.........Silver
.. ...........................................Steel
.. ...........................................Red
.. ...........................................Grey etc.
.....................TV.... ................Black
..............................................Silver etc.
Here, Item Groups are in the 1st matrix, and Applicable Values corresponding to the Property is in the 2nd matrix.
There are 3 tables, one for the property, other one for the Applicable Item groups
and the third one for the applicable property values corresponding to each Item group.
Regards,
Toms
Edited by: TomsPA on Jan 29, 2010 1:27 PM
Similar Messages
-
How to set default value in matrix column
Hi all,
Does any one know how to set a default value in matrix column ?. I just want , when an event right click and add row. so i set a default value in a column field for example 'Test'. FYI the matrix is in the UDO.
so my code will be like this
If pVal.ItemUID = "Matrix" And pVal.MenuUID = "1292" Then
Try
Dim oColumn As SAPbouiCOM.EditTextColumn
Dim matrix As SAPbouiCOM.Matrix
matrix = oForm.Items.Item("Matrix").Specific
oColumn = mat.Columns.Item("Code").specific
oColumn.Value = "Test"
Catch ex As Exception
Debug.Print(ex.Message)
Debug.Print(ex.ToString)
End Try
End If
I have run it and when i right click and add row it still can not set the default value in one of the matrx column.
does any one know how to solve it. thanks in advanceHi Bodhi
Sandeep is right you can set value using SetValue() function
If pVal.ItemUID = "Matrix" And pVal.MenuUID = "1292" Then
Try
Dim matrix As SAPbouiCOM.Matrix= oForm.Items.Item("Matrix").Specific
oForm.DataSources.DBDataSources.Item("UDT").Clear()
matrix .AddRow()
matrix .FlushToDataSource()
With form.DataSources.DBDataSources.Item("UDT")
.SetValue("UDF", matrix .RowCount - 1, "Test")
End With
matrix .LoadFromDataSource()
Catch ex As Exception
Debug.Print(ex.Message)
Debug.Print(ex.ToString)
End Try
End If -
Issue with filtering values in Web Template
I am facing a problem with filtering values in Web Template.
I have two queries based on two different data providers. One query is getting data from an Info set and the other from a Remote Cube. I have a single navigational block to filter values for both these queries but the change gets reflected only on the variable of one query. The other reflects no change and shows all the values irrespective of the filter condition.
I have tried the option of setting in the properties of the navigational block, affected data providers as both your data providers.But no effect.
Can a single navigational block be used to filter values on 2 queries which are built on different data providers? If yes, can someone please tell me how it is possible?
Kindly let me know how can I make the changes appear in both the queries?I am using SAP BI 3.5.
Thanks & Regards,
SuchitraHi Peng,
Frank also published a fix for 11g R1: http://www.oracle.com/technology/products/jdev/tips/fnimphius/rc_expand_menu_on_mouse_over.html
function showMenu(event){
var adfRichMenu = event.getSource();
adfRichMenu.getPeer().show(null,true);
}This should work.
Luc Bors -
Module Pool for displaying the Grid values in Matrix format
Hi Experts,
I have one requirement which as follows,
In Module pool program i need to display the Grid Values in Matrix format i.e,
Row = Color
Column = Size
Like what we can see in Sales order or Purchase Order if you click Grid Entries Button.
Can you Please Help me out.
Thanks n Advance.
LoguHi
the sources ate the function groups WMMB and WMMA.
In a new release you should find the function module MGW_UTILITIES_MATRIX_SHELL_RA
the report RWRFMATCHARVAL is a good example
Regards
Björn -
Module Pool to Display the Values in Matrix Format
Hi Experts,
I have one requirement which as follows,
In Module pool program i need to display the Values in Matrix format i.e,
Row = Color
Column = Size
Can you Please Help me out.
Thanks n Advance.
Logucreate your internal table dynamically (with number of columns corresponding to number of sizes)
this is done easily with class CL_ALV_TABLE_CREATE method CREATE_DYNAMIC_TABLE
then use the internal table for ALV output -
Can values in matrix cells flow across the pages (Reports 6i)?
Hi,
I have to display more than 1000 char in a matrix cell. The report errors out when the values in the matrix cells exceeds the page. Can values in matrix cells flow across pages?
any help on this?
Thank You,
-- RajaAs far as to make the report work, developing the query accordingly using UNION does help.
But my question is still not answered and no replies as well.
So I think, Two frames with print direction as down and One frame with print direction as Across is not possible.
Regards
Arif -
Hi To All,
How to display the sum of values in matrix footer.For example,
Inventory -
> Goods Receipt
Here, the values of the TOTAL column will got added and displayed in the FOOTER of the MATRIX.
Same like that i want to add some values and that values should be displayed in matrix footer.. How to do this..?There are 2 ways how to achieve it:
1. if the matrix is filled with query, use UNION with sum() clause
2. or use edittext under matrix and set there sum values - app. 6 months ago here was some example with code how to achieve it and link it to matrix (columns width, ...) -
hi ,
i created matrix in screen painter. it includes 3 columns unit of measurement, length, width.
i want to set values to length and width manually.
when the form is loaded the length and width should appear in matrix
Regards,
PuneethHallo,
use the form_load event - here's a c# snippet:
if (pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD && pVal.FormType == insertformtype && pVal.BeforeAction = false)
((SAPbouiCOM.EditText)((SAPbouiCOM.Matrix)(oForm.Items.Item("mtxUID").Specific)).Columns.Item("colUID").Cells.Item(insertrow).Specific).Value = "1";
insertformtype = FormType of the form (like AR Invoice 133)
mtxUID = matrix itemUID
colUID = column UID
insertrow = the row you want to change the value
lg David -
To set a value in matrix cell which is linked
In sales order if I enter form no of TAX TAB as "form c" , each cell of the TAX Code column of the matrix of contents tab should be set the value as "CST". I have tried to set the value, but it is showing "Form item not editable". I have tried to make the cell as editable but still the error message is coming and it is not setting the defined value. How can this be solved?
Thankx in advanceHi Priya Manoj
Some notes you can find on this [Thread: Set Value in Itemcode in Purchase Order Form|Set Value in Itemcode in Purchase Order Form;.
There are I has posted some examples in vbcode.
Hope the notes can help you.
Regards
Sierdna S.
Edited by: Sierdna S on Oct 22, 2008 9:45 AM -
SSRS How to pass subtotal value in matrix into another table just for display?
Hi all,
I have two matrix with subtotal for two grouping. I need to pass the value of this two group subtotal into another matrix table to display and perform simple calculation to get the differences.
How can I pass the subtotal amount into the other matrix?
In Crystal report I can define two variable where i can set the total to the value and call the two variable anywhere in the same report. But how can I do it in SSRS?
Appreciate can help
Thank youYes, basically both are same grouping, i just want to capture the subtotal for comparision with scenario 2.
I can do it in SQL, but if possible, I hope to do it in report. Thank you
Simulation as below
Matrix for scenario 1
Group 1
Detail
Detail
Subtotal Group 1
9999
group 2
Detail
Detail
SubTotal Group 2
8888
Matrix for scenario 2
Group 1
Scenario2
Scenario 1
Differences
Detail
Detail
Subtotal Group 1
2000
9999
2000-9999
group 2
Detail
Detail
SubTotal Group 2
3000
8888
3000-8888 -
How to set default values in matrix combo
hai everybody.
i want to set default values in a matrix combo box. how to do that
pls.......Hi Priya,
Public Sub comboload1()
Try
ds = oform.DataSources.DBDataSources.Add("OUSR")
oitem = oform.Items.Item("pm7")
omatrix = oitem.Specific
ocolumns = omatrix.Columns
ocolumn = ocolumns.Item("V_2")
ocombo = ocolumn.Cells.Item(r).Specific (r = row number)
LoadEroToCombo1(ocombo)
Catch ex As Exception
oapp.MessageBox(ex.Message)
End Try
End Sub
load to combo function is below
Public Sub LoadEroToCombo1(ByRef ocombo As SAPbouiCOM.ComboBox)
Dim rset As SAPbobsCOM.Recordset
Dim querystring As String
Dim rcount As Long
Dim rindex As Long
Try
rset = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
querystring = "SELECT T0.U_NAME FROM OUSR T0"
rset.DoQuery(querystring)
rcount = rset.RecordCount
rset.MoveFirst()
ocombo.ValidValues.Add("0", "Select")
For rindex = 0 To rcount - 1
ocombo.ValidValues.Add(rset.Fields.Item(0).Value, rindex)
rset.MoveNext()
Next rindex
ocombo.Select("0")
rset = Nothing
System.GC.Collect()
Catch ex As Exception
oapp.MessageBox(ex.Message)
End Try
End Sub
try this code if it helps please reward points
Regards
Cool Ice
Edited by: Cool Ice on Jul 28, 2008 1:43 PM -
How to Write values in matrix and add Rows
hi all,
i am having a problem in retrieving values
for Combobox in Matrix.
one more thing is i am not able to write to the Matrix
even after adding rows by using oMatrix.Add()
pls help me
if possible any sample code of linking columns to datasource and popping values in combobox.
Regards
omOm,
You may want to look at the samle code that comes with the SAP Business One 2005A SDK with respect to the DI API. There is a sample that shows entering a sales order in an external VB.Net app and the populating a sales order rows and header in Business One. This may five you some help.
..\Program Files\SAP\SAP Business One SDK\Samples\COM DI\VB.NET\05.OrderAndInvoice
HTH,
Eddy -
How to calculate percentage and difference of two values in matrix report in ssrs 2008
Hi everyone,
DB--SQL server
SSRS-2008
I am creating matrix report with grouping on WEEK and Fiscalyearweek,
I need to calculate of difference between FY14W01,FY15W01 ande percentage of those..
how to calculate in ssrs level.
Thank You, Manasa.VHi veerapaneni,
According to your description, you want to calculated the increment percentage and difference between two fiscal year week within each week. Right?
In this scenario, since we need to do calculation based on values between dynamically generated cells, we can't simply use expression to achieve this goal. In this scenario, we need to use custom code to record the value for fiscal 14 and fiscal 15, then
we can calculate the difference and percentage within the column group. We have tested your case in our local environment, please refer to the steps and screenshots below:
1. Add the custom code below into the report (you may need to modify the data type based on your scenario:
Public Shared Value1 as Integer
Public Shared Value2 as Integer
Public Shared previous as string
Public Shared previousweek as string
Public Shared Function GetValue(Value as Integer,product as String,Week as String) as Integer
If product =previous and Week =previousweek Then
Value2=Value
Else
previous=product
previousweek=Week
Value1=Value
End If
return Value
End Function
Public Shared Function GetPct()
return (Value2-Value1)/Value1
End Function
Public Shared Function GetDiff()
return Value2-Value1
End Function
2. Design the matrix like below:
3. The result look like below:
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Hi all Added values in Matrix Footer
hi all,
i want to add sum of column value in the footer of the matrix so please give me some hint for that.
Thanks in adava.
Regards
Rajkumar GuptaHi,
Keep a textbox below the matrix column. In the lost focus of the column, give the following code
Case SAPbouiCOM.BoEventTypes.et_LOST_FOCUS
Dim Sum As Integer
For lnnRecCount = 1 To Mat.RowCount
If Mat.Columns.Item("colTotal").Cells.Item(lnnIntORecCount).Specific.value (not equal to) "" Then
Sum = Sum + Mat.Columns.Item("colTotal").Cells.Item(lnnRecCount).Specific.value
End If
Next
DB.SetValue("U_TL", DB.Offset, Sum)
Here "U_TL" is the alias name of the textbox which you had kept below the matrix -
hi ,
i created matrix in screen painter. it includes 3 columns unit of measurement, length, width.
i want to set values to length and width manually.
when the form is loaded the length and width should appear in matrix
Regards,
PuneethHere an sample to add DataSource-Information via a XML-Editor.
<form appformnumber="WREDE_CREDITNOTES" FormType="WREDE...
<datasources>
<dbdatasources>
<action type="add">
<datasource tablename="@WREDE_CREDITNOTES"/>
<datasource tablename="@WREDE_CN_LINES"/>
</action>
</dbdatasources>
<userdatasources>
<action type="add">
<datasource uid="FolderDS" type="9" size="1"/>
<datasource uid="NumAtCard" type="9" size="100"/>
<datasource uid="cnnumber" type="9" size="100"/>
<datasource uid="dnline" type="0" size="4"/>
<datasource uid="lines" type="0" size="4"/>
<datasource uid="sum" type="6" size="8"/>
<datasource uid="sum2" type="6" size="8"/>
<datasource uid="draft" type="0" size="4"/>
<datasource uid="Folder2" type="9" size="1"/>
<datasource uid="FolderDS" type="9" size="10"/>
<datasource uid="FolderDS" type="9" size="10"/>
</action>
</userdatasources>
<DataTables>
<DataTable Uid="OPENDN">
<Columns/>
</DataTable>
</DataTables>
</datasources>
<Menus>
Maybe you are looking for
-
So I had the stock 320gb drive that came with my machine. It started crashing, so I pre-empted the loss of data and installed a spare Western Digital 500gb Scorpio Blue drive, installed Mavericks, and restored my data. Almost immediately I began havi
-
Error During Releasing of Billing Document to Accounts Department
Hi, Kindly help me, we have just finished the upgradation from 4.6 version to 6 version. when we are releasing the billing document to accounts department error message is coming like this. No entry has been made in the assignment table for condition
-
Can i install windows 7 on my iMac 2012 using a external drive
Can i install windows 7 on my imac 2012 using a external cd drive ? Thanks
-
Computer Died need to sync from i-pod to i-tunes
My Brother did something to my computer and just decided to reinstall Windows and was not smart enough to back everything up. So now I'm slowly putting things back on. I started first with my I-Pod and now I have a hugh issue.... How do I get the son
-
I have created a new Project with Business components using a Microsoft Access DB with four tables. I can view succesfully the records on the tbales(next, prior, query). I cannot Insert od Edit a record, the icons in the Navigator are greyout (not se