Create item and save data...

Hi friends,
[Apps R12]
If I create an item through personalization on a screen ... and I set that it references to an attribute of an existing VO in the screen.. it retrieves the attribute content succesfully if it has values... But.. if I put a new value on it.. it is not saved on database...
Do I need to do anything more?
Thanks.

Hello,
After creating the item , if set the view instance to ProjectBasicInfoVO and view attrinute = Attribute1.
As Attribute1 value is passing as parameter. So it will work
PA_PROJECTS_MAINT_PUB.UPDATE_PROJECT_BASIC_INFO( p_validate_only => FND_API.G_FALSE, p_project_id => :1, p_project_name => :2, p_project_number => :3, p_project_type => :4, p_description => :5, p_project_status_code => :6, p_public_sector_flag => :7, p_carrying_out_organization_id => :8, p_organization_name => :9, p_start_date => :10, p_completion_date => :11, p_territory_code => :12, p_country => :13, p_location_id => :14, p_state_region => :15, p_city => :16, p_attribute_category => :17, p_attribute1 => :18, p_attribute2 => :19, p_attribute3 => :20, p_attribute4 => :21, p_attribute5 => :22, p_attribute6 => :23, p_attribute7 => :24, p_attribute8 => :25, p_attribute9 => :26, p_attribute10 => :27, p_priority_code => :28, p_record_version_number => :29, p_recalculate_flag => :30, x_return_status => :31, x_msg_count => :32, x_msg_data => :33, p_target_start_date => :34, p_target_finish_date => :35, p_security_level => :36, p_long_name => :37, p_funding_approval_status => :38 )
Thanks ,
Kumar

