Matrix coloum Editable False
dear all
i had set editable fasle to one matrix coloum but now i need to set ti true
but in the screen painter i set it to true but still at the run time it wont work
still i cant edit the value in that coloum.....
is there another way to remove the editable false?
thanks in advanece
Hi
Dim Mat As SAPbouiCOM.Matrix = oForm.Items.Item("MatrixName").Specific
Dim column As SAPbouiCOM.Column = Mat.Columns.Item("columnName")
column.Editable =True
Write this code in your after from load event
Hope this will help
Regards
Vivek
Similar Messages
-
Making Cell of matrix editable =false
oForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE;
hi
Dim om As SAPbouiCOM.Matrix
om = Me.m_SBO_Form.Items.Item(enControlName.mtxDetails).Specific
om.Columns.Item(enControlName.colItemCode).Editable = False
regards -
How to make table as "editable false"
Dear Forum,
i am user of jDeveloper jClient/Swing .jpr.
cutomer table having following attributes-
1.cust_id (primary key)
2.cust_name
3.cust_add
Suppose customerview bind with jTable1.
Using ViewObjectEditor, i set "updateable never" for all fields.
This show error, when data insert into table " cust_id as
read only".
Help me, Using jClient Binding how to make Table as "editable false".Overriding method prepareEditor() for new table:
private JTable tableList = new JTable(){
public Component prepareEditor(TableCellEditor editor, int row, int column) {
// 1 and 2 column is not editable
if(column == 0 || column == 1){ return null; }
return super.prepareEditor(editor, row, column); -
DataGrid editable="false" but I can type in
Here is my dataGrid:
<mx:DataGrid
id="documents" fontSize="12" rowCount="3" rowHeight="50"width="
100%" editable="false">
and here is a column:
<mx:DataGridColumn
headerText="Document Description"dataField="
docdescript" wordWrap="true">
<mx:itemRenderer>
<fx:Component>
<mx:TextArea>
</mx:TextArea>
</fx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
But I can type into that column, why? What am I missing?
ThanksDataGrid editable property is for whether we popup and editor and try to save changes when you change cells. It isn't going to prevent you from putting editable controls in as a renderer and defeat the ability to use the editability of that control. Imagine if the renderer was a complex thing with a checkbox. How would we detect that and prevent clicking it?
So, don't use TextArea. It is heavy and slow. The DG's default renderer can show multiple lines of text anyway.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
Fuego.workspace.views.editable = false does not work
Hi all,
I have disabled the option for the user to edit the views in the workspace.. using the property
fuego.workspace.views.editable = false
inside of workspace.properties..
I did the above in both the portal workspace.properties file and the ALBPM workspace.properties file.. But as a user, when I login , I still am able to edit and modify the views..
How is this possible?
How can I eliminate this problem?
My project is deployed via. the weblogic portal...
I do not want to change the viewEdit.xhtml file inside of the portal to not to show the edit button to the user..chang75 wrote:
I have created the simple application below. A JFrame with a single button. When the button is clicked the line
jButton1.setEnabled(false);
should disable the button.
The button does get shaded out but continues to work with the System.out.println("Mouse Pressed"); line still printing the message to the screen when the button is pressed.
Please tell me why this happens?That frustrated me as well when I first discovered it. A disabled component should not respond to mouse clicks, should it?
In Windows XP, right-click My Computer and select Properties. That dialog has a disabled Apply button that you can right-click to get a "What's This" menu. Disabled buttons must respond to mouse clicks in order for developers to implement behavior like this.
As suggested previously, use ActionListener instead of MouseListener for JButton clicks. -
Hi All
i m facing a problem ,
I want swap the matrix coloum in system form like sales order form.
it is possable or not, if it is possable so plz tell me how?/???Hi Pankai,
you can change the positions from the columns in a matrix.
you have to click on the Form Settings symbol in the Toolbar - its the 5th Symbol from right, starting from the help questionmark symbol.
in this window click on Table Format and than sort your columns by clicking on it and drag them to the new position.
regards
David -
DataGridColumn editable false?
how to dinamically make editable false for datagridColumn ?
my code is like that
<mx:DataGridColumn
dataField="dispatch"
headerText="Dispatch"
resizable="false"
sortable="false"
editorDataField="selected"
rendererIsEditor="true"
itemRenderer="mx.controls.CheckBox"
>
</mx:DataGridColumn>
when I always try to set editable false for column.but it never became as I need.Any Ideas?here is the sample
<?xml version="1.0" encoding="utf-8"?>
<!--Project :UserLevel~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<!--File :TestGrid.mxml~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<!--Date :Mar 24, 2011~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<!--Author :Administrator~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var acDao:ArrayCollection=new ArrayCollection();
protected function button1_clickHandler(event:MouseEvent):void
acDao.addItem({col1:1,col2:2,col3:true});
acDao.addItem({col1:11,col2:22,col3:false});
acDao.addItem({col1:12,col2:23,col3:true});
acDao.addItem({col1:13,col2:24,col3:false});
protected function button2_clickHandler(event:MouseEvent):void
for each(var temp:Object in dgDao.dataProvider as ArrayCollection)
trace("first :"+temp["col1"]+"second :"+temp["col2"]+"third :"+temp["col3"]);
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<!--Visual Components Here~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<mx:DataGrid x="300" y="194" id="dgDao" dataProvider="{acDao}" editable="true">
<mx:columns>
<mx:DataGridColumn headerText="Column 1" dataField="col1"/>
<mx:DataGridColumn headerText="Column 2" dataField="col2"/>
<mx:DataGridColumn headerText="CheckBox" dataField="col3" editable="true" itemRenderer="mx.controls.CheckBox" editorDataField="selected" rendererIsEditor="true"/>
</mx:columns>
</mx:DataGrid>
<s:Button x="300" y="150" label="Load" click="button1_clickHandler(event)"/>
<s:Button x="383" y="150" label="view" click="button2_clickHandler(event)"/>
</s:Application>
How can I make the checkbox column editable false dinamically? -
Hi all
I want to know like to disable one column in matrix for a particular Row.
how can i do this? please help me
thank you.Hi Jacob... It is only possible to disable a whole column with current SDK
What you could do is not to disable the column, but to catch the event of entering the specific cell and set BubbleEvent to false... That way the cell might still be editable, but the add-on makes sure that no one can enter the cell in the first place... -
Hi Expert, Matrix row enable false
Hi ,
I Want to enable false matrix row for my some condition.
If u have any idea share with me.
thanks in adva.
Regards
Rajkumar GuptaHi Rujkumar,
You need to catch the GotFocus ItemEvent, for the matrix, and in the pVal.BeforeAction, check if the row should be enable or not. If it should not be enabled, you cancel the event (GotFocus) by setting BubbleEvent = False.
Regards,
Vítor Vieira -
Editable(false) on a column in a JTable. how to?
how can I set a column named Total, in a JTable to not be editable?
thanks
ameal from sv�rjeHai Ameel,
check the following thread,
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=704416
Hope this helps,
Regards,
Ciya. -
JTextField's - setting editable false, but without greying out the area?
Is this at all possible? Is there any other way to go about it? Or is the only way to make a textfeild un-edditable using the setEditable(false); command.. and sticking it with the grey area?
Sorry for the weird/dumb/annoying question..
Thanks anyway heh..all i wanted was an answer and this dude just flames
me.I think your need to adjust your sensitivity downward by an order of magnitude. I didn't see anything in Joachim's response that remotely resembled a flame. He simply pointed out that your requested goal violates standard usability principles (rather politely, I might add). You referred to your own question in a more derogatory manner than any respondent.
Personally, I think his advice was very helpful. You shouldn't violate standard usability principles unless you're just deliberately trying to confuse your users, which is not something many of us would care to give advice on how to do... -
Awt.TextArea: does it have to be gray when editable(false) ?
I want to have some text scroll from the bottom to the
top of an applet.
I think it would be a good solution to put the text in
a TextArea, and move the caretPosition. (or simular).
The problem is that when I use setEnabled(false) ,
the colors og the component emediatly changes to it's
original colors.
I know this is not the case with JTextArea, but I would
like to stick with non-swing-components on this one.
Any suggestion ?Thanx. That worked brilliantly!
Now, I've got a minor problem whith teh scrolling.
My applet implements Runnable, and the scrolling is
happening in the run-method.
The thing is...it's not scrolling smoothly. It rather seems
like the longer lines take longer time.
the run-method is like this
public void run() {
while (true) {
sa.setCaretPosition( sa.getCaretPosition() + sa.getColumns() );
try{
tr.sleep(100);
catch( InterruptedException ie ) {
System.out.println("Feil");
} -
Coloum check box true with non editable.
i want that a check box in coloum is true with non editable ... look at ***** in como select event.
is it possible ..
'// Add a column for check Cut value or not
oColumn = oColumns.Add("chose", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
oColumn.TitleObject.Caption = "CHECK"
oColumn.Width = 50
oColumn.Editable = False
' oColumn.Visible = False
oColumn.DataBind.SetBound(True, "@DOCHECK", "U_check")
If (pVal.ItemUID = "Mat1") And (pVal.ColUID = "DOno") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_COMBO_SELECT) And (pVal.Before_Action = False) Then
oForm = SBO_Application.Forms.Item(FormUID)
Dim oEdit As SAPbouiCOM.EditText
Dim oCombo1 As SAPbouiCOM.ComboBox
Dim qstr As String
Dim sval As String
Try
oItem = oForm.Items.Item("Mat1") '''''' Matrix
oMatrix = oItem.Specific
oCheckBox = oMatrix.Columns.Item(5).Cells.Item(pVal.Row).Specific
oColumns = oMatrix.Columns
colDONO = oColumns.Item("DOno") '''''' Delivery order no
oCombo1 = colDONO.Cells.Item(pVal.Row).Specific
sval = Trim(oCombo1.Selected.Value)
rs = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
qstr = "select U_DoDate ,U_Oqty,U_Bqty from [@DOMAST] where code = '" & sval & "'"
rs.DoQuery(qstr)
rs.MoveFirst()
''''''''''''''''''''''''''''' value come from from test master
If Not (rs.EoF) Then
'Do While Not (rs.EoF) = False
oEdit = oColumns.Item("DOdt").Cells.Item(pVal.Row).Specific
oEdit.String = Format(rs.Fields.Item("U_DoDate").Value, "ddMMyy") ''''''delivery date
oColumns.Item("Oqty").Cells.Item(pVal.Row).Specific.value = rs.Fields.Item("U_Oqty").Value ''''' Orginal quantity
oColumns.Item("Rqtval").Cells.Item(pVal.Row).Specific.value = rs.Fields.Item("U_Bqty").Value ''''' Balance quantity
oCheckBox.Checked = True ........ i want it will be true but non editable ?????*****
oMatrix.Columns.Item(5).editable=False
''''''''''''' then it will be non editable that means edittable false. when i put
oMatrix.Columns.Item(5).editable=False then check box is not true
rs.MoveNext()
End If
oColumns.Item(0).Cells.Item(pVal.Row).Click()
oMatrix.clearSelection()
Catch ex As Exception
End Try
End Ifthanks for reply.
when i am select some value from combox in matrix there is a coloum in check box .
my check box is true. ok its working .
when i set coloum. editable =false
then check box is not true.
If (pVal.ItemUID = "Mat1") And (pVal.ColUID = "DOno") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_COMBO_SELECT) And (pVal.Before_Action = False) Then
oForm = SBO_Application.Forms.Item(FormUID)
Dim oEdit As SAPbouiCOM.EditText
Dim oCombo1 As SAPbouiCOM.ComboBox
Dim qstr As String
Dim sval As String
Try
oItem = oForm.Items.Item("Mat1") '''''' Matrix
oMatrix = oItem.Specific
oCheckBox = oMatrix.Columns.Item(5).Cells.Item(pVal.Row).Specific
oColumns = oMatrix.Columns
colDONO = oColumns.Item("DOno") '''''' Delivery order no
oCombo1 = colDONO.Cells.Item(pVal.Row).Specific
sval = Trim(oCombo1.Selected.Value)
rs = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
qstr = "select U_DoDate ,U_Oqty,U_Bqty from [@DOMAST] where code = '" & sval & "'"
rs.DoQuery(qstr)
rs.MoveFirst()
''''''''''''''''''''''''''''' value come from from test master
If Not (rs.EoF) Then
'Do While Not (rs.EoF) = False
oEdit = oColumns.Item("DOdt").Cells.Item(pVal.Row).Specific
oEdit.String = Format(rs.Fields.Item("U_DoDate").Value, "ddMMyy") ''''''delivery date
oColumns.Item("Oqty").Cells.Item(pVal.Row).Specific.value = rs.Fields.Item("U_Oqty").Value ''''' Orginal quantity
oColumns.Item("Rqtval").Cells.Item(pVal.Row).Specific.value = rs.Fields.Item("U_Bqty").Value ''''' Balance quantity
oCheckBox.Checked = True
rs.MoveNext()
End If
oColumns.Item(0).Cells.Item(pVal.Row).Click()
oMatrix.clearSelection()
Catch ex As Exception
End Try
End If -
I want to do editable a matrix column
Hi all! I want to write a value in a not editable column of a matrix, so first i try to do editable the column,and then write the value,so i do this:
Matrix.Columns.Item("34").Editable = True
But i get this error:
Item - the item is not a user defined item
I'm working with the withholding tax table(column account). What can i do?Hi Miguel,
There is one solution (not so nice) for your problem, we had the same problem.
1. set the column editable through the gui en restart SBO
In your addon
1. at form load set the column to editable false
2. just before the change, set the column to editable true
3. change the column
4. set the column to editable false.
done
Regards,
Ad -
i want to retrive data from table matrix in coloum combo (dd no) . but value not coming
my code
Private Sub DrawRAKELDForm(ByVal oForm As SAPbouiCOM.Form)
'// Adding a Matrix item
oItem = oForm.Items.Add("Matrix2", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
oItem.Left = 5
oItem.Width = 500 ' 350
oItem.Top = 154
oItem.Height = 100
oItem.FromPane = 2
oItem.ToPane = 2
oMatrix = oItem.Specific
oColumns = oMatrix.Columns
'// Adding Column items to the matrix2
oColumn = oColumns.Add("#", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "#"
oColumn.Width = 50
oColumn.Editable = False
'// Add a column for DD no.
oColumn = oColumns.Add("DDno", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
oColumn.TitleObject.Caption = "DD No."
oColumn.Width = 80
oColumn.Editable = True
want to select card code in DD no
''''''''''''''''''''''''''''''' may be here some error ''''''''''''''''''''''''''''
'colItemCode = oColumns.Items.item("Matrix1").Cells.Item("ddno").Specific
' AddLogCodeCombo(oForm, colItemCode) '''''' errror
''''''''''''''''''''''''''''''''''''''''''''''''' errror ''''''''''''''''''''''''''''''''''''''
oColumn.DataBind.SetBound(True, "@RAKELD1", "U_draftno")
'// Add a column for DD Date
oColumn = oColumns.Add("DDdt", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Draft Date"
oColumn.Width = 80
oColumn.Editable = True
oColumn.DataBind.SetBound(True, "@RAKELD1", "U_draftdt")
'// Add a column for Invoice No.
oColumn = oColumns.Add("Drafamt", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Amount"
oColumn.Width = 80
oColumn.Editable = True
oColumn.DataBind.SetBound(True, "@RAKELD1", "U_draftamt")
oColumn = oColumns.Add("bankname", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Bank Name"
oColumn.Width = 80
oColumn.Editable = True
oColumn.DataBind.SetBound(True, "@RAKELD1", "U_banknm")
'// Adding "Total Amount" Button
oItem = oForm.Items.Add("btnamnt", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 216
oItem.Width = 75
oItem.Top = 240
'oItem.Height = 20
oItem.FromPane = 2
oItem.ToPane = 2
oButton = oItem.Specific
'oButton.Caption = "0.00"
'oEdittext.DataBind.SetBound(True, "", "FolderDS")
'// Adding "Add Row" button
oItem = oForm.Items.Add("btnrow", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 470
oItem.Width = 65
oItem.Top = 220
oItem.Height = 20
oItem.FromPane = 2
oItem.ToPane = 2
oButton = oItem.Specific
oButton.Caption = "Add Row"
''No. of Escorts Edit Box
''SuperVisor Edit Box
oItem = oForm.Items.Add("SupVal", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oItem.Left = 110
oItem.Width = 160
oItem.Top = 265 '300
oItem.AffectsFormMode = True
oItem.LinkTo = "SupTxt"
oEdittext = oItem.Specific
oEdittext.DataBind.SetBound(True, "@ORAKELD", "U_suprvsr")
''Remarks Edit Box
oItem = oForm.Items.Add("RmkVal", SAPbouiCOM.BoFormItemTypes.it_EXTEDIT)
oItem.Left = 110
oItem.Width = 160
oItem.Top = 285 '320
oItem.AffectsFormMode = True
oItem.LinkTo = "RmksTxt"
oEdittext = oItem.Specific
oEdittext.DataBind.SetBound(True, "@ORAKELD", "U_remark")
''Name of Security Firm Edit Box
oItem = oForm.Items.Add("EnoVal", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oItem.Left = 376 '430
oItem.Width = 160 '105
oItem.Top = 265
oItem.AffectsFormMode = True
oItem.LinkTo = "EscnoTxt"
oEdittext = oItem.Specific
oEdittext.DataBind.SetBound(True, "@ORAKELD", "U_escort")
oItem = oForm.Items.Add("FmnmVal", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oItem.Left = 376 '430
oItem.Width = 160 '105
oItem.Top = 285
oItem.AffectsFormMode = True
oItem.LinkTo = "FirmnmTxt"
oEdittext = oItem.Specific
oEdittext.DataBind.SetBound(True, "@ORAKELD", "U_firmnm")
'// Adding a OK button
oItem = oForm.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 5
oItem.Width = 65
oItem.Top = 355
oItem.Height = 20
oButton = oItem.Specific
'// Adding a Cancel button
oItem = oForm.Items.Add("2", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 75
oItem.Width = 65
oItem.Top = 355
oItem.Height = 20
oButton = oItem.Specific
oForm.DataBrowser.BrowseBy = "ChlnVal"
End Sub
Private Sub AddLogCodeCombo(ByVal oform As SAPbouiCOM.Form, ByVal oCombo As SAPbouiCOM.ComboBox)
Dim RS As SAPbobsCOM.Recordset
Dim sSQL As String
' Dim oCombo As SAPbouiCOM.ComboBox
'oCombo = oForm.Items.Item("ddno").Specific
'oCombo = oColumns.Items.item("Matrix1").Cells.Item("ddno").Specific
While oCombo.ValidValues.Count > 0
oCombo.ValidValues.Remove(0, SAPbouiCOM.BoSearchKey.psk_Index)
End While
RS = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
sSQL = "SELECT CardCode,CardName FROM OCRD"
RS.DoQuery(sSQL)
RS.MoveFirst()
While RS.EoF = False
oCombo.ValidValues.Add(RS.Fields.Item("CardCode").Value, RS.Fields.Item("CardName").Value)
RS.MoveNext()
End While
End Sub
please help me...?
Edited by: Animesh Sinha on Sep 15, 2008 1:20 PM
Edited by: Animesh Sinha on Sep 15, 2008 1:24 PM
Edited by: Animesh Sinha on Sep 15, 2008 1:26 PMHi Animesh,
You must to bind your column with field in your database.
So your code can be :
'// Add a column for DD no.
oColumn = oColumns.Add("DDno", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
oColumn.TitleObject.Caption = "DD No."
oColumn.Width = 80
oColumn.Editable = True
oColumn.Databind.Bind("Your table", "Your field")
colItemCode = oColumns.Items.item("Matrix1").Cells.Item("ddno").Specific
AddLogCodeCombo(oForm, colItemCode)
Hope i help you.
Regards
Michael
Maybe you are looking for
-
Is there a way to speed up Get-QADUser or Get-ADUser?
Hello, I was wondering if there was a way to speed the commands up to query faster? My one-liner looks like: Get-ADUser -SearchBase "OU=People,DC=Domain,DC=Company,DC=Net" -Filter {Title -eq "Job Title"} -ResultSetSize $null -Properties * | Select
-
What rule can be used to create a namesapce
Hi all: I want to create a namespace in IR for ECC, but don't know what value should and could be used for the namespace. is there any rule for the naming of a namespace? Thank you very much!
-
Streaming New iTunes Library without original synced iTunes library connect
I was wondering if the Apple TV won't let you stream a new iTunes Library if the original Synced iTunes library isn't connected. Does anyone know if this is true? I've been trying for quite some time now to stream a new iTunes library, but the apple
-
Can someone help me diagnostic the problem et tell if it can be a DIY repair project? youtube: http://youtu.be/0v9jIvBHp4Q Thanks Fred
-
Dear experts, I have a cross tab report with the following colums (two lines in the header): Country | 2008 | 2010 | 2010 | 2010 | Jan Feb Mar Is it possible to have the cells with year "2010" merged having: Country | 2008 | 2010