IMAGES to be displayed on a single click........!!!!
My project is under security tools.
i want to perform scanning process in PC just like antivirus..........!!!
Image scan is perormed by me in background whether they are corrrupted or not??is CHECKED DONE!
But now i have to bring my background process in to GUI base of Java n NetBEANS!!!
I used one Button..........n after clicking on it ,image must be displayed................
This is also working in FINE manner..............!!!
but no problem is ---
I have to dispaly images one after another in sequence after a single click..........!!!!
can u help me plz????
immediately..........................!!!
Email---
::[email protected]
You should scan folder using File class object and name of all the images in the array and display them after onclick increment.
Similar Messages
-
[Solved] Gwenview 5 lost icons and single click
Hi,
I don't use KDE but I do use Gwenview. Since upgrading to 5 Gwenview has lost some icons (outlined in red below), and I now have to double click on directories and images to open them instead of single click. Is it possible to fix these issues without installing a full KDE desktop?
Thanks, Jamie
Last edited by JamieKitson (2015-02-10 22:30:10)I get a much larger list in "kcmshell5 icons". I think because I installed "plasma-meta", and removed "kdebase-workspace".
kcmshell5 --list
The following modules are available:
kf5.kservice.sycoca: Trying to open ksycoca from "/home/johnm/.cache/ksycoca5"
autostart - Automatically Started Applications
bell - System Bell
bluedeviladapters - Configure Bluetooth adapters
bluedevildevices - Manage Bluetooth devices
bluedeviltransfer - Configure Bluetooth file sharing and transfers
cache - Configure web cache settings
clock - Date and Time
colors - Application Color Scheme
componentchooser - Default Applications
cookies - Configure the way cookies work
cursortheme - Mouse Cursor Theme
desktop - Navigation, Number and Layout of Virtual Desktops
desktoppath - Paths to Personal Files
desktoptheme - Desktop Theme
devinfo - Device Viewer
dma - DMA information
emoticons - Emoticon Theme
filetypes - Configure file associations
fontinst - Font Installation, Preview and Removal
fonts - Fonts
formats - Numeric, Currency and Time Formats
icons - Icon Theme
interrupts - Interrupt information
ioports - IO-port information
joystick - Joystick
kcm_activities - Configure the activities system
kcm_baloofile - Configure File Search
kcm_infosummary - Hardware Information Summary
kcm_keyboard - Keyboard Hardware and Layout
kcm_kscreen - Manage and configure monitors and displays
kcm_lookandfeel - Look And Feel
kcm_memory - Memory information
kcm_pci - PCI information
kcm_phonon - Phonon Audio and Video
kcm_plasmasearch - Configure Search
kcm_splashscreen - Splash Screen Theme
kcm_ssl - SSL Versions and Certificates
kcm_useraccount - User information such as password, name and email
kcmaccess - Accessibility Options
kcmkded - Background Services
kcmkwineffects - Desktop Effects
kcmlaunch - Application Launch Feedback
kcmnotify - Event Notifications and Actions
kcmsmserver - Desktop Session Login and Logout
kcmtrash - Configure trash settings
kcmusb - USB devices attached to this computer
kcmview1394 - Attached IEEE 1394 devices
keys - Global Keyboard Shortcuts
khotkeys - Configure Input Actions settings
kwincompositing - Compositor Settings for Desktop Effects
kwindecoration - Look and Feel of Window Titles
kwinoptions - Window Actions and Behavior
kwinrules - Individual Window Behavior
kwinscreenedges - Active Screen Corners and Edges
kwinscripts - Manage KWin scripts
kwintabbox - Navigation Through Windows
mouse - Mouse Controls
netpref - Configure generic network preferences, like timeout values
nic - Network interface information
opengl - OpenGL information
powerdevilglobalconfig - Advanced Power Management Settings
powerdevilprofilesconfig - Energy Saving
proxy - Configure the proxy servers used
screenlocker - Screen Locking Timeouts
scsi - SCSI information
smb - Use to configure which windows (SMB) filesystems you can browse
smbstatus - Samba status monitor
solid-actions - Manage actions available to the user when connecting new devices
spellchecking - Spell Checker Dictionaries and Options
standard_actions - Standard Keyboard Shortcuts for Applications
style - Widget Style and Behavior
translations - No description available
useragent - Configure the way Konqueror reports itself
wayland - Information about the Wayland Compositor
webshortcuts - Configure web shortcuts
workspaceoptions - Workspace Behavior
xserver - X-Server information
Since you still probably have kdebase-workspace, maybe you can fix it with "kcmshell4 icons" instead. -
Displaying thumbnail images in another panel when it mouse clicked
hi,
I am using JAI, what i am trying to do is i am decoding the tiff file and creating thumbnail of that images and adding thumbnail images to one panel and enlarged images to another panel using DisplayJAI. Now when i will click i thumbnail images on left panel then that image should be display to another panel on right side. Adding both panel to JSplit panel.
I have no idia how to do it, i tried to do in different way but not able to do that. I hope anybody can give me the hints about this.
Thanksi am adding thumbnail of all images in left panel and enlarged view of each thumbnail is added in right panel , and what i require that when i click thumbnail in left side it's corresponding enlarged image should be visible, suppose in right panel page no. 1 is visible and when i click thumbnail of 13 page in left panel that should be in viewport of right panel.You should put your right panel inside a JScrollPane and call [scrollRectToVisible() |http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html#scrollRectToVisible(java.awt.Rectangle)] from your panel. You can put the rectangles corresponding to enlarged images in a hash map with the keys being some unique attribute of your thumbnails in left panel. That will help in getting the rectangle to make visible, real fast. Or, you can just put the rectangles in some array indexed according to the thumbnails in left panel.
I also want to hide the left panel, i think it's possible by Frame.Yes it is possible, but you said you have both your panels in a split pane, so maybe you can use its setDividerLocation() function to hide your left panel.
Thanks! -
OHJ - Displaying topics on a single click
I am using OHJ 4.2.7 version. In my application under the Contents tab, I would like to display the topic when a user clicks(Single click) on a particular TOC item.
Currently the topic is getting displayed only if the user double clicks on an item. any ideas?Hey, did you ever get any insight on this issue?
-
Single Click a Book to display html assigned
Hi,
I have a book which has an HTML file attached to it. How do I
set this so that when a user just clicks the book the topic linked
to it opens? It appears right now my users are having to
double-click it. But topics underneath are all single click.
Thanks,
MaryHi Mary
Normally if you have a topic assigned, it will display by
simply clicking the book. Are you asking about also having the book
open on a single click?
If so, that's done in an option when you compile. If you
click File > Generate and get to the intermediate dialog, look
near the bottom for a button labeled Edit... and click it. You
should then see another dialog appear with a couple of tabs. Click
the tab labeled TOC Styles. On this tab are a bunch of check boxes.
The one you want is labeled "Single click to open books".
Cheers... Rick -
Magic Mouse single click double clicks and drops dragged images
Last few weeks my Magic Mouse has started behaving strangely. When selecting something with a single click the mouse seems to double click and open the item instead of just selecting it. Very frustrating. When dragging anything across the screen it always drops the item halfway there.
What is going on? Software? Hardware? I have no 3rd party software installed and have tried various double click speeds with the same result.
Anyone have any ideas? Thanks.A lot of people have encountered this, Tom, myself included (see discussion here for instance: http://discussions.apple.com/thread.jspa?messageID=11547453�).
It appears to be a bug in the OS. Annoying, but until Apple fix the problem, it's something we're unfortunately going to have to live with. Sorry I can't help you further. -
Touch screen double clicks are seen as two single clicks due to position sensitivity
I'm developing an app for a laptop with a touch screen. It displays several low resolution images in Lab View pictures. The operator can select an image by double clicking, displaying a higher resolution picture that fills the screen. Double clicking that image returns to the multiple image display.
It is very difficult to cause a double click event via the touch screen. The two clicks must be located at the exact same point on the touchscreen, or two single clicks are returned. My fat fingers can't seem to hit the same pixel twice.
Is there a way to set the position sensitivity of double clicks in Lab View? in Windows?
Thanks,
DanHi Dan,
I think this would be an OS configuration-parameter - at least, outside LabVIEW - have you looked under "Control Panel" or Programs for a touch-screen configuration utility? Here's a link to info re: the Dell Latitude XFR D630. Note the "Doube Click Area" parameter under "Touchkit Configuration Utility" - Settings.
Cheers!
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare) -
hi,
can any1 pls explain me the single click event LINK_CLICK in abap object.
does this single click event mean that if i click anywhere on my alv report it will trigger the event.
pls explain me about this LINK_CLICK event in details plsanswered the similar question last week. You can see here Event
Link_click or ALV_Object Model HYPERLINK.
This example demonstrates how to use a Hiperlink field in ALV. These example was based on 'SALV_DEMO_TABLE_COLUMNS' that contains Hiperlink, icon, Hotspot...
The Code is:
REPORT zsalv_mar NO STANDARD PAGE HEADING.
CLASS lcl_handle_events DEFINITION
CLASS lcl_handle_events DEFINITION.
PUBLIC SECTION.
METHODS:
on_link_click FOR EVENT link_click OF cl_salv_events_table
IMPORTING row column.
ENDCLASS. "lcl_handle_events DEFINITION
CLASS lcl_handle_events IMPLEMENTATION
CLASS lcl_handle_events IMPLEMENTATION.
METHOD on_link_click.
DATA: l_row_string TYPE string,
l_col_string TYPE string,
l_row TYPE char128.
WRITE row TO l_row LEFT-JUSTIFIED.
CONCATENATE text-i02 l_row INTO l_row_string SEPARATED BY space.
CONCATENATE text-i03 column INTO l_col_string SEPARATED BY space.
MESSAGE i000(0k) WITH 'Single Click' l_row_string l_col_string.
ENDMETHOD. "on_single_click
ENDCLASS. "lcl_handle_events IMPLEMENTATION
DATA: gr_events TYPE REF TO lcl_handle_events.
TYPES: BEGIN OF g_type_s_outtab.
INCLUDE TYPE alv_tab.
TYPES: t_hyperlink TYPE salv_t_int4_column,
END OF g_type_s_outtab.
DATA: gt_outtab TYPE STANDARD TABLE OF g_type_s_outtab.
DATA: gr_table TYPE REF TO cl_salv_table.
TYPES: BEGIN OF g_type_s_hyperlink,
handle TYPE salv_de_hyperlink_handle,
hyperlink TYPE service_rl,
carrid TYPE s_carrid,
END OF g_type_s_hyperlink.
DATA: gt_hyperlink TYPE STANDARD TABLE OF g_type_s_hyperlink.
SELECTION-SCREEN BEGIN OF BLOCK gen WITH FRAME.
PARAMETERS: p_amount TYPE i DEFAULT 30.
SELECTION-SCREEN END OF BLOCK gen.
START-OF-SELECTION.
PERFORM select_data.
PERFORM display.
*& Form select_data
text
--> p1 text
<-- p2 text
FORM select_data .
DATA: line_outtab TYPE g_type_s_outtab,
ls_hype TYPE g_type_s_hyperlink,
lt_hyperlink TYPE salv_t_int4_column,
ls_hyperlink TYPE salv_s_int4_column,
v_tabix TYPE sytabix.
SELECT *
FROM alv_tab
INTO CORRESPONDING FIELDS OF TABLE gt_outtab
UP TO p_amount ROWS.
LOOP AT gt_outtab INTO line_outtab.
v_tabix = sy-tabix.
ls_hype-handle = sy-tabix.
ls_hype-hyperlink = line_outtab-url.
ls_hype-carrid = line_outtab-carrid.
INSERT ls_hype INTO TABLE gt_hyperlink.
ls_hyperlink-columnname = 'URL'.
ls_hyperlink-value = sy-tabix.
APPEND ls_hyperlink TO lt_hyperlink.
line_outtab-t_hyperlink = lt_hyperlink.
MODIFY gt_outtab FROM line_outtab INDEX v_tabix.
CLEAR line_outtab.
CLEAR lt_hyperlink.
CLEAR ls_hyperlink.
ENDLOOP.
ENDFORM. " select_data
*& Form display
text
--> p1 text
<-- p2 text
FORM display .
TRY.
cl_salv_table=>factory(
IMPORTING
r_salv_table = gr_table
CHANGING
t_table = gt_outtab ).
CATCH cx_salv_msg. "#EC NO_HANDLER
ENDTRY.
DATA: lr_functions TYPE REF TO cl_salv_functions_list.
lr_functions = gr_table->get_functions( ).
lr_functions->set_default( abap_true ).
*... set the columns technical
DATA: lr_columns TYPE REF TO cl_salv_columns_table,
lr_column TYPE REF TO cl_salv_column_table.
lr_columns = gr_table->get_columns( ).
lr_columns->set_optimize( abap_true ).
*... §4.7 set hyperlink column
DATA: lr_hyperlinks TYPE REF TO cl_salv_hyperlinks,
ls_hyperlink TYPE g_type_s_hyperlink.
DATA: lr_functional_settings TYPE REF TO cl_salv_functional_settings.
TRY.
lr_columns->set_hyperlink_entry_column( 'T_HYPERLINK' ).
CATCH cx_salv_data_error. "#EC NO_HANDLER
ENDTRY.
TRY.
lr_column ?= lr_columns->get_column( 'URL' ).
lr_column->set_cell_type( if_salv_c_cell_type=>link ).
lr_column->set_long_text( 'URL' ).
CATCH cx_salv_not_found. "#EC NO_HANDLER
ENDTRY.
lr_functional_settings = gr_table->get_functional_settings( ).
lr_hyperlinks = lr_functional_settings->get_hyperlinks( ).
LOOP AT gt_hyperlink INTO ls_hyperlink.
TRY.
lr_hyperlinks->add_hyperlink(
handle = ls_hyperlink-handle
hyperlink = ls_hyperlink-hyperlink ).
CATCH cx_salv_existing. "#EC NO_HANDLER
ENDTRY.
ENDLOOP.
DATA: lr_events TYPE REF TO cl_salv_events_table.
lr_events = gr_table->get_event( ).
CREATE OBJECT gr_events.
SET HANDLER gr_events->on_link_click FOR lr_events.
gr_table->display( ).
ENDFORM. " display -
1. Specific new images are uploaded but will not display in Firefox 8 on my Mac with OS 10.6.8. (Does appear in other browsers, e.g., Chrome and Opera, and appears on Firefox 8 for PC.) Also, other images on the page display.
2. I have cleared cache, cookies, etc., in Recent History, and restarted both application and computer.
3. I've tried creating GIF, JPG and PNG, but none show on the page in Firefox on my Mac. I can see the offending image in other browsers such as Chrome on the same computer, and on Firefox on PC. Offending pages are in both PHP and HTML: http://www.brookfieldcivic.org/advertisers.php and http://www.brookfieldcivic.org/advertising_freedom_montessori.html
Image links: http://www.brookfieldcivic.org/images/advertisers/freedom.png and http://www.brookfieldcivic.org/images/advertisers/Freedom_Montessori_bizcard.jpgYou can use these steps to check if images are blocked:
*Open the web page that has the images missing in a browser tab.
*Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
*Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
*Go to the <i>Media</i> tab of the "Tools > Page Info" window.
*Select the first image link and scroll down through the list with the Down arrow key.
*If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain. -
Using a devices camera and adding the image to the display list
Hi,
My students and I have not been able to make an AIR app that can take a picture using the devices camera and then add the image to the display list. We are able to open the devices camera and of course take a picture, but that's it.
We've been using these two tutorials/examples:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/CameraUI.ht ml
and
http://tv.adobe.com/watch/adc-presents/input-for-mobile-devices-camera/
I've uploaded our project: http://www.dayvid.com/professor/camera.zip
Can someone help us out?
Thanks!
Below is the main document class:
package {
import flash.desktop.NativeApplication;
import flash.display.Loader;
import flash.display.MovieClip;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.ErrorEvent;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.MediaEvent;
import flash.media.CameraUI;
import flash.media.MediaPromise;
import flash.media.MediaType;
import flash.events.MouseEvent;
public class Main extends MovieClip{
private var deviceCameraApp:CameraUI = new CameraUI();
private var imageLoader:Loader;
public function Main()
this.stage.align = StageAlign.TOP_LEFT;
this.stage.scaleMode = StageScaleMode.NO_SCALE;
camera_btn.addEventListener(MouseEvent.CLICK, cameraBtnClicked);
private function cameraBtnClicked(event:MouseEvent):void
if( CameraUI.isSupported )
result_txt.text = "Initializing camera...";
deviceCameraApp.addEventListener( MediaEvent.COMPLETE, imageCaptured );
deviceCameraApp.addEventListener( Event.CANCEL, captureCanceled );
deviceCameraApp.addEventListener( ErrorEvent.ERROR, cameraError );
deviceCameraApp.launch( MediaType.IMAGE );
else
result_txt.text = "Camera interface is not supported.";
private function imageCaptured( event:MediaEvent ):void
result_txt.text = "Media captured...";
var imagePromise:MediaPromise = event.data;
if( imagePromise.isAsync )
result_txt.text = "Asynchronous media promise.";
imageLoader = new Loader();
imageLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, asyncImageLoaded );
imageLoader.addEventListener( IOErrorEvent.IO_ERROR, cameraError );
imageLoader.loadFilePromise( imagePromise );
else
result_txt.text = "Synchronous media promise.";
imageLoader.loadFilePromise( imagePromise );
showMedia( imageLoader );
private function captureCanceled( event:Event ):void
result_txt.text = "Media capture canceled.";
NativeApplication.nativeApplication.exit();
private function asyncImageLoaded( event:Event ):void
result_txt.text = "Media loaded in memory.";
showMedia( imageLoader );
private function showMedia( loader:Loader ):void
this.addChild( loader );
private function cameraError( error:ErrorEvent ):void
result_txt.text = "Error:" + error.text;
NativeApplication.nativeApplication.exit();Hi,
Do I have to add the picture to the cameraroll in order to add it to the AIR apps display list?
Both examples from Adobe claim that their examples work. Do they not?
In the example, the event handler asyncImageLoaded is never called. The output text field shows - result_txt.text = "Asynchronous media promise."; So the Event.COMPLETE is being added. But I don't think it's being dispatched.
Any ideas? -
I have to "single-click" twice (not double click) to open an item in the Dock.
Can someone confirm if this is Expected Behavior?? (OS = Mavericks)
If you have Assigned an application in your Dock to a Desktop & Display in the application's Dock >> Options (ex: Assigned To: Desktop on Display 2):
Click once on the application icon in the Dock, the application's Menu will populate on the top of your screen, but not the application itself (yet), click the application icon a second time, the application will now show too.
Docked Applications that do not have an Assigned To: Desktop & Display in the Dock options, you only need to single click.
FYI:
For odd Dock behaviors otherwise try this:
You may have a corrupted Dock preferences file.
Open the Finder. From the Finder menu bar click Go > Go to Folder
Type or copy paste the following:
~/Library/Preferences/com.apple.dock.plist (plist = preference list file)
Click Go then move the com.apple.dock.plist file to the Trash, or move it to your Desktop.
Restart your Mac and see if the behavior is resolved. You will have re-configure your Dock settings.From where are you launching Mail? The only place, unless I've missed or forgotten something, you can launch an application with a single click is from the Dock. Is this what you're doing, or are you attempting to launch Mail from the Applications folder?
Regards. -
Version 4 Bug - Multiple Object Editors of Same Object on Single Click
Hi Jeff,
thanks for your reply. You have missed that rule because you don't use SQL Developer for development. But never mind, lets go through it...
1) Of course I have both options activated (all preferences were imported from previous version). The difference between previous version is that when you click on the SAME table multiple times - in the old version, it opened the table just once and in case you had another tab active, it swithed to the tab where the table was opened. So to have it clear, in the old version when you have table A and table B, both opened in separate tab and the focus was on table B, when you clicked on table A (in the tree) it activated tab with table A. It didn't create new tab with table A. Of course - why would I want to have multiple tabs opened with the same table??? In current version clicking on the same table multiple times, opens multiple tabs with the same table.
This is also the reason why it sometimes openes a table multiple times even when you click it just once. This you cannot simulate because you are probably connecting to some local DB when you have perfect connection. Activate the autopin function and connect to different DBs all over the world and you will see what I mean. Right now, I have opened a connection and got 3 tabs opened, just after a single click on a table.
2) Fetch size is again taken from previous version of SQL Developer and is set to 50. PgUp and PgDown are not working at all. I am talking about scrolling with a mouse wheel. In the old version it is working normally as expected. In this version if you scroll using a mouse wheel, the scroll speed is about 1 or even 0.5 lines per wheel round - so you can even not use a mouse wheel for scrolling! On all other places in this new release (connection tree, packages, ...) the scrolling is working normally, in the table it is unusable.
3) I don't say it is on every table and every click. I cannot tell you how often is it because I am not using the new version. I am quite sure this is dependent on the connection speed maybe connectin quality. The difference between previous version is that in the previous version, refresh always worked. This particular issue cannot be solved by testing and searching for some rule when it happens. You must check the code and see when you display it!
4) My screen resolution is 1920x1200, but that is only because I have an external monitor connected to my laptop. My laptop resolution is only 1366x768. Switch to this resolution and open the View menu.
New worksheet - yes, this is exactly what I mean. I have planty of connections, for sure over 100 - but this is irelevant. Whenever you do a menu which can grow, you need to do it scrollable!!!
I am not sure what you mean by Flyout menus, but I am scared only to hear about itScreen resolution, no scrolling on menus - that's a bug. Severity 2, a bad one, as you have noticed, and we'll try to make sure it's addressed for version 4.0.
The other issue isn't as straightforward as you insinuate. I know you don't care about the particulars or why you might see this issue, so I won't bore you. But, we are aware that this is still coming up more frequently that it should, and we're on a big bug hunt to eradicate the behavior completely. It's not a simple thing, so it will more likely be incremental improvements. That being said, we are seeing it MUCH less than in previous versions of the tool. -
3.1 Bug? - Images don't display properly after upgrade to 3.1 from 3.0
When pages are displayed after the upgrade, the image appears the first time the page is opened. Once a user goes to another page, then come back to the page with the image, the image is no longer displayed.
This happens when the browser is set to "Check for newer versions of stored pages". When it checks for the new version, the image is not displayed.
This looks like a Bug? Is someone working on a fix for this?
Thanks.
- ScottScott,
Thanks for this information. It is very helpful. May I put you through one last contortion, please?
I would like to see what information is being passed in the HTTP header in the request for one of these broken images. If you have Live HTTP Headers or Firebug for Firefox, or Fiddler for IE, this should hopefully be easy. You don't seem technically challenged in the least, but just for the record, here's what I did using Firefox:
1) Ran the Timesheets application
2) For the very first icon on the left "My Timesheets", I right-clicked my mouse and chose "Copy Image Location"
3) I opened up a new tab in Firefox and pasted the URL and then hit enter to retrieve the image
4) I turned on Live HTTP headers and then clicked Refresh in my browser.
I am most interested in the If-Modified-Since HTTP header. The full request on my system was:
GET /pls/apx11c/wwv_flow_file_mgr.get_file?p_security_group_id=191046216955701077&p_fname=eba_timesheets.png HTTP/1.1
Host: apexdev.us.oracle.com:7778
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,nl,it;q=0.9,en-gb;q=0.9,ja;q=0.8,de;q=0.8,zh-CN;q=0.7,zh-tw;q=0.7,en;q=0.6,af;q=0.6,fr;q=0.5,pt-br;q=0.5,ko;q=0.4,ca;q=0.4,de-ch;q=0.3,zh;q=0.3,bn;q=0.2,ja-JP;q=0.2,fr-ca;q=0.1,ru;q=0.1,ru-RU;q=0.0
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
If-Modified-Since: Wed, 20 Feb 2008 22:54:09 GMT
If-None-Match: "1951996202472197182454517155409"
Cache-Control: max-age=0Thanks in advance.
Joel
P.S. I nuked the Cookie line of the request, as it contained my e-mail address and I want to avoid the Web harvesters of e-mail addresses. -
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 -
How To Display an Image in a Display Image Page Item
i have a pageitem textbox called SearchBox , a Button called Search and a Display Image called Image
i to display and image upon inserting an ID into the searchbox. It work alright if i put a static ID in the BLOB Column returned by SQL statement in Display Image
Note the facialimage of datatype BLOB
Sample
===
select facialimage
from voter_v
where voterid= 34343434;
But when i do it with a bind variable like the pageItem SearchBox
it doesnt on the click of the Button
what can be the problem
Sample
===
select facialimage
from voter_v
where voterid= :P1_VOTERSEARCH;Hi,
can you please setup an example on apex.oracle.com and let me know the login credentials for the workspace. I think that will be the easiest to sort this out.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf
Maybe you are looking for
-
System crashes when i use any input field after installing Maverick
Hello all. I have a 2010 macbook air, and have just installed Maverick OS. Now every time i go to any input field to type in a web address or apple id, the system crashes and re-boots. Tried to alter keyboard properties nothing works. I presume i wil
-
Degeneration of bulit-in HP netbook screen protectors
I've been through about a dozen HP netbooks, and while I have found them very good I have come across a very troublesome development in many of the newer ones. At some point HP deceded to extend the bezel into a transparent screen protector. This is
-
Webdav and xdb, xml-files are automatically deleted (or hidden)
Hi All. In our project we have mounted webdav from a Linux box against an IBM database server running AIX and Oracle 11g. The file system on the Linux box is mounted to the xdb-schema on the dbserver. When placing xml-files into the database through
-
Problems printing to PDF from PPT 2K7
Hi All, I am wondering if someone here can help me. I have a user that is having an issue printing to Adobe PDF from Powerpoint 2007. He can save the file as a PDF but wants to print it so he can get a better resolution. Office 2007 is installed on a
-
Wireless security best configuration
I would like to know if the usage of "LEAP + MAC address authnetification + broadcast key rotation or TKIP" is sufficient to provide the minimum of security in wireless areas. If yes the key rotation must be managed by which components : Radius serve