Missing first hour of project

Hi. I'm stumped. I have a project that's about 1:33:00 long. But today I opened it and I can't see the first hour. The left locator will only go as far back as 59:42:00. The bar ruler starts at 1, but the 1 is at 1:00:00.
I'm really hoping this is something easy and obvious that I just don't know about since I'm new to Logic (after many years with Cubase).
PLEASE help. This is a month's worth of work I can't access - or that may be gone.
Thanks.
Bob

First thing, don't panic and don't mess around too much, JIC...
As PKX mentioned, do a Save As. Alternatively, Alt-Drag the project folder so you've got a complete backup. OK, let's start.
You say that the left locator goes back only to 59:42. I take it your song is at 160 BPM. Can you confirm that?
Open: Media > Bin
Are all your audio files there? If so, the worst you'll have to do is recreate your project using them.
Don't worry about the SMPTE starting at 1:00:00 - that's quite normal. Videographers like to start the video work at 1:00:00 because that allows them to have pre-roll headers (colour bars, countdown etc) and, if their video started at 0:00:00 then Professor Einstein would like to know about how they do that, negative time and so on.
Something that might help is the Undo History. Use Edit > Undo History
Have a look in there (scroll around but don't click on any of the items in the list). Can you see anything that might have deleted huge chunks of audio?
In the top right hand corner, there's a box marked "Drag". What's the setting in that box? That affects what happens when you delete things. If it's Shuffle L, then if you delete the middle three audio regions n a track, it shuffles the right hand one up to the left. That might account for how your later audio got to the beginning of the file, if you accidentally deleted stuff.
If none of these help, you might be able to rebuild your project, assuming the audio files are still in the Audio Bin.
Let us know how you've got on with the above suggestions.
Pete

Similar Messages

  • First contact with project nile.

    hey!
    I've written a tiny javafx app which is a [screen ruler|http://www.superduper.org/personal/blog/wordpress/?p=111] which required quite some lines of code.
    To shorten it i made my first contact with project nile and i'd like to sum up my experience.
    First of all - i watched a few screencasts and it looked really promosing. I instantly installed and exported some graphics. So far so easy, but as soon as I wanted to use the .fx file that was created i got tons of "class .... " not found and "package loader.fxd...." not found. I wasted at least half and hour to figure out that i have to add the javafx-fx.jar file (how come this isn't mentioned in any screencast? or did just I miss this?). Ultimately I figured stuff out, but have a few things i don't like a lot and i think are worth mentioning.
    #1 why does it create so many png files? wouldn't it be possible to just inline the binary data?
    #2 why do i need that javafx-fxd.... jar file? i really don't want to include a 500k library on a 1k source project.
    #3 why multiple files at all? i'd prefer if <my-export-name>.fx was the only file created and needed.
    ok, back to netbeans now...
    have a great day!
    Edited by: hansiraber on Sep 20, 2008 6:41 AM [because there was a typo]

    Hello,
    thanks for your feedback and sorry about installation problems. Regarding your questions:
    #1 why does it create so many png files? wouldn't it be possible to just inline the binary data?The Nile release 1.0 which is planned for end of October will do exactly what you are asking for. Export will create one file, a kind of archive, that will contain the scene description and binary assets like fonts and images.
    #2 why do i need that javafx-fxd.... jar file? i really don't want to include a 500k library on a 1k source project.Agreed. We try to make it smaller and eventually the Nile runtime should become part of JavaFX SDK.
    #3 why multiple files at all? i'd prefer if <my-export-name>.fx was the only file created and needed.There is a significant distinction between the files <my-export-name>.fxd and <my-export-name>UI.fx. The fxd file contains graphic content and can be used alone as it is. It is preferred for a static content. However if the graphic is "live" and some interaction with code is required then the fx file is useful. We call it UI stub and it serves as an connection link between JavaFX script application logic and 'significant' visual elements. This stub also hides the complexity of the purely visual graphic elements and exposes only the nodes that are used from application logic to create dynamic behavior.
    Best regards,
    Pavel

  • My first iDVD '08 project details

    Here's some details from my first image-based project in iDVD '08 (v. 7):
    Soft Frame theme
    Professional Quality encoding
    51 min duration
    2.90GB
    DVD-ROM (images)=1777MB
    Slideshows=1113MB
    Menus=36MB
    Movies (AVI from digicam)=36MB
    Slides=548
    Transitions=296
    Start 6:05 p.m.
    Finish 8:30:40
    At start of encoding, iDVD '08 estimated 2 hours 52 minutes.

    Len,
    And this movie was made in iMovie HD 6 Version 6.0.4????
    How did the chapter markers survive?
    Message was edited by: wiremangone

  • SimpleDateFormat, missing an hour

    Hello
    I'm trying to parse in a timestamp, but I'm missing an hour, the example below is a boiled down version of my code. I expected output to be "10:11:12", but instead it is "09:11:12" so an hour is lost in translation.. any clues?
            try {
                SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
                SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
                Date dateDate = dateFormat.parse("2010-08-10");
                Date timeDate = timeFormat.parse("10:11:12");
                Date date = new Date(timeDate.getTime() + dateDate.getTime());
                System.out.println(timeFormat.format(date));
            } catch (ParseException e) {
                e.printStackTrace();
            }

    martin_dk wrote:
    Well, that's your opinion. Like I wrote - the example is a boildown, the target code is a bit more complex than that.Yep - my opinion but I'm allowed to express it as long as I do so within the CofC.
    Why would you post code showing the addition of two getTime() values if your real code did not do that? If you are in any way using arithmetic to combine two getTime() values then it is almost certainly the wrong approach. Yes, again my opinion but I think you will find it shared by others.

  • Plan hours in Project System

    Hi SAP Gurus,
    In project system as i can plan my cost, can i plan my hours?? If yes how?? where in SAP?
    I am in service industry and my billing happen on hours..
    Please help, its urgent
    Pritam

    Hello Smile,
    Yes, You can plan your man hours in project many ways
    1. Plan manhours in network activities using work centers
    2. Plan manhours in network activities using workforce planning ( integration with HR Module)
    3. In some companies, many departments work on a project and they plan manhours on cost centers and not on Project. In other words, many department provide services to projects.
    Here I will assume that you want to plan manhours in Project without workforce planning.
    The following are the pre requisite for planning man hours in project network activities.
    1. Work center ( may be person or group of persons, machine or group of machines. Workcenter reflects skills and capacities in cost center)
    2. Work or duration ( based on the calculation key either one is calculated)
    3. Activity type ( Type of service)
    Behind the screen,You have to have a cost center attached to the workcenter (CNR1/CNR2) and activity type. Combination of cost center and activity type will decide the rates. Use transaction KP26 to enter the rates.Activity prices are valid for a certain period of time only. They are entered for either months or a year.
    The budget for the cost center should be used as a base to calculate the hourly rate for each activity type.
    When you enter a work in the network activity, system calculates the costs for the manhours.
    Eg: You create engineer as workcenter. He is asked to go to site and did installation of equipments.
    Attach workcenter ABCD to network activity, activity type "Engineer" and work 100 hrs.
    If the engineer rate is $50 per hour given in KP26.
    Then the planned cost for manhours is 100 X $50 = $500
    The same engineer can provide supervison service at your workshop. For that, his rate may be $20/hour. If you plan for supervison then the planned costs will be $200
    FATMAN

  • Missing file stops DVDSP project opening- help!

    I've been working on a DVDSP project for a month now.
    I came to open it today and get the message "Searching for movie data file "name" Fin 000 00012.It gives me the option to search for the file, which proves fruitless. then i get the message that the movie file will not play properly without the missing file.
    The project won't open further and i have to force quit.
    The point for me is i can't open my project, even saved earlier versions.
    Is there any way round this?, as i've put alot of work in i don't want to lose.
    regards Nick

    Welcome to the Boards
    Instead of pressing locate, pressing skip/cancel (which you may have to do often) may get you past this.
    This is one of the reasons not to use reference movies and bring those into DVD SP. Your best bet is to make self contained files, or if no room or time, immediately compress a reference movie to an m2v and use that.

  • File.data.readUTF() misses first 2 letters

    I'm using flash 10 and flex 4 but fins that file.data.readUTF() misses first 2 letters in my csv files. Any ideas how to fix this?
    I also am getting this error when I try to do the same thing with a smaller .csv file:(attached)
    2030: End of file was encountered
    thanks for any help

    Just the 1st 2 characters. 
    How do I read at 0 for utc bytes?
    think the problem is:
    Reads a UTF-8 string from the byte stream. The string is assumed to be prefixed  with an unsigned short indicating the length in bytes. 
    regards
    Nikos 

  • First Edge Animate project!

    http://www.publico.pt/multimedia/infografia/guerra-na-siria-ja-obrigou-6-milhoes-a-fugir-6 9

    Hi. Some are made by Hype and Flash, but most with Edge. If you click them and choose "view source" you can tell which one.
    Kjell Erik
    Den 3. juni 2013 kl. 13:41 skrev catia mendonca <[email protected]>:
    Re: First Edge Animate project!
    created by catia mendonca in Edge Animate - View the full discussion
    Are they all made with Edge?
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5374464#5374464
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5374464#5374464
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5374464#5374464. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Edge Animate by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • IPod turned off and on for the first hour

    When I plugged in my brand new iPod Nano for the first time to the cable into my nice iMac, it turned off and on for the first hour with the phrase on screen "Do Not Disconnect." I am guessing that the reason it was turning off was because it didn't have enough juice/power. But then why was it turning on? After an hour it finally had enough juice to stay on. What gives? Do I have a defective iPod? It works fine now. I've never had an iPod before so I don't know how it's supposed to work.
    Each time the iPod has run out of power, I get the same symptom. It turns off and on for an hour until it has enough juice to stay on.

    Maybe someone in the iPod nano Forum would know the answer? You've posted in the 'Using iTunes for Mac' Forum.
    You can find the Category page for the iPod nano here:
    http://discussions.apple.com/category.jspa?categoryID=154
    Please note that is a Category page. You may want to select the First or Second Generation Category or select one of the Forums directly from the list.
    I have a nano but have not encountered your problem. Hope you find a solution.
    Regards,
    Colin R.

  • First event, then project missing

    I have search the web to find answers for this question, and it seems may people have similar problems, but I cannot find an answers. Hope somebody here can help.
    After opening iMovie, I noticed one of my events was empty. The file was stil present in the iMovie event folder, but did not show in the event. I found a solution where I had to change something in the source code, I think the plist file. I saw there that it reffered to a .mov file, however the source was a .dv file. After changing it (with txteditor) and opening again now the project using the event (which was showing triangels befor) was now gone. Stil present in the folder, but not in iMovie itself.
    I opened the package of the project and change the 'project' file in txteditor also, because this also reffered to the .mov file, not a .dv file. But I have not been able to repair either the event or the project.
    Can somebody help?

    Update: moving my event to an external harddrive (using iMovie) has solved the problem with the event. The event even shows (by underlining) which clips I used in the project. However the project still does not show, is missing.

  • First Time Movie Project

    Hi everyone,
    This is my first post and I've been most impressed with the quality of responses out there to other questions that float around the periphery of my issues.
    I took on a project to film and edit a play produced at a local community theatre. I filmed three different performances, spent massive amounts of time selecting still photos for the credits, adding titles, inserting just the precise clip to make sure that we had the best takes for the different scenes -- a lot of fun. Lost the project twice when my dog inadvertently unplugged my external hard drive in the middle of a Save Project... but that was okay since I wanted a cleaner version anyway.
    Since I have never done anything other than a burn of photos into a slide show or DVDs of vacations with minimal, if any, editing, this file is beyond massive.
    First Question: I've got multiple small clips in the project,some are a few seconds, some as long as 17 minutes but I understand that they each have the entire clip hidden (thus lying) underneath, which leads to the massive size. Now that I have all the clips, transitions, audio changes, titles, bookmarks in place, how do I get rid of all that I don't need that came attached with the clips? If I scrub the project, will that do it?
    Second Question: I've tried exporting to Quick Time as a full quality project (saved on one of my two 300 GB external hard drives) but I continually get error messages that there were files missing from some clips and they couldn't be imported. I end up with half of the play.
    Third Question: I understand that one way to preserve the show in it's final format is to run it back through the play head to store on mini-DVs. I am petrified that if I try this, and I get the same error messages and it corrupts the only version I have of the play -- I'm really sunk. Is there any chance of that happening?
    Fourth Question: As it stands, this play ran almost 3 hours. How do I handle that? Any advice on what kinds of DVD's I can purchase to burn this for the cast and crew that have been waiting patiently for me to get this into their hands? Should I invest in double layer DVDs that hold 8 gigs, or will their sheer length make that unnecessary?
    Final Question: I purchased a DVD/VCR R/W player. Will I be able to run the movie through the TV and copy onto DVDs that way?
    Any help anyone can offer for any of these questions would make you angels in my book.
    Westtown kat

    Westown kat,
    "I purchased a DVD/VCR R/W player. Will I be able
    to run the movie through the TV and copy onto DVDs
    that way?"
    Is this a standalone DVD player/burner? If so you
    should be able to record the finished project from
    iMovie using your Mini Dv as a bridge to your DVD
    burner. Of course this depends on the avaliable
    input/out ports on both devices(eg. firewire S-video
    composite etc.). At least this is how I make my quick
    & dirty DVDs for preview/draft purposes.
    It is a standalone DVD player/burner with a DV Link digital camcorder IEEE 4-pin connection.
    For the professional touch I would still recommend
    iDVD or another DVD authoring program.
    With a little creative editing I'm pretty sure you
    can whittle down the length of the movie. Take out
    all the dry spots that have no impact and are
    insignificant to the momentum of the play.
    If you get it down to 1 hour and 50 mns. or so ,you
    should have no problem with a single layer DVD and
    iDVD.
    Not sure I can cut anything out -- it's a terrific performance by people who rarely have the chance to do this and if their scene was cut would be very upsetting to them. Looks more like I'll have to do as you suggest in your next segment and perhaps have multiple DVDs...
    Remember if you edit this project by scenes/segements
    and save each after completion and bring the
    scenes/segments together in a final project it'll
    will be easier all around.
    I gather that to do that I will have to go into the project and select a point beyond which (or later on in front of which) I'll have to jettison the other sections of the play? So I'll have several sections that are 20 minutes long, say, numbered for the timeline or named for the action taking place during the specific scenes contained (opening scene, study, etc.). Won't this still keep all of the stuff that's underneath there?
    It'll be easier and less error prone when burning a
    DVD.
    I imagine that editing a project with 3 hours on the
    timeline could become quite unmanagable and
    vulnerable to alot of mishaps.
    I usually try to keep the scenes/segments I'm editing
    to around 10 - 20min then bring them all together and
    burn a DVD.
    At this point -- does this happen through running the movie back through my movie camera and re-importing? I'm so close to finishing and I'm so excited to have a final product to hand out (even have the labels designed!) but I'm nearly paralyzed due to my fear of losing the project at this critical stage!
    But now I have a feeling I'm going to be able to do this thanks to the help of people like you and Klaus! I'm most grateful.

  • Woah; my first iMovie '08 project ruined by moving my iPhoto library?

    So I made my first project with the new iMovie last night (I actually like it a lot more for making quick movies, but will probably need final cut express to do anything complicated, but I digress...). Finished it, yay, cute little movie, took about an hour to do. All the video came out of my iPhoto library.
    So this morning, I notice that my main drive is a little low on space so I moved my iPhoto library (following the iPhoto instructions) to my larger, external drive.
    When I fired up iMovie again, it spent an hour regenerating all the video thumbnails, annoying, but dealable.
    But now my project video only has the thumbnails. Every clip has a little exclamation point on it, which I assume means it can't find the video clip to back it, which is terribly frustrating since it's still in the same place in the iPhoto library, just in a different place on disk.
    So is iMovie writing the absolute file location into the movie project, so if you -ever- move your iPhoto library or change your disk layout your movie becomes useless? That seems like a pretty major oversight. There doesn't seem to be any way to "re-link" the video clips to their new locations or fix this problem. Brilliant.
    So I pulled out plutil, and luckily the Project file is a binary plist (scared me for a minute that it was just a binary closed data file). The file locations for the videos are referenced as such:
    <string>~/Pictures/iPhoto Library/Originals/2007/Vacation TX-1/MVI_0565.AVI</string>
    So that's a -double- pain. not only is it referencing the absolute library location, it's referencing the -old- location within the library. See, I changed the name of that event in iPhoto from "Vacation TX-1" to just "Oregon Vacation", so now within the library the file's in a different spot as well.
    So it seems like, unless I'm missing something, if you use a video from iPhoto you can never reorganize that video in iPhoto or change libraries? That seems like a major fix that's needed.
    I'm going to try symlinking the library location to the new one, to see if as long as iMovie can find the library it can sort out the renaming. If that doesn't work, then I guess I'll be manually hacking the plist.
    Am I missing an easy and obvious way to do this within iMovie?

    So, adding the symlink didn't help, still missing. Upgrading to 7.0.1 didn't help.
    Plist surgery did help and brought the project back to life, with one minor quirk, my thumbnails in the video editing window were gone. So the "Thumbnails" file in the bundle is a regular plist...it appears to contain the thumbnails themselves, keyed by the filename. I tried changing those paths to match as well, but that didn't do it. They are the absolute paths, with the "~" for homdir expanded. Since I left the "~" alone in the other file and just symlinked it, I wondered if maybe the resolving was different so I changed it to the absolute path of the movie file, but that didn't work either.
    so I have two versions of the project, one with thumbnails but unplayable and unexportable, and another that's playable and exportable but no thumbnails. At least I didn't lose my movie.
    Still crossing my fingers that I'm just missing the piece of killer-UI for finding moved video clips. Seems like if the they are switching to a video format that relies entirely on external references, including references to private paths within other programs that the user isn't even supposed to be aware of, there needs to be a tool for fixing them up.
    Looking at the files, this doesn't just go for iPhoto videos...it seems also apply to stills (although since those get rendered and included in the project bundle that might not be quite as a big a deal as long as you never want to change them) and music/sound effect files.

  • Missing codec and moving projects between different computers

    Hi,
    Im a real rookie when it comes to premiere... and i have 2 problems.
    First off i just want to know the best way to move a project between two computers... Usually when i move the folder and try open it all the links to the different movie files dont work, so i have to go through and select each one manually. There must be a way to get around this...
    Second off i have a problem with importing my mac mov (i used iMovie to move the files from the video camera, which is a Sony HDR-HC3) files into premiere on the pc, it claims the codecs are missing. I have installed quicktime on the pc and i can play the movies fine, but they wont import into premiere because of the missing codec. Why?

    See the responses to your duplicate post.
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • "Missing" EPS Nodes and Projects in P5

    One of my users has managed to "delete" a high level EPS
    node so currently we have lost a number of EPS nodes and
    projects. However if we try and recreate the "missing"
    objects the system tells us the EPD node ID or Project ID
    must be unique. There must be some setting somewhere that
    is stopping the system from displaying these
    nodes/projects - if the cannot be recovered then I think
    the next best option is to persuade the system that the
    IDs are not in use so that we can rename the projects
    recovered from backup (project IDs are important as they
    link to other systems)

    Ok, here's the query to list out your EPS nodes (this
    was written with P6 but should be the same in
    P5):
    <br
                              />SELECT     
                              PROJWBS.wbs_id <br
                              />          ,PROJWBS.wbs_short_name
                              <br
                              />          ,PROJWBS.wbs_name,
                              PROJWBS.obs_id<br
                              />          ,PROJWBS.parent_wbs_id<br
                              />          ,PROJECT.proj_id<br
                              />FROM PROJECT INNER JOIN PROJWBS<br />ON
                              PROJECT.proj_id = PROJWBS.proj_id<br />WHERE
                              PROJECT.project_flag ='N'<br />AND
                              PROJWBS.proj_node_flag = 'Y'<br />ORDER BY
                              PROJWBS.wbs_name<br /><br
    />Note that I have listed the parent wbs id which
    is important if some of your "missing" nodes are
    parents of nodes which aren't missing, or vice versa.
    Also, you will want to check the OBSPROJ table to make
    sure the wbs_id's you found above aren't linked with
    any OBS/PROJECT combinations.
    <br
    />DISCLAIMER STUFF I have no idea what the
    consequences are of changing or deleting values from
    these tables, so I can't really recommend a course of
    action, but maybe this'll get you started. Changing
    anything outside the business logic of the SDK/API or
    the actual software is tricky business. I'd run
    anything you plan to try past Primavera first. Then
    I'd test very thoroughly in a development environment
    before applying to live data, which I would back up
    immediately before pulling the trigger. <br
    />
    Hope this helps!

  • [Solved] 27.8.4 How to Create a VO on a REF CURSOR - Missing first row

    Searching the forum I found: BC4J - Get one less row from view object.
    Dive into BC4J related  --REF CURSOR (Resultset)
    The first message did not have any answers, and the second had a follow up question - still no answers though - and I thought I would try a different title.
    (This is off topic, but it would be a great help if the search results also displayed the number of replys in the thread. That way, I wouldn't have to view the messages that don't have responses.)
    (This will be deployed on a server that has the ADF for JDeveloper 10.1.2 installed, so using that version of JDeveloper to develop the app.)
    Okay, back to the problem ==>
    I created a VO from a ref cursor, using the manual as a guide. When I run a page that displays a read only table of the view object, I am missing the first row. (Always the first row!) I don't have any order set, and if I call the ref cursor in a Java program for testing, I see all rows and the count is correct.
    One other point, when I call the page, I get the following validation error:
    Validation Error
    You must correct the following error(s) before proceeding:
    * JBO-29000: Unexpected exception caught: java.lang.ClassCastException, msg=null
    * null
    I still see the table, it is just missing the first row of data.
    In my form I have first, previous set, next set , and last
    navigation buttons. If I press last then first, the error goes away. I still don't see the missing row though.
    Any guidance would be appreciated! I can post my code, but it is pretty much the same code in the AdvancedViewObjectExamples.zip in the ViewObjectOnRefCursor example. I just substituted my two package calls (getRefCursor and getRefCursorCount).
    Thanks, Ken

    Went back to a backup copy of the source. Fixed the error. Now I'm back to just not being able to see the first row of data.
    Additional Note: I had removed fields in the display. Once I truncated the ps_txn table in the schema defined by the model, the data would display (Still without the first record.)
    Are there any examples that are more in depth than the few pages in the developer guide?
    Here is the code for my VOImpl class:
    package newslinearchive.model.datamodel;
    import java.math.BigDecimal;
    import java.sql.CallableStatement;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Timestamp;
    import java.sql.Types;
    import oracle.jbo.InvalidParamException;
    import oracle.jbo.JboException;
    import oracle.jbo.domain.Date;
    import oracle.jbo.domain.Number;
    import oracle.jbo.server.DBTransaction;
    import oracle.jbo.server.QueryCollection;
    import oracle.jbo.server.SQLBuilder;
    import oracle.jbo.server.ViewObjectImpl;
    import oracle.jbo.server.ViewRowImpl;
    import oracle.jbo.server.ViewRowSetImpl;
    import oracle.jdbc.driver.OracleCallableStatement;
    import oracle.jdbc.driver.OracleTypes;
    // --- File generated by Oracle ADF Business Components Design Time.
    // --- Custom code may be added to this class.
    // --- Warning: Do not modify method signatures of generated methods.
    public class SearchRefCursorImpl extends ViewObjectImpl {
    * This is the default constructor (do not remove)
    public SearchRefCursorImpl() {
    * Overridden framework method.
    * Executed when the framework needs to issue the database query for
    * the query collection based on this view object. One view object
    * can produce many related result sets, each potentially the result
    * of different bind variable values. If the rowset in query is involved
    * in a framework-coordinated master/detail viewlink, then the params array
    * will contain one or more framework-supplied bind parameters. If there
    * are any user-supplied bind parameter values, they will PRECEED the
    * framework-supplied bind variable values in the params array, and the
    * number of user parameters will be indicated by the value of the
    * numUserParams argument.
    protected void executeQueryForCollection(Object qc,Object[] params,int numUserParams) {
    storeNewResultSet(qc,retrieveRefCursor(qc,params));
    super.executeQueryForCollection(qc, params, numUserParams);
    * Overridden framework method.
    * Wipe out all traces of a built-in query for this VO
    protected void create() {
    getViewDef().setQuery(null);
    getViewDef().setSelectClause(null);
    setQuery(null);
    * Overridden framework method.
    * The role of this method is to "fetch", populate, and return a single row
    * from the datasource by calling createNewRowForCollection() and populating
    * its attributes using populateAttributeForRow().
    protected ViewRowImpl createRowFromResultSet(Object qc, ResultSet rs) {
    * We ignore the JDBC ResultSet passed by the framework (null anyway) and
    * use the resultset that we've stored in the query-collection-private
    * user data storage
    rs = getResultSet(qc);
    * Create a new row to populate
    ViewRowImpl r = createNewRowForCollection(qc);
    try {
    * Populate new row by attribute slot number for current row in Result Set
    // populateAttributeForRow(r,0, rs.getLong(1));
    // populateAttributeForRow(r,1, rs.getString(2));
    // populateAttributeForRow(r,2, rs.getString(3));
    // MASTERID NOT NULL NUMBER
    populateAttributeForRow(r,0, rs.getBigDecimal(1));
    //ID NOT NULL NUMBER
    populateAttributeForRow(r,1, rs.getBigDecimal(2));
    // CAID NOT NULL NUMBER
    populateAttributeForRow(r,2, rs.getBigDecimal(3));
    // LANGUAGE NOT NULL VARCHAR2(30)
    populateAttributeForRow(r,3, rs.getString(4));
    // IS_CURRENT_VERSION NOT NULL NUMBER(1)
    populateAttributeForRow(r,4, rs.getBigDecimal(5));
    // FOLDER_ID NOT NULL NUMBER
    populateAttributeForRow(r,5, rs.getBigDecimal(6));
    // FOLDER_REGION_ID NOT NULL NUMBER
    populateAttributeForRow(r,6, rs.getBigDecimal(7));
    // NAME NOT NULL VARCHAR2(256)
    populateAttributeForRow(r,7, rs.getString(8));
    // DISPLAY_NAME VARCHAR2(256)
    populateAttributeForRow(r,8, rs.getString(9));
    // ITEMTYPE NOT NULL VARCHAR2(30)
    populateAttributeForRow(r,9, rs.getString(10));
    // SUBTYPE VARCHAR2(40)
    populateAttributeForRow(r,10, rs.getString(11));
    // SUBTYPE_CAID NUMBER
    populateAttributeForRow(r,11, rs.getBigDecimal(12));
    // PARENT_ITEM_ID NUMBER
    populateAttributeForRow(r,12, rs.getBigDecimal(13));
    // CATEGORY_ID NUMBER
    populateAttributeForRow(r,13, rs.getBigDecimal(14));
    // CATEGORY_CAID NUMBER
    populateAttributeForRow(r,14, rs.getBigDecimal(15));
    // AUTHOR VARCHAR2(50)
    populateAttributeForRow(r,15, rs.getString(16));
    // DESCRIPTION VARCHAR2(2000)
    populateAttributeForRow(r,16, rs.getString(17));
    // PUBLISH_DATE NOT NULL DATE
    populateAttributeForRow(r,17, rs.getDate(18));
    // EXPIREMODE VARCHAR2(90)
    populateAttributeForRow(r,18, rs.getString(19));
    // EXPIRENUMBER NUMBER
    populateAttributeForRow(r,19, rs.getBigDecimal(20));
    // EXPIREDATE DATE
    populateAttributeForRow(r,20, rs.getDate(21));
    // IMAGE VARCHAR2(350)
    populateAttributeForRow(r,21, rs.getString(22));
    // KEYWORDS VARCHAR2(2000)
    populateAttributeForRow(r,22, rs.getString(23));
    // URL VARCHAR2(4000)
    populateAttributeForRow(r,23, rs.getString(24));
    // FILENAME VARCHAR2(350)
    populateAttributeForRow(r,24, rs.getString(25));
    // TEXT CLOB()
    populateAttributeForRow(r,25, rs.getClob(26));
    // FOLDER_LINK_ID NUMBER
    populateAttributeForRow(r,26, rs.getBigDecimal(27));
    // FOLDER_LINK_CAID NUMBER
    populateAttributeForRow(r,27, rs.getBigDecimal(28));
    // ACTIVE NOT NULL NUMBER(1)
    populateAttributeForRow(r,28, rs.getBigDecimal(29));
    // CAN_BE_CHECKEDOUT NUMBER(1)
    populateAttributeForRow(r,29, rs.getBigDecimal(30));
    // IS_ITEM_CHECKEDOUT NUMBER(1)
    populateAttributeForRow(r,30, rs.getBigDecimal(31));
    // CHECKER_USERNAME VARCHAR2(256)
    populateAttributeForRow(r,31, rs.getString(32));
    // CHECKOUT_DATE DATE
    populateAttributeForRow(r,32, rs.getDate(33));
    // FULLSCREEN NOT NULL NUMBER(1)
    populateAttributeForRow(r,33, rs.getBigDecimal(34));
    // INPLACE NOT NULL NUMBER(1)
    populateAttributeForRow(r,34, rs.getBigDecimal(35));
    // CREATEDATE NOT NULL DATE
    populateAttributeForRow(r,35, rs.getDate(36));
    // CREATOR NOT NULL VARCHAR2(256)
    populateAttributeForRow(r,36, rs.getString(37));
    // UPDATEDATE DATE
    populateAttributeForRow(r,37, rs.getDate(38));
    // UPDATOR VARCHAR2(256)
    populateAttributeForRow(r,38, rs.getString(39));
    // SECURITY VARCHAR2(25)
    populateAttributeForRow(r,39, rs.getString(40));
    // VISIBLE NOT NULL NUMBER(1)
    populateAttributeForRow(r,40, rs.getBigDecimal(41));
    // SEQUENCE NOT NULL NUMBER
    populateAttributeForRow(r,41, rs.getBigDecimal(42));
    // CATEGORY_SEQUENCE NOT NULL NUMBER
    populateAttributeForRow(r,42, rs.getBigDecimal(43));
    // AUTHOR_SEQUENCE NOT NULL NUMBER
    populateAttributeForRow(r,43, rs.getBigDecimal(44));
    // CREATE_DATE_SEQUENCE NOT NULL NUMBER
    populateAttributeForRow(r,44, rs.getBigDecimal(45));
    // ITEMTYPE_SEQUENCE NOT NULL NUMBER
    populateAttributeForRow(r,45, rs.getBigDecimal(46));
    catch (SQLException s) {
    throw new JboException(s);
    return r;
    * Overridden framework method.
    * Return true if the datasource has at least one more record to fetch.
    protected boolean hasNextForCollection(Object qc) {
    ResultSet rs = getResultSet(qc);
    boolean nextOne = false;
    try {
    nextOne = rs.next();
    * When were at the end of the result set, mark the query collection
    * as "FetchComplete".
    if (!nextOne) {
    setFetchCompleteForCollection(qc, true);
    * Close the result set, we're done with it
    rs.close();
    catch (SQLException s) {
    throw new JboException(s);
    return nextOne;
    * Overridden framework method.
    * The framework gives us a chance to clean up any resources related
    * to the datasource when a query collection is done being used.
    protected void releaseUserDataForCollection(Object qc, Object rs) {
    * Ignore the ResultSet passed in since we've created our own.
    * Fetch the ResultSet from the User-Data context instead
    ResultSet userDataRS = getResultSet(qc);
    if (userDataRS != null) {
    try {
    userDataRS.close();
    catch (SQLException s) {
    /* Ignore */
    super.releaseUserDataForCollection(qc, rs);
    * Overridden framework method
    * Return the number of rows that would be returned by executing
    * the query implied by the datasource. This gives the developer a
    * chance to perform a fast count of the rows that would be retrieved
    * if all rows were fetched from the database. In the default implementation
    * the framework will perform a SELECT COUNT(*) FROM (...) wrapper query
    * to let the database return the count. This count might only be an estimate
    * depending on how resource-intensive it would be to actually count the rows.
    public long getQueryHitCount(ViewRowSetImpl viewRowSet) {
    Long result = (Long)callStoredFunction(NUMBER,
    "PORTAL.SEARCH_REFCURSOR.getRefCursorCount",
    viewRowSet.getParameters(true));
    return result.longValue();
    // ------------- PRIVATE METHODS ----------------
    * Return a JDBC ResultSet representing the REF CURSOR return
    * value from our stored package function.
    * new Object[]{getNamedBindParamValue("Email",params)}
    private ResultSet retrieveRefCursor(Object qc, Object[] params) {
    ResultSet rs = (ResultSet)callStoredFunction(OracleTypes.CURSOR,
    "PORTAL.SEARCH_REFCURSOR.getRefCursor",
    null);
    return rs ;
    private Object getNamedBindParamValue(String varName, Object[] params) {
    Object result = null;
    if (getBindingStyle() == SQLBuilder.BINDING_STYLE_ORACLE_NAME) {
    if (params != null) {
    for (Object param : params) {
    Object[] nameValue = (Object[])param;
    String name = (String)nameValue[0];
    if (name.equals(varName)) {
    return (String)nameValue[1];
    throw new JboException("No bind variable named '"+varName+"'");
    * Store a new result set in the query-collection-private user-data context
    private void storeNewResultSet(Object qc, ResultSet rs) {
    ResultSet existingRs = getResultSet(qc);
    // If this query collection is getting reused, close out any previous rowset
    if (existingRs != null) {
    try {existingRs.close();} catch (SQLException s) {}
    setUserDataForCollection(qc,rs);
    hasNextForCollection(qc); // Prime the pump with the first row.
    * Retrieve the result set wrapper from the query-collection user-data
    private ResultSet getResultSet(Object qc) {
    return (ResultSet)getUserDataForCollection(qc);
    * Return either null or a new oracle.jbo.domain.Date
    private static Date nullOrNewDate(Timestamp t) {
    return t != null ? new Date(t) : null;
    * Return either null or a new oracle.jbo.domain.Number
    private static Number nullOrNewNumber(BigDecimal b) {
    try {
    return b != null ? new Number(b) : null;
    catch (SQLException s) { }
    return null;
    //----------------[ Begin Helper Code ]------------------------------
    public static int NUMBER = Types.NUMERIC;
    public static int DATE = Types.DATE;
    public static int VARCHAR2 = Types.VARCHAR;
    public static int CLOB = Types.CLOB;
    * Simplifies calling a stored function with bind variables
    * You can use the NUMBER, DATE, and VARCHAR2 constants in this
    * class to indicate the function return type for these three common types,
    * otherwise use one of the JDBC types in the java.sql.Types class.
    * NOTE: If you want to invoke a stored procedure without any bind variables
    * ==== then you can just use the basic getDBTransaction().executeCommand()
    * @param sqlReturnType JDBC datatype constant of function return value
    * @param stmt stored function statement
    * @param bindVars Object array of parameters
    * @return function return value as an Object
    protected Object callStoredFunction(int sqlReturnType, String stmt,
    Object[] bindVars) {
    CallableStatement st = null;
    try {
    st = getDBTransaction().createCallableStatement("begin ? := " + stmt +
    "; end;", 0);
    st.registerOutParameter(1, sqlReturnType);
    if (bindVars != null) {
    for (int z = 0; z < bindVars.length; z++) {
    st.setObject(z + 2, bindVars[z]);
    st.executeUpdate();
    return st.getObject(1);
    catch (SQLException e) {
    throw new JboException(e);
    finally {
    if (st != null) {
    try {
    st.close();
    catch (SQLException e) {}
    /**Gets the bind variable value for Email
    public String getEmail() {
    return (String)getNamedWhereClauseParam("Email");
    /**Sets <code>value</code> for bind variable Email
    public void setEmail(String value) {
    setNamedWhereClauseParam("Email", value);
    /**getEstimatedRowCount - overridden for custom java data source support.
    public long getEstimatedRowCount() {
    long value = super.getEstimatedRowCount();
    return value;
    Thanks, Ken

Maybe you are looking for

  • IMAP Mail and syncing with Server

    So I would like to convert from POP mail to IMAP. I have created a new account in Mail and so far I have been able to receive emails no problem. The issue is that sent emails are not being saved and I cannot save drafts. I can send emails fine but I

  • How to create an editable table in webdynpro for ABAP? Help!

    Hi Experts,         I have a requirement where I have to create a webdynpro for ABAP table for new row/rows entry, delete row/rows and update row/rows data. This is something like table control in normal ABAP. how can I achieve this? Is there any suc

  • How do i make a group in messaging

    How do i create a group in messaging?

  • Console cable to USB adapter

    Can anyone recommend a USB adapter to use with a console cable?

  • Where are root certificate located in OS 10.6.8?

    I have been using Outlook for my mail, as Mail has dropped several attachments and does not seem to be as reliable.  However, I am receiving error messages informing me that the root certificates for my .me account are not trusted.  I accessed Keycha