Need help with a very simple example.  Trying to reference a value

Im very new to Sql Load and have created this very simple example of what I need to do.
I just want to reference the ID column from one table to be inserted into another table as DEV_ID.
Below are my: 1) Control File, 2) Datafile, 3) Table Description, 4) Table Description
1) CONTROL FILE:
LOAD DATA
INFILE 'test.dat'
APPEND
INTO TABLE p_ports
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
DEV_id REF(CONSTANT 'P_DEVICES',NAME),
NAME FILLER ,
PORT_NO
2) DATAFILE:
COMM881-0326ES09,6
3) TABLE DESCRIPTION:
SQL> describe p_ports
Name Null? Type
ID NOT NULL NUMBER(10)
DEV_ID NOT NULL NUMBER(10)
PORT_NO     NUMBER(3)

hi,
i managed to do this for my app. (think i referred to viewTransitions sample code and modified quite a bit)
i can't remember this well cos i did this quite a while back, but i will try to help as much as possible
1) from the appdelegate i initialize a root controller (view controller class)
2) this root controller actually contains two other view controllers, let's call it viewAController and viewBController, for the screens which u are going to toggle in between. and there's also a function, let's call it toggleMenu, which will set the menus to and fro. i copied this whole chunk from the sample code. it actually defines the code on what to do, i.e. if current view is A switch to B and vice versa.
3) inside the controller files, you need to implement the toggleMenu function too, which basically calls the rootController's toggleMenu
4) we also need viewA and viewB files(view class)
5) need to add the .xib files for the respective views and link them up to the controller class. i did not use the .xib files for ui layout though, because of my app's needs. however, it will not work properly without the .xib files.
5) inside the view class of both views, i.e. viewA.m and viewB.m, you need to create a button, that will call the toggleMenu function inside the respective controller class.
it will look something like this:
[Button addTarget:ViewAController action:@selector(toggleMenu:) forControlEvents:UIControlEventTouchUpInside];
so the flow is really button (in view)-> toggleMenu(viewController) -> toggleMenu(rootController)
i'm sorry it sounds pretty hazy, i did this part weeks before and can't really remember. i hope it helps.

