Problem in matrix 3d
Sir,
I am trying to experiment with new CS4 and AS3 to create 3D
aplications using matrix3D class.i recently encountered a problem
in the Code and I am unable to compile it even.
URL:
http://livedocs.adobe.com/flex/gumbo/langref/flash/geom/Matrix3D.html
example:PointAtExample
Error Notification in FLA:
1119: Access of possibly undefined property XAXIS through a
reference with static type Class.
Trials of MySelf: i tried so many ways by re imporing the
exact with
import flash.geom.Vector3D; statement
But It is still failing to compile successfully.I
amliterally stucked up at that point.
Please Check/Test the Sample again or provide me a guide line
how to use the sample corectly
Sorry, looks like some typos in the example code. Use
Vector3D.X_AXIS, Vector3D.Y_AXIS instead of Vector3D.XAXIS,
Vector3D.YAXIS
Similar Messages
-
Problem with matrix/screen in Qosmio F55-Q502
Hello
For a few weeks I have strange problem with matrix/screen in my laptop.
The matrix flickers very often - no matter if power cable is plugged or not.
The screen is full bright and suddenly it starts to blink - it is getting darker, than lighter, usually for few/dozen seconds. It does it when nobody touches it or when I work on it.
It very annoying and making eyes tired - it does it very quickly and there are few levels of screen brightness.
Moreover sometimes the screen turns off - You can see what is on desktop but the screen is very very dark (but not blank or completely switched off). It happens without any reason - sometimes just in the middle of working, sometime for example when I touch (not pull) the power cable between laptop and power supply.
Then, the only way to get back to normal brightness of screen id to close the lid just for half a second and open it
- matrix lights then normally, but can "turns off" moment later and I must do it once again - sometimes even few times..
After "action" with lid screens seems like nothing ever happen..
Does anyone have idea what is the cause of such behaviour or how to diagnose it in details?
Or maybe solve this problem?
Best regards
300mSounds like the Backlight or Inverter is failing or there is a loose connection.
Is the unit under warranty? Send it to an ASP for repair.
You should avoid repairing it yourself, the backlight is very high voltage! -
Problem in Matrix while Populating Data
Hello All,
I am facing a problem in matrix column in SAP 8.8
I am filling a matrix with data from a table ITT1.
Matrix1 = oChlSelc.Items.Item("3").Specific
oChlSelc.DataSources.DataTables.Add("Approval")
oChlSelc.DataSources.DataTables.Item("Approval").Clear()
Dim Str_Query As String = "Select Father,Code,Quantity From ITT1"
oChlSelc.DataSources.DataTables.Item("Approval").ExecuteQuery(Str_Query)
Matrix1.Columns.Item("col_1").DataBind.Bind("Approval", ",Code")
Matrix1.Columns.Item("col_2").DataBind.Bind("Approval", "Quantity")
matrix1.LoadFromDatasource
The problem is that the data is getting populated in the matrix without any problem but the Quantity field is not showing the
exact Value means its showing the RoundOff Value i.e. 1.45 = 1
If Quantity is 1.45 in matrix column its showing 1 .
That what i am facing .
Thanks
AmitHi Amit
Its working fine in my system
and also im getting the quantity value as 1.00 by using this code
Dim matrix1 As SAPbouiCOM.Matrix
Dim oform As SAPbouiCOM.Form
oForm = SBO_Application.Forms.Item("frm_test")
matrix1 = oForm.Items.Item("1").Specific
oForm.DataSources.DataTables.Add("Approval")
oForm.DataSources.DataTables.Item("Approval").Clear()
Dim Str_Query As String = "Select Father,Code,Quantity From ITT1"
oForm.DataSources.DataTables.Item("Approval").ExecuteQuery(Str_Query)
matrix1.Columns.Item("V_0").DataBind.Bind("Approval", "Code")
matrix1.Columns.Item("V_1").DataBind.Bind("Approval", "Quantity")
matrix1.LoadFromDatasource()
Thanks
Shafi -
Problem with Matrix/Checkbox/Datasource
Hi, i have a problem with a Matrix.
There are 3 Columns on this Matrix, one of those is a Checkbox. I fill the Columns with data, the Checkboxes where just added (no Checkbox is selected), the user has to select the value (Checkbox)he want's to by hand.
After i filled the Matrix i can see all the data on the Form, it's OK, but then i loose all entries after SBO is doing some work. There where shown only the empty rows and the checkboxes.
I guess it has something to do with the databinding. My problem is that i don't have the Data for this form on a db-table. I fill in the matrix the result of some querys. It looks like i need at least a DB-Field for the checkboxes, otherwise there are not working (not selectable)
Somebody knows a solution how i can keep the Data in the Matrix after SBO is doing some work? What could be the reason that i loose the data after filling it in the Matrix? Is there an easy way?
Thanks AndreasAlmost every item on a form need a datasource... If the item reprecents some data in a table the databinding must be a dbds... If the data does not reflect any data in a table (Calulated value, user-decision, ect.) a userdatasource need to be created...
Add a userdatasource
oForm.DataSources.UserDataSources.Add(UID,type,length);
Databind to DBDS
col.DataBind.SetBound(true,TABLE,FIELD);
Databind to UDS
col.DataBind.SetBound(true,,UID); -
hi all good morning.... i have one problem i assigned query cfl for matrix field. the value fetch based on header level.... the query fetch the data but its not show the CFL window..here i pasted my code
Case "matvariant"
Select Case pVal.ColUID
Case "Col_Colour"
Select Case pVal.EventType
Case SAPbouiCOM.BoEventTypes.et_GOT_FOCUS
Dim oForm As SAPbouiCOM.Form = gonAppApplication.Forms.Item("VARAINT")
Dim sQuery As String = "SELECT T1.[U_U_COLOR] FROM [dbo].[@ITEMCOLOR_DETAIL] T0 inner join [dbo].[@ITEMCOLOR_HEADER] T1 on t0.docentry=t1.docentry WHERE T0.[U_Itmcode] !='' and T0.[U_Avail] ='y' and T0.[U_Itmcode] = '" & oForm.Items.Item("txticode").Specific.Value & "'"
oGeneral.SetConditionToCFL1(oForm, "COLITEMCFL1", "U_ID", sQuery)
Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
Dim bonCflEvents As SAPbouiCOM.ChooseFromListEvent
Dim bonDTTable As SAPbouiCOM.DataTable
Dim bonCflList As SAPbouiCOM.ChooseFromList
Dim bnnstrUID As String
bonCflEvents = pVal
bnnstrUID = bonCflEvents.ChooseFromListUID
bonDTTable = bonCflEvents.SelectedObjects
bonCflList = lonConvForm.ChooseFromLists.Item(bnnstrUID)
If Not (bonDTTable Is Nothing) Then
If bonCflList.UniqueID = "COLITEMCFL1" Then
gonMatConvMatrix.GetLineData(pVal.Row)
gonMatConvMatrix.GetLineData(pVal.Row)
lonDetailDatasource.SetValue("U_Col_COLOR", lonDetailDatasource.Offset, bonDTTable.GetValue("U_COLOR_NAME", 0))
gonMatConvMatrix.SetLineData(pVal.Row)
If pVal.Row = gonMatConvMatrix.VisualRowCount Then
lonDetailDatasource.SetValue("U_Col_COLOR", lonDetailDatasource.Offset, "")
lonDetailDatasource.SetValue("U_Col_LENGTH", lonDetailDatasource.Offset, "")
lonDetailDatasource.SetValue("U_Col_WIDTH", lonDetailDatasource.Offset, "")
lonDetailDatasource.SetValue("U_Col_THICK", lonDetailDatasource.Offset, "")
lonDetailDatasource.SetValue("U_Col_SIZE", lonDetailDatasource.Offset, "")
lonDetailDatasource.SetValue("U_Col_Desc", lonDetailDatasource.Offset, "")
lonDetailDatasource.SetValue("U_Col_Price", lonDetailDatasource.Offset, "")
lonDetailDatasource.SetValue("LineId", lonDetailDatasource.Offset, pVal.Row + 1)
gonMatConvMatrix.AddRow()
gonMatConvMatrix.SetLineData(pVal.Row + 1)
gonMatConvMatrix.FlushToDataSource()
End If
Else
End If
End If
End Select
End Select
Edited by: narain.balan on Oct 26, 2010 7:02 AMHi
Please post the function code oGeneral.SetConditionToCFL1(oForm, "COLITEMCFL1", "U_ID", sQuery)
I think the problem is with choose from list condition.
Regards
Arun -
Hi Guys,
I have a matrix which is on the UDO form. I have bound all the columns with DB DataSources. I have one column of combobox type where in the back end i have the valid values
"1-Approved"
"2-Pending"
"3-Rejected"
The problem here is that when the form is opened the matrix column only shows values 2 and 3 ("2-Pending","3-Rejected").
I also have another Column with 2 Valid values, again facing the same problem. Only one value is being shown.
But in the backend when i check in the "Manage User Fields" Screen all the 3 Valid values are visible.
Am i doing something wrong..??
Thanks in Advance,
Vasu Natari.Hi,
For me, even if the validvalues are added, it is working. Real.
Here is a code for matrix columns, and it is shows me on the form the description.
You must have to add of course validvalues to show the description (as in the description). This sample
is shows you the ship types of orders. You also can use userdatasources....
Sub ComboDesc()
Dim oForm As SAPbouiCOM.Form = m_SBO_Application.Forms.Add("TEST_MTX")
oForm.Visible = True
Dim oitem As SAPbouiCOM.Item = oForm.Items.Add("MTX", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
With oitem
.Top = 5
.Left = 5
.Width = oForm.Width - 15
.Height = oForm.Height - 15
.AffectsFormMode = False
End With
Dim oMatrix As SAPbouiCOM.Matrix = oitem.Specific
Dim oColumns As SAPbouiCOM.Columns = oMatrix.Columns
Dim oDBDataSource As DBDataSource = oForm.DataSources.DBDataSources.Add("ORDR")
Dim oColumn As SAPbouiCOM.Column = oColumns.Add("#", SAPbouiCOM.BoFormItemTypes.it_EDIT)
With oColumn
.TitleObject.Caption = "#"
.Description = .TitleObject.Caption
.Width = 30
.DataBind.SetBound(True, "ORDR", "DocEntry")
.Editable = False
End With
oColumn = oColumns.Add("COL1", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
With oColumn
.Width = 80
.TitleObject.Caption = "ShipType"
.Description = .TitleObject.Caption
.Editable = False
.DataBind.SetBound(True, "ORDR", "TrnspCode")
.DisplayDesc = True
.Visible = True
End With
Dim vv As SAPbouiCOM.ValidValues = oColumn.ValidValues
Dim ors As SAPbobsCOM.Recordset = ocmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
ors.DoQuery("select * from OSHP")
Do While Not (ors.EoF)
vv.Add(ors.Fields.Item(0).Value, Left(ors.Fields.Item(1).Value, 30))
ors.MoveNext()
Loop
oDBDataSource.Query()
oMatrix.LoadFromDataSource()
End Sub
Regards
J. -
Hi,
I selected some records thru do query and printing that value in matrix in that no problem the records selected was printing correctly. Printing once if i select one record in a query means in matrix one row will be added and that record ll be print once.
But i need to print that record no of times. That means if i select one record in a query means it should not add in one row of the matrix it should be added no of times as the number i give thru condition.
if i give 3 in condition the record should print 3 times. But it is printing once only. Plz give me a solution
MadhaviDavid ,
I didnt print to excel. I ll explain in detail.
I have to choose the category in the combo in the header form. According to category i want the details should be added in a matrix automatically i took it thru query its working well. That is adding the selected rows to matrix based on category now my problem is in that query i took the sample size also. the row should add to matrix as the no of sample size. if the sample size is 2 means the records should be added twice to the matrix if it is 3 means it should be added thrice how should i do this.
Madhavi -
i make a matrix report and the data is arabic
when i make concurrent pdf or html the arabic is not appear as i want.
when i try to make a template i can't because the option is table or table/form.
what is the solution?You need to use an outer join in some way. See these similar problems:
Re: Display null rows / columns in matrix report
Re: To obtain all the Month details -
Hi every Body,
I ve created in C# a matrix with columns, When I run the application, many rows appears but I can write only in the first row !!! I don't know why?
I need to write on all the lines (rows) of the matrix.
Can someone help me!Hello Haifa,
The enabled is for the Matrix object, but I suggest that you use matrix.addrow() to solve the problem.
holpe this helps,
Pegorer. -
Problem in Matrix with double Grouping
Hi,
Iam new to Oracle Reports 9i.
I am trying to create a matrix report with double grouping.
when i tried to do that. the report window showing an error and its trying to close.
When i go for single grouping it works fine, but when i do for double grouping iam getting the problem.
can anybody help me in resolving this issue.
thanks
pradeepHi Amit
Its working fine in my system
and also im getting the quantity value as 1.00 by using this code
Dim matrix1 As SAPbouiCOM.Matrix
Dim oform As SAPbouiCOM.Form
oForm = SBO_Application.Forms.Item("frm_test")
matrix1 = oForm.Items.Item("1").Specific
oForm.DataSources.DataTables.Add("Approval")
oForm.DataSources.DataTables.Item("Approval").Clear()
Dim Str_Query As String = "Select Father,Code,Quantity From ITT1"
oForm.DataSources.DataTables.Item("Approval").ExecuteQuery(Str_Query)
matrix1.Columns.Item("V_0").DataBind.Bind("Approval", "Code")
matrix1.Columns.Item("V_1").DataBind.Bind("Approval", "Quantity")
matrix1.LoadFromDatasource()
Thanks
Shafi -
Problem in matrix style report
i have generate a matrix style report which has 5 X 4 = 20 cells . now in the report all cell values should not be filled according to the data in the tables but every cell in the report is filled . and more is that the filled values in the cell which are supposed to be blank is repeated from other cells . what is this problem and how to correct it ? i have an idea that this might be some varibale issue but cant figure it out .plz somebody help me out from this
Hi,
This problem of REP-1813 because,the data fetched into a matrix cell exceeds the capacity of the cell--
e.g., the cell may contain a variable field, and the data may be longer than expected.
Therefore, to solve this issue u may want to either enlarge your matrix cells until they are able to contain the data fetched into them, or redefine your data.
regards
~sudha -
Problem in Matrix Like Select Statement.
Hi All,
I have table like this
Name Null? Type
ROLL NUMBER
DD DATE
ATT VARCHAR2(2)
Along with the data--
SELECT * FROM ATT;
ROLL DD AT
2 02-FEB P
2 01-FEB P
2 03-FEB P
2 04-FEB P
2 05-FEB P
2 06-FEB P
2 07-FEB A
2 09-FEB A
1 01-FEB A
1 02-FEB P
1 03-FEB A
1 04-FEB A
1 05-FEB P
1 06-FEB P
1 07-FEB P
1 09-FEB P
I want to write the select statement which fetch the data in matrix like I shown below.
ROLL 01-FEB = 02-FEB = 03-FEB = 04-FEB
1 A P A A
2 P P P P
I tried with sub-queries but not working Any Help...
SKMsorry i did not look at the problem complete.
the first solution works with the number of values in the date columns are known.
then you can hardcode them , but when the values are unknown you should use something like this.
i have given my example, you just change the queries in the code accordingly and it works great. Thanks to Thomas Kyte who provided this example, i took it and modified for my own.
CREATE TABLE TABL_RESULTDATA
Loadpoints VARCHAR2(125)
, LoadPointSteps VARCHAR2(125)
, Variable VARCHAR2(125)
, Step NUMBER
, Value NUMBER
, VariableType VARCHAR2(20)
, ReadBackValue NUMBER
insert into tabl_resultdata values('HA_000_LP_000','S_001', 'AD1Out(ADcard_1)',1,5, 'SET', 10)
insert into tabl_resultdata values('HA_000_LP_000','S_001','N',1,100,'SET', 10)
insert into tabl_resultdata values('HA_000_LP_000','S_001','Load(DDE)',1,1,'SET', null)
insert into tabl_resultdata values('HA_000_LP_000','S_002','Q_quer(Emi2)',1,9.5,'MEAS', null)
insert into tabl_resultdata values('HA_000_LP_000','S_002','T_I(Emi2)',1,0,'MEAS', null)
insert into tabl_resultdata values('HA_000_LP_000','S_002','AD1Out(ADcard_1)',1,0,'SET', null)
insert into tabl_resultdata values('HA_000_LP_000','S_002','N',1,100,'SET', null)
insert into tabl_resultdata values('HA_000_LP_000','S_002','Load(DDE)',1,1,'SET', null)
insert into tabl_resultdata values('HA_000_LP_001','S_001','Q_Ueber(KMM)',1,49.83,'MEAS', null)
insert into tabl_resultdata values('HA_000_LP_001','S_001','T_Volkor(KMM)',1,0,'MEAS', null)
insert into tabl_resultdata values('HA_000_LP_001','S_001','C1(LeCroy)',1,0,'MEAS', null)
insert into tabl_resultdata values('HA_000_LPSCHL_000','S_001','AD1Out(ADcard_1)',1,10,'SET', null)
insert into tabl_resultdata values('HA_000_LPSCHL_000','S_001','AD1Out(ADcard_1)',2,12,'SET', 17)
insert into tabl_resultdata values('HA_000_LPSCHL_000','S_001','AD1Out(ADcard_1)',3,12,'SET', 19)
insert into tabl_resultdata values('HA_000_LPSCHL_000','S_001','AD1(ADcard_1)',1,9.025,'MEAS', null)
insert into tabl_resultdata values('HA_000_LPSCHL_000','S_001','AD1(ADcard_1)',2,9.05,'MEAS', null)
create or replace package pivot
as
type rc is ref cursor;
procedure data(p_cursor in out rc);
end;
create or replace package body pivot
as
procedure data( p_cursor in out rc )
is
l_stmt long;
l_index number := 0;
begin
l_stmt := 'select loadpoints, loadpointsteps ,step ';
for x in ( select distinct variable, variabletype from tabl_resultdata order by 2 )
loop
l_index := l_index + 1;
l_stmt := l_stmt ||', max(decode(variable,' || ''''|| x.variable||''''||', value )) ' ||replace(replace(x.variable||'('||x.variabletype||')', '('), ')');
end loop;
l_stmt := l_stmt || ' from tabl_Resultdata group by loadpoints,loadpointsteps, step order by loadpoints';
open p_cursor for l_stmt;
end;
end;
set linesize 198
column loadpoints format a17
column loadpointsteps format a5
column step format 999
column value_1 format 999.999
column value_2 format 999.999
column value_3 format 999.999
column value_4 format 999.999
column value_5 format 999.999
column value_6 format 999.999
column value_7 format 999.999
column value_8 format 999.999
column value_9 format 999.999
variable x refcursor
set autoprint on
exec pivot.data( :x ); -
Hi,
In a matrix column if all row contains data 'A' means in the header text it should display 'A' but if in matrix column if 5 rows contains 'A' and 3 rows contains 'B' means in the header text should display 'B'. How to do this i have done but its not working correctly in all entries.
Regards,
madhaviHi Madhavi,
sounds like an algorithm problem in your code.
you problem should be no big deal:
1. you have have two counter variables
2. go through the matrix.rowcount
3. look in the column if there's A or B
4. add 1 to the correct counter
5. look which counter is higher - more A or more B
6. set the column title.
lg David -
Problem with Matrix columns of type Float
Hi all!
I need to show in a matrix column a quantity with the number of decimal set in SBO. My code is:
Dim dt As SAPbouiCOM.DataTable = oFrm.DataSources.DataTables.Add("PCKG")
dt.Columns.Add("clQta", SAPbouiCOM.BoFieldsType.ft_Float, 30)
oCl = oGrid.Columns.Add("clQta", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oCl.Width = 100
oCl.TitleObject.Caption = tr.getTranslation("clQta") '"Quantità"
oCl.DataBind.Bind("PCKG", "clQta")
In this way the number of decimal that i see is 2 because the field type is Float, but in SBO parameterization i have set 4 decimal and would like to see the same number of decimal set in SBO parameterization.
How can I do?
ThanksHi,
If i know well, this is now a limitation of B12007 version. in 8.8 this problem will be resolved.
othwewise of you set all the prices, Quantities, Sumarizes to 4 it will display for. I think it is now displaying the Quantity settings. (float)
Regards,
J.
Edited by: János Nagy on Oct 7, 2009 12:50 PM -
I am doing very simple work with matrix.
In screen painter I have added one matrix control.
There was one column by default.
Then I set alias =<col name>
databound =true
table=<table name>
for the column
and run the form using screen painter.
but the matrix is not editable in add mode.
What is the problem.
pls. rply meyou will have to explicitly add the row to make this editable.
matrix.AddRow(1); -
Problem - get Matrix with LinkedButton
Hi Guys,
I have a problem concerning the use of LinkedButton. I am using a LinkedButton Item in a SAPForms that is linked to a EditText Item. The LinkedObject Properties of LinkedButton is set to Business Partner. The LinkedButton is correctly configured and it normaly appears on the form. The only problem is that when I click on the LinkedButton I am getting only one instance of the Business Partner. What I would like to have is the list of all Business Partners in a Matrix items so that I can choose one of them.
Can someone tell me how to proceed.
Thanks
BopHi Peter,
I've never used the link button but based on the documentation it does just what you say: navigates to one record. I think what you need is to use, or copy the use of, the SAP "Choose From" form which displays a list for selection. Unfortunately it doesn't seem like this form's functionality is exposed or available to the UI-SDK.
If you do a search on this forum for "Choose From" you will find a thread describing an attempt to use the existing SBO form but it isn't clear that it was succesful or even the best approach. The thread was started by Yan Li.
I've got the same problem and it looks like I'm going to have to code my own "Choose From" form for lookups. At least then I will be able to fully control it.
If anyone knows an good way to make use of the built in functionality and would chime in that would be great.
- Mel
Maybe you are looking for
-
Codepage issue when connecting to SAP R/3 under Mac OS X
Hello, I am trying to connect to my enterprise SAP R/3 4.6c backend via the SAPGui for Java 7.00R3 for Mac OS X. I am currently using Mac OS X 10.4.9, on a Macbook (Intel based). However, at every attempt, I get a error message for an invalid codepag
-
Hello, I am implementing SAP for India cleint and they want assets depriciation as per indian income tax. Since sap has released fucntionality of BLock of assets in EHP5, but there are not clear cut guidllines about using the fucntionality. I hv imp
-
Error in varient configuration
im getting error in varient configuration. my main item is cd1 varient color is red, blue, black im maintaing pr00 for cd1, and va00 for red,blue,black. whille im creating the sales order ,im getting main material price im not getting varient price p
-
IOS 8.2 Update cellular reception worries.
Hi there guys, My friend and I just updated our iPhone 6's to the new iOS 8.2 firmware only to find that our cellular reception which would normally be at least three bars in our current location is now none. Our phones seem not to be able to find ou
-
Indesign cc page number sequence
I am using indesign cc! I want to change the page number sequence. Now we create the page number is auto setting left to right! But how can I change the view sequence right to left? Before I use cs5 it have the button on doc setting, now no this butt