File name selection
In filechooser, is there a way that I can "scroll" the displayed list of files based upon each keystroke entered into the dialog's "File Name"?
Is it because you rename each image individually rather than in a batch ? I rename all of my images, but I nearly always batch process the entire shoot. That is very easy to do as you probably already know. I only occasionally have to rename a single image with a special name. I click once on the file name and the entire name is highlighted as you mention. Then I double click and only the "meat" of the name without the extension is highlighted. I didn't have to line the cursor up to the period to get it to do that. This is on a Mac. I am not sure what would happen on a PC. It is pretty fast and simple, although I guess the double click would be a pain if I were renaming hundreds of images. Is there a reason why you are not batch renaming them? In the old days, photographers would often describe the image in the name ("Oldwhitehouse.jpg" for example). Now with LR and keywords, that is not really necessary anymore. Many photographers rename on import with the date/time and sequence number. All that is necessary is that they have a unique name and then use LR to find them later.
my 2¢ anyway...
John
John G. Blair Studio
Occidental, California
Similar Messages
-
Hi
we were using FM "WS_FILENAME_GET" to get the name of file but now my requirement has changed now I can select more than one file at once wit the help of ctrl key . this FM is not able to do so.
Can any one help me in doing this.
Thanks in advance
Edited by: Suchender Dagar on Dec 22, 2010 11:29 AMHi,
Please declare filepath variable as :-
select-OPTIONS p_cucrin FOR dbtable-string NO INTERVALS..
Then use below code :-
CONSTANTS :c_txt(4) TYPE c VALUE '.txt'.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_cucrin-low.
DATA: is_file_tab TYPE filetable.
DATA: w_default_extension TYPE string VALUE c_txt.
DATA: is_file_line TYPE file_table.
DATA: w_rc TYPE i.
CLEAR : is_file_tab,
is_file_line.
CLEAR: w_rc,
w_default_extension.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
default_extension = w_default_extension
multiselection = abap_false
CHANGING
file_table = is_file_tab
rc = w_rc
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
IF sy-subrc EQ 0.
*w_rc will hold number of filepaths probably
Loop at is_file_tab INTO is_file_line . " This table will hold the filepaths row by row.
MOVE is_file_line-filename TO p_cucrin. " move this as per your requirement to diff fields
ENDLOOP
ENDIF.
Using above code will provide you filepath length as 1024 characters with F4 help option. also multiple values can be provided to filepath selection screen field. Pass the file names to GUI_UPLOAD FM.
Thanks,
Rupali
Edited by: Rupali Punekar on Dec 22, 2010 11:55 AM -
File name selection without selecting the extension
It would be more user friendly if selecting a file name in the metadata field "File Name" would only select the name and not the name + extension. You mostly don't change the extension but you do change the file name. Now if I want to rename a file I have to place the cursor between the end of the file name and the dot of the extension (an extra click). If you select a filename in the finder (Os X) only the name is selected. I would like to see Lightroom use the same logic. Thanks!
Is it because you rename each image individually rather than in a batch ? I rename all of my images, but I nearly always batch process the entire shoot. That is very easy to do as you probably already know. I only occasionally have to rename a single image with a special name. I click once on the file name and the entire name is highlighted as you mention. Then I double click and only the "meat" of the name without the extension is highlighted. I didn't have to line the cursor up to the period to get it to do that. This is on a Mac. I am not sure what would happen on a PC. It is pretty fast and simple, although I guess the double click would be a pain if I were renaming hundreds of images. Is there a reason why you are not batch renaming them? In the old days, photographers would often describe the image in the name ("Oldwhitehouse.jpg" for example). Now with LR and keywords, that is not really necessary anymore. Many photographers rename on import with the date/time and sequence number. All that is necessary is that they have a unique name and then use LR to find them later.
my 2¢ anyway...
John
John G. Blair Studio
Occidental, California -
Hi Friends,
i am using METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
i want to know the file name selected from the path.
example : c:\folder\file.txt.
here i want to know which file i have selected. if it is a small path then we can use SPLIT command but if the path selected is long with special chareters then?
urget requirement.
regards
Kumar M.u can use this function...
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_PATH = 'C:\'
MASK = '*.xls'
MODE = 'O'
TITLE = SY-TITLE
IMPORTING
FILENAME = FILENAME
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
have a nice day... -
Elements 8 - How to view images by scrolling thru folder of file names?
After taking a large batch of pictures, I want to place them in a folder and rapidly view the full images one at a time to select which to keep and which to discard. IN PE-8 how can I display two panes - one pane containing the image file names contained in a folder and the other pane which displays the image of the file name selected? Using the arrow keys, I want to move through image file names one at a time while displaying the image associated with the file name in the other pane.
One method of accepting or rejecting is to use star ratings.
Select the first image and press F12 to view full screen. Press the 5 key to add five stars.
Press the right keyboard arrow to move to the next image and star or move on.
When you have finished the batch you can filter by the star rating. -
I wish to organize my catalog by file name not by the metadata from the photo. I am scanning all my slides dating back from 1977 to electronic form and do not wish my 1977 photos to appear as 2014 photos. I use a file name of yyyy/mm/dd followed by shot number to organise my photos but I cannot get the organizer to do this!! I do NOT wish to create albums for my library (I have already done that in their file organisation to begin with!) Any suggestions would be much appreciated. Peter
Peter
Thanks for the Premiere Elements and computer information.
As for Sort By: including
Name
Newest
Oldest
Import Batch
I find that only in my version 12/12.1 Windows.
In version 11 Windows, there is only
Sort By:
Newest
Oldest
Batch
I have seen no Sort By: in version 10,
but I wonder, with the way you have named your files, would it not work for you
a. View Menu/with Show Files Names selected
and
b. Setting for Newest or Oldest?
ATR
Add On...could you point me to where you are reading about
"All the helps and FAQ's mention something about file/manage"? -
How to allow user to select pdf file on local machine and populate field with file name only
Folks,
I have a project requirement that I am stumped on. I am admittedly a novice, so forgive questions that may seem obvious.
My requirement is a form running on a client system where the user can click a button and select a PDF file name from a PDF on their local machine and then populate a form field with that file path & filename. The file names vary between all machines, so there is no static list. Note that the PDF is not embedded, nothing is executed, I simply need the file name.
There are several of these on a form (20+), so manual name entry is too error prone. I would like to use a 'browse' type dialog, but can not figure out how to implement it.
I've looked at app.browseForFile, but the users can not install a javascript file in their adobe folder or any other files; the functionality has to be integral with the original PDF.
Functionally, this is no different from the image object file browse, except that I need a PDF instead of an image file, so there doesn't seem like there should be a security issue that is any different from those surrounding the image object.
I've been stumped on this for the entire week, and I have a deadline rapidly approaching, so any examples or suggestions (please remember I'm a novice) would be greatly appreciated!Thanks for the reply Paul - do you have any sample code of how to attach the PDF? Or how the user can select a PDF to open? I might be able to attach it, retrieve the file name, and then un-attach it.
Alternatively, do you know how to retrieve the file name from the imagePath object? It will let you select PDF files, but I can't find info on how to retrieve the file name. It should be the way you would retrieve the file name for an image.
As a novice in this, thanks for your help and patience! -
How to set selected file in FileChooser showSaveDialog to default file name
Hi,
How do I set selected file in JavaFX 2.0 FileChooser showSaveDialog, so I can prompt the user with a suggested default file name?
I am converting a Java Swing application I wrote a few years ago to JavaFX 2.0.
In the Swing application, I use setSelectedFile() as follows:
JFileChooser jFileChooser = new JFileChooser();
jFileChooser.setSelectedFile(new File(backupfile));
jFileChooser.setCurrentDirectory(new File(outputDirectory));
FileFilter filter = new FileNameExtensionFilter("Comma Delimited (*.csv)", "csv");
jFileChooser.addChoosableFileFilter(filter);
jFileChooser.setFileFilter(filter);
filter = new FileNameExtensionFilter("XML Document (*.xml)", "xml");
jFileChooser.addChoosableFileFilter(filter);
jFileChooser.setAcceptAllFileFilterUsed(false);
jFileChooser.setDialogTitle("Export File");
int returnVal = jFileChooser.showDialog(jFrame, "Export");
This would show a file chooser with the file name text field pre-populated with a default backup file name.
I can't find an equivalent in JavaFX.
Also, in the Swing application, I was able to determine which extension filter was selected at run time using getFileFilter().getDescription() as follows:
String extension = jFileChooser.getFileFilter().getDescription();
if (extension.equals("XML Document (*.xml)")) { ...
I can't find an equivalent in JavaFX.
Thanks,
BarryYou can use the open sequence file method on the application manager (then you only need to wire the file path)
Rodéric L
Certified LabVIEW Architect -
File name should change by selecting the radio buttons
Hi all,
PARAMETERs: p_file LIKE rlgrap-filename.
PARAMETERS: p_app RADIOBUTTON GROUP rg DEFAULT 'X',
p_pre RADIOBUTTON GROUP rg.
this is to download the ITAB data to presentation and application servers depending upon the radio button selected.
if i select p_pre , then default download path is : 'C:/ download.txt'.
if i select P_app , default download path is : '\usr\sap\EBG\SYS\profile\DOWN.TXT'.
how the file name should change by selecting the radio buttons ?
Thanks
KRHi,
DATA: c_x VALUE 'X'.
selection-screen begin of block input with frame title text-000.
parameters :desktop radiobutton group rg_f user-command rg_f,
in_file type ibipparms-path modif id ps DEFAULT 'C:/ download.txt',
menu radiobutton group rg_f ,
sys_file type ibipparms-path modif id as default '\usr\sap\EBG\SYS\profile\DOWN.TXT' .
selection-screen end of block input.
at selection-screen output.
if desktop is initial and menu is initial.
desktop = c_x.
endif.
perform f_toggle_finputs.
form f_toggle_finputs.
loop at screen.
if screen-group1 = 'PS'.
if desktop = c_x.
screen-input = 1.
* sys_file = c_server_path.
else.
screen-input = 0.
endif.
endif.
if screen-group1 = 'AS'.
if menu = c_x.
screen-input = 1.
* clear: in_file.
else.
screen-input = 0.
endif.
endif.
modify screen.
endloop.
endform. "f_toggle_finputs
Hope this helps u.
Thanks. -
Selection of Folder/File name using the same Fun.Module
Please let me know if there is a function module which can fetch folder name/File name from the directory path when f4 option of selection screen field is selected. Currently I am able to get the file name using FM F4_DXFILENAME_4_DYNP but the requirment is like I have to select either folder name or the file name depending on user selection.
Note: Please let me know if there is a single Function module which can get folder name or the file name based on the user selection.i.e, if the user want to select a folder he can select or he can select files in the folder for processingHi sridhar
try this:
PARAMETER : TXT_FILE(100).
AT SELECTION-SCREEN ON VALUE-REQUEST FOR TXT_FILE.
PERFORM GETFILE.
start-of-selection.
PERFORM GETDATA.
FORM GETDATA.
DATA : FILENAME TYPE STRING.
FILENAME = TXT_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = FILENAME
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = IT_UPLOAD
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
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.
FORM GETFILE.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = ' '
DEF_PATH = '.'
MASK = ' '
MODE = ' '
TITLE = ' '
IMPORTING
FILENAME = TXT_FILE
RC =
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5
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.
<b>This is a part of my BDC program its working for me u try n reply if it works for u.</b>
regards
vijay -
LabVIEW 2011 file selection fails to fill in the file name into the "File name:" field
In LV2011 I am selecting a text file while my code is running. The "file name:" field is not populated with the selected file name.
This is inconvenient, especially if I want to modify a file name by one or some few characters.
How do i make LV 2011 behave like the previous versions?
Scientia est potentia!
Attachments:
File name is not filled in.PNG 72 KBThank you fot your reply it causd me to find the problem.
I figured it out while I was trying to extract the applicable section of my code to send it to you.
I had an asterisc wired to the "default name" input of the "File dialog" VI.
Now I am not wiring anything to the "default name" input of the "File dialog" VI and it works just fine.
I am sorry for your lost time.
Scientia est potentia!
Attachments:
Corrected code.PNG 10 KB -
Selecting a list of files and creating a list of only the file names?
Hopefully this is an easy question, one that I can't seem to figure out. I have a folder of photos and I would like to select all their file names and create a text list of just the file names. Every time I try I select the photos themselves and when pasted into my text document all of a sudden I have a lot of images. Any advice on how to do this? Thanks Jeff
You're part way there. Do this in TextEdit. Open a new document, CMDSHIFTT to put it into plain text format, paste in the contents of your photo folder, and be surprised when only the names get pasted and not the images. If you want them in alphabetical order, change the photo folders view to list and click on the name column before copying.
-
How to get the file name dialog on the selection screen
Hi All
I have a selection screen in which there is a parameter where I need to enter file name. Instead of typing filename in the parameter I would like to give a path from presentation server ( I am downloading Data to presentation server ).
How to achive this functionality in case of a parameter on the selection screen. I need to have File open Dialog box like Windows here and then it should show the filename and it's path in this parameter after selectiong from the dialog box.
AmolHi..,
Use the function module <b>F4_FILENAME</b> or <b>WS_FILENAME_GET</b> in the event
<b>AT SELECTION-SCREEN ON VALUE REQUEST FOR P_FILE.</b>
Parameters p_file type rlgrap-filename.
AT SELECTION-SCREEN ON VALUE REQUEST EVENT
at selection-screen on value-request for p_file.
perform value_request.
*& Form value_request
This subroutine proposes the possible input values *
There are no interface parameters to be passed to this subroutine. *
form value_request.
call function 'WS_FILENAME_GET'
importing
filename = p_file
exceptions
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
others = 5.
check sy-subrc eq 0.
endform.
Reward all helpful answers !!
sai ramesh -
Select flat file name using routine
Hi experts!
I am trying to write a routine in the infopackage for flat file extraction, which will select the flat file automatically according to the date. I need to load always the file of the previous week. Please help me correcting the code. The file name is: DatAuftragsbestandSeiten_W(number of week).fix
For example: DatAuftragsbestandSeiten_W16.fix
Thank you for your help!
program filename_routine.
Global code
$$ begin of global - insert your declaration only below this line -
Enter here global variables and type declarations
as well as additional form routines, which you may call from the
main routine COMPUTE_FLAT_FILE_FILENAME below
*TABLES: ...
DATA: ...
DATA: Str1 value '/strans/appl/anzeigen_bw/DatAuftragsbestandSeiten_W',
Str3 value '.fix'.
DATA: iweek(2).
call function 'WEEKNR_GET'
EXPORTING
DATE = sy-datum
IMPORTING
WEEK+4(2) = iweek.
iweek = iweek - 1.
$$ end of global - insert your declaration only before this line -
form compute_flat_file_filename
using p_infopackage type rslogdpid
p_datasource type rsoltpsourcer
p_logsys type rsslogsys
changing p_filename type RSFILENM
p_subrc like sy-subrc.
$$ begin of routine - insert your code only below this line -
This routine will be called by the adapter,
when the infopackage is executed.
p_filename =
*....Concatenate str1 iweek str3 into p_filename.
p_subrc = 0.
$$ end of routine - insert your code only before this line -
endform.hi Doris,
try
in global routine
data : l_week type SCAL-WEEK,
i_week(2).
in form compute_...
data : Str1 type string,
Str3 type string.
str1 = '/strans/appl/anzeigen_bw/DatAuftragsbestandSeiten_W'.
str3 = '.fix'.
call function 'DATE_GET_WEEK'
exporting
date = sy-datum
importing
week = l_week.
i_week = l_week+4(2).
i_week = i_week - 1.
if strlen( i_week ) = 1.
concatenate str1 '0' i_week str3 into p_filename.
else.
concatenate str1 i_week str3 into p_filename.
endif.
hope this helps. -
Tabular form - field to open explorer select file name to same in field
Hi
I am using apex 4.1 and would like some help with a tabular form I have created.
It is based on a table which has two fields
description
path_of_source_file
in the form I would like to be able to open windows explored to select a file name and save the path in the path_of_source_file field
Does anyone know how to do that
Many thanks
Jayne>
Start by editing your forum profile with a real handle instead of "user1647153".
I am using apex 4.1 and would like some help with a tabular form I have created.
It is based on a table which has two fields
description
path_of_source_file
in the form I would like to be able to open windows explored to select a file name and save the path in the path_of_source_file fieldYou need to seriously rethink what you're trying do. Not only does APEX not provide support for file browse items in tabular forms (which are horrible anyway; even more so with an ugly file picker in every row), but file path information is not available in standard browser configurations (or at all in most browsers). As has been noted in many previous threads on this topic:
>
For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8+ and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\"—and this monstrosity has sadly had to be enshrined in the HTML5 spec...
Changing IE's security config setting "Include local directory path when uploading files" enables the path to be exposed in IE, but unless you're working in an intranet environment where: IE is the only browser used; it's possible to make remote changes to this setting on every desktop; and this won't break/expose anything else, then trying to achieve this is pointless.
>
For more information see:
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx
http://developers.whatwg.org/number-state.html#file-upload-state
{thread:id=2385659}
Go right back to the start and explain what this is all about. We need to know what the ultimate goal is in order to determine what use—if any—can be made of APEX here.
Maybe you are looking for
-
Hey everyone! I am a noob here, but have a rather annoying problem... I just installed an MSI 865pe Neo2 mobo(ms-6728 )and am having huge problems with video. For example; missing blocks and triangles of video and "tears" in the video. I am using a R
-
Wireless not working , please help .
well ive been having this problem for a while with my linksysE2000 for a while . it wont let my ps3 connected wireless and when it does it stays for a while then it disconnnect after 1 hours . sometimes my wife is strong and stay for a whole day and
-
[SOLVED] Removable devices do not show up anymore in Nautilus' sidebar
Hello all, I don't know when it started occuring, but Nautilus has stopped automountinh automatically showing my removable media in the sidebar. I can manually mount my media with udisksctl perfectly fine, so the error is somewhere in Nautilus and no
-
Scheduling a Report as Mail in 10g / 9i
Hi, I am able to successfully schedule a report in 10g R2 for options file outputs. But in case of a Mail i am not able to do so. When ever i do that i am not able to get mails in regular intervals because of some authentication. On seeing the error
-
150 Apple-designed themes?
Am I missing something in my copy of iDVD? The statement below from the Apple web site says there are "150 Apple-designed themes" in iDVD. I can only see a total of 50, maybe a few more if you count double for wide screen and non widescreen. "The the