Similar Messages

  • Need help with something VERY SIMPLE

    I'm brand new to Motion - as if today - but I'm only trying to do some VERY simple motions with photos - a simultaneous zoom in and reposition. What I've been doing is setting the starting key frame at one position (adjusting the x, y) and setting the scale. Then I create a second key frame and adjust the postion and scale. It will do the zoom, but then it re adjusts the starting position. If I readjust the starting key frame, it automatically readjusts the second key frame. I don't get it! Applying the various 'behaviors' doesn't seen to help. Certainly there's something obvious here that I'm missing - as I was able to do this in FCP. For some reason the key frames are not fixed when it comes to position.

    hi,
    a couple of thoughts?
    did you actually set a keyframe for position at the first frame?
    Also unless you are parked right on a keyframe or have the record button on, if you adjust a value, all the values for all keyframes adjust accordingly. I often mess something up because I wasnt parked on a keyframe.
    hth
    adam

  • Need Help with a very simple view transition scenario

    Hello All,
    I am trying to learn how view transitions work and I am having a very hard time with the sample apps (like transition view app etc)...I need something much more simple at first. Can you please provide me a little guidelines on how to set up this following scenario:
    App loads up and shows a title screen with a button that says go. When you click on the go button the title screen fades out and a new view fades in (or slides in, or anything at all).
    Right now I have 3 nib files. There is the main one that is called on application start (tied with MainViewController, a subclass of IUViewcontroller just like in the hello world app. After the app loads the app delegate object tells the MainViewController object to load in another view controller object (via addSubview) which is tied with the second nib file; my title screen with the button. When I press the button I was thinking in the IBAction function to tell the MainViewController object to remove (or transition out somehow) the title screen view controller object then add the other view (third nib file in). This is the part I can't get working. Am I on the right track or have a gone hideously astray? Thank you!

    hi,
    i managed to do this for my app. (think i referred to viewTransitions sample code and modified quite a bit)
    i can't remember this well cos i did this quite a while back, but i will try to help as much as possible
    1) from the appdelegate i initialize a root controller (view controller class)
    2) this root controller actually contains two other view controllers, let's call it viewAController and viewBController, for the screens which u are going to toggle in between. and there's also a function, let's call it toggleMenu, which will set the menus to and fro. i copied this whole chunk from the sample code. it actually defines the code on what to do, i.e. if current view is A switch to B and vice versa.
    3) inside the controller files, you need to implement the toggleMenu function too, which basically calls the rootController's toggleMenu
    4) we also need viewA and viewB files(view class)
    5) need to add the .xib files for the respective views and link them up to the controller class. i did not use the .xib files for ui layout though, because of my app's needs. however, it will not work properly without the .xib files.
    5) inside the view class of both views, i.e. viewA.m and viewB.m, you need to create a button, that will call the toggleMenu function inside the respective controller class.
    it will look something like this:
    [Button addTarget:ViewAController action:@selector(toggleMenu:) forControlEvents:UIControlEventTouchUpInside];
    so the flow is really button (in view)-> toggleMenu(viewController) -> toggleMenu(rootController)
    i'm sorry it sounds pretty hazy, i did this part weeks before and can't really remember. i hope it helps.

  • Help with a very simple horizontal Spry menu

    Hi,
    I’ve always received great help here and I’m sure that if I explain the issue I’m having properly I’ll get some good input.
    This is to do with a very simple horizontal Spry menu, there’s no dropdown involved, only a color change on the rollover.  The menu items are in a shade of blue, then on the rollover each menu item changes to a shade of red, the font color remains white for both.
    What’s mentioned above works flawlessly, the problem I’m having is this … On the rollover when the menu block items turn red, I’m attempting to add a 1px border around the entire block, but when I do the block item seems to want to change its width and height slightly when it’s rolled-over.  As I said, without the border it works perfect.
    Any suggestions will be appreciated.

    steve0308 wrote:
    Hi,
    I’ve always received great help here and I’m sure that if I explain the issue I’m having properly I’ll get some good input.
    This is to do with a very simple horizontal Spry menu, there’s no dropdown involved, only a color change on the rollover.  The menu items are in a shade of blue, then on the rollover each menu item changes to a shade of red, the font color remains white for both.
    What’s mentioned above works flawlessly, the problem I’m having is this … On the rollover when the menu block items turn red, I’m attempting to add a 1px border around the entire block, but when I do the block item seems to want to change its width and height slightly when it’s rolled-over.  As I said, without the border it works perfect.
    Any suggestions will be appreciated.
    You also have to apply the border to the 'a' css selector. If you just apply it to the 'a:hover' css selector then the tab will grow slightly bigger because its adding more width and height to the overall structure.

  • Need help with a file i am trying to print

    i try to print this file using adobe reader with all updates and it says
    can not print pdf
    it is trying to flatten the file before the print
    it still sends it to the printer but my boss says it should not give us an error message
    please help me
    https://www.dropbox.com/s/8ts56kjul4o3ygk/13-118%20IP%202013-11-8.pdf

    You don't need an Event Structure, a simple State Machine would be more appropriate.
    There are many examples of State Machines within this forum.
    RayR

  • [New] Help with a VERY simple asterisk program.

    Alright...I feel like a complete idiot asking this question..but I'm having such trouble writing this program. The program description is here:
    Write a Java application using two for loops to produce the following pattern of asterisks.
    I guess I'm really bad at algorithms yeah? Haha...well, any help would be very much appreciated.

    Hi,
    I don't think you don't need to look through any C programming books.
    When you have a problem like this, do some thinking about what methods you need to use and what the general structure of the program will be.
    You need to print asterisks out to the screen... so you'll need:
    System.out.println
    System.out.printAnd you already know that you need two loops.
    Now you can ask yourself how you might use the print statements with two loops in order to design a basic structure for the program.
    You have 8 lines, so you might want a loop that runs through 8 times, one of the lines printed each time.
    Within this loop, you need another loop that prints out *'s. This loop could run once for each asterisk, but because there is a different number of asterisks on each line, the number of times this loop runs would be variable.
    So a basic structure:
    //loop1 that runs 8 times
        //loop2 that runs once for each *
            print one star
        //end loop2
    //end loop1The key now is to recognise the difference between print and println. I don't know if you alread know, but System.out.print will print a string without creating a new line at the end, and println will create a new line at the end of the printed string.
    Hope that helps. If you have any other problems, post specific questions along with the code you've written and are having trouble with.

  • Help with a VERY simple Automator script

    i spent a few minuted trying to figure this out, but concluded it might be easier to simply ask in the forum how to do this.
    I want to
    1) open a terminal window
    2) execute the following commands:
    cd /Users/lenny/ventrilo/
    lenny$ /Users/lenny/ventrilo/ventrilo_srv
    thats it...
    please help using very small works
    ideally i would like this to be execute when i start up my computer. (i.e. a login script)

    If you need the Terminal window to stay open, then you're looking at scripting Terminal. You can do this with Automator's run applescript action, or you can just use Script Editor (in Applications > AppleScript). Either way you will need to save the workflow/script as an application and drag it to your Login Items (in System Preferences > Accounts).
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "Terminal"
    activate
    set commands to "cd /Users/lenny/ventrilo/ 
    /Users/lenny/ventrilo/ventrilo_srv"
    do script commands in front window
    end tell</pre>
    PowerMac G5 (June 2004) 2x1.8GHz 1.25GB, PowerBook G4 (12-inch DVI) 1x1GHz 768MB   Mac OS X (10.4.3)  

  • Need help with a very strange problem

    I've been using Macs since the Apple IIe and I haven't seen anything like this. I need some help "diagnosing" where the problem might lie, and what to do about it.
    I have the dock to appear and disappear automatically. But when I run the mouse down to the bottom of the screen, it doesn't appear. I have to "click" in that area to get it to appear. Also, when I select a menu in the finder or in an application, and then scroll through the menu items, they do not highlight as they should. I can click on an item to activate it, but they aren't highlighted as I scroll through.
    Also, in some applications, windows don't appear and disappear normally as they should. For example, with Adobe Lightroom I have it set up so that the adjustment panels on the left and right automatically appear and disappear. But they aren't doing that anymore.
    A restart and permissions repair will temporarily solve the problem, but it inevitably returns (sometimes within an hour, sometimes a few days). I have three users on my computer, and it happens in each user account.
    A couple days ago, I did an archive & install. That didn't fix it. Then yesterday I did a full reinstall of Leopard and then used Migration Assistant and Time Machine to migrate my users & applications to the new install. After I repaired permissions and rebooted, the problem was right there again.
    It doesn't seem like the problem is with a user account, since all three accounts have it. So why didn't a reinstall of the system fix it? And what can I do now?

    Althought the behavior is the same in all three accounts, if all are working accounts I would suspect there is something all of them have installed that could be the source of the problem. Try creating a new admin account, and leave it just the way Apple creates it--don't add anything nor modify it in any way. Log into that account and see if it works correctly.
    If that account is also misbehaving, try restarting, and when you hear the chime hold down the Shift key so that you boot into Safe Mode (you'll see a notice in the splash screen about being in Safe Mode). The boot will take longer (perhaps even considerably longer) as the system runs disk repair, empties some caches, disables all third party startup items, as well as all Apple startup items not strictly necessary for the machine to run. See the menus and Dock now behave correctly.
    Since the problem is evidently somewhat intermittent in nature it may take some patience to discover what is wrong. You might also disconnect everything that didn't come with the Mac, reboot, and use only the Apple keyboard and Apple mouse and run for a bit to see how that works. If you are using a third party mouse that required installing something that would be my guess as a "prime suspect" for the cause of the problems.
    Francine
    Francine
    Schwieder

  • Help with Forte: very simple question, please help!

    I recently downloaded the community version of Forte (Sun One) but can't seem to get any new empty class programs to execute properly. I know something is probably not set up right, which is why I really need a little help to get started. Regardless of the code I try to execute, the output error is always:
    "java.lang.NoClassDefFoundError: (name of program)
    Exception in thread "main" "
    Please let me know what I'm not doing right. I would really appreciate anybody's thoughts on this problem because I would love to get Forte working so I can start learning Java. Thanks for your input!

    I would tell you that Forte is not a tool for the beginner. you should look at something simpler. Forte is a fully integrated development environment. I would look at a simple editor like emacs, available at gnu.org. The commands of this editor are quite difficult to get use to.
    As for setting the class varialbe. It depends on the O/s that you are using. win98/me is different than NT/xp. Need to know one or the other before explaining.
    email me if you have question. email address is in my profile.

  • Need help with online book shop example!

    hi everyone!
    i am tryin and completing the online book catalog example given in sap help but i'm facin a prob with the internal table authors.can anybody tell mye the exact way to declare and use it in the program.its quite diff to describe the exact situation but i think the experienced ones will be able to understand my prob.
    eagerly waitin
    regards
    sachin

    if the navigation between pages are not working, the reason could be that the code in oninputprocessing is not maintained properly. if you just copy paste the code from the online tutorial it should work.
    navigation between pages not working? -
    to resolve this place HTTP break point in the code in oninputprocessing and run your application, click the button to navigate to other page, watch in the debugger as to whats going wrong.
    Regards
    Raja

  • Need help with starting a simple calculator

    I have this simple calculator I just started on, and I'm having just a few problems. First of all, I don't know how to append text to a textfield. Maybe I would have to create a string buffere or something. Then, when the user clicks one of the buttons, the compiler goes crazy, and nothing is displayed.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Calculator extends JFrame implements ActionListener
         JButton[] btnNums;
         JButton btnBack;
         JButton btnClear;
         JButton btnCalculate;
         String[] strNames;
         JTextField txtDisplay;
         public Calculator()
              Container content = getContentPane();
              setSize(210,250);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              /*  construct a JPanel and the textfield that
               *  will show the inputed values and outputed
               *  results
              JPanel jpDisplay = new JPanel();
              jpDisplay.setLayout(new BorderLayout());
              txtDisplay = new JTextField(15);
              txtDisplay.setHorizontalAlignment(JTextField.RIGHT);
              jpDisplay.add(txtDisplay);
              /*  contstruct a JPanel that will contain a back
               *  button and a clear button.
              JPanel jpRow2 = new JPanel();
              btnBack = new JButton("Backspace");
              btnClear = new JButton("Clear");
              btnClear.addActionListener(this);
              jpRow2.add(btnBack);
              jpRow2.add(btnClear);
              /*  construct a string array with all the names of the
               *  buttons, then in a for loop create the new buttons
               *  and add their name and an actionListener to them.
              String[] strNames = {"7","8", "9","/", "4", "5", "6","*", "1", "2", "3","+", "0", "+/-", ".", "-"};
              btnNums = new JButton[16];
              JPanel jpButtons = new JPanel();
              jpButtons.setLayout(new GridLayout(4,4));
                for (int i = 0; i < 16; i++)
                     btnNums[i] = new JButton(strNames);
                   btnNums[i].addActionListener(this);
                   jpButtons.add(btnNums[i]);
              /* construct the final JPanel and add a
              * calculate button to it.
              JPanel jpLastRow = new JPanel();
              btnCalculate = new JButton("Calculate");
              btnCalculate.addActionListener(this);
              jpLastRow.add(btnCalculate);
              /* set the contentPane and create the layout
              * add the panels to the container
              setContentPane(content);
              setLayout(new FlowLayout());
              setResizable(false);
              content.add(jpDisplay, BorderLayout.NORTH);
              content.add(jpRow2);
              content.add(jpButtons);
              content.add(jpLastRow);
              setTitle("Mini Calculator");
              setVisible(true);
         public void actionPerformed(ActionEvent ae)
              for (int i =0; i < 16; i++)
                   if (ae.getSource() == btnNums[i])
                        txtDisplay.setText(strNames[i]);
         public static void main(String[] args)
              Calculator calc = new Calculator();

    First of all, I don't
    know how to append text to a textfield.
    textField.setText( textField.getText() + TEXT_YOU_WANT_TO_APPEND );
    Then,
    when the user clicks one of the buttons, the compiler
    goes crazy, and nothing is displayed.No, the compiler doesn't go crazy, the compiler has done it's job by then. However, you do get a NullPointerException, and the stacktrace tells you that the problem is on the following line:
    txtDisplay.setText(strNames);
    It turns out that strNames is null. I leave it to you to find out why. ;-)

  • Need help getting a very simple RMI program running

    I've been pulling my hair out trying to get RMI running on windows. I decided to do a verbatim copy of a tutorial to see if it would work, well it didn't. Here is the sample code:
    //HelloInterface.java - located in dir c:\java
    import java.rmi.*;
    public interface HelloInterface extends Remote {
    public String say() throws RemoteException;
    //Hello.java - located in c:\java
    import java.rmi.*;
    import java.rmi.server.*;
    public class Hello extends UnicastRemoteObject implements HelloInterface {
    private String message;
    public Hello (String msg) throws RemoteException {
    message = msg;
    public String say() throws RemoteException {
    return message;
    //HelloServer.java - located in c:\java
    import java.rmi.*;
    import java.rmi.Naming;
    public class HelloServer{
    public static void main (String[] argv) {
    try {
    Naming.rebind ("Hello", new Hello ("Hello, world!"));
    System.out.println ("Hello Server is ready.");
    } catch (Exception e) {
    System.out.println ("Hello Server failed: " + e);
    Then I open a command prompt and go to c:\java and type:
    C:\java>javac HelloInterface.java
    C:\java>javac Hello.java
    C:\java>rmic Hello
    C:\java>javac HelloServer.java
    I then open a second command prompt and navigate to c:\registry to (to avoid being in the same directory as the stub files) and type:
    C:\register>C:\j2sdk1.4.2_03\bin\rmiregistry
    In the original command prompt, I then run HelloServer. I've tried running it a 100 different ways and always get the same error:
    Hello Server failed: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: Hello_Stub
    I've tried just running it as:
    java HelloServer
    java -classpath . HelloServer
    C:\java>java -Djava.rmi.server.codebase=http://localhost -classpath . HelloServer
    C:\java>java -Djava.security.policy=..\policy.all -Djava.rmi.server.codebase=http://localhost -classpath . HelloServer
    Where policy.all is:
    grant {
         permission java.security.AllPermission;
    And pretty much just about every combination of the above that you can think of.

    //HelloInterface.java - located in dir c:\java
    import java.rmi.*;
    public interface HelloInterface extends Remote {
      public String say() throws RemoteException;
    }//Hello.java - located in c:\java
    import java.rmi.*;
    import java.rmi.server.*;
    public class Hello extends UnicastRemoteObject implements HelloInterface {
      private String message;
      public Hello (String msg) throws RemoteException {
        message = msg;
      public String say() throws RemoteException {
        return message;
    }//HelloServer.java - located in c:\java
    import java.rmi.*;
    import java.rmi.Naming;
    public class HelloServer{
      public static void main (String[] argv) {
        try {
          Naming.rebind ("Hello", new Hello ("Hello, world!"));
          System.out.println ("Hello Server is ready.");
        } catch (Exception e) {
          System.out.println ("Hello Server failed: " + e);
    }I'm not sure what you are saying about the CLASSPATH. I thought rmiregistry had to be ran in a different directory than the stub files and that the stubs shouldn't be in the CLASSPATH of the terminal launching rmiregistry.
    The HelloServer is being ran with the -classpath option set to "." and the stubs are in the same directory.

  • Need help with a email plugin I trying to create

    I modifed some sample code here problem I am having is figuring out how to get the image filename so I can create a loop code to create a comma delimited string of images to be sent to the external program.
    local LrDate = import 'LrDate'
    local LrFileUtils = import 'LrFileUtils'
    local LrPathUtils = import 'LrPathUtils'
    local LrTasks = import 'LrTasks'
    local LrDialogs = import 'LrDialogs'
    local LrView = import 'LrView'
    ExportToEmailTask = {}
    function ExportToEmailTask.processRenderedPhotos(functionContext, exportContext)
        local sysTempPath = LrPathUtils.getStandardFilePath('temp')
        local tempPath = nil
        repeat
            local now = LrDate.currentTime()
            tempPath = LrPathUtils.child(sysTempPath, LrDate.timeToUserFormat(now, 'exporttoemail-%Y%m%d-%H%M%S'))
            if LrFileUtils.exists(tempPath) then
                tempPath = nil
            else
                LrFileUtils.createAllDirectories(tempPath)
            end
        until tempPath
        local exportSession = exportContext.exportSession
        local nPhotos = exportSession:countRenditions()
        local progressScope = exportContext:configureProgress {
                title = nPhotos > 1
                            and LOC ("$$$/ExportToEmail/Progress=Preparing ^1 photos to e-mailed", nPhotos)
                            or LOC ("$$$/ExportToEmail/Progress/One=Preparing one photo to be e-mailed"),
         files = {}
        for i, rendition in exportContext:renditions() do
            local success, pathOrMessage = rendition:waitForRender()
            if progressScope:isCanceled() then break end
            if success then
                local copyPath = LrPathUtils.child(tempPath, LrPathUtils.leafName(pathOrMessage))
                LrFileUtils.copy(pathOrMessage, copyPath)
                local exrendition = exportRendition.photo
                table.insert(files, copyPath)
                --LrDialogs.message ("test",exportRendition.photo)
            else
                error(pathOrMessage)
            end
        end
    --reveals main path that exported files are created.
        LrDialogs.message(tempPath)
        smtpprog = ('"' .. LrPathUtils.child(LrPathUtils.child( _PLUGIN.path, "bin"), "smtpmail.exe".. '" '))
    --Test Code works I get email
        -- if LrTasks.execute (smtpprog.." -server mail.somewhere.com  -f [email protected] -to [email protected] -u [email protected] -pw 1234 -subject you_images -body LR export test -debug -log check.txt")~= 0 then
                    --LrDialogs.message("Failed to run Application")
                    --end
    end
    return {
        hideSections = { 'exportLocation', 'postProcessing' },
        hidePrintResolution = true,
        processRenderedPhotos = ExportToEmailTask.processRenderedPhotos,
    I new at Plugin design so any help will be appreciated.

    Your question is more likely to be answered on the Lightroom SDK forum http://forums.adobe.com/community/lightroom/lightroom_sdk?view=discussions

  • Help with a very simple password field

    The following question can be observed, and manipulated with
    the following:
    Source:
    http://www.ucsdkya.com/kyaonly.fla
    SWF:
    http://www.ucsdkya.com/kyaonly.swf
    I am using embedded fonts for this flash file, and it seems
    that no matter what, it converts my text field to an HTML one. The
    trace feature made it quite obvious! What can I do to remedy this,
    while keeping it the same looking the same. Is there a cheap
    workaround? Thanks!

    Well, it hit me almost a few seconds after (go figure) that I
    could just copy and past the entire trace message as the required
    string for entry. Easy solution.

  • Need help with a simple basketball game.

    Hi im new here and I need help with making this simple basketball game.
    Im trying to recreate this game from this video. Im not sure if he is using as2 or as3
    Or if anyone could help me make a game like this or direct me to a link on how to do it It would be greatly appreciated.

    If you couldn't tell whether it is AS2 or AS3, it is doubtful you can turn it from AS2 into AS3, at least not until you learn both languages.  There is no tool made that does it for you.

Maybe you are looking for