Exporting selection or range only
How can I only export the range (cycle region) in my multitrack Soundtrack Pro project? The only option under the File menu is Export, and then the only options are Master Mix, Selected Tracks/Busses/Submixes, All Tracks/Busses/Submixes, All Tracks, All Busses, and All Submixes. Nowhere does it seem to give the option to select only the range.
I thought it might do it automatically if a cycle region was selected (in and out points), but it still exports the entire mix...whatever's on the timeline.
Hi
I've don't have enough experience to say for sure but if you can't export a selection from a project directly perhaps you could create a compound clip of your selection and export that, even if you have to put it in a new project.
However compressor WILL export a selection for you. Once you have sent to compressor, open the Preview window (in compressor) from there you are able to set in and out points
hth
Adam
Similar Messages
-
Add a BUTTON that ONLY prints a selected page range
Hello,
I have a 100+ page PDF which has 32 or so 'sections' which are accessible by bookmarks. I want to add a button that allows the reader to print ONLY the section they are in, i.e. a pre-selected page range that I embed in the button.
Is this possible?
If not, is there any other way to do this? The document was originally created in Word and is broken up by Sections.
Thanks,
Chris.It's possible using a script, but the user will always be able to edit that pre-defined range, if they wanted to.
The only option where they can't edit it is by using a script that silently prints the section, but that requires installing a script on the local machine of each user that is going to use the file. -
Devloped an ALV report for daily cash receipts for selected date range
hi,
how to devlop an ALV report for daily cash receipts for selected date range.for this report what are the tables and fields we have to use.what is the selectionscreen&what is logic.give me sample report.Hi,
You can develop simple reports using Report Painter.
You may be also interested in:
Check report SAPMF05A for credit memo
See the following Std reports on Payment Advices execute the Tcodes:
S_ALR_87009888
S_ALR_87009889
S_ALR_87009890
S_ALR_87009891
S_ALR_87009892
S_ALR_87009893
S_ALR_87009978
S_ALR_87009979
S_ALR_87009980
S_ALR_87009981
S_ALR_87009982
S_ALR_87009983
S_ALR_87010056
S_ALR_87010057
S_ALR_87010058
S_ALR_87010059
S_ALR_87010060
S_ALR_87010061
S_ALR_87010066
S_ALR_87010067
S_ALR_87012106
S_ALR_87012107
S_ALR_87012108
S_ALR_87012109
S_ALR_87012110
S_ALR_87012111
S_ALR_87012116
S_ALR_87012117
S_ALR_87012200
S_ALR_87012201
S_ALR_87012202
S_ALR_870122
S_ALR_87012204
S_ALR_87012205
S_ALR_87012350
S_ALR_87012351
S_ALR_87012352
S_ALR_87012353
S_ALR_87012354
S_ALR_87012355
sample ALV report:
tables:
marav. "Table MARA and table MAKT
Data to be displayed in ALV
Using the following syntax, REUSE_ALV_FIELDCATALOG_MERGE can auto-
matically determine the fieldstructure from this source program
Data:
begin of imat occurs 100,
matnr like marav-matnr, "Material number
maktx like marav-maktx, "Material short text
matkl like marav-matkl, "Material group (so you can test to make
" intermediate sums)
ntgew like marav-ntgew, "Net weight, numeric field (so you can test to
"make sums)
gewei like marav-gewei, "weight unit (just to be complete)
end of imat.
Other data needed
field to store report name
data i_repid like sy-repid.
field to check table length
data i_lines like sy-tabix.
Data for ALV display
TYPE-POOLS: SLIS.
data int_fcat type SLIS_T_FIELDCAT_ALV.
select-options:
s_matnr for marav-matnr matchcode object MAT1.
start-of-selection.
read data into table imat
select * from marav
into corresponding fields of table imat
where
matnr in s_matnr.
end-of-selection.
Now, we start with ALV
To use ALV, we need a DDIC-structure or a thing called Fieldcatalogue.
The fieldcatalouge can be generated by FUNCTION
'REUSE_ALV_FIELDCATALOG_MERGE' from an internal table from any
report source, including this report.
The only problem one might have is that the report and table names
need to be in capital letters. (I had it )
Store report name
i_repid = sy-repid.
Create Fieldcatalogue from internal table
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = sy-repid
I_INTERNAL_TABNAME = 'IMAT' "capital letters!
I_INCLNAME = sy-repid
CHANGING
CT_FIELDCAT = int_fcat
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = i_repid
I_STRUCTURE_NAME = 'marav'
I_DEFAULT = 'X'
I_SAVE = 'A'
TABLES
T_OUTTAB = imat.
IF SY-SUBRC <> 0.
WRITE: 'SY-SUBRC: ', SY-SUBRC .
ENDIF.
Hope this will help.
Regards,
Naveen. -
Exporting selected contacts from Outlook 2011 for Mac
I've wanted to easily export a set of selected contacts from Outlook in Microsoft Office for Mac 2011. I've been through many threads about synching to Address Book and then exporting, but I've found a host of troubles, including duplicate copies of contacts being created.
So, I finally broke down and wrote an AppleScript script to export all of the currently selected contacts from Outlook to a file in either vcf (vcard) or csv (comma separated value) format. The best use of this script is to:
-- Install this as a script in Microsoft Outlook by saving the script below to Documents>Microsoft User Data>Outlook Script Menu Items
-- Change to your Contacts in Outlook. Use the Outlook search bar to find the contacts you want to export. You might search by name, category, company, or anything else that identifies the contacts you want to export. Or, you might just leave the view showing all contacts.
-- Select the contacts you want to export
-- Launch the script
The script will have you select between vcard and csv and select a destination file. This hasn't been optimized for speed, so if you're exporting 100's or 1,000's of contacts, be patient. And there isn't a progress bar at present, so you have to wait. It will display an alert when it's complete.
Sorry not to have a download location for you. You'll just have to copy the script text :-). Keep in mind there's been some but limited testing. Read the comments for details. And enjoy.
-- jsc
-- Export Outlook Contacts
-- (c) 2012 J. Scott Carr. The script is made available for free use, with no
-- warranty, under the Creative Commons license agreement.
-- This script has only been tested on Mac OS X 10.6.8 with Micrsoft Outlook for
-- Mac 2011 version 14.1.4.
property byCategory : "By category"
property byPattern : "Names matching pattern"
property vcardFormat : "VCard"
property csvFormat : "CSV"
-- main
set contactsToExport to {}
-- Get the contact selection
set contactsToExport to get_contacts_to_export()
if (count of contactsToExport) is 0 then
display alert "Please select contacts to export and rerun script" as warning
return
end if
-- Shall we export to vcard or CSV?
set theFormat to vcard_or_csv()
if theFormat is "" then
display alert "Error: Must select VCard or CSV format" as warning
return
end if
-- Get and open the output file
set oFile to open_output_file(theFormat)
if (oFile is equal to -128) then
display alert "Canceled"
return
else if (oFile < 0) then
display alert "File open failed (" & oFile & ")" as warning
return
end if
-- Export the contacts
display dialog "About to export " & (count of contactsToExport) & " contacts in " & theFormat & " format. Proceed?"
if button returned of result is not "OK" then
try
close access oFile
end try
return
end if
if theFormat is vcardFormat then
export_to_vcard(contactsToExport, oFile)
else if theFormat is csvFormat then
export_to_csv(contactsToExport, oFile)
else
display alert "Invalid format" as warning
end if
close access oFile
display alert "Complete"
return
-- get_contacts_to_export()
-- We're going to export the Contacts currently selected in Outlook.
-- Check that the current selection is Contacts and not some other Outlook
-- object. Snag the selected Contacts and return them as a list.
-- A side note. When I started this, I built options to enter a matching
-- name string or select a category. And then it hit me that those features
-- are much more robust in Outlook, and it would be easy to just use the
-- current selection.
-- There is some strange behavior that Outlook needs to have recently been
-- the front, active window.
on get_contacts_to_export()
set selectedContacts to {}
tell application "Microsoft Outlook"
set theSelection to selection
if class of theSelection is list then
if class of the first item of theSelection is contact then
copy theSelection to selectedContacts
end if
else
if class of theSelection is contact then
copy theSelection to selectedContacts
end if
end if
return selectedContacts
end tell
end get_contacts_to_export
-- vcard_or_csv()
-- Get the format to use when exporting contacts
on vcard_or_csv()
choose from list {vcardFormat, csvFormat} with prompt "Select export file format:"
if result is false then
return ""
else
return first item of result
end if
end vcard_or_csv
-- open_output_file()
-- Open the destination file for the export, returning the file descriptor or the error number
-- if the operation fails
on open_output_file(exportType)
-- Get the filename, letting "choose file name" deal with existing files.
set theDate to current date
set theTime to time of theDate
if exportType is csvFormat then
set fileName to "contacts.csv"
else
set fileName to "contacts.vcf"
end if
try
set outputFile to choose file name with prompt "Select export destination file" default name fileName
on error errText number errNum
return errNum
end try
-- Open the file
try
-- Open the file as writable and overwrite contents
set oFile to open for access outputFile with write permission
set eof oFile to 0
on error errText number errNum
display alert "Error opening file: " & errNum & return & errText as warning
try
close access oFile
end try
return errNum
end try
return oFile
end open_output_file
-- export_to_vcard()
-- Export each of theContacts to the open file outFile as a set of vcards. Note that the
-- vcard data is from the "vcard data" property of the theContacts. This routine
-- doesn't attempt to reformat an Outlook vcard, nor limit the fields included
-- in the vcard.
on export_to_vcard(theContacts, outFile)
set vcards to {}
tell application "Microsoft Outlook"
repeat with aContact in theContacts
copy vcard data of aContact to the end of vcards
end repeat
end tell
repeat with aCard in vcards
write (aCard & linefeed) to outFile
end repeat
end export_to_vcard
-- export_to_csv()
-- Export each of theContacts to the open file outFile in csv format
on export_to_csv(theContacts, outFile)
set csvFields to {}
-- Get the fields of the contact to export
set csvFields to init_csv()
-- Write the header row
set nFields to count csvFields
write first item of csvFields to outFile
repeat with i from 2 to nFields
write "," & item i of csvFields to outFile
end repeat
write linefeed to outFile
-- Export the fields of the contacts in CSV format, one per line
repeat with aContact in theContacts
write build_csv_line(csvFields, aContact) & linefeed to outFile
end repeat
end export_to_csv
-- init_csv(): defines the fields to export when csv format is selected
-- Each of the fields in the list must match a name used in the routine build_csv_line().
-- The idea is to later create a a pick list so the user can select which contact properties
-- to export.
on init_csv()
set csvFields to {"first name", "last name", "middle name", "title", "nickname", "suffix", "phone", "home phone number", "other home phone number", "home fax number", "business phone number", "other business phone number", "busines fax number", "pager number", "mobile number", "home email", "work email", "other email", "company", "job title", "department", "assistant phone number", "home street address", "home city", "home state", "home country", "home zip", "business street address", "business city", "business state", "business country", "business zip", "home web page", "business web page", "note"}
end init_csv
-- build_csv_line(): format one line for the csv file
-- Parameter csvFields determins which fields to include in the export.
-- Unfortunately I've not figured out how to use perl-style generation of
-- indirect references. If I could, this would have been much more elegant
-- by simply using the field name to refer to a Contact properly.
-- Note that email address are a special case as they're a list of objects in
-- Outlook. So these are handled specially in the export function and can only
-- be selected by the column names "home email", "work email", and "other email".
-- Outlook allows a contact to have more than one of each type of email address
-- but not all contact managers are the same. This script takes the first of
-- each type. So if a contact has more than one "home" email address, you will
-- only be able to export the first to a csv file. Suggest you clean up your
-- addresses in Outlook to adapt. The alternative is to support multiple
-- columns in the csv like "other email 1" and "other email 2", but that's not
-- supported in this version.
-- Another note. In this version, any embedded "return" or "linefeed" characters
-- found in a property of a contact are converted to a space. That means that
-- notes, in particular, will be reformated. That said, this gets arond a problem
-- with embedded carriage returns in address fields that throw off importing
-- the csv file.
-- Also note that at this time IM addresses aren't supported, but it's an easy add
-- following the same logic as email addresses.
on build_csv_line(csvFields, theContact)
set aField to ""
set csvLine to ""
set homeEmail to ""
set workEmail to ""
set otherEmail to ""
tell application "Microsoft Outlook"
set props to get properties of theContact
-- Extract email addresses from address list of contact
set emailAddresses to email addresses of props
repeat with anAddress in emailAddresses
if type of anAddress is home then
set homeEmail to address of anAddress
else if type of anAddress is work then
set workEmail to address of anAddress
else if type of anAddress is other then
set otherEmail to address of anAddress
end if
end repeat
-- Export each desired fields of the contact
repeat with aFieldItem in csvFields
set aField to aFieldItem as text
set aValue to ""
if aField is "first name" then
set aValue to get first name of props
else if aField is "last name" then
set aValue to last name of props
else if aField is "middle name" then
set aValue to middle name of props
else if aField is "display name" then
set aValue to display name of props
else if aField is "title" then
set aValue to title of props
else if aField is "nickname" then
set aValue to nickname of props
else if aField is "suffix" then
set aValue to suffix of props
else if aField is "phone" then
set aValue to phone of props
else if aField is "home phone number" then
set aValue to home phone number of props
else if aField is "other home phone number" then
set aValue to other home phone number of props
else if aField is "home fax number" then
set aValue to home fax number of props
else if aField is "business phone number" then
set aValue to business phone number of props
else if aField is "other bsiness phone number" then
set aValue to other business phone number of props
else if aField is "bsuiness fax number" then
set aValue to business fax number of props
else if aField is "pager number" then
set aValue to pager number of props
else if aField is "mobile number" then
set aValue to mobile number of props
else if aField is "home email" then
set aValue to homeEmail
else if aField is "work email" then
set aValue to workEmail
else if aField is "other email" then
set aValue to otherEmail
else if aField is "office" then
set aValue to office of props
else if aField is "company" then
set aValue to company of props
else if aField is "job title" then
set aValue to job title of props
else if aField is "department" then
set aValue to department of props
else if aField is "assistant phone number" then
set aValue to assistant phone number of props
else if aField is "age" then
set aValue to age of props
else if aField is "anniversary" then
set aValue to anniversary of props
else if aField is "astrololgy sign" then
set aValue to astrology sign of props
else if aField is "birthday" then
set aValue to birthday of props
else if aField is "blood type" then
set aValue to blood type of props
else if aField is "desription" then
set aValue to description of props
else if aField is "home street address" then
set aValue to home street address of props
else if aField is "home city" then
set aValue to home city of props
else if aField is "home state" then
set aValue to home state of props
else if aField is "home country" then
set aValue to home country of props
else if aField is "home zip" then
set aValue to home zip of props
else if aField is "home web page" then
set aValue to home web page of props
else if aField is "business web page" then
set aValue to business web page of props
else if aField is "spouse" then
set aValue to spouse of props
else if aField is "interests" then
set aValue to interests of props
else if aField is "custom field one" then
set aValue to custom field one of props
else if aField is "custom field two" then
set aValue to custom field two of props
else if aField is "custom field three" then
set aValue to custom field three of props
else if aField is "custom field four" then
set aValue to custom field four of props
else if aField is "custom field five" then
set aValue to custom field five of props
else if aField is "custom field six" then
set aValue to custom field six of props
else if aField is "custom field seven" then
set aValue to custom field seven of props
else if aField is "custom field eight" then
set aValue to custom field eight of props
else if aField is "custom phone 1" then
set aValue to custom phone 1 of props
else if aField is "custom phone 2" then
set aValue to custom phone 2 of props
else if aField is "custom phone 3" then
set aValue to custom phone 3 of props
else if aField is "custom phone 4" then
set aValue to custom phone 4 of props
else if aField is "custom date field one" then
set aValue to custom date field one of props
else if aField is "custom date field two" then
set aValue to custom date field two of props
else if aField is "note" then
set aValue to plain text note of props
end if
if aValue is not false then
if length of csvLine > 0 then
set csvLine to csvLine & ","
end if
if (aValue as text) is not "missing value" then
set csvLine to csvLine & "\"" & aValue & "\""
end if
end if
end repeat
end tell
-- Change all embeded "new lines" to spaces. Does mess with the formatting
-- of notes on contacts, but it makes it cleans the file for more reliable
-- importing. This could be changed to an option later.
set csvLine to replace_text(csvLine, return, " ")
set csvLine to replace_text(csvLine, linefeed, " ")
return csvLine
end build_csv_line
-- replace_text()
-- Replace all occurances of searchString with replaceString in sourceStr
on replace_text(sourceStr, searchString, replaceString)
set searchStr to (searchString as text)
set replaceStr to (replaceString as text)
set sourceStr to (sourceStr as text)
set saveDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to (searchString)
set theList to (every text item of sourceStr)
set AppleScript's text item delimiters to (replaceString)
set theString to theList as string
set AppleScript's text item delimiters to saveDelims
return theString
end replace_textThank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?
-
Select- Color Range- Results in Blue Screen (PC) (driver out of date)
I've been using the CS6 beta about two days. While experimenting with color range I experienced two consecutive blue screen crashes. The first time it happened,I was working with the color range selector and was replacing the selected areas with another color using the paint bucket. About the third time I attempted this, my PC blue screened. The second time, I opened a photo, went to Select>Color Range and got an immediate blue screen crash.
I then went back to CS5 and I've been playing with the same scenario with no apparent problems.
My PC is a store built computer. It consists of an MSI 990-FXA GD80 motherboard, an AMD Phenom 1100t CPU, Asus GTX550 Ti graphics card and 8 gig of RAM. It boots from a 60 gig SSD and my programs reside on a 500 gig hard drive. The OS is Windows 7 Professional 64 bit. CS6 is using the hard drive for its scratch disk and Photoshop is using 4339 mb of the 7232 mb of available RAM - I haven't changed that. I'm running CS6 as administrator because the way it installed, it would only run in that fashion.
One disappointment during the installation was CS6 made no attempt to read my preferences from the CS5 install. That may be covered in another post, I've not yet looked.
Please keep us informed as new betas are released, because I would like some time to work with this puppy before plunking down big bux for the upgrade. As it is now, I'm going back to CS5. I get mighty nervous when my super computer blue screens!
Gerry
gswetsky AT bellsouth DOT netThe GPU is often at root of issues like yours. I've had so many problems with Nvidia drivers for their gaming-oriented adapters (like yours) that I finally went with one of their workstation cards. I have a Quadro card with just enough RAM to make Photoshop happy. The workstation drivers are optimized for reliability, the consumer card drivers are optimized for gaming and that often means they're less stable and reliable with Photoshop.
-
How do I select a range of rows from an internal table in the debugger?
Hi,
I have a case where I wanted to delete a range of rows (several thousand) from an internal table using the debugger.
It seems that rows can only be selected one at a time by selecting (clicking) on the far left side of the row.
This is cumbersome, if not impossible when wishing to delete several thousand rows.
Other tools, such as Excel for example, allow for selecting a range of rows by selecting the first row and then holding the SHIFT key and selecting the last row and all rows in between will be selected.
I can't seem to find the combination of keys that will allow this in the table (or structure) tab of the debugger.
Is it possible to select a range of rows without having to select each row one at a time?
Thanks for your help,
AndyWhile it's a Table Control and should/could have a button to select all fields (or visible fields)...I don't think we can do it right now...I know it's a pain to select each row one at a time...but I don't we have any more options...
Greetings,
Blag. -
In Aperture 3 when I right click on an image I am able to 'create new version from original' which suggests that the original is there. When I try to export the original I only get a .jpg with the XMP file. These particular images are from 2010, has the RAW file become disconnected somehow? Please, how do I get access to the RAW file for editing in Ps? Thank you. Thomasrevil.
Sorry leonie, 'Use RAW as Original' is not an option for the image shot with the Canon.
Then your Import settings must have been different, when you imported the Canon photos.
You can check, if there is still a hidden raw file somewhere. If the image has been imported as a pair, you should see the "J" badge in Browser and Viewer, if you enable badge overlays. This indicates a pair, with the jpeg as original.
Select one of those images, and then relocate the original files "File > Relocate original" to a folder, where you can inspect it. Use "File > Show in Finder" after ward. Look, don't touch .
Then put it back, using "File > Consolidate".
Do you see your raw files in the folder, or is only a jpeg there? -
1) Select a range of files in Finder; and 2) Cut files!
Two questions:
1) Why is it not possible to select a range of files in Thumbnail view in the Finder while pressing Shift...works fine in the List view? Makes no sense at all!
2) Why is it not possible to cut files in the finder using "CMD X" or "Cut" ... I can only copy or drag an drop? That ***** bigtime!1) Not really, what I want to do is select the first file then press shift and then select the last file of the range. Usually this should select all the files between the first and the last in the range (and that actually happens in the list view) ...but NOT in the stupid Thumbnail view (which I need to organize my pictures).
-
XML/XPath question--how to select a range of elements with XPath?
Hi there,
I have an XML DOM in memory. I need to do hold it and issue only parts of it to my client app in "pages". Each page would be a self-contained XML doc, but would be a subset of the original doc. So for instance the first page is top-level elements 1-5. 2nd page would be 6-10 etc. Is this solution best solved with XPath? If not, what's the best way? If so, I have the following question:
Is there a way to use XPath to select a range of nodes based on position within the document? I know I can do an XPath query that will return a single Node based on position. So for example if I wanted the first node in some XML Book Catalog I could do XPathAPI.selectSingleNode(doc, "/Catalog/Book[position()=1]"); I could wrap the previous call in a loop, replacing the numeric literal each time, but that seems horribly inefficient.
Any ideas? Thanks much in advance!
Toby BuckleyYour question is about marking a range of cells. 99% of the code posted has nothing to do with this. If you want to create a simple table for test purposes then just do:
JTable table = new JTable(10, 5);
JScrollPane scrollPane = new JScrollPane( table );
getContentPane().add( scrollPane );
In three line of code you have a simple demo program.
When I leave the mouse button again, these bunch/range of cells shall stay "marked". table.setCellSelectionEnabled( true );
and I'd like to obtain, say, a vector of a vector containing just those data marked beforeUse the getSelectedRows() and getSelectedColumns() methods for this information. I would suggest you create a Point object to reflect the row/column position and then add the point to an ArrayList. -
How do I select a range of values? For instance, I need to write a select statement that, among others, selects documents based on a date range. What I am doing is trying to pick billing documents that have a billing date within the last 365 days. Also I need to figure out a way (an easy way) to determine if a particular day is a weekend.
Regards,
AaronRANGES: s_date FOR ekko-aedat.
DATA: lv_day TYPE scal-indicator.
s_date-high = sy-datum.
s_date-low = sy-datum - 365.
s_date-option = 'BT'.
s_date-sign = 'I'.
APPEND s_date.
DATA: t_ekko TYPE STANDARD TABLE OF ekko.
SELECT * FROM ekko
INTO TABLE t_ekko
WHERE aedat IN s_date.
CALL FUNCTION 'DATE_COMPUTE_DAY'
EXPORTING
date = sy-datum
IMPORTING
day = lv_day.
IF sy-subrc = 0.
ENDIF.
LV_DAY = '6' for saturday and '7' for sunday. -
Dynamic Select Options/Ranges Maintain and Display in my screen
Hi I am trying to figure out if I can create a screen which will will read various select-options I have stored in a custom table but am having trouble finding something which will allow me to display each of 'select-options' in my dynpro... has anyone ever done this?
I'd rather not reinvent the wheel or mimic - does anyone know of a way to basically use a loaded range and display it on a screen for display or maintenance using standard SAP routines/classes?
Thanks in advance!
Roc..@Adrian - I got your email regarding the code sample, here is a quick example of how to popup a dynamic selection for up to 5 tables...
*& Report ZRS_DYNAMIC
REPORT zrs_dynamic.
* START Dynamic Range Selection Definitions
* Definition of the selection_if variable, which is used to reference
* the selections obtained
DATA: gv_selid TYPE rsdynsel-selid.
* Definition of the TABLES_TAB table for use in providing the list of
* fields available for creating select options from
DATA: gt_tables TYPE STANDARD TABLE OF rsdstabs.
DATA: gs_tables TYPE rsdstabs.
PARAMETERS: p_tab1 TYPE tabname DEFAULT 'KNA1',
p_tab2 TYPE tabname DEFAULT 'KNB1',
p_tab3 TYPE tabname DEFAULT 'KNC1',
p_tab4 TYPE tabname DEFAULT 'KNVV',
p_tab5 TYPE tabname DEFAULT 'KNVP'.
START-OF-SELECTION.
gs_tables-prim_tab = p_tab1 .APPEND gs_tables TO gt_tables.
gs_tables-prim_tab = p_tab2 .APPEND gs_tables TO gt_tables.
gs_tables-prim_tab = p_tab3 .APPEND gs_tables TO gt_tables.
gs_tables-prim_tab = p_tab4 .APPEND gs_tables TO gt_tables.
gs_tables-prim_tab = p_tab5 .APPEND gs_tables TO gt_tables.
* Definition of Table which includes the select-option range for field
TYPES: ty_selopt_t TYPE rsdsselopt OCCURS 10.
* Definition of field name and select option range table
TYPES: BEGIN OF ty_frange,
fieldname TYPE rsdstabs-prim_fname,
selopt_t TYPE ty_selopt_t,
END OF ty_frange.
TYPES: ty_frange_t TYPE ty_frange OCCURS 10.
TYPES: BEGIN OF ty_range,
tablename LIKE rsdstabs-prim_tab,
frange_t TYPE ty_frange_t,
END OF ty_range.
TYPES: ty_range_t TYPE STANDARD TABLE OF ty_range.
DATA: it_ranges TYPE ty_range_t.
* work areas
DATA: gs_ranges TYPE ty_range.
DATA: gs_frange TYPE ty_frange.
DATA: gs_selopt TYPE rsdsselopt.
DATA: gt_ranges TYPE ty_range_t.
DATA: gt_frange TYPE ty_frange_t.
DATA: gt_selopt TYPE ty_selopt_t.
* Definition of the fields list avaiable
TYPES: ty_fields TYPE STANDARD TABLE OF rsdsfields.
DATA: it_fields TYPE ty_fields.
DATA: gs_fields TYPE rsdsfields.
* END Dynamic Range Selection --------------------------------------------
CALL FUNCTION 'FREE_SELECTIONS_INIT'
EXPORTING
kind = 'T'
IMPORTING
selection_id = gv_selid
TABLES
tables_tab = gt_tables.
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 'FREE_SELECTIONS_DIALOG'
EXPORTING
selection_id = gv_selid
title = 'Select WHERE criteria for Rule'(s12)
as_window = 'X'
start_row = 7
start_col = 10
IMPORTING
field_ranges = it_ranges
TABLES
fields_tab = it_fields
EXCEPTIONS
internal_error = 1
no_action = 2
selid_not_found = 3
illegal_status = 4
OTHERS = 5.
Edited by: Rocco Scocco on Jun 17, 2010 3:48 PM
Edited by: Rocco Scocco on Jun 17, 2010 3:49 PM -
Selecting a range of data from a file
Is it possible to only display a selected range of data from a binary file? I can read in my binary files but I would like to only send data within a user defineable range to the data portal for viewing. This range may be over multiple binary files also. I can concatenate these files already but I need to select a range to insert into the data portal.
Thanks,
AJLOK AJL,
This sounds good. It's convenient to have the start and stop time of each segment file in the name of that file. By the way, you want to check that in the DataPlugin and "Call RaiseError()" if the data file is not named that way, otherwise you will try to read DIAdem *.DAT files with your custom DataPlugin. DIAdem will try each DataPlugin that is registered with the file's extension (i.e. *.DAT) one after the other, until one of them does not give an error. So you should always check for some identifying characteristic in your data file and "Call RaiseError()" if you don't find it, in order to abort DIAdem using that DataPlugin for files it was never intended for.
Now to your point. How do you know which series of segment files to read from? Does your VBScript ask the user to select a particular directory that contains all these segment files? I'm going to assume so. My recommendation is that your VBScript also create a time slice configuration file in that directory that contains the information about the time slice you want to read in (start and stop times). Then your DataPlugin can look for that file name in the directory passed to it-- if it finds none it will just load the file path it was passed outright, but if it does find the time slice file it will load any and all *.DAT files in that same directory which correspond to that time slice. This includes loading only parts of one or more of the existing binary files.
It is straightforward enough to pick out the section of the binary file you want to load with the DataPlugin, once you know the time slice information inside the DataPlugin's callback. Use the File.Position property to move the file cursor to the position of the first data point in the time slice, and use the Block.BlockLength property to specify the number of values to read in each of the channels from that starting point (to exclude the values after the desired time slice). I assume that your binary data is stored interleaved and that you are using DirectAccessChannels to read the values in your DataPlugin.
Finally, for time slices that span multiple segment files, you will need to load these to separate groups in the Data Portal with the DataPlugin. Then the VBScript can consolidate these channels into long concatenated channels in a new group and delete the temporary segmented groups. In a future version of DIAdem the DataPlugin API will have the ability to do this mapping for you, but not yet. I also have VBScripts that do this concatenation already-- you can download them from www.ni.com/support/diasupp. They're designed for concatenating channels from multiple ASCII/Excel/DAT files.
Let me know what else you need,
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
Trouble printing selected page range as handout
I am trying to print for a keynote but only want a selected page range and just cannot seem to get it to work. When I go into print and select under the pages tab the "from" button and type the range ( eg 184-189 ) I only get the option of slides with notes or outline. I want to pront as a handout with 2 or 3 sldes per page. The preview shows no pages selectde and it is unable to print.
I've tried highlighting the slides I wish to print and trying that but to no avail. The silly thing is I did manage to get it to work this way once but now it doesn't seem to work that way. I'm frustrated as I don't want to print the whole presentation off and throw away the sheets I don't need as it seems to defeat the object of page selection. I also don't want to watse ink by having one slide per page.
Any help will be gratefully received.I have this issue with my printer also
my work around is to delete the pages I dont want printed, save this version as a separate file and the pages I want print out correctly. -
Error when selecting date range in query designer
hi all,
when iam trying to select date range in query designer like 01.04.2009 to 10.04.2009 it has to select only that dates where as it is selecting all the dates in between those like 010.04.2009,01.03.2009,01.02.2009.why this is happening ,iam unable to understand.plzz help me in this issue.
Vamshi D Krishnahi ,
i have created a variable as you told but no use.still i have to select the dates manuallyone after the other.for more user friendly can i have a calander where i can select date ranges.is it posible to have calander for selecting date ranges instead selecting dates one by one,if posible i request you to give the detailed steps.plzz guide me in this issue.thanks in advance.
Vamshi D Krishna -
Entries in Select-Options Range
Hi Experts,
I am experiencing short dump if i give more no of entries in select option (in range)
can any one please suggest a solution to this?
Points will be awarded.
Thanks
DanyMaximum number of entries in select options is only around 1630, you cannot give more than that
i guess it is around 1600 - 1700
chk this program , if u increase the do loop to 1800 it will give dump
REPORT ychatest LINE-SIZE 350.
TABLES : mara.
SELECT-OPTIONS : s_matnr FOR mara-matnr.
DATA : BEGIN OF itab OCCURS 0.
INCLUDE STRUCTURE mara.
DATA: END OF itab.
DO 1600 TIMES.
s_matnr-sign = 'I'.
s_matnr-option = 'BT'.
s_matnr-low = ''.
s_matnr-high = ''.
APPEND s_matnr.
CLEAR s_matnr.
ENDDO.
SELECT * FROM mara INTO TABLE itab WHERE matnr IN s_matnr.
WRITE : 'hi'.
Message was edited by:
Chandrasekhar Jagarlamudi
Maybe you are looking for
-
Print of Component List from Production Order
Hi Everyone, How do we print the list of components which will be used in Production Orders? The scenario is that we have the components in WM bins. As soon as the production Orders are confirmed, we need to print a list of all the components which a
-
Connecting Question: Does Dial up affect connecting to itunes store?
If you can't connect to the itunes store, and you have dial up, does that affect connecting? Cause were going to change our internet connection to high speed, so will that help?
-
Essbase security Migration from native mode to external authentication
Hi!! I want some guidance on setting up security, all the users are currently in Native user mode and Native groups. Now we want to migrate to external mode, current version of hyperion is 11.1.1.3, any steps to follow in this direction would be real
-
Flex App talking to remote LCDS (or blaze or granite) server?
I've got a Flex app that's running just fine sitting on a Tomcat server, talking to GraniteDS (open source LCDS alternative) that feeds it JMS messages. However we're going to need to install the Flex SWF app onto another server entirely (maybe JBoss
-
I broke my charger for my ipod shuffle 2nd generation, where can I find a new one?
I can't find a new charger anywhere