Playlist: Insert button in Markers Panel is dimmed - no drag possibility of markers range
I'm trying to make a playlist for the first time, waweform mode. When highlighting markers in the panel I am not allowed to drag the selection to the playlist panel and the button for insertion in the Markers Panel is dimmed. What is wrong? thank you
The markers have to mark a Range ie. have a Start and an End time, before they can be dragged or inserted into the playlist. If you only have single Markers they can be merged into Ranges by selecting the In and Out marker and clicking on the Merge button. Otherwise when marking your Ranges select a range in the audio waveform before clicking the F8 or M button.
Similar Messages
-
How can I copy a button to a panel?
I am working on this project where I have 3 buttons that need to be dragged to a panel. I have created a new TransferHanndler that can support dropping to a panel. Now I have to figure out to actually copy an image of that button to the panel wherever the mouse position is, and be able to move it around in that panel and change its position.
Here is what I have so far:
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.TransferHandler;
* DNDApplet.java
* Created on June 10, 2008, 4:11 PM
* @author Evie
public class DNDApplet extends javax.swing.JApplet {
/** Initializes the applet DNDApplet */
public void init() {
try {
java.awt.EventQueue.invokeAndWait(new Runnable() {
public void run() {
initComponents();
initHandlers();
} catch (Exception ex) {
ex.printStackTrace();
public void initHandlers(){
MouseListener listener = new DragMouseAdapter();
jButton1.addMouseListener(listener);
jButton2.addMouseListener(listener);
jButton3.addMouseListener(listener);
JButton buttonClone = new JButton();
jButton1.setTransferHandler(new ButtonTransferable("hello"));
jButton2.setTransferHandler(new ButtonTransferable("hello2"));
jButton3.setTransferHandler(new ButtonTransferable("hello3"));
jPanel1.addMouseListener(listener);
jPanel1.setTransferHandler(new ButtonTransferable("goodbye"));
//jEditorPane1.setDragEnabled(true);
//jEditorPane1.setTransferHandler(new TransferHandler("text"));
//jButton2.setTransferHandler(new TransferHandler("text"));
//label2.setTransferHandler(new TransferHandler("icon"));
/** This method is called from within the init() method to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jPanel1 = new javax.swing.JPanel();
jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/cube.gif"))); // NOI18N
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sphere.gif"))); // NOI18N
jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/triangle.gif"))); // NOI18N
jPanel1.setBackground(new java.awt.Color(204, 204, 255));
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 279, Short.MAX_VALUE)
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 199, Short.MAX_VALUE)
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jButton3)))
.addContainerGap(111, Short.MAX_VALUE))
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton3)
.addComponent(jButton2)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
}// </editor-fold>
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JPanel jPanel1;
// End of variables declaration
class DragMouseAdapter extends MouseAdapter {
public void mousePressed(MouseEvent e) {
JComponent c = (JComponent) e.getSource();
TransferHandler handler = c.getTransferHandler();
handler.exportAsDrag(c, e, TransferHandler.COPY);
And this is my transfer handler
* To change this template, choose Tools | Templates
* and open the template in the editor.
* @author Evie
import java.awt.Component;
import java.awt.Dimension;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Transferable;
import javax.swing.DefaultButtonModel;
import javax.swing.DefaultListModel;
import javax.swing.GroupLayout;
import javax.swing.JComponent;
import javax.swing.JList;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.TransferHandler;
public class ButtonTransferable extends TransferHandler {
private int[] indices = null;
private int addIndex = -1; //Location where items were added
private int addCount = 0; //Number of items added.
private String item;
private String name;
private JButtonX comp;
//private BufferedImage thumb;
private String thumb;
public ButtonTransferable (String s) {
//this.comp = (JButtonX)c;
JButtonX newButton = new JButtonX();
this.comp = newButton;
ButtonTransferable(String s, String s0) {
throw new UnsupportedOperationException("Not yet implemented");
* We only support importing strings.
public boolean canImport(TransferHandler.TransferSupport info) {
// Check for String flavor
if (!info.isDataFlavorSupported(DataFlavor.stringFlavor)) {
return false;
return true;
* Bundle up the selected items in a single list for export.
* Each line is separated by a newline.
protected Transferable createTransferable(JComponent c) {
//JList list = (JList)c;
JButton button = (JButton) c;
//indices = list.getSelectedIndices();
name = button.getName();
//Object[] values = list.getSelectedValues();
StringBuffer buff = new StringBuffer();
/*for (int i = 0; i < values.length; i++) {
Object val = values;*/
buff.append("The button was transferred");
/*if (i != values.length - 1) {
buff.append("\n");
return new StringSelection(buff.toString());
* We support both copy and move actions.
public int getSourceActions(JComponent c) {
return TransferHandler.COPY_OR_MOVE;
* Perform the actual import. This demo only supports drag and drop.
public boolean importData(TransferHandler.TransferSupport info) {
if (!info.isDrop()) {
return false;
System.out.println("I imported a string");
JPanel panel = (JPanel)info.getComponent();
//DefaultModel listModel = (DefaultListModel)list.getModel();
//JList.DropLocation dl = (JList.DropLocation)info.getDropLocation();
//int index = dl.getIndex();
//boolean insert = dl.isInsert();
// Get the string that is being dropped.
Transferable t = info.getTransferable();
String data;
try {
data = (String)t.getTransferData(DataFlavor.stringFlavor);
catch (Exception e) { return false; }
/***Declaring new JButton variables**/
JButton jb = new javax.swing.JButton();
jb.setIcon(new javax.swing.ImageIcon(getClass().getResource("/cube.gif"))); // NOI18N
/*//clone
JButtonX cloneLab = null;
cloneLab = (JButtonX)comp.clone();
cloneLab.setName("clonebtn");
cloneLab.setToolTipText("clonebtn");
cloneLab.setVisible(true);
panel.add(cloneLab);
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(panel);
panel.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jb)
.addContainerGap(panel.getMousePosition().y, Short.MAX_VALUE))
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jb)
.addContainerGap(panel.getMousePosition().x, Short.MAX_VALUE))
Component compArray[] = panel.getComponents();
int size = compArray.length;
for(int i = 0; i < size; i++)
System.out.println("element "+i+" is: " +compArray[i].getName());
return true;
* Remove the items moved from the list.
protected void exportDone(JComponent c, Transferable data, int action) {
JButton source = (JButton)c;
DefaultButtonModel listModel = (DefaultButtonModel)source.getModel();
/*if (action == TransferHandler.MOVE) {
for (int i = indices.length - 1; i >= 0; i--) {
//listModel.remove(indices[i]);
indices = null;
addCount = 0;
addIndex = -1;
}Edited by: hannoona on Jun 13, 2008 8:50 AMOk the problem was the layout in buttonTransferable.java
Here is what was changed and it worked.
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(panel);
panel.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
//HERE IS WHAT WAS ADDED
.addGap(panel.getMousePosition().x, panel.getMousePosition().x, panel.getMousePosition().x)
.addComponent(jb)
.addContainerGap(panel.getMousePosition().y, Short.MAX_VALUE))
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
//HERE IS WAT WAS ADDED AS WELL
.addGap(panel.getMousePosition().y, panel.getMousePosition().y, panel.getMousePosition().y)
.addComponent(jb)
.addContainerGap(panel.getMousePosition().x, Short.MAX_VALUE))
jb.setLocation(panel.getMousePosition().x, panel.getMousePosition().y);
jb.setToolTipText("hi. im new.");
System.out.println("mouse x is: "+panel.getMousePosition().x);
System.out.println("mouse y is: "+panel.getMousePosition().y);
System.out.println("jb x is: "+jb.getX());
System.out.println("jb y is: "+jb.getY());
return true; -
Insert button NavigationBar TooManyObjectsException
In a Master-Detail Panel I insert two NavigationBar's (one for the master and one fot the detail view). Each of these views (connected through a view linke) join two or three tables. While trying to insert a record with the Button from the NavigatorBar, I get:
(oracle.jbo.TooManyObjectsException) JBO-25013: Too many objects match the primary key
Why?
And how can I define in which table within a View records can be inserted?
thanks.Dear Fabio,
Whjat do u mean by insert button. The add mode of the form??
Regards,
Kit -
Requerying a report after an insert button is presses on a form
We have created an On-line Registration system using Portal. A student runs a report displaying courses from which they can register from to add to their profile.
We would like to have the report requeryed after the client has clicked on the insert button on the form (that was called from the report).
Otherwise the student stays at the insert screen and need to use the browser back button. Does any one have a suggestion or example which they wouldn't mind sharing to help us overcome this problem.
Thanks PaulPaul,
You may want to search the Oracle9iAS Portal Applications forum for an answer to your question, but to give you a pointer.
In your form, you have a textbox called "Upon Successfull Submission" .. you would call your report here. Most likely using a redirect procedure or just calling it directly.
You will definitely be able to get more information from the other discussuion forum though.
Sue -
I cannot send email in hotmail account and insert buttons dissapear after 4 seconds
I am able to receive emails in hot mail account but cannot send.
This has been the case for the last two days.
Have the same problem in IE.
Noticed insert buttons disappear when I click on new
Same in IEEnded up calling my service provider to figure it out. They couldn't but again gave me all the perameters to enter into an account. I had to cancel the account on my phone and set up a new one. I had to enter the information more than once before the phone would actually save it. Lucky me, it did not lose all the emails I had stored on the phone. No help from Apple!
-
How can I use the button in one panel to control the other panel's appearing and disappearing?
How can I use the button in one panel to control the other panel's
appearing and disappearing? What I want is when I push the button on
one button . another panel appears to display something and when I
push it again, that the second panel disappears.> How can I use the button in one panel to control the other panel's
> appearing and disappearing? What I want is when I push the button on
> one button . another panel appears to display something and when I
> push it again, that the second panel disappears.
>
You want to use a combination of three features, a button on the panel,
code to notice value changes using either polling in a state machine of
some sort or an event structure, and a VI Server property node to set
the Visible property of the VI being opened and closed.
The button exists on the controlling panel. The code to notice value
changes is probably on the controlling panel's diagram, and this diagram
sets the Visible property node of a VI class property node to FALSE or
TRUE to show or
hide the panel. To get the VI reference to wire to the
property node, you probably want to use the Open VI Reference node with
the VI name.
Greg McKaskle -
I have a panel with 4 buttons. The panel is added to the main window using BorderLayout.SOUTH so that the buttons are at the bottom of the window. Now I want to align the buttons on the right side of the panel, like so:
| |
| ----- ----- ----- ----- |
| | b1| | b2| | b3| | b4| |
| ----- ----- ----- ----- |
| |
The obvious thing to do here is use
myPanel.setAlignmentX(Component.RIGHT_ALIGNMENT);
But it doesn't work. Any suggestions are greatly appreciated.
JasonAny idea why the
panel.setAlignmentX(Component.RIGHT_ALIGNMENT)
wouldn't do the trick?Because the panel is using a BorderLayout. Any inherent behavior specified by the panel would be overshadowed by the behavior specified by the BorderLayout layout manager.
By the way you also asked a component alignment question here: http://forum.java.sun.com/thread.jsp?forum=57&thread=352465
If any of the replies answered your question then you should award the duke dollar. -
How to send a predefined email after clicking on an Insert button in a Form?
Hi,
I created my form ( three fields) where I enter a three values.
I want an email be sent every time new values are entered and the insert button clicked.
Do you know a way on how to do it please?
Thanks
Khaled.Hi,
I do not know of a way within Portal to automatically send an email, but the database has a utility (utl_smtp) that will allow you to do so very easily. You can use Portal to insert your data and then put a trigger on your table that fires after the data is inserted that calls a procedure that will send the mail.
Here is an example of a procedure that I have used to send mail (you can get all of the info on utl_smtp in the Oracle docs). I have a Portal form that allows the user to input three values and once they click 'insert' and the data goes into the table, I have a trigger that fires 'after insert' and runs this procedure:
PROCEDURE send_register_mail (sender in varchar2,
email varchar2,
date_of_class date)
IS
mailhost VARCHAR2(30) := 'my.mailserver.com';
mail_conn utl_smtp.connection;
BEGIN
mail_conn := utl_smtp.open_connection(mailhost, 25);
utl_smtp.helo(mail_conn, mailhost);
utl_smtp.mail(mail_conn, email);
utl_smtp.rcpt(mail_conn, '[email protected]');
utl_smtp.open_data(mail_conn);
utl_smtp.write_data(mail_conn, 'Subject: Platform Training registration request'||utl_tcp.crlf||'Content-Type:text/html;'||utl_tcp.crlf||utl_tcp.crlf);
utl_smtp.write_data(mail_conn, sender||' would like to attend the POC training scheduled for '|| date_of_class);
utl_smtp.close_data(mail_conn);
utl_smtp.quit(mail_conn);
EXCEPTION
WHEN OTHERS THEN
-- Handle the error
htp.p('There was an error processing your registration. Please contact the site administrator');
END;
Hope this helps.
-melissa -
How to add a button on a panel's title bar?
Hi,
How can I add a button to a panel's title bar? Buttons that
are simply added to a panel's title bar become invisible.
-AltuOne way is to put your button component oustide your Panel
tag in your MXML. The set the x/y coordinates for the button so it
is on the Panel.
<mx:Panel x="20" y="168" width="250" height="118"
layout="absolute"/>
<mx:Button x="73" y="173" label="Button"/> -
I am using Firefox to fill in forms in our library cataloging system, InMagic Genie. With IE, I can toggle back and forth from insert to overwriting text with the INSERT button, but it has no effect in Firefox.
Firefox doesn't support overwrite and is always in insert mode.
-
I want the phone to be on sense that is my alarm clock but don't need the
lights on the phone and the dim light button will only do that dim the
light.Restoring iOS software
http://support.apple.com/kb/ht1414
Cheers, Tom -
Hi all,
Can any body please tell me that in ALV grid, how can i get the drop down for insert button in the tool bar with options "Add 1", "Add 2" ... inserting 1, 2 or 3 lines??
Thanks in advance,
Kulwant1) define following macro
DEFINE toolbar_funcs.
CLEAR ls_toolbar.
MOVE 0 TO ls_toolbar-butn_TYPE.
MOVE &1 TO ls_toolbar-function.
MOVE SPACE TO ls_toolbar-disabled.
MOVE &2 TO ls_toolbar-icon.
MOVE &3 TO ls_toolbar-quickinfo.
APPEND ls_toolbar TO e_object->mt_toolbar.
END-OF-DEFINITION.
2) in the class definition
EVENTS: user_command.
METHODS:
on_user_command
FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING
e_ucomm
sender,
on_toolbar
FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING
e_object
e_interactive.
3) define the handlers
SET HANDLER z_object->on_user_command for grid1.
SET HANDLER z_object->on_toolbar for grid1.
4) in the implementation part code the functions you've given your buttons
for example
METHOD on_user_command.
break-point 1.
CASE e_ucomm.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'EXCEL'.
CALL METHOD me->download_to_excel.
WHEN 'SAVE'.
WHEN 'PROC'.
CALL METHOD me->process.
WHEN 'REFR'.
CALL METHOD me->refresh.
ENDCASE.
ENDMETHOD. "on_user_command
In the toolbar method --use YOUR buttons and functions
Using the macro in step 1) means you have to write a lot less code. Some people don't like macros but in this case we are using it for pure code generation and not complex processing so it's (IMO) still OK.
METHOD on_toolbar.
customize this section with your own Buttons
When a button is pressed method ON_USER_COMMAND is entered
toolbar_funcs 'EXIT' icon_system_end 'Click2exit'.
toolbar_funcs 'SAVE' icon_system_save 'Savedata'.
toolbar_funcs 'EDIT' icon_toggle_display_change 'Edit data'.
toolbar_funcs 'PROC' icon_businav_process 'Process'.
toolbar_funcs 'EXCEL' icon_xxl 'Excel'.
toolbar_funcs 'REFR' icon_refresh 'Refresh'.
ENDMETHOD. "on_toolbar
Change the toolbar button type to what you want. It's all in the ALV documentation. The code above uses standard rather than drop down buttons but the process is the same.
The permitted values and types can be found by looking at the values for domain TB_BTYPE.
I think you want 2 (Menu type button).
Change this line in the macro
MOVE 0 TO ls_toolbar-butn_TYPE.
For a menu set the type to 2.
Include the menu handler in the class definition
handle_menu_button
FOR EVENT menu_button OF cl_gui_alv_grid
IMPORTING e_object e_ucomm,
SET HANDLER z_object->handle_menu_button FOR grid1.
Add your choices when you click the button
METHOD handle_menu_button.
handle own menubuttons
IF e_ucomm = 'DETAIL_MENU'.
CALL METHOD e_object->add_function
EXPORTING fcode = 'ADD1'
text = text1.
CALL METHOD e_object->add_function
EXPORTING fcode = 'ADD2'
text = text2.
ENDIF.
ENDMETHOD.
The choices (function codes from your menu) are still handled in the ON_USER_COMMAND.
Cheers
Jimbo -
ALV Grid default values for new rows added with Add/Insert buttons
Hi!
Help, please, to find a way how to set default values for new rows added with Add/Insert buttons in
ALV Grid.I have found salution:
ALV Grid u2013 Insert row function
Sometimes we need to assign some default values when we create a new row in a grid using standard ALV Append row button. In our scenario we will see how to assign default values to Airline Code (CARRID), Flight Connection Number (CONNID) and Flight date (FLDATE) when a new row is created. To do that we need to handle DATA_CHANGED event in the program like mentioned below.
Definition of a class:
Code:
CLASS lcl_event_receiver DEFINITION
CLASS LCL_EVENT_RECEIVER DEFINITION.
PUBLIC SECTION.
METHODS:
handle_data_changed
FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING er_data_changed
e_ucomm.
ENDCLASS. "lcl_event_receiver DEFINITION
Implementation of a class:
Code:
CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
METHOD HANDLE_DATA_CHANGED.
DATA: dl_ins_row TYPE lvc_s_moce. " Insert Row
FIELD-SYMBOLS: <fs> TYPE table. " Output table
Loop at the inserted rows table and assign default values
LOOP AT er_data_changed->mt_inserted_rows INTO dl_ins_row.
ASSIGN er_data_changed->mp_mod_rows->* TO <fs>.
loop at <fs> into ls_outtab.
ls_outtab-carrid = 'LH'.
ls_outtab-connid = '400'.
ls_outtab-fldate = sy-datum.
MODIFY <fs> FROM ls_outtab INDEX sy-tabix.
endloop.
endloop.
ENDMETHOD. "handle_data_changed
ENDCLASS. "lcl_event_receiver IMPLEMENTATION
Register the events to trigger DATA_CHANGED event when a new row is created.
Code:
CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
EXPORTING
I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
CALL METHOD OBJ_GRID->REGISTER_EDIT_EVENT
EXPORTING
I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_MODIFIED. -
How to Commit before Insert Row when Press Create Insert Button ?
Hi all;
I'm Using JDev 11.1.1.2.0
How to Commit before Insert Row when Press Create Insert Button in ADF11g?
<af:commandButton actionListener="#{bindings.CreateInsert.execute}"
text="CreateInsert"
disabled="#{!bindings.CreateInsert.enabled}"
id="cb8" />
best regards;You need to do a custom method eather in managed bean or in Application module to do that.
in managed bean it would be something like:
public void CommitAndInsert(ActionEvent actionEvent) {
OperationBinding opCommit = ADFUtils.findOperation("Commit");
opCommit.execute();
OperationBinding opCreateInsert = ADFUtils.findOperation("CreateInsert");
opCreateInsert.execute();
In page bindings Commit and CreateInsert must exist
then the button actionListener will be
<af:commandButton actionListener="#{backing.CommitAndInsert}" -
Usage of insert button in Std ALV toobar (OOPs)
Hi Experts,
I have developed an ALV(oops) with cl_gui_alv_grid. I have the std toolbar and do NOT want to disable it.
what i need is when i click on insert button in std toolbar, i need to make a field editable.
The func code for insert is &LOCAL&INSERT_ROW ( see in e_object->mt_toolbar).
I am unable to trap the func code. i tried to make use of this func code iand use it in the handle_toolbar method (e_ucomm). Its not going into debugging mode even when i set break point.
i want to write code as:
when '&LOCAL&INSERT_ROW'.
further validation.
Can someone help me how to get the sy-ucomm and do my validation?
Thanks
DanHi
You can achieve this by defining Style Table for Cells.
For eg:
Begin of <str>
include structure mara.
celltab TYPE lvc_t_styl,
end of <str>
data: lt_tab type table of <str>,
wa like line of lt_tab,
lt_celltab TYPE lvc_t_styl,
ls_celltab TYPE lvc_s_styl.
LOOP AT lt_tab INTO wa.
IF matnr IS NOT INITIAL.
ls_celltab-fieldname = 'MATNR'.
ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
INSERT ls_celltab INTO TABLE lt_celltab.
endif.
INSERT LINES OF lt_celltab INTO TABLE ls_profile_tabval-celltab.
endloop.
Thanks
Nisha
Maybe you are looking for
-
BUG: Sorting drop-down lists from the field tab when using "specify item values"
Hi all, I've finished creating my form now, but I came across this whilst writing up my documentation for maintenance tasks. This occurs when adding new values to a drop-down list that has the "Specify item values" checkbox in the binding tab checked
-
Solaris 8 on IBM Thinkpad T20 - Display Problem!
Hi Forum, I have Solaris 8 07/01 installed on this IBM Tninkpad T20. The problem has been the display. It has S3 Savage IX 8. I need help to resolve this issue. Here's what I have done. After installation of OS, latest patches were applied. Installed
-
Customer ageing report using FDI4, FDK1
Hello, I have developed customer ageing in report painter. Created a form using FDI4 & report using FDI1. In the selection screen i have company code Open item at key date Currency: I need some 2 more fields like GL account ( Customer recon account)
-
Connecting computer and home theatre to insignia TV
I just bought a denon home theatre surround sound. I have my insignia TV connected to my XBOX, blu ray, and computer. Is there some way I could connect all these things to my TV and have them play through my surround sound? Basically can I use my
-
IAS 6 Conversion from NAS 4.0 - Tools
Hi gang, Has anyone used the IAS-supplied conversion utilities to convert JSPs from 0.92 to 1.1? We have a number of included/imported JSP for things like headers and footers, and the conversion tool doesn't seem to like that. This should work; this