******** Need to add any button activated ACTION EVENT***********
Can anyone help me add any type of ACTION EVENT /ACTION LISTENER TO THIS CODE
PLEASE REVIEW AND COMPILE IF NECESSARY. Ensure that it compiles without errors. Currently it compiles without errors. It opens up as a GUI window that accepts a password. If anyone could just add a button to it that will do just about anything, time check, date check whatever it would be great!!!!! THIS WAS COMPILED WITH THE JGRASP COMPILER JAVA ACCEPTED
Thank you all,
********************** Bruce's Code*****************************
import java.awt.*;
public class TimeEntryForm extends Panel
private Panel tallPanel = new Panel();
private Panel tallPanel2= new Panel();
public TimeEntryForm()
tallPanel.setLayout(new GridLayout(3, 1));
tallPanel.add(new Label("Hrs Total"));
tallPanel.add(new Label("Any"));
tallPanel.add(new Label("One"));
tallPanel2.setLayout(new GridLayout(3,1));
tallPanel2.add(new Label("Personal Leave "));
tallPanel2.add(new Label("Hrs Total "));
tallPanel2.add(new Label("Pay Calc "));
setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.gridx = 0; c.gridy = 2;
add(new Label("Social Security # "), c);
c.gridx = 1; c.gridy = 0;
add(new Label("TIME ENTRY FORM"), c);
c.gridx = 1;c.gridy = 1;
add(new Label("Enter Date Here "), c);
c.gridx = 3;c.gridy = 2;
add(new Label("Employee Name "), c);
c.gridx = 3;c.gridy = 4;
add(new Label("Sick Time "), c);
c.gridx = 0; c.gridy = 3;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 4;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 5;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 6;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 7;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 8;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 9;
add(tallPanel2, c);
c.gridx = 1;c.gridy = 11; //note, sets y
add(new Label("Hrs Worked Today "), c);
c.gridx = 1;c.gridy = 12;
add(new Label("Pay Earned Today "), c);
c.gridx = 2;
add(tallPanel2, c);
public static void main(String args[])
Frame f = new Frame("Time Entry Form");
f.add(new TimeEntryForm());
f.pack();
f.setVisible(true);
}
Hi java-luv,
I am not sure if I understand the problem. But I was able to add a JButton to your code (using the JBuilder designer). The button just exists the application. Please check the listing below. Hope this helps.
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class TimeEntryForm extends Panel
private Panel tallPanel = new Panel();
private Panel tallPanel2 = new Panel();
private JButton jButton1 = new JButton();
public TimeEntryForm() {
tallPanel.setLayout(new GridLayout(3, 1));
tallPanel.add(new Label("Hrs Total"));
tallPanel.add(new Label("Any"));
tallPanel.add(new Label("One"));
tallPanel2.setLayout(new GridLayout(3, 1));
tallPanel2.add(new Label("Personal Leave "));
tallPanel2.add(new Label("Hrs Total "));
tallPanel2.add(new Label("Pay Calc "));
setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.gridx = 0;
c.gridy = 2;
add(new Label("Social Security # "), c);
c.gridx = 1;
c.gridy = 0;
add(new Label("TIME ENTRY FORM"), c);
c.gridx = 1;
c.gridy = 1;
add(new Label("Enter Date Here "), c);
c.gridx = 3;
c.gridy = 2;
add(new Label("Employee Name "), c);
c.gridx = 3;
c.gridy = 4;
add(new Label("Sick Time "), c);
c.gridx = 0;
c.gridy = 3;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 4;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 5;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 6;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 7;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 8;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 9;
add(tallPanel2, c);
c.gridx = 1;
c.gridy = 11; //note, sets y
add(new Label("Hrs Worked Today "), c);
c.gridx = 1;
c.gridy = 12;
add(new Label("Pay Earned Today "), c);
c.gridx = 2;
add(tallPanel2, c);
jbInit();
public static void main(String args[]) {
Frame f = new Frame("Time Entry Form");
f.add(new TimeEntryForm());
f.pack();
f.setVisible(true);
private void jbInit() {
jButton1.setText("Exit");
jButton1.addActionListener(new TimeEntryForm_jButton1_actionAdapter(this));
this.add(jButton1, null);
void jButton1_actionPerformed(ActionEvent e) {
System.exit(0);
class TimeEntryForm_jButton1_actionAdapter implements java.awt.event.ActionListener {
TimeEntryForm adaptee;
TimeEntryForm_jButton1_actionAdapter(TimeEntryForm adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
Similar Messages
-
Need to Add a button in ALV Tool Bar
Hi,
I have a requirement where in i need to add a button to a standard ALV report. Its using the class CL_GUI_ALV_GRID. There is a Badi for the report. The Report is co05n and the Badi is WORKORDER_INFOSYSTEM . I am getting the handle of
CL_GUI_ALV_GRID object reference before screen display. Any guidance on how to add new button now to that toolbar?
Any help will be rewarded.
Thank you.
regards,
Deepthi lakshmi.A.Dear Deepthi Lakshmi.A.,
Refer the standard program BCALV_GRID_05 Add a Self-Defined Button to the Toolbar.
PROGRAM BCALV_GRID_05.
Purpose:
~~~~~~~~
Demonstrate the creation of an own toolbar button.
To check program behavior
~~~~~~~~~~~~~~~~~~~~~~~~~
The report shows a list of flights of one airline.
Select one or more lines and press the 'Detail'-Button to popup
a dialog window with related bookings.
Essential steps (Search for '§')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.Apply steps for event handling for events TOOLBAR and
USER_COMMAND (see example for print events)
2.In event handler method for event TOOLBAR: Append own functions
by using event parameter E_OBJECT.
3.In event handler method for event USER_COMMAND: Query your
function codes defined in step 2 and react accordingly.
4.Call method 'set_toolbar_interactive' to raise event TOOLBAR.
INCLUDE .
Predefine a local class for event handling to allow the
declaration of a reference variable before the class is defined.
CLASS lcl_event_receiver DEFINITION DEFERRED.
DATA: ok_code LIKE sy-ucomm,
gt_sflight TYPE TABLE OF sflight,
gt_sbook TYPE TABLE OF sbook,
g_repid LIKE sy-repid,
g_max type i value 100,
gs_layout TYPE lvc_s_layo,
cont_on_main TYPE scrfname VALUE 'BCALVC_TOOLBAR_D100_C1',
cont_on_dialog TYPE scrfname VALUE 'BCALVC_TOOLBAR_D101_C1',
grid1 TYPE REF TO cl_gui_alv_grid,
grid2 TYPE REF TO cl_gui_alv_grid,
custom_container1 TYPE REF TO cl_gui_custom_container,
custom_container2 TYPE REF TO cl_gui_custom_container,
event_receiver TYPE REF TO lcl_event_receiver.
Set initial dynpro
SET SCREEN 100.
LOCAL CLASSES: Definition
*===============================================================
class lcl_event_receiver: local class to
define and handle own functions.
Definition:
~~~~~~~~~~~
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
handle_toolbar
FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive,
handle_user_command
FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm.
PRIVATE SECTION.
ENDCLASS.
lcl_event_receiver (Definition)
*===============================================================
LOCAL CLASSES: Implementation
*===============================================================
class lcl_event_receiver (Implementation)
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_toolbar.
§ 2.In event handler method for event TOOLBAR: Append own functions
by using event parameter E_OBJECT.
DATA: ls_toolbar TYPE stb_button.
E_OBJECT of event TOOLBAR is of type REF TO CL_ALV_EVENT_TOOLBAR_SET.
This class has got one attribute, namly MT_TOOLBAR, which
is a table of type TTB_BUTTON. One line of this table is
defined by the Structure STB_BUTTON (see data deklaration above).
A remark to the flag E_INTERACTIVE:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'e_interactive' is set, if this event is raised due to
the call of 'set_toolbar_interactive' by the user.
You can distinguish this way if the event was raised
by yourself or by ALV
(e.g. in method 'refresh_table_display').
An application of this feature is still unknown...
append a separator to normal toolbar
CLEAR ls_toolbar.
MOVE 3 TO ls_toolbar-butn_type.
APPEND ls_toolbar TO e_object->mt_toolbar.
append an icon to show booking table
CLEAR ls_toolbar.
MOVE 'BOOKINGS' TO ls_toolbar-function.
MOVE icon_employee TO ls_toolbar-icon.
MOVE 'Show Bookings'(111) TO ls_toolbar-quickinfo.
MOVE 'Detail'(112) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
ENDMETHOD.
METHOD handle_user_command.
§ 3.In event handler method for event USER_COMMAND: Query your
function codes defined in step 2 and react accordingly.
DATA: lt_rows TYPE lvc_t_row.
CASE e_ucomm.
WHEN 'BOOKINGS'.
CALL METHOD grid1->get_selected_rows
IMPORTING et_index_rows = lt_rows.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in Flush'(500).
else.
perform show_booking_table tables lt_rows.
ENDIF.
ENDCASE.
ENDMETHOD. "handle_user_command
ENDCLASS.
lcl_event_receiver (Implementation)
*===================================================================
FORM EXIT_PROGRAM *
FORM exit_program.
The instance grid2 is freed not until the program exits from the
main screen.
(It is created only once during the first selection of SBOOK,
no matter how many times the second window is called).
CALL METHOD custom_container1->free.
IF not custom_container2 is initial.
CALL METHOD custom_container2->free.
ENDIF.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in Flush'(500).
ENDIF.
LEAVE PROGRAM.
ENDFORM.
*& Module PBO_100 OUTPUT
text
MODULE pbo_100 OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
g_repid = sy-repid.
IF custom_container1 is initial.
select data from table SFLIGHT
PERFORM select_table_sflight CHANGING gt_sflight.
create a custom container control for our ALV Control
CREATE OBJECT custom_container1
EXPORTING
container_name = cont_on_main
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'The control could not be created'(510).
ENDIF.
create an instance of alv control
CREATE OBJECT grid1
EXPORTING i_parent = custom_container1.
Set a titlebar for the grid control
gs_layout-grid_title = 'Flights'(100).
allow to select multiple lines
gs_layout-sel_mode = 'A'.
CALL METHOD grid1->set_table_for_first_display
EXPORTING i_structure_name = 'SFLIGHT'
is_layout = gs_layout
CHANGING it_outtab = gt_sflight.
->Create Object to receive events and link them to handler methods.
When the ALV Control raises the event for the specified instance
the corresponding method is automatically called.
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->handle_user_command FOR grid1.
SET HANDLER event_receiver->handle_toolbar FOR grid1.
§ 4.Call method 'set_toolbar_interactive' to raise event TOOLBAR.
CALL METHOD grid1->set_toolbar_interactive.
ENDIF. "IF grid1 IS INITIAL
CALL METHOD cl_gui_control=>set_focus EXPORTING control = grid1.
ENDMODULE. " PBO_100 OUTPUT
*& Module PAI_100 INPUT
text
MODULE pai_100 INPUT.
CASE ok_code.
WHEN 'EXIT'.
PERFORM exit_program.
ENDCASE.
CLEAR ok_code.
ENDMODULE. " PAI_100 INPUT
*& Module PBO_0101 OUTPUT
text
MODULE pbo_0101 OUTPUT.
IF custom_container2 is initial.
(the data from sbook is already selected)
create a custom container control for our ALV Control
CREATE OBJECT custom_container2
EXPORTING
container_name = cont_on_dialog
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'The control could not be created'(510).
ENDIF.
create an instance of alv control
CREATE OBJECT grid2
EXPORTING i_parent = custom_container2.
change title
gs_layout-grid_title = 'Bookings'(101).
gs_layout-sel_mode = ' '.
CALL METHOD grid2->set_table_for_first_display
EXPORTING i_structure_name = 'SBOOK'
is_layout = gs_layout
CHANGING it_outtab = gt_sbook.
ELSE.
CALL METHOD grid2->refresh_table_display.
ENDIF. "IF custom_container2 IS INITIAL.
CALL METHOD cl_gui_control=>set_focus EXPORTING control = grid2.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in Flush'(500).
ENDIF.
ENDMODULE. " PBO_0101 OUTPUT
*& Form SELECT_TABLE_SFLIGHT
text
<--P_GT_SFLIGHT text
FORM select_table_sflight CHANGING p_gt_sflight LIKE gt_sflight[].
SELECT * FROM sflight INTO TABLE p_gt_sflight up to g_max rows.
ENDFORM. " SELECT_TABLE_SFLIGHT
*& Form SELECT_TABLE_SBOOK
text
-->P_LS_SFLIGHT text
<--P_GT_SBOOK text
FORM select_table_sbook USING p_ls_sflight LIKE LINE OF gt_sflight
CHANGING p_gt_sbook LIKE gt_sbook[].
DATA: lt_sbook LIKE gt_sbook[].
Select data from sbook according to a line of sflight
and append that data to table p_gt_sbook
SELECT * FROM sbook INTO TABLE lt_sbook
WHERE carrid = p_ls_sflight-carrid
AND connid = p_ls_sflight-connid
AND fldate = p_ls_sflight-fldate.
APPEND LINES OF lt_sbook TO p_gt_sbook.
ENDFORM. " SELECT_TABLE_SBOOK
*& Module PAI_0101 INPUT
text
MODULE pai_0101 INPUT.
CASE ok_code.
WHEN 'RETURN'.
LEAVE TO SCREEN 0.
ENDCASE.
CLEAR ok_code.
ENDMODULE. " PAI_0101 INPUT
*& Form show_booking_table
text
-->P_ET_INDEX_ROWS text
FORM show_booking_table TABLES p_et_index_rows
STRUCTURE lvc_s_row.
DATA: ls_selected_line LIKE lvc_s_row,
lf_row_index TYPE lvc_index,
ls_sflight LIKE LINE OF gt_sflight.
CLEAR gt_sbook[].
LOOP AT p_et_index_rows INTO ls_selected_line.
lf_row_index = ls_selected_line-index.
read selected row from internal table gt_sflight
READ TABLE gt_sflight INDEX lf_row_index INTO ls_sflight.
select corresponding lines of table sbook
and append new lines to global table
PERFORM select_table_sbook USING ls_sflight
CHANGING gt_sbook.
ENDLOOP.
call dialog screen and display new alv control
CALL SCREEN 101 STARTING AT 10 5.
ENDFORM. " show_booking_table
Regards,
Naveen. -
I need to add push button to last extended price unit in sale order item B
i need to add push button to field last extended price unit in sale order item additional data B
i need to add push button to field last extended price unit in sale order item additional data B
-
How to add to viewPlatformBehavior an Action Event - a button press
And the main problem I have is to by pressing buttons to change the Viewing Platform?
I made same transformation to object, which reacts to key pressin:
public class LewoPrawo extends Behavior{
private TransformGroup targetLP;
private Transform3D wysuwanie = new Transform3D();
private float krok2 = (float) 0.0;
// create LewoPrawo
LewoPrawo(TransformGroup targetLP){
this.targetLP = targetLP;
public void initialize(){
this. wakeupOn(new WakeupOnAWTEvent(AWTEvent.KEY_EVENT_MASK));
public void processStimulus(Enumeration enumeration){
this.wakeupOn(new WakeupOnAWTEvent(AWTEvent.KEY_EVENT_MASK));
KeyEvent event = (KeyEvent) ((WakeupOnAWTEvent) enumeration.nextElement()).getAWTEvent()[0];
if (event.getKeyCode() == KeyEvent.VK_Q) {
krok2 += 0.01;
if (event.getKeyCode() == KeyEvent.VK_W) {
krok2 -= 0.01;
wysuwanie.set(new Vector3f(krok2, 0.0f, 0.0f));
wysuwanie.mul(przewrocenie);
targetLP.setTransform(wysuwanie);
}And this is the one that I made up to move the viewing platform, but it doesn't work!!!
public class Perspektywa extends ViewPlatformBehavior{
private TransformGroup targetVP;
private Transform3D obrot_obserwatora = new Transform3D();
private double kat=0.0;
//create Perspektywa
Perspektywa(){
public void initialize(){
this.wakeupOn(new WakeupOnAWTEvent(AWTEvent.ACTION_EVENT_MASK));
public void processStimulus(Enumeration enumeration){
this.wakeupOn(new WakeupOnAWTEvent(AWTEvent.ACTION_EVENT_MASK));
ActionEvent event = (ActionEvent) ((WakeupOnAWTEvent) enumeration.nextElement()).getAWTEvent()[0];
if (event.getSource()== przyciski[0]) {
kat += 0.1;
if (event.getSource() == przyciski[3]) {
kat -= 0.1;
obrot_obserwatora.rotY(kat);
TransformGroup targetVP =
simpleU.getViewingPlatform().getViewPlatformTransform();
targetVP.getTransform( obrot_obserwatora);
}And what's worse, action events doesnt even work when i replace key events with them, but i don;t know why ;(The section from the Swing tutorial on "General Rules for Using Text Components" has a sample program that does this:
http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html
Or, you can create a new Action using DefaultEditorKit.CopyAction -
Need to add custom button (xml) in VA05
I need to add a custom button (xml) to report output layout of VA05. Even the corrsponding functionality needs to be written for this button. Without changing the SAP standard code using Access keys, is there any other functionality in which we can add the button and write the code.
Please send me detail steps in this regard.Hi Ramesh,
As i knoew in case of va05 there is no badi or exit available to achieve this functionality.There is a provision to add some fields in report out put.I hope this is possible through a custom one.
Regards,
Madhu -
Need To Add One Button in The Output
Hi Freinds,
can any one tell how to add one button in the application
tool bar, that is at the final ALV out put screenHi,
you just create a pf status and add buttons to it.
then you include that pfstatus in your function module in the
export parameter 'i_callback_pf_status_set'
i found this sample code somewhere you just see how this is done:
create one pfstatus. for example znewstatus is the created
pfstatus. double click on the pfstatus that was created then add the buttons that you require in the appilication tool bar.
pass the form names to the I_CALLBACK_PF_STATUS_SET and I_CALLBACK_USER_COMMAND in grid as shown below.
example for reference:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
FORM SET_PF_STATUS USING RT_EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'ZNEWSTATUS'.
ENDFORM.
FORM USER_COMMAND USING R_UCOM TYPE SY-UCOMM R_SELFIELD TYPE SLIS_SELFIELD.
case R_UCOM
when 'PRINT'. (print is the function code name given to the icon created)
leave to list-processing.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = pass the form name
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FMNAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION FMNAME.
reward if useful.
Nishant Rana -
I need to add a button in std transaction
I need to add abutton in standard transaction IE03 (Equipment Display)
I need to write a code to open a new screen.
How to do this .
Points will be awarded.
Is there any user/menu.customer exit.
If it had then how to proceed.
Regards,
Jayasimha JangamHi Jayasimha,
I found these exits and badis, pls have a look at these....
Enhancement/ Business Add-in
Description
Enhancement
IEQM0001
Add. checks for equip. installation at functional locations
IEQM0002
Additional checks for definition of equipment hierarchies
IEQM0003
Additional checks before equipment update
IEQM0004
Object is allowed for contract partner (Order->MaintCont.)
IEQM0005
Object allowed for SD contract (MaintContract->MaintCont.)
IEQM0006
Object allowed for SD contract (Maintain maintenance cont.)
IEQM0007
Check/change manufacturer field in equipment master
Business Add-in
EQUI_SERLV_CHECK
External Inspections for MARA_SERLV
EQUI_SCR_CC
Implementable Subscreen for Equipment for CCM
EQUI_SCR_06
Implementable Subscreen for Equipment No. 06
EQUI_SCR_05
Implementable Subscreen for Equipment No. 05
EQUI_SCR_04
Implementable Subscreen for Equipment No. 04
EQUI_SCR_03
Implementable Subscreen for Equipment No.
EQUI_SCR_02
Implementable Subscreen for Equipment No. 02
EQUI_SCR_01
Implementable Subscreen for Equipment No. 01
Thanks & regards -
ESS + EhP5: Need to add an Button to an FPM_FORM_UIBB based ESS Szenario
Hello Community,
I have an requirement to add an 'Upload' Button to an EhP5 ESS Szenario (Address Change). Hence (almost) all ESS based on the FPM framework, difficulties to modify/enhance in a "free way". In my case the ESS was created by an Component Configuration (HRESS_CC_PER_DTL_ADDRESS_AT) of WD Component FPM_FORM_UIBB. There is no problem to add fields of the underlaying infotype(s) but anything else will not be accepted.
So are there any suggestion how I can insert an 'Upload' button into an ESS Scenarion that is based on FPM_FORM_UIBB?
Thank you in advance, Christian1. Customizing the Fields in Overview Screens
http://help.sap.com/erp2005_ehp_05/helpdata/en/77/804c18e1844944b7f8baf5
3159be78/content.htm
2. Configuration of Personal Profile Services
http://help.sap.com/erp2005_ehp_05/helpdata/en/3a/fe6eac579d4a9ead651d77
9a2dbd23/content.htm
3. Personal Profile application Documentation
http://help.sap.com/erp2005_ehp_05/helpdata/en/14/60cd56b1514ae5aa811d2a
a4a59de3/content.htm
In EhP5 ESS Personal Profile application, in order to change the
Address overview page fields, you need to adapt the Address component
configuration HRESS_CC_PER_OVR_ADDRESS_XX. -
Need to add any Pointer/Bookmark for the Hyphenated words
Dear Experts,
Im very new to Scripting.
I'm creating a Validation tool which shows hyphenated words in a ListBox & i done it well in VB6.
Now all my need is i have to jump to the location in the document while clicking the ListBox Item.
Is there any options to do this?
Looking forward your comments.
Thanks in advance.
SaRaVaNaN.NHi Try this code...
I created this for windows XP, Indesign CS4.
#targetengine "session";
var myDoc = app.activeDocument;
var stories = myDoc.stories.everyItem ().getElements ();
var myFind = new Array(); var myCounter = 0;
var times1, times2;
times1 = new Date().valueOf();
//-----------------------------For display---------------
var w = new Window ("palette", "Hyphenated words");
var list = w.add ("listbox", undefined, "", {numberOfColumns: 1, showHeaders: true,columnTitles: ["Hyphenated Word"], columnWidths: [185]});
list.maximumSize.height = $.screens[0].bottom-200;
var myStory_id = new Array(); var myitem_id = new Array();
main();
times2 = new Date().valueOf();
var timeTaken = ((times2-times1)/1000);
displayWindow();
if (myCounter > 0){
w.show();
else { alert("Double Hypehnation Not Found"); }
function main(){
var lineCount;
myResetFindChangeGrep ();
app.findGrepPreferences.findWhat = "(\\w+)([-~=])(\\w+)";
var myIndex = new Array();
for (i=0; i<stories.length; i++){
myFind[i] = stories[i].findGrep(true);
for (j=0; j<myFind[i].length; j++){
lineCount = myFind[i][j].lines.length;
if (lineCount>1){
var story_id = i; var myFind_id = j;
var myText = myFind[i][j].contents;
addItem(myFind[i][j], i, j);
myCounter++;
}//End if
}//End of Find Length
}//End Story length
//alert(myIndex.length);
//------------------------Function Declarations--------------
function displayWindow(){
//window declared as global variable here
var panel1 = w.add('panel');
panel1.minimumSize.width = 210;
var group1 = panel1.add('group');
group1.orientation ='row';
var close_ = group1.add ("button", undefined, "Close", {name: "ok"});
group1.add("statictext", undefined, "Fetched in "+timeTaken+" sec");
close_.maximumSize.width = 44;
list.onDoubleClick = function ()
if (this.selection != null ) {
var myIndex = this.selection.index;
var storyNum = myStory_id[myIndex];
var findNum = myitem_id[myIndex];
var selectText = myFind[storyNum][findNum];
app.select (selectText, SelectionOptions.replaceWith);
app.activeWindow.zoomPercentage = 200;
close_.onClick = function () {w.close ()}
function addItem(myItem, sto_id, item_id){
list.add ("item", myItem.contents);
myStory_id .push(sto_id);
myitem_id .push(item_id);
function myResetFindChangeGrep(){
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
app.findTextPreferences = NothingEnum.nothing;
app.changeTextPreferences = NothingEnum.nothing;
Green4ever -
Problem with REUSE LIST DISPLAY , need to add std button in list.
HI All,
I make a ALV report with the use of ALV_GRID_DISPLAY after that if we click on perticular column then secondry list should be display for that i use :
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = w_gs_layout1
it_fieldcat = w_gs_fieldcat[]
i_save = c_x
i_screen_start_column = c_start_column
i_screen_start_line = c_start_line
i_screen_end_column = c_end_column
i_screen_end_line = c_end_line
TABLES
t_outtab = tl_nonlabor_comb[]
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE text-072 TYPE c_s DISPLAY LIKE c_e.
LEAVE LIST-PROCESSING.
ENDIF.
data is comming perfectly but i need one std button in secondrly alv for EXCEL DOWLOAD , so how can i include?
Thanks ,
jatenHi,
Create a copy of PF-STATUS of the screen of the ALV grid which is displayed to your program.
Add the new button in the PF-STATUS.
Create a subroutine within your program.
In this subroutine SET PF-STATUS (copied pf-status).
Pass the form routine name for setting the copied PF-STATUS to the parameter I_CALLBACK_PF_STATUS_SET.
Create a new subroutine in your program to handle the oK_CODE for the new button.
Pass this subroutine name to the parameter I_CALLBACK_USER_COMMAND of the FM.
Pass the value of call back program (sy-repid) to the parameter I_CALLBACK_PROGRAM.
Regards,
Ankur Parab -
Need to add new button in std program in std PF status.
Hello Gurus,
I have added a button +US4 in the GUI status E110 of Function group QEEM but it is not displaying in the QE51N transaction screen.
I have activated the function code and PF status as well, still this button is not displaying.
Can anybody please help me to display this button on the screen?Hi Isha,
How did you change the the standard pf-status of the standard program. I am trying to add a function code in standard pf-status. But it is asking for the access code. Kindly tell me the process to add a component. thanks in advance.
Thanks & Regards,
Suresh -
The "edit" box and "+" symbol don't even show up in my calendar or contacts so I can't edit or add in either.
Assuming you activated iCloud, try going to Settings>iCloud and make sure Calendars and Contacts are set to ON.
-
I recently opened an email from someone who's account had been hacked. Am I in jeopardy of a virus? Do I need to take action?
Very unlikely.
Even IF sender send out some sort of malicious software, it was probably most likely to point user to download some sort of windows application (like fake anti-virus etc.) which wouldn't work on a mac. -
Im using this code
ic void actionPerformed (ActionEvent e)
//Object source = evt.getSource(); Cant use Object as it becomes ambiguous, being used by both CORBA and Java
Object source = e.getSource();
if (source == testButton)
sendElement("HelloWorld");
}which is cool but when using it in a corba application the pesky compiler throws this back.
Supplier.java:204: reference to Object is ambiguous, both class org.omg.CORBA.Ob
ject in org.omg.CORBA and class java.lang.Object in java.lang match
Object source = e.getSource();
is there another way to achieve the same but without using the Object thing ?Why another way? Just typejava.lang.Object source = ...Kind regards,
Levi -
How to add a button in a list uibb
Hello Volks,
I need help.
I have to add a Button ( or just events to a button ) to a list uibb dynamically at runtime, which means I can't use the ~get-definition method.
This means I have to do it in ~get-data. I can define my actions there and add them to ct_action_usage but I can't come up with a way
to assign them to the button.
Does anyone have any idea how that might work?
Thanks in advance.
MikeHi Micheal,
We can achieve the required functionality in get_data method. First,Create the button and assign it to concerned action ( initially defined in GET_DEFINITION method ) at UIBB configuration. Now in case if you want it hide it at start up ,& have to modify based on a event ,the visible parameter of the CT_ACTION_USAGE can be used to achieve it.
VISIBLE = CL_WD_UIELEMENT=>E_VISIBLE-NONE. " To hide the UI concerned to method
VISIBLE = CL_WD_UIELEMENT=>E_VISIBLE-VISIBLE." TO show the UI concerned to the method.
In your case , following code will help accordingly. I have changed the visibility of button based on a event, initially I have disable the button and based on certain event I have enabled it again.
data ls_act_def like line of ET_ACTION_DEFINITION.
ls_act_def-ENABLED = 'X'.
ls_act_def-ID = 'ADD'.
ls_act_def-TEXT = 'Add a row'.
ls_act_def-VISIBLE = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
append LS_ACT_DEF to ET_ACTION_DEFINITION.
endmethod.
method IF_FPM_GUIBB_LIST~GET_DATA.
IF IV_EVENTID->MV_EVENT_ID EQ 'FETCH_DATA'.
field-SYMBOLS: <fs_field> like line of CT_ACTION_USAGE.
loop at CT_ACTION_USAGE ASSIGNING <FS_FIELD>.
case <FS_FIELD>-ID.
when 'ADD'. " name of the field
<FS_FIELD>-VISIBLE = CL_WD_UIELEMENT=>E_VISIBLE-VISIBLE.
EV_ACTION_USAGE_CHANGED = ABAP_TRUE.
ENDCASE.
ENDLOOP.
ENDIF.
endmethod.
Regards,
Harsha
Maybe you are looking for
-
Problem with af:table and view links
I want to display a table with data from a database table called PERSON, so I'm using af:table tag. The PERSON table has the next fields: PERSON_CODE PERSON_NAME PERSON_COD_STATE The field PERSON_STATE is a foreign key to other table called PERSON_ST
-
Webi Intelligenct processing servers doesn't start. BO 4.1
BO 4.1 SP1 Patch 8. Cluster. OS: Linux RHEL 6.x On one of our environments WIPS (webi processing services) suddendly stopped working. We did no change. These are the errors I see every time I try to restart/start (just an excerpt) /build/psbuild/a41p
-
What is the use of properites file
what is the use of properites file
-
Hi I want to add a video clip to my website but don't want to depend on other people's PCs having Quicktime installed for them to be able to play it. Can anyone recommend a way to do this? Thanks Mark
-
No images display when using AOL browser
My client's website website with images in layers and tables dislpays perfectly for most people, but does not seem to display the images consistently for visitors using AOL. Either the AOL browser or Internet Explorer. The site works fine on Macs. Is