OK CODE FOR SINGLE CLICK IN DYNPRO
HEY GUYS,
CAN YOU PLEASE TELL ME WHATS THE OKCODE FOR SINGLE CLICK.
IF I MAKE SINGLE CLICK IN TABLE CONTROL COLUMN HEADER ITS NOT GOING TO PAI FLOW LOGIC.
PLEASE SUGGEST ME ..HOW TO GO WITH PAI USING SINGLE CLICK ACTION WITH TABLE CONTROL COLUMN HEADER.
IS THERE ANY FUNCTION CODE I HAVE MAKE TO ON READY TO STATUS AT TABLE CONTROL COLUMNS.
THANKS IN ADVANCE.
AMBICHAN
Hi Chan,
Instead of Single click better u can handle trying Double click... Then PAI will definitely be triggered..
Regards,
Sridhar
Similar Messages
-
How to Open new screen for single click on ALV icon.
Hi All,
Can any body help me regarding the below ALV requirement.
I need to create a executable program ZPROGRAM with a table having field to store long text.The ALV report should display records according to the selection screen parameters with a icon in each record when clicked should open a new screen with present data in the field and must be able to save the entered long text.
Can any body give me the idea after displaying the simple ALV in the output,
How to open new screen(not the Pop-ups) after single click on the icon,
in that I should be able to modify & save the long text in my ZTABLE and
able to retrieve the same text for single clicked icon record.
which function modules/Classes/Methods can we use for this requirement.
And how retrieve the same text for this record.
Thanks in advance.
Regards,
Kalam A.*& Report ZTEST_ALV
REPORT ZTEST_ALV.
TYPE-POOLS slis.
DATA: gt_fieldcat TYPE TABLE OF slis_fieldcat_alv .
DATA: gs_layout TYPE slis_layout_alv.
DATA: gt_list_top_of_page TYPE slis_t_listheader.
DATA: gt_sortinfo_alv TYPE slis_t_sortinfo_alv.
DATA: gs_print_alv TYPE slis_print_alv.
DATA: gs_grid TYPE lvc_s_glay.
DATA: gt_event TYPE slis_t_event.
DATA: gs_event TYPE slis_alv_event.
DATA: BEGIN OF GT_DISPLAY OCCURS 100.
INCLUDE STRUCTURE MARA.
DATA: BOX.
DATA: END OF GT_DISPLAY.
START-OF-SELECTION.
SELECT * FROM MARA UP TO 50 ROWS
INTO CORRESPONDING FIELDS OF TABLE GT_DISPLAY.
End-of-Selection.
PERFORM build_alv.
PERFORM display_screen .
FORM build_alv .
DATA: ls_fieldcat LIKE LINE OF gt_fieldcat.
DATA: ls_top TYPE LINE OF slis_t_listheader.
DATA: ls_sort TYPE slis_sortinfo_alv.
CLEAR: ls_fieldcat, gt_fieldcat[], ls_top,gt_list_top_of_page[],
ls_sort,gs_grid,gs_print_alv,gt_sortinfo_alv[].
*&-----gs_layout definition.
gs_layout-zebra = 'X'.
gs_layout-detail_popup = 'X'. "ÊÇ·ñµ¯³öÏêϸÐÅÏ¢´°¿Ú
gs_layout-f2code = '&ETA'. "ÉèÖô¥·¢µ¯³öÏêϸÐÅÏ¢´°¿ÚµÄ¹¦ÄÜÂë,ÕâÀïÊÇË«»÷
gs_layout-no_vline = ' '. "ÉèÖÃÁмä¸ôÏß
gs_layout-colwidth_optimize = 'X'. "ÓÅ»¯Áпí
gs_layout-detail_initial_lines = 'X'.
gs_layout-coltab_fieldname = 'LINE_COLOR'. "Line_colorΪgt_displayµÄÒ»¸ö×Ö¶Î,¾ßÌåÑÕÉ«ÉèÖüûÏÂÃæ˵Ã÷.
gs_layout-hotspot_fieldname = 'MATNR'.
gs_layout-detail_titlebar = 'ÏêϸÄÚÈÝ'. "ÉèÖõ¯³ö´°¿ÚµÄ±êÌâÀ¸
gs_layout-group_change_edit = 'X'.
*&-----gs_grid definition.
gs_grid-top_p_only = 'X'.
*&-----gs_print_alv definition.
gs_print_alv-prnt_title = 'X'.
gs_print_alv-prnt_info = 'X'.
*&-----gt_sortinfo_alv definition. С¼Æ
ls_sort-fieldname = 'MTART'.
ls_sort-tabname = 'GT_DISPLAY'.
ls_sort-subtot = 'X'.
ls_sort-spos = 1.
ls_sort-up = 'X'.
ls_sort-group = 'UL'.
APPEND ls_sort TO gt_sortinfo_alv.
ls_sort-fieldname = 'AENAM'.
ls_sort-tabname = 'GT_DISPLAY'.
ls_sort-subtot = 'X'.
ls_sort-spos = 1.
ls_sort-up = 'X'.
ls_sort-group = 'UL'.
APPEND ls_sort TO gt_sortinfo_alv.
*&-----slis_t_listheader definition. title.
CLEAR ls_top.
ls_top-key = 'µ±Ç°ÈÕÆÚ:'.
ls_top-typ = 'S'. " H = Header, S = Selection, A = Action
CONCATENATE sy-datum0(4) '-' sy-datum4(2) '-' sy-datum+6(2) INTO ls_top-info .
APPEND ls_top TO gt_list_top_of_page.
CLEAR ls_top.
ls_top-key = 'title'.
ls_top-typ = 'S'. " H = Header, S = Selection, A = Action
ls_top-info = space.
APPEND ls_top TO gt_list_top_of_page.
*&-----gs_print_alv definition.
gs_print_alv-prnt_title = 'X'.
gs_print_alv-prnt_info = 'X'.
*&-----gt_fieldcat definition.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'GT_DISPLAY'
i_structure_name = 'MARA'
I_CLIENT_NEVER_DISPLAY = 'X'
i_inclname = sy-repid
CHANGING
ct_fieldcat = gt_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
ls_fieldcat-hotspot = 'X'.
MODIFY gt_fieldcat FROM ls_fieldcat INDEX 2.
**-1. definition with macro.
DEFINE macro.
col_pos = col_pos + 1.
ls_fieldcat-tabname = 'it_typ_data'.
ls_fieldcat-fieldname = '&1'.
ls_fieldcat-seltext_l = &2.
ls_fieldcat-col_pos = col_pos.
ls_fieldcat-outputlen = '&3'.
ls_fieldcat-datatype = '&4'.
ls_fieldcat-do_sum = &5.
ls_fieldcat-edit = &6.
ls_fieldcat-checkbox = &7.
ls_fieldcat-key = &9.
ls_fieldcat-fix_column = &10.
ls_fieldcat-no_out = &11.
ls_fieldcat-ref_fieldname = &4. " System F4 Effect.
ls_fieldcat-ref_tabname = &5. " System F4 Effect.
ls_fieldcat-hotspot = &6.
append ls_fieldcat to gt_fieldcat.
clear ls_fieldcat.
END-OF-DEFINITION.
macro matnr 'matnr' 18 'MATNR' 'MARA' 'X'.
macro MTART 'MTART' 18 'MTART' 'MARA' ''.
macro AENAM 'AENAM' 18 'MAENAM' 'MARA' ''.
**-2. definition one-by-one.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'MATNR'.
ls_fieldcat-seltext_s = 'ÎïÁÏ'.
ls_fieldcat-ref_fieldname = 'ROLLNAME'.
ls_fieldcat-ref_tabname = 'DD03L'.
APPEND ls_fieldcat TO gt_fieldcat.
ENDFORM. "build_alv
FORM display_screen .
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = gt_event
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE gt_event INTO gs_event WITH KEY name = 'TOP_OF_PAGE'.
IF sy-subrc EQ 0.
gs_event-form = 'TOP_OF_PAGE'.
MODIFY gt_event FROM gs_event INDEX sy-tabix.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = sy-repid
i_callback_pf_status_set = 'PF_STATUS_SET '
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = 'HTML_TOP_OF_PAGE'
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = 'ALV_BACKGROUND' "When top-of-page is initial.
I_GRID_TITLE =
I_GRID_SETTINGS =
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = gt_sortinfo_alv[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'A'
IS_VARIANT =
IT_EVENTS = gt_event
IT_EVENT_EXIT =
IS_PRINT = gs_print_alv
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = gt_display
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "display_screen
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR' "Check Box need fieldcat-checkbox, input and edit.
IMPORTING
E_GRID = ref1.
CASE ucomm.
WHEN '&IC1'. " SAP standard code for double-clicking
READ TABLE gt_display INTO gs_display INDEX slis_selfield-tabindex.
CHECK sy-subrc = 0.
CASE selfield-fieldname .
WHEN 'PLNUM'.
SET PARAMETER ID 'PAF' FIELD gs_display-plnum.
CALL TRANSACTION 'MD12' AND SKIP FIRST SCREEN.
WHEN 'POSNR'.
SUBMIT rvscd100 USING SELECTION-SCREEN '1000' WITH vbeln = gs_display-vbeln
WITH posnr = gs_display-posnr
WITH zinfo = 'X'
AND RETURN.
ENDCASE.
IF selfield-sel_tab_field = 'OUT_ITAB-PI_SL'. " Line detail.
READ TABLE i_output INTO pisl_itab INDEX selfield-tabindex.
IF sy-subrc EQ 0.
ENDIF.
WHEN 'CHANGE'.
CALL METHOD ref1->check_changed_data.
CALL METHOD ref1->refresh_table_display.
*5´Ë´¦´úÂë×èÖ¹'REUSE_ALV_GRID_DISPLAY´´½¨ÐµÄÆÁÄ»£¬Ôì³ÉÆÁÄ»¶à²ã
selfield-refresh = 'X'.
WHEN 'SWITCH'.
PERFORM switch_edit_mode.
WHEN OTHERS.
ENDCASE.
ENDFORM. "user_command
Add your code in user_command form.
WHEN you click matnr ucomm eq '&IC1'.
Message was edited by:
Chunhai Hu -
Can you have a pdf as an icon for single click access on ipad or iphone?
can you have a pdf as an icon for single click access on ipad or iphone?
No - I think Safari is the only app that can have separate shortcuts (for different sites) on the homescreens. You can only access PDFs by first going into it's owning app.
-
JDeveloper Extension for SINGLE CLICK deployment of OIM customizations
I am not sure most of OIM Developers, System Integrators and Architects aware of this Oracle Asset, hence sharing information.
In most of the questions posted on forum related to event handler usages Plugin Registration utility and weblogic scripts to import / export meta data files into MDS. There is easy way to deploy OIM 11g even handler plugins , Scheduled Tasks, Request Datasets and Notification Events using OIM Customization Installer JDeveloper Extension.
Oracle has published Oracle Identity Manager 11g Sample Assets some time back. You can use OIM Customization Installer JDeveloper Extension for SINGLE CLICK deployment of OIM customizations like Event Handlers, Plugins, Scheduled Tasks, Request Datasets and Notification Events.
You can access and download Oracle Asset using below link,
http://www.oracle.com/technetwork/middleware/id-mgmt/overview/oim-11g-assets-504842.html
Thanks,
Pradeep.Pradeep,
Thanks for sharing this. I have gone through this asset sometime back. This is quite helpful w.r.t deployment but does not have any other added advantage. For example, it does not create the xml's automatically or does not validate them etc. If I remember it right, this plugin was supported till 11.1.1.3 only.
Appreciate you sharing this as it would surely help folks here.
-Bikash -
Hi ,
Could anyone let me know the BDC OK Code for Double click.
I need to select a row by double clicking it in my recording but not able to capture the code for it.
Please do the needful.
Thanks in Advance,
Sowmmya BHi sowmmya,
1. If the row you are talking about is
ALV Grid OO concepts,
then i think there is a problem.
It won't work with BDC as u are trying.
2. Well, for getting the code,
before double clicking go in debug mode /H
and then double click.
3. Now in deubbing mode,
see the value of sy-ucomm.
regards,
amit m. -
Code for double clicking rows in alvgrido/p and moving it to internal tabl
hi,
code for double clicking rows in alvgrido/p and moving it to internal tablehi,
see the following code which uses layout , double_click event in ALVGRID.
TABLES: mara,marc.
DATA:obj_custom TYPE REF TO cl_gui_custom_container,
obj_alv TYPE REF TO cl_gui_alv_grid.
DATA: it_mara TYPE TABLE OF mara,
wa_mara TYPE mara,
wa_layout TYPE lvc_s_layo,
wa_variant TYPE disvariant,
x_save.
DATA:it_marc TYPE TABLE OF marc,
wa_marc TYPE marc.
SELECT-OPTIONS: s_matnr FOR mara-matnr DEFAULT 1 TO 500.
START-OF-SELECTION.
SELECT * FROM mara INTO TABLE it_mara
WHERE matnr IN s_matnr.
CALL SCREEN '100'.
CLASS cl_dbclick DEFINITION
CLASS cl_dbclick DEFINITION.
PUBLIC SECTION.
METHODS dbl FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING e_row e_column.
ENDCLASS.
DATA: obj1 TYPE REF TO cl_dbclick.
CLASS cl_dbclick IMPLEMENTATION
CLASS cl_dbclick IMPLEMENTATION.
METHOD dbl.
IF e_row-rowtype = space AND NOT e_row-index IS INITIAL.
READ TABLE it_mara INDEX e_row-index INTO wa_mara.
SELECT * FROM marc INTO TABLE it_marc
WHERE matnr = wa_mara-matnr.
CALL METHOD obj_custom->free
EXCEPTIONS
cntl_error = 1
cntl_system_error = 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 SCREEN '200'.
ENDIF.
ENDMETHOD. "dbl
ENDCLASS. "cl_dbclick IMPLEMENTATION
*& Module USER_COMMAND_0100 INPUT
text
MODULE user_command_0100 INPUT.
CALL METHOD obj_custom->free
EXCEPTIONS
cntl_error = 1
cntl_system_error = 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.
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module filldata OUTPUT
text
MODULE filldata OUTPUT.
CREATE OBJECT obj_custom
EXPORTING
container_name = 'CONTROL'.
CREATE OBJECT obj_alv
EXPORTING
i_parent = obj_custom.
CREATE OBJECT obj1.
SET HANDLER obj1->dbl FOR obj_alv.
CALL METHOD obj_alv->set_table_for_first_display
EXPORTING
i_buffer_active =
i_bypassing_buffer =
i_consistency_check =
i_structure_name = 'MARA'
is_variant = wa_variant
i_save = x_save
i_default = 'X'
is_layout = wa_layout
is_print =
it_special_groups =
it_toolbar_excluding =
it_hyperlink =
it_alv_graphics =
it_except_qinfo =
ir_salv_adapter =
CHANGING
it_outtab = it_mara
it_fieldcatalog =
it_sort =
it_filter =
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
others = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " filldata OUTPUT
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module STATUS_0200 OUTPUT
text
MODULE status_0200 OUTPUT.
SET PF-STATUS 'STATUS'.
* SET TITLEBAR 'xxx'.
SUPPRESS DIALOG.
SET PARAMETER ID 'MAT' FIELD wa_mara-matnr.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
*WRITE:/ wa_mara-matnr,
wa_mara-mbrsh,
wa_mara-meins.
CREATE OBJECT obj_custom
EXPORTING
container_name = 'CONTROL'.
CREATE OBJECT obj_alv
EXPORTING
i_parent = obj_custom.
CALL METHOD obj_alv->set_table_for_first_display
EXPORTING
i_buffer_active =
i_bypassing_buffer =
i_consistency_check =
i_structure_name = 'MARC'
is_variant = wa_variant
i_save = x_save
i_default = 'X'
is_layout = wa_layout
is_print =
it_special_groups =
it_toolbar_excluding =
it_hyperlink =
it_alv_graphics =
it_except_qinfo =
ir_salv_adapter =
CHANGING
it_outtab = it_marc
it_fieldcatalog =
it_sort =
it_filter =
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
others = 4
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module layout OUTPUT
text
MODULE layout OUTPUT.
wa_layout-grid_title = 'MATERIAL DATA'.
wa_layout-zebra = 'X'.
wa_layout-edit = 'X'.
ENDMODULE. " layout OUTPUT
*& Module variant OUTPUT
text
MODULE variant OUTPUT.
wa_variant-report = 'ZALV_GRID1'.
x_save = 'A'.
ENDMODULE. " variant OUTPUT
*& Module USER_COMMAND_0200 INPUT
text
MODULE user_command_0200 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
CALL METHOD obj_custom->free
EXCEPTIONS
cntl_error = 1
cntl_system_error = 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.
LEAVE TO SCREEN '100'.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
thanks,
raji
reward if helpful -
Integrating code for mouse click!
Hello!
I'm trying to get this code working where I want to integrate a shortcut for clicking an button made in Egde Animate.
The code snippets you see is just some copied areas of the whole working code,
Serial.print(c);
if (c == '\n') {
if (readString.indexOf("?") <0)
//do nothing
else
if(readString.indexOf("UP=UP") >0)
movetiltupstep();
// now output HTML data starting with standard header
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println();
//set background to green
client.print("<body style=background-color:green>");
client.println("<hr />");
client.println("<center>");
client.println("<h1>Servo control</h1>");
client.println("<form method=get name=SERVO>");
client.println("<input type=submit value=UP name=UP style=\"width:100px\"><br>");
client.println("<input type=submit value=LT name=LT style=\"width:100px\"><input type=submit value=CN name=CN style=\"width:100px\"><input type=submit value=RT name=RT style=\"width:100px\"><br>");
client.println("<input type=submit value=DN name=DN style=\"width:100px\">");
client.println("</form>");
client.println("</center>");
client.println("</body></html>");
//clearing string for next read
readString="";
//stopping client
client.stop();
void movetiltupstep(){
tiltpos = tilt.read();
Serial.println(tiltpos);
if (tiltpos >= 66)
tilt.write(tiltpos - 2);
This is just an overview of my setup for a webpage, where I can move a servo with a button and this is called movetiltupstep();
The button is made here, ("<input type=submit value=UP name=UP style=\"width:100px\"><br>"); and I want to use this with the button in Edge Animate.
For a button this is the setup, function(sym, e) and I tried to integrate something like this:
// insert code for mouse click here
sym.$("<input type=submit value=UP name=UP>") but not working.
How would i proceed with this problem, ideas anyone?
Regards, Torimport javax.swing.*;
import java.awt.event.MouseMotionListener;
import java.awt.event.MouseListener;
import java.awt.event.MouseEvent;
import java.awt.*;
public class MouseTracker extends JFrame implements MouseListener, MouseMotionListener
private JLabel statusBar;
public MouseTracker()
super("Demonstrating Mouse Events");
statusBar = new JLabel();
getContentPane().add(statusBar, BorderLayout.SOUTH);
addMouseListener(this);
addMouseMotionListener(this);
setSize(275, 100);
setVisible(true);
public static void main(String[] args)
MouseTracker application = new MouseTracker();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
public void mouseClicked(MouseEvent e)
statusBar.setText("Clicked at [" + e.getX() + ", " + e.getY() + "]");
public void mouseReleased(MouseEvent e)
statusBar.setText("Released at [" + e.getX() + ", " + e.getY() + "]");
public void mouseEntered(MouseEvent e)
statusBar.setText("Clicked at [" + e.getX() + ", " + e.getY() + "]");
getContentPane().setBackground(Color.GREEN);
public void mousePressed(MouseEvent e)
statusBar.setText("Pressed at [" + e.getX() + ", " + e.getY() + "]");
public void mouseExited(MouseEvent e)
statusBar.setText("Mouse outside window");
getContentPane().setBackground(Color.WHITE);
public void mouseDragged(MouseEvent e)
statusBar.setText("Dragged at [" + e.getX() + ", " + e.getY() + "]");
public void mouseMoved(MouseEvent e)
statusBar.setText("Moved at [" + e.getX() + ", " + e.getY() + "]");
} -
Remediation for single-clicking a double-click action
I'm using the double mouse click feature of a Click box in a
software simulation lesson we've built in captivate. Unfortunately
when the user single-clicks in the Click box, no remediation shows
to tell the user that they must double-click in the box to complete
the step.
Anyone have any ideas on how to provide the user with
remediation on single clicking a double click Click box?
Thanks,
Scott Witlen
McKessson Provider TechnologiesUm... there are no macros. Captivate is a closed system with
no documented API outside of some variables you can read and in
some cases, set to make Captivate do some simple navigation-related
things. Search the Captivate help file for 'variables' and you'll
find a list.
Outside of that, the only official ways to "enhance"
Captivate are either to:
- Create your own standalone functionality in Flash and
insert it in Captivate as a self-contained animation. This can be
problematic due to the closed nature of the Captivate runtime, as
well as the layering imposed by the use of skins and borders.
- Make Javascript calls to the browser and put the
functionality there. Since there is limited interactivity between
Javascript and Flash, this is much more limited in scope than
inserting your own self-contained animations
Some folks have also opened up a published SWF with a
decompiler program and viewed the Adobe source code in an effort to
make their inserted animations do cooler things, but that is very
much an unsupported activity. -
Enabling screen for single click in OOABAP alvs
Hello All,
I have a requirement where I am displaying ALV grid in screen 100. In this grid I have defined double click event in which I call 101 screen (with coordinates i.e. starting at 10 10) which displays another grid. The problem here is that in screen 101 the buttons and screen fields are not responding to single click. I mean that for every action (change the cell value in 101 screen ot selecting a row or clicking on pushbutton in this 101 screen) I have to click twice. But I want all this actions to be performed with single click. If anyone knows the solution to know please let me know.
Note: <b>Helpful answers will be duly rewarded.</b>Please do not make duplicate postings.
Rob -
Posting multiple tax codes for single line order in MIRO
Hi all ,
I have received a request from my business colleagues to investigate the possibility of posting multiple tax codes against a single line order in MIRO.
This apparently can be a possibility for such things as training.
I have searched a number of forums and tried and tested different ways in my develoment client but am unable to find a solution. admittedly I am no real expert in this area and would be gratefu;lt of any ideas / assistance / etc..HI, There is a possible solution for this scenario.
1. Create 2 tax codes for VAT and SERVICE Tax at 12.5% and 12.36% respectively
2. While posting the Invoice (TRX - FB60) following steps need to be followed.
3. Amount has to be split into two line items
4. Ist Line Item should have the Vat amount + 70000/- and select relevant tax code that was
created for 12.5%
5. Similarly 2nd Line Item should have Service Tax amount + 30000/- and select relevant tax code that
was created for 12.36%.
Hope this would meet your requirement. If the solution is okay, kindly indicate the points.
Regards
K.Sanjai Babu -
Discount Code for Single Product
Is it possible to create a discount code for just a single product? I know I can do it for a single catalog - but hoping I can do it on single products, too.
I've had to display two BC catalogs on one page whenever clients request this, which seems to be a common request. Often clients want one page displaying two different catalogs side by side.
You can accomplish this with jQuery.
Set up an empty div on the page that will hold the catalogs...
<div id="the-catalog-1"></div>
<div id="the-catalog-2"></div>
Then include a script so jQuery will use Ajax to load in the normal BC catalog page from the BC server and insert it into the div on your page...
<script type="text/javascript">
$('#the-catalog-1').load('/promotional-items div.shop-main').slideDown();
$('#the-catalog-2').load('/promotional-items/t-shirts div.shop-main').slideDown();
</script>
In this example I'm pulling a parent catalog named /promotional-items and reading only the content from that BC page that is within its div having class="shop-main"
jQuery will let you load only part of the content from the BC catalog page, in this case, I only wish to load the catalogs and/or products displayed within the div class="shop-main" in order to avoid loading the entire catalog page which of course would include the page template which I don't want. I only want the part of the page in which BC is using the BC catalog layout or small product layout to list catalogs/products, eliminating the normal page template it displays within. For docs see "Loading Page Fragments" on the jQuery documentation page for the load command here: http://api.jquery.com/load/
In #the-catalog-2 in the example I am loading the products displayed within the t-shirts subcatalog off the promotional-items catalog.
You would likely need to set some CSS to set the width and perhaps height of #the-catalog-1 etc. although in my example I have no height so nothing is displayed until the catalog page loads and then I'm using a jQuery slideDown() to slide the div open and down with the content in it.
Of course in order to run jQuery code you site needs to load jQuery in your page template etc. If you don't know how to do that there are instructions on my site:
http://www.atlantawebdesignga.com/_blog/Adobe_Business_Catalyst_Developer/post/Loading_jQu ery_-_Loading_Latest_jQuery_-_Test_If_jQuery_Loaded/ -
How to configure Two Tax Codes for single line item in work order
Hi All,
Please do Review the below scenario and tell me how to solve it.
A) Certified Work Done Gross Bill Amt 100,000
Total Work Done Value 100,000
Less : Labour & Like Charges @ 30 % on Rs 100,000 = 30,000
Vat applicable Amount = 70,000
Add VAT @12.5% Chargeable on Taxable Turnover of Rs. 70,000.00 = 8750
Total Bill Value = 108750
Service Tax @ 12.36% on 33% Value of Rs. 100000 = 4079
G.Bill Amt = 112829
Total Amt Due for Payment = 112829HI, There is a possible solution for this scenario.
1. Create 2 tax codes for VAT and SERVICE Tax at 12.5% and 12.36% respectively
2. While posting the Invoice (TRX - FB60) following steps need to be followed.
3. Amount has to be split into two line items
4. Ist Line Item should have the Vat amount + 70000/- and select relevant tax code that was
created for 12.5%
5. Similarly 2nd Line Item should have Service Tax amount + 30000/- and select relevant tax code that
was created for 12.36%.
Hope this would meet your requirement. If the solution is okay, kindly indicate the points.
Regards
K.Sanjai Babu -
Code for single button which acts for add,find,update
I have created one btns- (acting for add,find, update etc having same unique id )using VB.NET code.I want to write code according to the captions of the button...I mean for diff caption of the btn , diff action should perform?
So , plz anyone tell me how to code for it using VB.NET(for Business One)
Thnxs in advance..
ChetanChetan,
You have posted your question in the SAP Business One integration for SAP NetWeaver forum. Your question relates to the SAP Business One SDK and you need to post your question in the SAP Business One forum. You should get a response by posting it in that forum.
Eddy -
How can I code for a click and drag to progress forward/backward in timeline
I'm working on a project, the goal is to have a .swf animation like this.
The functionality I'm looking for is:
1. I need my animation to make one full rotation and stop,
and then
2. I need to fix my AS3 so you have to CLICK/HOLD/DRAG to progress forward and backward through the timeline, but only when your holding the mouse button down.
Currently the code progresses the frame forward and backward in relation to the mouseX position.
Here is my current code:
import flash.events.MouseEvent;
var startPosition:Number=mouseX;
var delayTime=10;
gotoAndStop(1);
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouse);
function onMouse(e:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_MOVE,onMouse);
var currentPosition:Number=mouseX;
if(mouseX-startPosition<=0){
nextFrame();
}else{
prevFrame();
setTimeout(setListener, delayTime);
function setListener(){
startPosition=mouseX;
stage.addEventListener(MouseEvent.MOUSE_MOVE,onMouse);
any help would be appreciated,
Thanks.Found a thread much like this one that solved all my problems
Here the link to anyone who might be pulling their hair out trying to figure this out in the future
http://forums.adobe.com/thread/570903?tstart=0
Thanks Adobe Forums -
Multiple MouseEvents for single click
Hello,
I have created a reusable component based on a JPanel.
Our company uses my component in several Swing applications, all of which use a JFrame.
My component has a mouse listener for mousePressed events.
Recently a new app, also based on a JFrame, has started to use my component. In this new Swing app, my component's mousePressed listener gets called THREE TIMES for each mouse pressed.
In all other apps, if the user presses the mouse once, I get only ONE call to my mousePressed listener.
Looking at the stack traces into my mousePressed() method I notice this:
In the apps where mousePressed() is only called once, the stack looks like this:
at java.awt.Component.processMouseEvent(Component.java:5131)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3162)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
where as when mousePressed() gets called multiple times, the stack trace shows this:
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:218)
at java.awt.Component.processMouseEvent(Component.java:5131)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3162)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
Does anybody have any idea of why AWTEventMulticaster would be on the stack for one app and not for another?
And how can I prevent getting called multiple times for a single mouse click?
Thank you,
Ted HillYou don't understand. My JPanel implements the MouseListener interface and its mousePressed(MouseEvent ) method gets called THREE TIMES on a single mouse click. Normally it should only be called ONCE.
It seems that the app that is using the JPanel extension has somehow registered it as interested in mouse events MULTIPLE TIMES.
I've never seen this before in Swing and was wondering if anyone else has.
Thanks,
Ted
Maybe you are looking for
-
Generate a File XML in Forms with PL/SQL
Hi Friends! I need to generate a file XML and validate it with a XSD schema! I see some ways to generate a file with a QUERY. But i cant generate a file with a Query because my datas existing in diferent tables and isn't possible to create in a query
-
I am new to boards but giving this a try. I am a physical therapist. I want to make a hand written form into an electronic form. then I want to send that form to an agency where they will review the medical content possibly editing it then returning
-
Insert static picture between thumbnails and sliding pictures
Hello everybody, I try to create a fullscreen slideshow behind a static picture with transparent areas in muse ... unsuccessfully! In the fullscreen background should be the changing pictures. Over these sliding pictures, one static picture with tran
-
4S iMessage randomly stopped working. Tried all solutions I found, no dice.
Hey everyone, So I've seen a few of these threads, but none of the answers have worked for me thus far. I have an internet connection, iMessage is turned on (and I've turned it off then on just for thoroughness), I'm receiving at the apple ID and ph
-
Manual organisation of photos within library / film rolls
I'm new to the world of apple (3 weeks). One aspect I'm enjoying is getting old negatives put on CD and then importing to iPhoto to store / email / use as desktop. But I can't organise the photos within each roll to re-arrange them in the order they