How to add multiple button in a column of a table in sapui5?
Hi Experts,
I have a requirement i have list of orders in a table and i want to place two buttons in a column for approval and reject,
if it approved i want to display approved as a text.
i tried like this i place two buttons in matrix layout and i write a case statement i tried to return but its not displaying the layout.
Please help me.
Thanks & Regards
chittibabu.
Hi,
You can't add a layout to the text property of a textfield, so this won't work.
A better approach would be something like this:
oTable.addColumn(new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Confirmation"}),
template: new sap.ui.layout.HorizontalLayout({
content : [
new sap.ui.commons.TextView({
text: "Confirmed",
textAlign: sap.ui.core.TextAlign.Left,
visible : ...
new sap.ui.commons.Button({
text : Approve,
press : doApprove,
visible : ...
new sap.ui.commons.Button({
text : "Reject",
press : doReject,
visible : ...
Simply place all needed elements inside the layout, and based on the 'visible' property, you either show both buttons, or the textview.
I'll leave it as an exercise to you on how you should actually handle the visible state for the TextView and Buttons (hint: use model binding)
Similar Messages
-
How to add multiple button/choices in button choice
HI all ,
How to add multiple button/choices in button choice ?Initialize a cluster array (CrsrList type) with as many cursors as you think you would ever need. Setup your cursors dynamically, then delete the unused cursors (array elements) and then update your CursorList property.
Message Edited by vt92 on 03-20-2009 04:04 PM
"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Attachments:
cursors.PNG 5 KB -
How to Add/Edit validation rule for Column in ADf table(Jdeveloper11g)
I am working on Jdevloper11g with ADF table. There i have one column where user can enter numeric value in range 1-1000 .So i have to add validation as such he/she can't enter value apart from 1-1000 range also not any other charcters.
I know on form, if i select attribute from binding and right click i will find one option "Edit Vlaidation rule..." and from there i can change validation rule for perticular field.
But how i can achive same on Column's filed??
Thanks for all help.
JaydeepHi Barnislav,
I tried the way you mentioned but i am getting below exception.
Could not complete Edit validation Rule... Because it would result in an invalid document
oracle.bali.xml.model.XmlInvalidOnCommitException: SEVERE: Element RangeValidationBean not expected [ node = RangeValidationBean ]
<tree IterBinding="searchConfigurationDataIterator" id="searchConfigurationData" ApplyValidation="true">
<nodeDefinition DefName="com.oraclecnm.util.search.SearchAttributeBean">
<AttrNames>
<Item Value="searchAttributeName" />
<Item Value="searchAttributeId" />
<Item Value="weightage" />
<Item Value="isAttributeSearchable" />
</AttrNames>
</nodeDefinition>
<RangeValidationBean OnAttribute="weightage" ResId="pages.SearchConfigurationPageDef.searchConfigurationData_Rule_1" Inverse="false" Severity="Error" Name="searchConfigurationData_Rule_0" OperandType="LITERAL" MinValue="1" MaxValue="1000" />
</tree>
at oracle.bali.xml.model.XmlModel._validateSubtree(XmlModel.java:3669)
at oracle.bali.xml.model.XmlModel._validateDocument(XmlModel.java:3577)
at oracle.bali.xml.model.XmlModel.__precommitTransaction(XmlModel.java:2825)
at oracle.bali.xml.model.XmlContext.precommitTransaction(XmlContext.java:1166)
at oracle.bali.xml.model.XmlContext.__precommitTransaction(XmlContext.java:1653)
at oracle.bali.xml.model.XmlContext.__commitTransaction(XmlContext.java:1684)
at oracle.bali.xml.model.XmlModel.__requestCommitTransaction(XmlModel.java:2898)
at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:586)
at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:556)
at oracle.bali.xml.model.task.StandardTransactionTask.__commitWrapperTransaction(StandardTransactionTask.java:469)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:208)
at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:103)
at oracle.adfdtinternal.model.ide.validation.RuleEditAction.actionPerformed(RuleEditAction.java:35)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) -
How to add multiple columns?
Using designer API, how to add multiple columns to the repository tables? I want to add number of columns at a time instead of adding column by column.
Thanks in advance.Can you use sqlplus?
ALTER TABLE table_name ADD (column_name data_type), (Column_name datatype),...
Check the SQL Reference 11-9.
Hope this helps.
Bill Swanson -
How to add multiple images in jinternalframe
Hi all,
how to add multiple images to the jinternalframe, at specified location of the pane and resizing the images with specified height and width.
code examples are highly appreciated.
Thanks & Regards,
AbelThanks, it works perfectly. It's a really smart way of fixing the problem too :)
I also found your toggle button icon classes which is something I've also had a problem with.
Thanks. -
How to insert a button on the column header of a table in webdynpro java
Hi
Can anyone tell me how to insert a button on the column header of a table in webdynpro java?
regards
sunitHi sunit,
Instead of adding button in the column header , in the column
add a fixed top cell.
right click on the column
Insert FixedTopCell
Right click on the fixedTopCell
insert Editor.
select button.
then button will be only in the top most row.
Hope it will satisfy ur requirement
Regards
Smitha -
How to add linked button in grid?
Hi,
Does anyone know how to add linked button in a grid? I can't find it but i saw someone ask similar question but seems none of them works.
Thanks a lot!
P.S. For some reason, i can't use matrix because the data is from a SQL query.
LanHi,
as far as I know it is not possible, since this adjustment is made for the whole column. I have created a grid and I open the shown document by double clicking the row header. In the grid I can see if it is sales or purchase and so I use a workaround by opening the specific system form (e.g. sales invoice) in find mode and search the document by document number (also shown in the grid).
Sample:
oSBOapp.ActivateMenuItem("2053"); //sales invoice
oForm = oSBOapp.Forms.ActiveForm;
oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE;
oEdit = (SAPbouiCOM.EditText)oForm.Items.Item("8").Specific;
oEdit.Value = Convert.ToString(dNum);
oForm.Items.Item("1").Click(SAPbouiCOM.BoCellClickType.ct_Regular);
By the click event, you get the specific row number. Hope it helps...
Regards
Sebastian -
How to add multiple users to a role in ECC 6.0
How to add multiple users (say 1000) to a role in ECC 6.0?
Hi
You can actually add multiple users to a role using transaction SU01. From SU01, use the menu Environment->Mass Changes.
Here you can manually add the users, select them by address or authorisation data. Once you have your user list, you can then add or remove roles and/or profiles.
Secondly , You can use SU10 to do mass changes to multiple users including role assignments per logical systems
Also check the following link:
http://www.sap-img.com/bc021.htm
I hope this should do it
regards
Chen -
How to add multiple table when creating add on using b1de
Hi all,
Plz help me
How to add multiple table when creating add on using b1de.
ThanksHi dns_sap,
Can you explain a little better what you are trying to accomplish? Is it to create UserTables and UserFields in the database, when the addon runs the first time?
If so, you can use the following code
Add User Table
Try
Dim lRetCode As Long
Dim oUDT As SAPbobsCOM.UserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
oUDT.TableName = TableName
oUDT.TableDescription = TableDescription
oUDT.TableType = TableType
lRetCode = oUDT.Add
'// Check for error when adding the Table: if lRetCode = 0 the table was created; if lRetCode = -2035 the table already exisits
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & lRetCode.ToString & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDT)
oUDT = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Add User Field
Try
Dim lRetCode As Long
Dim oUDF As SAPbobsCOM.UserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
oUDF.TableName = TableName
oUDF.Name = FieldName
oUDF.Description = FieldDescription
oUDF.Type = FieldType
lRetCode = oUDF.Add
'// Check for error when adding the field: if lRetCode = 0 the field was created; if lRetCode = -2035, the field already exists
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & oCompany.GetLastErrorCode & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDF)
oUDF = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Regards,
Vítor Vieira -
How to add multiple namespaces in XSD ?
Can anyone tell me how to add multiple namespaces inside an XSD. Or how to import XSD into another XSD ??
Thanks<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://xml.ibridge.nl/nl/rsg/domein/3/company" xmlns:alg="http://mynamespace/generic" targetNamespace="http://xml.ibridge.nl/nl/rsg/domein/3/company" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1">
<xs:import namespace="http://mynamespace/generic" schemaLocation="algemeen.xsd"/>
you define xmlns:alg with a namespace
and after that use the namespace itself to import a xsd for it -
How to add multiple audio transitions
I know how to add multiple video transitions to a whole series of clips, but I want to add a cross fade to every audio clip in the sequence....how can I do this if at all, or is it not possible? Thanks
I'm suspecting that you don't have the destination tabs set correctly when you drag the audio clips to the canvas overlays.
Destination & Source tabs are the tabs located at the left side of the timeline. When you want to add audio cross fades to your audio clips, do the following:
1. Set the played at the beginning of the sequence.
2. Click the video source tab to disconnect it from the video track.
3. Verify that the audio source tabs are connected to the audio tracks that you want the audio edited to.
4. Select your audio clips.
5. Drag the selected audio clips to the Overwrite with Transition overlay in the canvas. -
How to add multiple test conditions in 'test' attribute expression of xsl:if tag
Hi all,
How to add multiple test conditions in 'test' attribute expression of <xsl:if> tag ?
I have 2 parameters and I want To skip the massage if this 2 conditions happened I tried to write it :
<xsl:when test="($TransferToCompany = 0 and $ObjectInclide=1 )">
<b1im_skip xmlns="" info=" Obect Will Not Transfer To company">
</b1im_skip>
</xsl:when>
But I get an error while I am trying to transfer The object (Account) true B1if
I am working with SBO 9 PL 13
thank you
shacharHi saado
Check this link:
http://stackoverflow.com/questions/318875/can-you-put-two-conditions-in-an-xslt-test-attribute
Kind regards,
Radek -
How to add multiple child dialog in a singel page of dialog in ms crm2013
Hi All,
How to add multiple child dialogs in a page in dialog in online MS CRM 2013. I am able to add dialogs one at the end of the page. I am not able to add single / multiple dialogs in between the page.
As per my requirement there is multiple conditions , based on the outcome of condition respective child dialogs need to be linked in a page. Any solution ?
Thanks
Shankar.BHi,
As far as I know this is not possible with OOTB Dialoge in the current version. However there are 3rd party tools like TK Dialogs which provide this feature. Here is the link for the tool and few comparison as to when
to use OOTB v/s TK Dialog.
http://www.teamknowledge.co.uk/microsoft-crm.php
http://garethtuckercrm.com/2012/07/11/tk-dialogs-vs-microsoft-crm-dialogs/
Hope this helps.
Minal Dahiya
blog : http://minaldahiya.blogspot.com.au/
If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful" -
How to add (multiple) cursors programmatically in an XY graph?
how to add (multiple) cursors programmatically in an XY graph?
I am building an XY graph. then I would like to add cursors at certain locations (positioned on x axis) I determine through a program.
How can I add cursors programatically?
Thank you.Initialize a cluster array (CrsrList type) with as many cursors as you think you would ever need. Setup your cursors dynamically, then delete the unused cursors (array elements) and then update your CursorList property.
Message Edited by vt92 on 03-20-2009 04:04 PM
"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Attachments:
cursors.PNG 5 KB -
How to Add multiple entry to the group policy security filtering
How to Add multiple entry to the group policy security filtering
Is there any way we can add multiple entry to the Domain group policy Security filtering tab.Currently its not allowing to add more then one entry at a time.
Getting Error like "only one name can be entered,and the name cannot contain a semicolon.Enter a valid name"Hi
Are you trying to add more users or groups through Group Policy Management Security Filtering tab?
Try right clicking on the policy and then edit
Then in Editor Right click on the name of the policy and Properties
Security tab and add user or group from this tab. Just make sure if you are adding user or groups "Select this object type" has
the correct option also "From this Location" is set to your entire directory not the local server.
Update us with the above.
Thanks
Maybe you are looking for
-
XMII installation on Windows 2003 Server ( 64- Bit)
Hello, Can we install xMII 11.5 SR01 on Win 2003 server ( 64 -Bit ) ??? When i am trying to download xMII software from SAP market place , under xMII downloads -> i can see only win32 link. Thanks Sharat
-
[SOLVED] Special Sound Situation
*EDIT* I compared loaded modules with Arch to those of LM13, which has excellent autodetection. After adding snd_seq, snd_seq_midi, snd_rawmidi, snd_seq_midi_event, and snd_seq_device to rc.conf and restarting, I now have audio! Yay! Thank you for yo
-
LVOOP Parent private data returned when child instance created from constant
I have created one Parent class, and one Child class. For each of these classes, I have created a member VI that is a constructor, whose purpose will be to initialize some constants for each class, and return the class instance. I also have a membe
-
Why can't I edit an event sent thru Exchange meeting invites from others?
Is there any way to edit an Event in iOS 6 when it is sent from others as an Invitation? I don't see the Edit button in the upper right of the screen for invitations sent by others on our Exchange network (Exchange 2003 & 2010 mixed environment). I d
-
Can we implement SAP with SD, MM, PP WITHOUT FI?
Hi All, Can we implement SAP MM, SD & PP without SAP FI? If so, how? Please help me Thanks Edited by: sk mukka on Feb 9, 2011 1:54 PM Edited by: sk mukka on Feb 9, 2011 2:19 PM