Select first from a subquery
Hello experts,
I got a query like this:
{code}
select *
from (select 1 as id
,1 as customer_id
from dual) main_query
join (select 1 as customer
,10 as lvl
from dual
union
select 1 as customer
,20 as lvl
from dual) sub_query
on (main_query.customer_id = sub_query.customer);
{code}
What I need is for the join in sub-query to return 1 result per ID that has the highest number in column lvl.
Best regards,
Igor
Hi,
MAX is a good way if the problem is exactly what you said.
If you need to include several columns from the row with the highest lvl, then you'll probably want a Top-N Query .
Here's one way:
WITH got_r_num AS
SELECT deptno, ename, empno, hiredate, sal
, ROW_NUMBER () OVER ( PARTITION BY deptno
ORDER BY empno DESC
) AS r_num
FROM scott.emp
SELECT d.deptno, d.dname
, e.ename, e.empno, e.hiredate, e.sal
FROM scott.dept d
JOIN got_r_num e ON e.deptno = d.deptno
WHERE e.r_num = 1
Output:
DEPTNO DNAME ENAME EMPNO HIREDATE SAL
10 ACCOUNTING MILLER 7934 23-JAN-82 1300
20 RESEARCH FORD 7902 03-DEC-81 3000
30 SALES JAMES 7900 03-DEC-81 950
Of course, this works even if the problem is as simple as you said.
Similar Messages
-
How do I see my pictures that are in my aperture library in finder? I would like I be able to select photos in finder when I am making photo books online without having to export them first from aperture jinto a new folder. Is there any way to view and download my pictures directly from finder?
SamanthaR22 wrote:
How do I see my pictures that are in my aperture library in finder? I would like I be able to select photos in finder when I am making photo books online without having to export them first from aperture jinto a new folder. Is there any way to view and download my pictures directly from finder? [Emphasis added.]
The digitization of data has introduced a complexity to our interactions with it that we continue to struggle with. "Picture" and "Photo" now mean different things in different contexts. In this case (and in general) defining our terms clearly is the first step towards understanding what we are trying to do. Understanding is the path that allows us to do it.
All pedantic, but please stick with me here .
You record a set of instantaneous data with a camera.
That data is processed by your camera and saved to a file.
The file format is usually either RAW or JPG.
You transfer those files to your computer, and you import them into the program Aperture (often in one operation).
From each camera-file imported, Aperture creates a record in its database (called, imho unhelpfully, a Library) and an Image that you see in the Aperture Browser and Viewer.
Aperture links the Image and the imported file.
The imported file is called, within Aperture, an Original.
Every Image has an Original.
The Image is not the Original. The Image is what you see in Aperture.
The Original is a file that is stored on your computer.
You can make changes to an Image.
Aperture calls these changes Adjustments.
Adjustments are saved to another file attached to the record in the database. Let's call this file the Changes File.
Aperture uses these two files attached to the record in the database to create the Image.
Image = Original + Changes File.
The Image is not a file.
Because the Image is not a file, it cannot be shared with other programs. It exists only inside of Aperture.
In order to share an Image with another program, you must first create a file of the Image.
You do this by exporting Images ("File ▹ Export ▹ Version" is the command in Aperture; should be, imho, "File ▹ Export ▹ Image").
You may ask, "Why all the complexity? Why doesn't Aperture save Images as files?" The answer is simple: Images can require less — and in many cases very very much less — storage space than files of Images. Rather than save a full-size file for every Image, Aperture saves only instructions on how to make that full-size file. The gain in storage efficiency is huge. The trade-off is that although your Images are always available to be made into share-able files, you must create those files when needed (which you do by exporting selected Images).
Here is your question reworded with more precise terms:
SamanthaR22 might have written:
How do I access Images in my Aperture Library in the Finder? I would like I be able to select files in the Finder when I am making photo books online without having to create them by exporting Images from Aperture into a new Finder folder. Is there any way to view and download my Images directly from the Finder?
No, there is not. Images exist only in Aperture, and are not accessible for use in other programs. You must create, for each Image in your Aperture Library, a new file outside of your Aperture Library in order to use it with another program.
Aperture does allow you to create and save within your Library share-able files of your Images. These files are called Previews. You specify the file parameters in Aperture Preferences on the Previews tab. These files are available to other programs via the OS X Media Browser. These files are what you get when you drag selected Images out of the Aperture program and drop them on another program or on your desktop (which is part of the Finder).
HTH.
—Kirby. -
Avoid first select event from a tableview
Hi,
Anyone know how to avoid the first select event from a tableview?
I've tried the approach with a data store but the select event from the table is'nt available and if I write it manually I can't deploy the model.
Best Regards
RobinRobin,
The error message probably wasn't written anywhere unless you've changed the default logging settings.
There's a sticky thread always at the top of this forum titled "How To Troubleshoot VC Issues" which contains a link to a pdf file - <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/92d80512-0a01-0010-32a3-cd3735bd9275">here's the same link</a>. Near the end of that file are step by step instructions for turning on the logging. Once you (or your admin) do that when you recompile/deploy a meaningful error message will appear in the VC editor as well as in the server log files.
Good luck. -
Avoiding first select event from chart ?
Hi,
I trigger a select event from a chart to another BI query to drill down into details. Unfortunately, when the chart is build up, without any user interaction a first select event is already triggered. Is it possible to avoid this event (for instance by a guard condition) ?
Regards, ChristianHi Christian
Sorry about the delay. The solution here is to use a data store and a guard condition, the data store should be triggered on the first select event in the chart, its default value should be itself+1, this means that when the first select event is triggered the value will be 1, you can then use your guard condition to check for this and only if the value is greater than 1 it should continue.
Jarrod Williams -
How to select first several records from a database table by using select?
Hi,
I want to select first 100 records from a database table by using select clause. How to write it?
Thanks a lot!hai long!
well select statement is used to retrive
records from the database.
following is the syntax to be used.
1) select * into corresponding fields of itab from basetable where condition.
endselect.
ex: select * into corresponding fields of itab from mara
where matnr >= '1' and matnr <= '100'.
append itab.
endselect.
select * is a loop statement.it will execute till matnr is less than or equal to 100.
note: you can also mention the required field names in the select statement otherwise it will select all the field from table mara.
note: itab means your internal table name.
hope you got the required thing.if it really solved u r problem then award me the suitable points.<b></b> -
Selection first n(20 )records from result page
Hi,
I have a requirement where the the users want to select first n(20) record from the result page after applying the date filter . They want to see all results and then select the records say first 50.I do not want to select manually clicking( browsing on page).Any thoughts how this can be achieved like adding text box at frame so that I can give number .Hello Senthil,
why you want to create one more textbox... you can achieve your requirement by entering 20 in "maximum number of fields". It will give first 20 results.
If you want to add one more textbox for your purpose then tell me.
Thanks and Regards,
Amit Singh -
declare
begin
for cur in (select (select 1 from dual) col from dual)
loop
null;
end loop;
end;in TOAD, OK, BUT IN FORM ERROR!
Edited by: indoracle on Feb 23, 2012 2:38 AM
Edited by: indoracle on Feb 23, 2012 2:40 AMA couple of things.
First, please take a few minutes to review the following:
<ul>
<li>Oracle Forums FAQ
<li>Before posting on this forum please read
<li>10 Commandments for the OTN Forums Member
<li>How to ask questions the smart way
</ul>
Following these simple guidelines will ensure you have a positive experience in any forum; not just this one! ;-)
Using the formating information in the Oracle Forms FAQ, it is always recommended that you put your code samples in the ... tags (use lower case "code") so your code is more readable.
Second, the use of all capital letters is concidered YELLING. I'm sure you did not intend to YELL at anyone, so please only use capital letters when they are needed, not for everything. :)
Third, what is your Forms Version? If you look at the *10 Commandments for the OTN Forums Member* you'll see that it is always best to give program version information. Depending on your Forms version, the subquery in your SQL statement may not be supported or it could simply be the Cursor For Loop construct [ FOR j IN ( SQL Statement)...] that is not supported. You may have to declare an explicit cursor and reference the explicit cursor in place of your SQL Statement.
Forth, your FOR LOOP doesn't do anything!
LOOPEND LOOP; There is nothing between LOOP and END LOOP. I am going to assume that this is intented and just a point of sanatizing your code because what happens in the loop is not relevant to the error.
ERROR 103.. This is a Forms internal PL/SQL error; meaning the Forms PL/SQL engine can not parse your code. Again, this is probably because the subquery or cursor FOR loop with (SQL Statement versus explicit cursor) is not supported by your Forms version.
Please, what is your Forms version and any other information that might be helpful.
Craig... -
Select data from table not in another table
Hi,
I want to select data from table A which is not in table B.
Currently I am doing:
select
snoA,
nameA,
dobA
from A
where snoA not in
(select snoB from A, B
where snoA = snoB
and nameA = nameB)
But above is very slow.
Can I do something like:
select
snoA,
nameA,
dobA
from A, B
where
EXCLUDE ( snoA = snoB and nameA = nameB)
Please note that I need the where condition on both the columns.
any help will be appreciated.
-- HarveyWhat are the approximate data volumes in A and B?
What is "very slow"?
What version of Oracle?
What is the query plan?
Without knowing anything about your system, my first thought would be to see if a NOT EXISTS happened to be faster for your data
SELECT snoA,
nameA,
dobA
FROM a
WHERE NOT EXISTS (
SELECT 1
FROM b
WHERE a.snoA = b.snoB
AND a.nameA = b.nameB )Of course, I'm not sure why you are joining A & B in your NOT IN subquery. It would seem like you would just need a correlated subquery, i.e.
SELECT snoA,
nameA,
dobA
FROM a
WHERE snoA NOT IN (
SELECT snoB
FROM b
WHERE a.snoA = b.snoB
AND a.nameA = b.nameB )That should be more efficient than the original query. The NOT EXISTS version may or may not be more efficient than the NOT IN depending on data volumes.
Justin -
SELECT YEAR FROM DATE FROM VARCHAR2
Dear all,
i have a question aboute date and TO_DATE. The thing is i have a VARCHAR2 colum with data like:
12/09/1979
02/05/1978 etc etc etc
Now we like to know how old the person is at the beginning of the year. So we have to take the current year -1 -year of burth.
The first part is not so hard. We can take the current year from DUAL. Now here is the hard part how do we convert the varchar data to a date and extract only the years from it and not the rest of the date?
All bright and smart things are welcome :-)
Thanks already.Anupama and Christian,
thanks for the input buth i still have a question. I tried the option of Christian and moddified the query a little:
select months_between(trunc(sysdate, 'YEAR'),
to_date(
'27/08/1979',
'DD/MM/YYYY'
) / 12
from vak_werknemer where geboorte like '__/__/____'
This works fine buth. it is only working with 1 date, so i gives me a list +/1 1000 rows with the same conclusion i am correct aboute my age :-)
Now i like to do this with all the other people in the database. SO i have placed a subquery in the query instead of a date.
select months_between(trunc(sysdate, 'YEAR'),
to_date(
(select geboorte from vak_werknemer where geboorte like '__/__/____'),
'DD/MM/YYYY'
) / 12
from vak_werknemer where geboorte like '__/__/____'
This is giving me the error that a single-row subquery returns more than one row. That is correct there are 1000 returnd rows. How do i make the query so that it will give me a list of all the people and not the age of 1?
Thanks already. :-) -
Check if ANY rows from a subquery are IN another subquery
I have a problem in one of my queries, I changed table names for simplicity.
Basically, in the WHERE clause, I have this sub query:
WHERE (SELECT
file.id
FROM file
WHERE
file.userid
=
doc.userid)
IN
(SELECT
share.shareid
from
share
where
share.userid
=
'1234')
Originally, the first part of the subquery would only ever return 1 id. So this worked fine. However, I am changing this to allow multiple 'files' per 'user'. So the beginning of this subquery would return more than 1 row. So right now it is giving me an
error that the subqeuery returned more than 1 result.
What I want to do is, check if ANY of those file id's are IN the next subquery.
Any ideas?Perfect!
I just had to change
AND [file].userid IN to
AND [file].id IN
Thank you so much for the quick answer Tom!
Another way is to use EXISTS
WHERE EXISTS (SELECT * FROM [file]
WHERE [file].userid = doc.userid
AND EXISTS (SELECT 1 from share where share.userid = '1234' AND share.shareid = [file].id))
or join
WHERE EXISTS (SELECT * FROM [file]
INNER JOIN share
ON share.userid = '1234'
AND share.shareid = [file].id
WHERE [file].userid = doc.userid
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
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?
-
First, how do I create my own favorite theme template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to already existing themes, which take more memory. I have a large slideshow, and need all the space I can get. I just want to use a picture as my DVD cover, and then insert a slideshow. Also, when I try to burn my 8.5gb double sided slideshow, all that burns is the music. It is a large slideshow, a memorial on the life of my now deceased brother. This means a lot to me and to my family, and I am having so much trouble trying to burn it. I have gone into Project View and selected appropriately. The bar shows I have room to burn this DVD, but it does not burn. I have burned so many DVDs in the past, but this one just will not burn. I am so confused at this point. I will say this is the first 8.5gb I have attempted to create and burn. My specs list a 7.7gb or 4.7gb as operable....but there are no 7.7gb dvds. I had to purchase 8.5gb. Help? What am I doing wrong? I have spent so much time on this, and just cannot figure it out.
Final Cut is a separate, higher end video editor. The pro version of iMovie.
Give iPhoto a look at for creating the slideshow. It's easy to assemble the photos in an album in iPhoto, put them in the order you want and then make a slideshow of them. You can select from various themes and transitions between slides and add music from your iTunes library.
When you have the slidshow as you want use the Export button at the bottom of the iPhoto window and export with Size = Medium or Large.
Save the resulting Quicktime movie file in your Movies folder.
Next, open iDVD, choose your theme and drag the QT movie file into the menu window being careful to avoid any drop zones.
Then follow this workflow to help assure the best qualty video DVD:
Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image menu option. This will separate the encoding process from the burn process.
To check the encoding mount the disk image, launch DVD Player and play it. If it plays OK with DVD Player the encoding is good.
Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality. Always use top quality media: Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
The reason I suggest iPhoto is that I find it much easier to use than iMovie (except for the older iMovie 6 HD version). Personal preferences showing here. -
How to get selected values from datatable with paging
hi all
here is my problem
I have a datatable with paging size of 2 and first column as checkbox.
now i have total record of 5 data,2 row on each page.
Now i m selecting 1-1 row from each page.
When i m clicking Command button to display all the selected row from different page ,i m only able to display values selected from last page.
Through debug i can see that only last page value is set to TRUE OR FALSE and every other value is neither true nor false.
any help???
thanks<f:facet name="footer">
<h:panelGroup binding="#{Page1.groupPanel1}" id="groupPanel1"
style="display: block; text-align: center" styleClass="list-paging-footer">
<h:commandButton action="#{Page1.dataTable1_firstPageAction}" binding="#{Page1.dataTable1FooterFirstButton}" id="dataTable1FooterFirstButton" image="resources/paging_first.gif" immediate="true"/>
<h:commandButton action="# Page1.dataTable1_previousPageAction}" binding="#{Page1.dataTable1FooterPreviousButton}"
id="dataTable1FooterPreviousButton" image="resources/paging_previous.gif" immediate="true"/>
<h:commandButton action="#{Page1.dataTable1_nextPageAction}" binding="#{Page1.dataTable1FooterNextButton}"
id="dataTable1FooterNextButton" image="resources/paging_next.gif" immediate="true"/>
<h:commandButton action="#{Page1.dataTable1_lastPageAction}" binding="#{Page1.dataTable1FooterLastButton}"
id="dataTable1FooterLastButton" image="resources/paging_last.gif" immediate="true"/>
</h:panelGroup>
</f:facet>
Above is the code which i m using for paging which is command button
Any problem with it.???
thanks -
How to get the selected items from listbox
Regarding listbox i have two questions
1) I want to get the selected items as per the order in which ihave selected.Presently i'm getting in the ascending order.For example after selcting the 1,2,6 if i select 3 then its giving 1,2,3,6.But i want it in the order 1,2,6,3
2)I want to select items from a single list box to many other listboxes.(ie) my first selection should goto first,second one to the second listbox and like this.How should i write the logic.
please give me a suggestion.In order to have the selected items line up in accordance to the selection order, please do it one at a time. (That's the limit for that VI)
If you need more than that (i.e. to regconize which item clicked first and which one comes later), you may have to figure it out ya
Wish you good luck. Perhaps, someone else has a already made vi.
Cheers!
ian.f
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com -
Delete operation is not working to delete selected row from ADF table
Hi All,
We are working on jdev 11.1.1.5.3. We have one ADF table as shown below. My requirement is to delete a selected row from table, but it is deleting the first row only.
<af:table value="#{bindings.EventCalendarVO.collectionModel}" var="row"
rows="#{bindings.EventCalendarVO.rangeSize}"
emptyText="#{bindings.EventCalendarVO.viewable ? applcoreBundle.TABLE_EMPTY_TEXT_NO_ROWS_YET : applcoreBundle.TABLE_EMPTY_TEXT_ACCESS_DENIED}"
fetchSize="#{bindings.EventCalendarVO.rangeSize}"
rowBandingInterval="0"
selectedRowKeys="#{bindings.EventCalendarVO.collectionModel.selectedRow}"
selectionListener="#{bindings.EventCalendarVO.collectionModel.makeCurrent}"
rowSelection="single" id="t2" partialTriggers="::ctb1 ::ctb3"
>
To perform delete operation i have one delete button.
<af:commandToolbarButton
text="Delete"
disabled="#{!bindings.Delete.enabled}"
id="ctb3" accessKey="d"
actionListener="#{AddNewEventBean. *deleteCurrentRow* }"/>
As normal delete operation is not working i am using programatic approach from bean method. This approach works with jdev 11.1.1.5.0 but fails on ver 11.1.1.5.3
public void deleteCurrentRow (ActionEvent actionEvent) *{* DCBindingContainer bindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding dcItteratorBindings =
bindings.findIteratorBinding("EventCalendarVOIterator");
// Get an object representing the table and what may be selected within it
ViewObject eventCalVO = dcItteratorBindings.getViewObject();
// Remove selected row
eventCalVO.removeCurrentRow();
it is removing first row from table still. Main problem is not giving the selected row as current row. Any one point out where is the mistake?
We have tried the below code as well in deleteCurrentRow() method
RowKeySet rowKeySet = (RowKeySet)this.getT1().getSelectedRowKeys();
CollectionModel cm = (CollectionModel)this.getT1().ggetValue();
for (Object facesTreeRowKey : rowKeySet) {
cm.setRowKey(facesTreeRowKey);
JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)cm.getRowData();
rowData.getRow().remove();
The same behavior still.
Thanks in advance.
Rechin
Edited by: 900997 on Mar 7, 2012 3:56 AM
Edited by: 900997 on Mar 7, 2012 4:01 AM
Edited by: 900997 on Mar 7, 2012 4:03 AMJDev 11.1.1.5.3 sounds like you are using oracle apps as this not a normal jdev version.
as it works in 11.1.1.5.0 you probably hit a bug which you should file with support.oracle.com...
Somehow you get the first row instead of the current row (i guess). You should debug your code and make sure you get the current selected row in your bean code and not the first row.
This might be a problem with the bean scope too. Do you have the button (or table) inside a region? Wich scope does the bean have?
Anyway you can try to remove the iterator row you get
public void deleteCurrentRow (ActionEvent actionEvent) { DCBindingContainer bindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding dcItteratorBindings =
bindings.findIteratorBinding("EventCalendarVOIterator");
dcItteratorBindings.removeCurrentRow();Timo
Maybe you are looking for
-
Chrome will not allow Loading of pdf file on ( probably ) expired Adobe XI?
I have limited knowledge of a computer. Mainly because I do not want to Internet SEARCH for secrets, and HACKS that can really destroy my reputation, entertainment, and pleasure of owning a computer... I just want it to WORK... as it SHOULD with suf
-
Do ABAP WebDynpro objects need to be added to auth.object S_SERVICE in ECC6
do ABAP WebDynpro objects need to be added to authorization objects in PFCG in ECC6.0? (Same as we add Java WebDynpro object names to S_SERVICE authorization object in PFCG) Thanks, Tiberiu
-
I NEED DOCUMENTATION TO GET ADD-ON CERTIFICATION IN B1
We have developed an add-on, what i actually need is that the terms and conditions to satisfy SAP, and get the certification properly, let me know as soon as possible procedures to be followed for my add-on
-
The ideal hardware setup / arrangement for After Effects?
Hello there, Looking to buy some new hardware and am hoping to find some advice on the ideal hardware config for making After Effects scream. I find this questions is sorely lacking answers on the Internet beyond the basics of 'boot from an SSD' and
-
In Windows 7 warning msg says another version of Adobe CC installer is running while trying to update LR 5 to LR 6.