Similar Messages

  • Personalizations with Create Item and Item Style "Pop Up"?

    Can anyone provide me an example of how to create a simple pop up message?  I would attempt to create this with Oracle Personalizations -> Create Item -> Item Style "Pop Up".
    I attempted to create the pop up message but am not successful.
    Any guidenace would be greatly appreciated.
    Thanks!

    Hi Timo,
    My question is related to personalizations in Oracle Self Service pages,  Currently I am on Oracle APPS R.12.1.3.
    The Self Service pages are associated to a VIEW OBJECT that is either copied from Oracle seeded VOs or created and/or modified in JAVA.
    You can also perform a "Personalization" within the form and by pass making updates in JAVA.  This option is available in any self-service screen, top right corner labeled "Personalize Page".  Once you select "Personalize Page, there is a option called "Create Item" that will allow you to create a new column or custom action.
    My request is simply to understand how to utilize the seeded "Create Item" and within this function "Pop Up" in order for a page or message to appear immediately after for example the user select a button or enters data into a field. 
    Not sure if I can perform this within a "Personlization" or is updating the underlining View Object or Controller class is required.
    Thank you and I appreciate any guidance you can provide.
    Robert

  • How can I do to acquire and save date in the same time and in the same file when I run continual my VI without interrupti​on.

    I've attached a VI that I am using to acquire amplitude from Spectrum analyzerse. I tried to connect amplitude ouput to the VI Write Characters To File.vi and Write to Spreadsheet File.vi. Unfortunately when I run continual this VI without interruption, labview ask me many time to enter a new file name to save a new value.
    So, How can I do to aquire and save date in the same time and in the same file when I run continual my VI for example during 10 min.
    Thank you in advance.
    Regards,
    Attachments:
    HP8563E_Query_Amplitude.vi ‏37 KB

    Hi,
    Your VI does work perfectly. Unfortunately this not what I want to do. I've made error in my last comment. I am so sorry for this.
    So I explain to you again what I want to do exactly. I want to acquire amplitude along road by my vehicle. I want to use wheel signal coming from vehicle to measure distance along road. Then I acquire 1 amplitude each 60 inches from spectrum analyzer.
    I acquire from PC parallel port a coded wheel signal coming from vehicle (each period of the signal corresponds to 12 Inches). Figure attached shows the numeric signal coming from vehicle, and the corresponding values “120” and “88” that I can read from In Port vi.
    So I want to acquire 1 time amplitude from spectrum analyser each 5
    period of the signal that I am acquiring from parallel port.
    So fist I have to find how can I count the number of period from reading the values “120” and “88” that I am acquiring from In Port (I don’t know the way to count a number of period from reading values “120” and “88”).
    Here is a new algorithm.
    1) i=0 (counter: number of period)
    2) I read value from In Port
    3) If I acquire a period
    i= i+1 (another period)
    4) If i is multiple of 5 (If I read 5 period)
    acquire 1 time amplitude and write to the same
    file this amplitude and the corresponding distance
    Distance = 12*i). Remember each period of signal
    Corresponds to 12 Inches).i has to take these
    values: 5,10,15,20,25,35,40,45,50,55,60............
    5) Back to 2 if not stop.
    Thank you very much for helping me.
    Regards,
    Attachments:
    Acquire_Amplitude_00.vi ‏59 KB
    Figure_Algorithm.doc ‏26 KB

  • Creating streams and sensor data hub

    Hi all,
    I am working on the Getting Started example from OTN ( "HandsOnSession.pdf" )
    and in the step to create stream and sensor data hub, am having a problem.
    I am working with the Standalone SES v10.1.2 running on a Linux OS.
    While running this command at the Linux Terminal,
    sqlplus system/welcome1@orcl
    I get a -bash: sqlplus command not found error
    I am in the <filepath>/edge/sql $ when I execute it.But I observed that my Oracle edge server install folder doesnot have a sqlplus folder which I think is by default installed in the Oracle_Home folder. There is a sqlj folder though , but am not familiar much with sqlj.
    Could anyone advise on how to connect to the database and create he SDH tables.
    Also in the sqlplus system/welcome1@orcl command, could anyone confirm if the syntax is as below,
    sqlplus <username>/<password>@orcl
    where
    <username> = username used to install the Edge server install
    <password> = password used to install the Edge server install
    would appreciate your response,
    Thanks,
    Vijay

    Hi Vijay!
    The EdgeServer doesn't have a full Oracle installation. Therefore a client tool such as sqlplus is not present. Install a Oracle Database on this machine (as I suspect you do not have a database yet) and use the sqlplus it comes with.
    cu
    Andreas

  • ORA-39080: failed to create queues "" and "" for Data Pump job

    When I am running datapump expdp I receive the following error:
    +++Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc+++
    +++tion+++
    +++With the Partitioning, OLAP and Data Mining options+++
    +++ORA-31626: job does not exist+++
    +++ORA-31637: cannot create job SYS_EXPORT_SCHEMA_01 for user CHESHIRE_POLICE_LOCAL+++
    +++ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95+++
    +++ORA-06512: at "SYS.KUPV$FT_INT", line 600+++
    +++ORA-39080: failed to create queues "" and "" for Data Pump job+++
    +++ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95+++
    +++ORA-06512: at "SYS.KUPC$QUE_INT", line 1555+++
    +++ORA-01403: no data found+++
    Sys has the following two objects as invalid at present after running catproc.sql and utlrp.sql and manual compilation:
    OBJECT_NAME OBJECT_TYPE
    AQ$_KUPC$DATAPUMP_QUETAB_E QUEUE
    SCHEDULER$_JOBQ QUEUE
    While I run catdpb.sql the datapump queue table does not create:
    BEGIN
    dbms_aqadm.create_queue_table(queue_table => 'SYS.KUPC$DATAPUMP_QUETAB', multiple_consumers => TRUE, queue_payload_type =>'SYS.KUPC$_MESSAGE', comment => 'DataPump Queue Table', compatible=>'8.1.3');
    EXCEPTION
    WHEN OTHERS THEN
    IF SQLCODE = -24001 THEN NULL;
    ELSE RAISE;
    END IF;
    END;
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at line 7

    Snehashish Ghosh wrote:
    When I am running datapump expdp I receive the following error:
    +++Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc+++
    +++tion+++
    +++With the Partitioning, OLAP and Data Mining options+++
    +++ORA-31626: job does not exist+++
    +++ORA-31637: cannot create job SYS_EXPORT_SCHEMA_01 for user CHESHIRE_POLICE_LOCAL+++
    +++ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95+++
    +++ORA-06512: at "SYS.KUPV$FT_INT", line 600+++
    +++ORA-39080: failed to create queues "" and "" for Data Pump job+++
    +++ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95+++
    +++ORA-06512: at "SYS.KUPC$QUE_INT", line 1555+++
    +++ORA-01403: no data found+++
    Sys has the following two objects as invalid at present after running catproc.sql and utlrp.sql and manual compilation:
    OBJECT_NAME OBJECT_TYPE
    AQ$_KUPC$DATAPUMP_QUETAB_E QUEUE
    SCHEDULER$_JOBQ QUEUE
    While I run catdpb.sql the datapump queue table does not create:
    BEGIN
    dbms_aqadm.create_queue_table(queue_table => 'SYS.KUPC$DATAPUMP_QUETAB', multiple_consumers => TRUE, queue_payload_type =>'SYS.KUPC$_MESSAGE', comment => 'DataPump Queue Table', compatible=>'8.1.3');does it work better when specifying an Oracle version that is from this Century; newer than V8.1?

  • Problem with item and/or data during page-processing-PS/SQL

    Greetings!
    On my page I have a custom report (from 2 tables) and a small form-field, that adds and edits data in the report. After generating the form with the wizard I added an extra item, to store the id from one of the tables from the report data.
    Now, on submit a calculation should take place, that updates data according user input with a procedure in Page-Prosseses:
    declare a number;
    begin
    case :PLATZ
    when 1 then a:=100;
    when 2 then a:= 50;
    else a:=25;
    end case;
    update TBL_MITGLIEDER set TURNIERPUNKTE = TURNIERPUNKTE + a
    where ID_MITGL = :P14_ID_MITGL;
    end;
    :PLATZ is user selected (1,2,3), :P14_ID_MITGL stores the reference to TBL_MITGLIEDER (and shows the change, when I select another record)
    As I understand, that process should also run, when I submit a chance, but nothing happens then.
    But when I try to save a new record (which worked without any problems before adding that process), I get this error message:
    ORA-06550: line 1, column 64: PL/SQL: ORA-00957: duplicate column name ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table TBL_TURNIERSIEGER.
    Then, when I go back into the app-builder and try to run the page again, I get this message:
    ORA-01403: no data found
         Error      Unable to fetch row.
    I am not sure, if you guys have all the information you need, to know whats going on. Maybe this has to do with session-id and the whay, items are updated. I hope you can help me.
    Thanks, best regards,
    tobi

    First can you please post all log file errors
    >> I can't really give you a solution or specific recommendation since I did not saw this error yet myself, but on your own risk you can try:
    1. You may try to just register 'dts.dll' using regsvr32.exe, but this error may indicate a bigger problem with setup.
    If you are running SQL Server 64bit then try running this at the command prompt: %windir%\syswow64\regsvr32 "%ProgramFiles(x86)%\Microsoft SQL Server\90\dts\binn\dts.dll"
    2. You can try reinstall from start (In this case you have to make sure that you un-install all)
    [Personal Site] [Blog] [Facebook]

  • Any limitation on number of fill and print forms I can post on my website and have external users with Reader fill in, print and mail to me? (I don't need/want them to be able to fill and save data.)

    I would like to post fillable only forms to the public but not give them the option to save or email the filled in form. If they want a copy of what they've filled in, they must print it.
    I believe I can do this by just creating a fillable PDF and posting it without adding any reader extension capabilities. I also believe there is no limitation, as there is for fill and save forms as per this other post I read: Adobe Acrobat X Pro * Enable Reader users to save form data.
    My IT department is telling me they will not allow me to post fillable PDFs online due to a "license limitation" so I started researching this myself, and the above link is the only thing I've found. While that post specifically outlines the limitations on saving filled in forms, I'm really looking for something that specifically tells me that there is no limitation on fillable, non-saveable (yes, I know that's not a word...) forms.
    If anyone can provide additional information for me, I'd appreciate it. Or, if I'm completely wrong in my belief and there's a limitation either way, feel free to set me straight. I'd rather know the correct answer than be right!
    Thanks!!

    If you don't Reader-enable a document, then there are no licensing restrictions involved. Note that Reader 11 and all versions of Acrobat are able to save non-enabled forms, unlike previous versions.
    The question should not be whether a form is savable, but rather whether you used Acrobat to add usage rights to the form AND you (the licensee) plan on receiving filled-in instances (including hardcopies) of it. The simplest way is to not Reader-enable the form and convince your users to use Reader 11 (or Acrobat) if they want to save.

  • Using OBIEE Scheduler to export and save data in excel/pdf

    Hi
    Is it possible to use obiee scheduler and run particular reports and export the data into excel/pdf and save this file at given location on server.
    env: obiee 11g/linux OS
    Thanks for any ideas.

    Hi,
    Yes it is possible.
    As per my knowledge we don't have such option but we can do one way.
    Using IBOTS you can store specific report and specific time in specific location.
    Note : Using JS script.
    Are you going to implement this way send me your mails id will send you js script for doing this.
    Re: Auto SAVE to excel -- Please refer this thread.
    Create js file using the below script and add this js scrif in your ibot advanced tab.
    var FSO = new ActiveXObject("Scripting.FileSystemObject");
    var foldername = 'D:\IBOT'
    if (FSO.FolderExists(foldername))
    var fileName = foldername + "\\" +Parameter(1);
    var fooFile = FSO.CopyFile(Parameter(0), fileName, true);
    else
    FSO.CreateFolder(foldername);
    var fileName = foldername + "D:\IBOT" + Parameter(1);
    var fooFile = FSO.CopyFile(Parameter(0), fileName, true);
    Thanks,
    Satya

  • Steps to plan  and save data in Workbook

    Hi all,
    Please provide me steps to Plan and save a data in a real time cube using workbook.
    I have gone through different articles in SDN and tried to relicate but failed to save the data.
    May be I am missing some thing, some steps. Please provide me with steps as giving links will not help me.
    Thanks
    Sunny

    Hi,
    You will have to follow the below steps to create a workbook which can save data in realtime cube.
    1. First create Aggregation level(mandatory for input ready query which can save data) in Planning Modeler.
        Aggregation level you will have to create on Reatime cube.
        Transaction code for Planning modeler is RSPLAN.
    2. After you have created aggregation level .
       -> Create Query in Query Designer on the Aggregation level.
    3. Make sure that you have made the setting for keyfigure as Input-ready.
        Also make sure to make you have set the Query Property as 'Start Query in Change mode".
       -> Then only query will be eligible for entering and saving the data on execution.
    4. Now when you execute the query in Bex Analyser and save it as Workbook.
    -> Data can only be entered and saved when the query open in input-ready mode.
    5. The best way to check in Bex analyser whether query is input-ready or not is
      -> In the query result layout , use Right lcik of Mouse -> then in the context menu
      -> you should see the following two options apart from other options
    Two options are:
      1. Transfer plan values
      2. Save values
    If you get these two options then query is input ready and you can enter data and save it in realtime cube using the
    Right mouse click -> Save values
    6. If query is not coming as input-ready then it means that not all charateristics are drilled down
       -> means that rows does not contains unique records.
    In that case you will have to drilldown to make each rows contain unique records.
    -> The best way is to restrict the characteristics with variable or single values in filter area.
    -> this will give you drilldown data and so the query will come as input-ready.
    Pls also check the link:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/f234619e3c4c5de10000000a155369/frameset.htm
    Regards,
    Amit

  • How do you you create, write, and save files?

    I created a VI to read 8 channels and display the waveform, which it does. But whenever I try to set up a way to save the data it never works. I want it to give me the option to create a new file, then write the data to there, and save it, and then close the file. How should I go about this?

    I have not opened your attachment, yet.
    Before doing so, you will need to decide if you want to write to:
    a) a measurement file
    b) a regular text file, or
    c) MS Excel Spreadsheet
    The method to write to the above are quite different.  Please decide and let us know..
    R

  • How to open Excel Template save it under a different name and then write and save data to it at regualar intervals

    I have an excel template that I have created. I am opening that template, saving it under a different name, and then writing and saving data to that excel sheet at regular intervals. It is giving me an error 5, I understand what this means and I am trying to work around it.  However after too many hours spent trying to figure it out, I have asked for any help or input. I have attached an example vi, not the actual one since it is very involved.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Power Cycle Test 3.0 Excel Save Testing.vi ‏18 KB

    This snippet encapsulates most of the previous suggestions, and adds a few of my own.
    The first code shows one (simplified) way of building the output file name.  It incorporates the Build Path function to combine Report File Path with the file name (don't need initial "\"), builds the File Name with Format into String, getting the Time part of the name from Format Date/Time String.  I also use Build Path to get the Template path.  Inside the For Loop, another Format into String gets the data that is placed in the 10 Excel cells.  We don't write anything yet -- we're only filling in the cells in the WorkSheet (think of how you use Excel -- you could, but probably don't, save the WorkBook after every cell entry, you wait until you are all done and then do a Save, followed by closing Excel).  Finally, when we are done, we save the file using the output name we want to use, then close Excel (which disposes of the Report Object).  If we want to generate another report, with another (time-based) name, we can put this code into a sub-VI and simply call it again.
    Don't worry if you don't have LabVIEW 2014 (which was used to save this snippet) -- most of the code comes from the original that you posted, so it should be a pretty simple edit to change that code to match this.
    Bob Schor

  • Using SharedObjects to load and save data

    Hello, i am having troubles with using shared objects to save and load data for my highscore feature of my game i am developing in actionscript 3. This is my main code.
    I am trying to update a dynamic text field that acts as an high score function
    [as]
    package
              // initialize;
              import flash.display.MovieClip;
              import flash.utils.Timer;
              import flash.events.TimerEvent;
              import flash.ui.Mouse;
              import flash.events.KeyboardEvent;
              import flash.ui.Keyboard;
              import flash.events.Event;
              import flash.media.SoundChannel;
              import flash.net.SharedObject;
              import flash.text.TextField;
              import flash.display.Stage;
              import flash.events.ProgressEvent;
              public class Game extends MovieClip
                        public static var _stage:Stage;
                        static var so:SharedObject;
                        static var ship:MovieClip;
                        static var healthMeter:HealthMeter;
                        static var score:Score;
                        static var highScore:HighScore;
                        static var enemyShipTimer:Timer;
                        static var gameOverMenu:GameOverMenu;
                        static var startMenu:StartMenu;
                        static var helpMenu:HelpMenu;
                        static var startButton:StartButton;
                        static var returnButton:ReturnButton;
                        static var helpButton:HelpButton;
                        static var pauseButton:PauseButton;
                        static var playButton:PlayButton;
                        static var mainMenuButton:MainMenuButton;
                        public var currentValue:Number;
                        public var loadingProgress:LoadingProgress;
                        public function Game()
                                  loadingProgress = new LoadingProgress();
                                  loadingProgress.x = 550;
                                  loadingProgress.y = 500;
                                  addChild( loadingProgress );
                                  loaderInfo.addEventListener( Event.COMPLETE, onCompletelyDownloaded );
                                  loaderInfo.addEventListener( ProgressEvent.PROGRESS, onProgressMade );
                        public function showMenuScreen():void
                                  _stage = this.stage;
                                  Key.initialize(stage);
                                  ship = new Ship();
                                  healthMeter = new HealthMeter();
                                  var score:Score = new Score();
                                  var highScore:HighScore = new HighScore();
                                  so = SharedObject.getLocal("scores");
                                  if (so.data.score)
                                            highScore.bestScore.text = so.data.score.toString();
                                  else
                                            highScore.bestScore.text = "0";
                                  addChild(score);
                                  addChild(highScore);
                                  gameScore.visible = false;
                                  bestScore.visible = true;
                                  healthMeter.x = 2.5;
                                  healthMeter.y = 576;
                                  gameOverMenu = new GameOverMenu();
                                  gameOverMenu.x = 217;
                                  gameOverMenu.y = 244;
                                  addChild(gameOverMenu);
                                  gameOverMenu.visible = false;
                                  helpMenu = new HelpMenu();
                                  helpMenu.x = 480;
                                  helpMenu.y = 312;
                                  addChild(helpMenu);
                                  helpMenu.visible = false;
                                  returnButton = new ReturnButton();
                                  returnButton.x = 54;
                                  returnButton.y = 52;
                                  addChild(returnButton);
                                  returnButton.visible = false;
                                  gameOverMenu.playAgainButton.addEventListener("mouseDown", newGame);
                                  startMenu = new StartMenu();
                                  mainMenuButton = new MainMenuButton();
                                  startButton = new StartButton();
                                  helpButton = new HelpButton();
                                  startMenu.x = 151;
                                  startMenu.y = 111;
                                  startButton.x = 93;
                                  startButton.y = 426;
                                  helpButton.x = 631;
                                  helpButton.y = 386;
                                  mainMenuButton.x = 656;
                                  mainMenuButton.y = 483;
                                  addChild(mainMenuButton);
                                  mainMenuButton.visible = false;
                                  stage.addChildAt(startMenu, 0);
                                  addChild(startButton);
                                  addChild(helpButton);
                                  startMenu.visible = true;
                                  startButton.visible = true;
                                  helpButton.visible = true;
                                  startMenu.visible = true;
                                  startButton.addEventListener("mouseDown", newGame);
                                  helpButton.addEventListener("mouseDown", helpGame);
                                  mainMenuButton.addEventListener("mouseDown", mainMenu);
                                  returnButton.addEventListener("mouseDown", mainMenu2);
                                  pauseButton = new PauseButton();
                                  pauseButton.x = 896;
                                  pauseButton.y = 63;
                                  pauseButton.addEventListener("mouseDown", PauseGame);
                                  playButton = new PlayButton();
                                  playButton.x = 896;
                                  playButton.y = 63;
                                  addChild(playButton);
                                  playButton.visible = false;
                                  playButton.addEventListener("mouseDown", PlayGame);
                        static function gameOver()
                                  scoreF();
                                  mainMenuButton.visible = true;
                                  healthMeter.visible = false;
                                  pauseButton.visible = false;
                                  gameOverMenu.visible = true;
                                  enemyShipTimer.stop();
                                  for (var i in EnemyShip.list)
                                            EnemyShip.list[i].kill();
                                  ship.takeDamage(-ship.maxHealth);
                        function newGame(e:Event)
                                  addEventListener(Event.DEACTIVATE, PauseGame);
                                  bestScore.visible = false;
                                  gameScore.visible = true;
                                  addChild(pauseButton);
                                  addChild(healthMeter);
                                  addChild(mainMenuButton);
                                  enemyShipTimer = new Timer(750);
                                  enemyShipTimer.addEventListener("timer", sendEnemy);
                                  addChild(ship);
                                  healthMeter.visible = true;
                                  startMenu.visible = false;
                                  mainMenuButton.visible = false;
                                  startButton.visible = false;
                                  healthMeter.visible = true;
                                  pauseButton.visible = true;
                                  playButton.visible = false;
                                  gameOverMenu.visible = false;
                                  helpButton.visible = false;
                                  ship.visible = true;
                                  ship.x = 367;
                                  ship.y = 542;
                                  enemyShipTimer.start();
                                  currentValue = 0;
                                  updateDisplay();
                        function mainMenu(e:Event)
                                  removeEventListener(Event.DEACTIVATE, PauseGame);
                                  bestScore.visible = true;
                                  gameScore.visible = false;
                                  removeChild(mainMenuButton);
                                  removeChild(ship);
                                  healthMeter.visible = false;
                                  startMenu.visible = true;
                                  mainMenuButton.visible = false;
                                  startButton.visible = true;
                                  healthMeter.visible = false;
                                  pauseButton.visible = false;
                                  playButton.visible = false;
                                  ship.takeDamage(ship.maxHealth);
                                  gameOverMenu.visible = false;
                                  helpButton.visible = true;
                                  returnButton.visible = false;
                        function mainMenu2(e:Event)
                                  bestScore.visible = true;
                                  gameScore.visible = false;
                                  healthMeter.visible = false;
                                  startMenu.visible = true;
                                  mainMenuButton.visible = false;
                                  startButton.visible = true;
                                  healthMeter.visible = false;
                                  pauseButton.visible = false;
                                  playButton.visible = false;
                                  gameOverMenu.visible = false;
                                  helpButton.visible = true;
                                  returnButton.visible = false;
                                  helpMenu.visible = false;
                        function PauseGame(e:Event)
                                  enemyShipTimer.removeEventListener("timer", sendEnemy);
                                  stage.frameRate = 0;//
                                  pauseButton.visible = false;
                                  playButton.visible = true;
                        function PlayGame(e:Event)
                                  enemyShipTimer.addEventListener("timer", sendEnemy);
                                  stage.frameRate = 30;//
                                  pauseButton.visible = true;
                                  playButton.visible = false;
                        function helpGame(e:Event)
                                  startMenu.visible = false;
                                  startButton.visible = false;
                                  helpButton.visible = false;
                                  helpMenu.visible = true;
                                  returnButton.visible = true;
                        function sendEnemy(e:Event)
                                  var enemy = new EnemyShip();
                                  stage.addChildAt(enemy, 0);
                                  addToValue(1);
                        function addToValue( amountToAdd:Number ):void
                                  currentValue = currentValue + amountToAdd;
                                  updateDisplay();
                        static function scoreF():void
                                  if (so.data.score)
                                            if (getFinalScore()>so.data.score)
                                                      so.data.score = getFinalScore();
                                                      so.flush();
                                  else
                                            so.data.score = getFinalScore();
                                            so.flush();
                        function updateDisplay():void
                                  if (currentValue>Number(highScore.bestScore.text))
                                            scoreF();
                                            highScore.bestScore.text = currentValue.toString();
                                  TextField(gameScore.getChildByName("scoreDisplay")).text = currentValue.toString();
                                  TextField(bestScore.getChildByName("bestScore")).text = highScore.bestScore.text;
                                  loadingProgress.percentDisplay.text = currentValue.toString();
                        static function getFinalScore()
                                  _stage;
                                  return;
                                  gameScore.currentValue;
                        public function onCompletelyDownloaded( event:Event ):void
                                  gotoAndStop(3);
                                  showMenuScreen();
                        public function onProgressMade( progressEvent:ProgressEvent ):void
                                  setValue( Math.floor( 100 * loaderInfo.bytesLoaded / loaderInfo.bytesTotal ) );
                        public function setValue( amount:Number ):void
                                  currentValue = amount;
                                  updateDisplay();
    [/as]
    when i run this, it crashes with this error.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at Game/updateDisplay()[C:\Users\Ben\Desktop\SFUR\Game.as:329]
              at Game/setValue()[C:\Users\Ben\Desktop\SFUR\Game.as:356]
              at Game/onProgressMade()[C:\Users\Ben\Desktop\SFUR\Game.as:351]
    help would be greatly appreciated.
    if you need any more details please ask.
    Line 329:  if (currentValue>Number(highScore.bestScore.text))
    Line 356:  updateDisplay();
    Line 351:
    setValue( Math.floor( 100 * loaderInfo.bytesLoaded / loaderInfo.bytesTotal ) );
    -Ben

    Ok, i have changed my classes a bit to try and fix the issue. I found a tutorial online called MJW avoider game or something and so i split some of my code in to seperate classes. But now the score doesnt update. I have fixed the loading issue (hopefully) i can access the main menu etc... but the highscore doesnt show at all after a game. Here are my classes.
    Document class (Game.as)
    package
              // initialize;
              import flash.display.MovieClip;
              import flash.utils.Timer;
              import flash.events.TimerEvent;
              import flash.ui.Mouse;
              import flash.events.KeyboardEvent;
              import flash.ui.Keyboard;
              import flash.events.Event;
              import flash.media.SoundChannel;
              import flash.net.SharedObject;
              import flash.text.TextField;
              import flash.display.Stage;
              import flash.events.ProgressEvent;
              public class Game extends MovieClip
                        public static var _stage:Stage;
                        static var so:SharedObject;
                        static var ship:MovieClip;
                        static var healthMeter:HealthMeter;
                        static var score:Score;
                        static var enemyShipTimer:Timer;
                        static var gameOverMenu:GameOverMenu;
                        static var startMenu:StartMenu;
                        static var helpMenu:HelpMenu;
                        static var startButton:StartButton;
                        static var returnButton:ReturnButton;
                        static var helpButton:HelpButton;
                        static var pauseButton:PauseButton;
                        static var playButton:PlayButton;
                        static var mainMenuButton:MainMenuButton;
                        public var currentValue:Number;
                        public var loadingProgress:LoadingProgress;
                        static var highScore:HighScore;
                        public function Game()
                                  loadingProgress = new LoadingProgress();
                                  loadingProgress.x = 550;
                                  loadingProgress.y = 500;
                                  addChild( loadingProgress );
                                  loaderInfo.addEventListener( Event.COMPLETE, onCompletelyDownloaded );
                                  loaderInfo.addEventListener( ProgressEvent.PROGRESS, onProgressMade );
                        public function showMenuScreen():void
                                  removeChild( loadingProgress );
                                  _stage = this.stage;
                                  highScore = new HighScore();
                                  ship = new Ship();
                                  healthMeter = new HealthMeter();
                                  var score:Score = new Score();
                                  so = SharedObject.getLocal("scores");
                                  if (so.data.score)
                                            highScore.bestScore.text = so.data.score.toString();
                                  else
                                            highScore.bestScore.text = "0";
                                  addChild(score);
                                  addChild(highScore);
                                  gameScore.visible = false;
                                  bestScore.visible = true;
                                  healthMeter.x = 2.5;
                                  healthMeter.y = 576;
                                  gameOverMenu = new GameOverMenu();
                                  gameOverMenu.x = 217;
                                  gameOverMenu.y = 244;
                                  addChild(gameOverMenu);
                                  gameOverMenu.visible = false;
                                  helpMenu = new HelpMenu();
                                  helpMenu.x = 480;
                                  helpMenu.y = 312;
                                  addChild(helpMenu);
                                  helpMenu.visible = false;
                                  returnButton = new ReturnButton();
                                  returnButton.x = 54;
                                  returnButton.y = 52;
                                  addChild(returnButton);
                                  returnButton.visible = false;
                                  gameOverMenu.playAgainButton.addEventListener("mouseDo wn", newGame);
                                  startMenu = new StartMenu();
                                  mainMenuButton = new MainMenuButton();
                                  startButton = new StartButton();
                                  helpButton = new HelpButton();
                                  startMenu.x = 151;
                                  startMenu.y = 111;
                                  startButton.x = 93;
                                  startButton.y = 426;
                                  helpButton.x = 631;
                                  helpButton.y = 386;
                                  mainMenuButton.x = 656;
                                  mainMenuButton.y = 483;
                                  addChild(mainMenuButton);
                                  mainMenuButton.visible = false;
                                  stage.addChildAt(startMenu, 0);
                                  addChild(startButton);
                                  addChild(helpButton);
                                  startMenu.visible = true;
                                  startButton.visible = true;
                                  helpButton.visible = true;
                                  startMenu.visible = true;
                                  startButton.addEventListener("mouseDown", newGame);
                                  helpButton.addEventListener("mouseDown", helpGame);
                                  mainMenuButton.addEventListener("mouseDown", mainMenu);
                                  returnButton.addEventListener("mouseDown", mainMenu2);
                                  pauseButton = new PauseButton();
                                  pauseButton.x = 896;
                                  pauseButton.y = 63;
                                  pauseButton.addEventListener("mouseDown", PauseGame);
                                  playButton = new PlayButton();
                                  playButton.x = 896;
                                  playButton.y = 63;
                                  addChild(playButton);
                                  playButton.visible = false;
                                  playButton.addEventListener("mouseDown", PlayGame);
                        static function gameOver()
                                  scoreF();
                                  mainMenuButton.visible = true;
                                  healthMeter.visible = false;
                                  pauseButton.visible = false;
                                  gameOverMenu.visible = true;
                                  enemyShipTimer.stop();
                                  for (var i in EnemyShip.list)
                                            EnemyShip.list[i].kill();
                                  ship.takeDamage(-ship.maxHealth);
                        function newGame(e:Event)
                                  addEventListener(Event.DEACTIVATE, PauseGame);
                                  bestScore.visible = false;
                                  gameScore.visible = true;
                                  addChild(pauseButton);
                                  addChild(healthMeter);
                                  addChild(mainMenuButton);
                                  enemyShipTimer = new Timer(750);
                                  enemyShipTimer.addEventListener("timer", sendEnemy);
                                  addChild(ship);
                                  healthMeter.visible = true;
                                  startMenu.visible = false;
                                  mainMenuButton.visible = false;
                                  startButton.visible = false;
                                  healthMeter.visible = true;
                                  pauseButton.visible = true;
                                  playButton.visible = false;
                                  gameOverMenu.visible = false;
                                  helpButton.visible = false;
                                  ship.visible = true;
                                  ship.x = 367;
                                  ship.y = 542;
                                  enemyShipTimer.start();
                                  currentValue = 0;
                                  updateDisplay();
                        function mainMenu(e:Event)
                                  removeEventListener(Event.DEACTIVATE, PauseGame);
                                  bestScore.visible = true;
                                  gameScore.visible = false;
                                  removeChild(mainMenuButton);
                                  removeChild(ship);
                                  healthMeter.visible = false;
                                  startMenu.visible = true;
                                  mainMenuButton.visible = false;
                                  startButton.visible = true;
                                  healthMeter.visible = false;
                                  pauseButton.visible = false;
                                  playButton.visible = false;
                                  ship.takeDamage(ship.maxHealth);
                                  gameOverMenu.visible = false;
                                  helpButton.visible = true;
                                  returnButton.visible = false;
                        function mainMenu2(e:Event)
                                  bestScore.visible = true;
                                  gameScore.visible = false;
                                  healthMeter.visible = false;
                                  startMenu.visible = true;
                                  mainMenuButton.visible = false;
                                  startButton.visible = true;
                                  healthMeter.visible = false;
                                  pauseButton.visible = false;
                                  playButton.visible = false;
                                  gameOverMenu.visible = false;
                                  helpButton.visible = true;
                                  returnButton.visible = false;
                                  helpMenu.visible = false;
                        function PauseGame(e:Event)
                                  enemyShipTimer.removeEventListener("timer", sendEnemy);
                                  stage.frameRate = 0;//
                                  pauseButton.visible = false;
                                  playButton.visible = true;
                        function PlayGame(e:Event)
                                  enemyShipTimer.addEventListener("timer", sendEnemy);
                                  stage.frameRate = 30;//
                                  pauseButton.visible = true;
                                  playButton.visible = false;
                        function helpGame(e:Event)
                                  startMenu.visible = false;
                                  startButton.visible = false;
                                  helpButton.visible = false;
                                  helpMenu.visible = true;
                                  returnButton.visible = true;
                        function sendEnemy(e:Event)
                                  var enemy = new EnemyShip();
                                  stage.addChildAt(enemy, 0);
                                  addToValue(1);
                        static function scoreF():void
                                  if (so.data.score)
                                            if (getFinalScore()>so.data.score)
                                                      so.data.score = getFinalScore();
                                                      so.flush();
                                  else
                                            so.data.score = getFinalScore();
                                            so.flush();
                        function updateDisplay():void
                                  if (currentValue>Number(highScore.bestScore.text))
                                            scoreF();
                                            Game.highScore.bestScore.text = currentValue.toString();
                                  TextField(gameScore.getChildByName("scoreDisplay")).te xt = currentValue.toString();
                                  loadingProgress.percentDisplay.text = currentValue.toString();
                        static function getFinalScore()
                                  _stage;
                                  return;
                                  gameScore.currentValue;
                        public function addToValue( amountToAdd:Number ):void
                                  currentValue = currentValue + amountToAdd;
                                  updateDisplay();
                        public function onCompletelyDownloaded( event:Event ):void
                                  gotoAndStop(3);
                                  showMenuScreen();
                        public function onProgressMade( progressEvent:ProgressEvent ):void
                                  loadingProgress.setValue( Math.floor( 100 * loaderInfo.bytesLoaded / loaderInfo.bytesTotal ) );
    Counter Class (Counter.as)
    package
              import flash.display.MovieClip;
              public class Counter extends MovieClip
                        public var currentValue:Number;
                        public function Counter()
                                  reset();
                        public function addToValue( amountToAdd:Number ):void
                                  currentValue = currentValue + amountToAdd;
                                  updateDisplay();
                        public function setValue( amount:Number ):void
                                  currentValue = amount;
                                  updateDisplay();
                        public function reset():void
                                  currentValue = 0;
                                  updateDisplay();
                        public function updateDisplay():void
    LoadingProgress class (LoadingProgress.as)
    package
              import flash.text.TextField;
              public class LoadingProgress extends Counter
                        public function LoadingProgress()
                                  super();
                        override public function updateDisplay():void
                                  super.updateDisplay();
                                  percentDisplay.text = currentValue.toString();
    There not all my classes, but they are the classes where the errors are coming from.
    Please remember i am an actionscript noob
    Thanks again, Nacho

  • Can I use wireless WIFI on a 9650 at home and save data usage

    Hi,
    I am ordering a 9650, and have a wireless network at home. I was going to go with the $15 data plan, because i use email mostly. Someone said I could use wifi on my wireless network at home for web pages to save data not going thru the verizon network? I am new to this, can you really do this?
    Thanks

    Gunit wrote:
    Hi,
    I am ordering a 9650, and have a wireless network at home. I was going to go with the $15 data plan, because i use email mostly. Someone said I could use wifi on my wireless network at home for web pages to save data not going thru the verizon network? I am new to this, can you really do this?
    Thanks
    Hi,
    I think you made a great choice ordering the 9650 Bold.  You can probably save a lot of money on the data plan by using the 15 dollar/month plan.  You can do a lot with your BB with just the WiFi.  I turned my WiFi on and turned off the mobile connection and was able to send/recieve emails, chat on Blackberry Messenger, and surf the internet.  For me, using my home WiFi is a lot faster that using the mobile network.  My only advice is to regularly check your My Verizon for your usage on data to make sure you are not going over the max usage for your plan.  Good luck.
    Doc

  • How to create items and BOMs using web services

    Hi All,
    I need to create, change and read Items and BOMs through web services (using SOA Gateway, right). I found this one here: "Process Item (convenience wrapper version)" or "Process Item" within
    Internal Name     EGO_ITEM_PUB
    Type               PL/SQL
    Product          Advanced Product Catalog
    Status          Active
    Business Entity     Catalog Item
    Right now, I don't know how to use it. If somebody has a simple example to create a single item, this would be perfect! Which one would be the right one to read detailed information about an existing item?
    The second object I need to maintain (create, change and read) is BOM. Which API can I use here?
    btw: I use EBS 12.1.1 on windows.
    Many thanks,
    Konrad

    Hi!
    Thanks for your quick answer but unfortunately, I must admit that I'm an absolute beginner with Oracle and EBS and so things like:
    Enable trace and generate the tkprof file or open the form using forms builder to get the name of the API used in thta screen.or
    Please check e-trm site for your question do not help me to much :-(
    Any other advice?
    Konrad
    Api's in EBS
    Re: Api's in EBS
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    Fixed Asset API
    List of API
    Re: List of APIs
    Regard
    Helios

  • Problem with Create PDF and linked data

    Using Acrobat X standard.
    I have a Word 2010 doc with links to Visio and Excel data. 
    When using the CreatePDF option from Word, I consistently get a prompt asking whether I want to update the linked data before creating pdf.  I would like to either (1) turn this prompt off or (2) -- less preferable -- have the linked data always update without prompting.
    Is thre a setting that would accomplish one of these two solutions?
    Thanks,
    Craig
    PS.  All settings in Word have been set such that data IS NOT updated when printing on a regular printer.

    You can print to Adobe PDF.

Maybe you are looking for

  • Unassign Server from a Corrupted Oracle VM Manage 3.1.1 instance

    My problem is that the Oracle Database holding the metadata of the VM Manager that currently owns my VM Server died completely and I'm unable to log in to the VM Manager to manage the VMs living in the Server. I have no (explicit) backup from the Man

  • Ibook g3 no start up after charging?

    ok my ibook g3 (sept 02) was stuck in sleep mode (low batt) charger was unplugged so i plugged it in, charged the ibook now it will not start back up no lights or sounds . This is my frist apple and i got it used, and used it for only 4 mins so any i

  • Passing TIME variable in ALLOCATION

    I have the following allocation, and the variables for my DIM TIME are not working. Does anyone know how I would achieve this in NW version? I would like the script to take the TIME member selected at package run time and get the annual input member

  • HTML Link to iBooks

    Here is the correct syntax for linking to a specific book in the Apple iBookstore ( ###... = a 13 digit isbn number) in HTML: <a href="http://itunes.apple.com/us/book/isbn#############">On Apple iBooks</a> What is the correct syntax for linking a ser

  • Sound Blaster X-Fi skips a beat in windows media player! Help

    I'm going crazy... My media player occasionally skips a beat when I listen to music, or even when I watch movies... though it's rarely a beat in a movie. I don't know what to do, no one I've asked have any idea why this happens. I've formatted my com