is there a better way to set the value?

It is a very simple application. Here's what I'm trying to accomplish:

I click on the 'new order' button on page 1, and it takes me 10 page. In the meantime a new empty order is created. order_id is stored in the application element.

Page 10, I click on 'choose the customer', and takes me to page 11, where I have a list of customers (a report), and by opting for a client (link column), p10_customer_id is defined, and the application navigates back to page 10.

On page 10, there is a process of page that fires whenever the page is displayed (if order_id is not null), and update the orders table by setting the value of the item p10_customer_id the customer_id.

What I want is simple: create a command, set the customer_id (and possibly settle the customer_id again if the user wants to change).

It works now, but I don't like that the customer_id is updated each time this page is rendered. Simply put the customer_id of page 11 only, when the user selects a customer in the list.

But I have not found a way to do it.

Also, it would be good to create all of the order, the customer id, order items all in one transaction and post them right at the end, but I did see a way to not make any changes on a page when I navigate to another page. Because now, if something unexpected occurs, for example the user does not complete the order (navigates away, or closes the browser), the orders table will be almost completely empty, unused lines

I use Oracle10g XE and Apex 3.1.2

Thank you
Gabor

Hi Gee2,

Have you checked how the collections of the apex? In my opinion, you can create an application of the cleaning by using this technique.
There is a demand to make orders, created by default when you install APEX. Check the app.

I hope this helps.
Kind regards

--
Paulo Vale
http://Apex-notes.blogspot.com

Tags: Database

Similar Questions

  • Is there a better way to remove the toolbar "Frequently used tools" (which I've never used!) to open whenever I open Acrobat reader. rather than uninstall Acrobat and use another PDF reader?

    Is there a better way to eliminate the "frequently used tools.
    toolbar (which I've never used!) to open whenever I open Acrobat
    drive. rather than uninstall Acrobat and use another PDF reader?

    Hi jg49392310,

    You can disable the tool pane with Adobe Acrobat Reader DC was last updated, see this note cover hide the tools Panel in Acrobat and Acrobat Reader DC at all times.

    Kind regards

    Nicos

  • Is there a better way to make the selection on this slider?

    Is there a better way to make the selection on this slider?
    I need to retrieve the test scores max (tesc_code SO1, S02, S03 etc... etc...)
    I get the results presented here, but I wonder if it's a better way to do this.
    The results should be back in the same cursor... e
    CURSOR c_sortest_SAT_scores(p_pidm IN saturn.sortest.sortest_pidm%TYPE,
    p_term in saradap.saradap_term_code_entry%TYPE)
    IS
    SELECT   s01.sortest_pidm       pidm_s01,
             s01.sortest_tesc_code  tesc_code_s01,
             s01.sortest_test_score score_s01,
             s02.sortest_pidm       pidm_s02,
             s02.sortest_tesc_code  tesc_code_s02,
             s02.sortest_test_score score_s02,
             s07.sortest_pidm       pidm_s07,
             s07.sortest_tesc_code  tesc_code_s07,
             s07.sortest_test_score score_s07,
             s08.sortest_pidm        pidm_s08,
             s08.sortest_tesc_code   tesc_code_s08,
             s08.sortest_test_score score_s08,
             s09.sortest_pidm        pidm_s09,
             s09.sortest_tesc_code   tesc_code_s09,
             s09.sortest_test_score  score_s09
      FROM   saturn.sortest s01,
             saturn.sortest s02,
             saturn.sortest s07,
             saturn.sortest s08,
             saturn.sortest s09
     WHERE       s01.sortest_tesc_code IN ('S01')
             AND s01.sortest_pidm = p_pidm
             AND s01.sortest_term_code_entry = p_term
             AND s01.sortest_test_score =
                   (SELECT   MAX (s01a.sortest_test_score)
                      FROM   saturn.sortest s01a
                     WHERE   S01.sortest_pidm = s01a.sortest_pidm
                             AND S01A.sortest_tesc_code IN ('S01'))
             AND s02.sortest_tesc_code IN ('S02')
             AND s02.sortest_pidm = p_pidm
             AND s02.sortest_term_code_entry = p_term
             AND s02.sortest_test_score =
                   (SELECT   MAX (S02A.sortest_test_score)
                      FROM   saturn.sortest s02a
                     WHERE   S02.sortest_pidm = s02a.sortest_pidm
                             AND S02A.sortest_tesc_code IN ('S02'))
             AND s07.sortest_tesc_code IN ('S07')
             AND s07.sortest_pidm = p_pidm 
             AND s07.sortest_term_code_entry = p_term
             AND s07.sortest_test_score =
                   (SELECT   MAX (S07A.sortest_test_score)
                      FROM   saturn.sortest S07A
                     WHERE   S07.sortest_pidm = S07A.sortest_pidm
                             AND S07A.sortest_tesc_code IN ('S07'))
             AND S08.sortest_tesc_code IN ('S08')
             AND S08.sortest_pidm = p_pidm 
             AND S08.sortest_term_code_entry = p_term
             AND S08.sortest_test_score =
                   (SELECT   MAX (S08A.sortest_test_score)
                      FROM   saturn.sortest S08A
                     WHERE   S08.sortest_pidm = S08A.sortest_pidm
                             AND S08A.sortest_tesc_code IN ('S08'))
                     AND S09.sortest_tesc_code IN ('S09')
             AND S09.sortest_pidm = p_pidm 
             AND S09.sortest_term_code_entry = p_term
             AND S09.sortest_test_score =
                   (SELECT   MAX (S09A.sortest_test_score)
                      FROM   saturn.sortest S09A
                     WHERE   S09.sortest_pidm = S09A.sortest_pidm
                             AND S09A.sortest_tesc_code IN ('S09'));

    Hello

    The problem is that you to act as a Cartesian product with all the tables (you will get: S01 * S02 * S08 * S09 lines!) Is it really what you want?
    I don't think...

    Wharton, you can do (with no Cartesian product) is:

    CURSOR c_sortest_SAT_scores(p_pidm IN saturn.sortest.sortest_pidm%TYPE,
    p_term in saradap.saradap_term_code_entry%TYPE)
    IS
    SELECT sortest_pidm pidm, sortest_tesc_code tesc_code,
           sortest_test_score score
      FROM sortest
     WHERE (sortest_tesc_code, sortest_test_score) IN (
              SELECT   sortest_tesc_code, MAX (sortest_test_score)
                  FROM sortest
                 WHERE sortest_tesc_code IN ('S01', 'S02', 'S07', 'S08', 'S09')
                   AND sortest_pidm = :p_pidm
                   AND sortest_term_code_entry = :p_term
              GROUP BY sortest_tesc_code)
       AND sortest_pidm = :p_pidm
       AND sortest_term_code_entry = :p_term
    

    However you absolutely need a Cartesian product, you can do:

    WITH allrows AS
         (SELECT sortest_pidm pidm, sortest_tesc_code tesc_code,
                 sortest_test_score score
            FROM sortest
           WHERE (sortest_tesc_code, sortest_test_score) IN (
                    SELECT   sortest_tesc_code, MAX (sortest_test_score)
                        FROM sortest
                       WHERE sortest_tesc_code IN
                                              ('S01', 'S02', 'S07', 'S08', 'S09')
                         AND sortest_pidm = :p_pidm
                         AND sortest_term_code_entry = :p_term
                    GROUP BY sortest_tesc_code)
             AND sortest_pidm = :p_pidm
             AND sortest_term_code_entry = :p_term)
    SELECT s01.pidm pidm_s01, s01.tesc_code tesc_code_s01, s01.score score_s01,
           s02.pidm pidm_s02, s02.tesc_code tesc_code_s02, s02.score score_s02,
           s07.pidm pidm_s07, s07.tesc_code tesc_code_s07, s07.score score_s07,
           s08.pidm pidm_s08, s08.tesc_code tesc_code_s08, s08.score score_s08,
           s09.pidm pidm_s09, s09.tesc_code tesc_code_s09, s09.score score_s09
      FROM allrows s01, allrows s02, allrows s07, allrows s08, allrows s09
     WHERE s01.tesc_code = 'S01'
       AND s02.tesc_code = 'S02'
       AND s07.tesc_code = 'S07'
       AND s08.tesc_code = 'S08'
       AND s09.tesc_code = 'S09'
    

    The lines will be stored in memory to a temporary table before that product happen (should be faster)...

  • Is there a better way to set up my root directory

    I started to design a Web site for my new project, but I'm not a Web Designer by trade and I just want to check that I've set up my root directory of the site correctly and that there is not a better way.  The screenshot below shows what I have right now

    Screen Shot 2016-08-21 at 11.22.35.png

    I have not yet started to design real pages or customize almost anything because I first wanted to check that I had put in place the root properly.  Is there a better way to implement or have I set up in the best possible way

    If there is a better way, or if I made mistakes then please tell me.

    Jay

    No idea if there is a better way. Can tell you that my sites are configured in exactly in the same way.

  • Is there a better way to generate the custom timed digital signals

    I'm trying to generate the digital output from the top and down with delays on different lines. Each daq assistant is activate single line on a port USB 6501. There more complex high and lows that I need to generate variable time difference between high and low. There is codebelow that does what I'm trying to achieve, but for a model executing high and low signal is much of your time to do it this way. I'm sure there is a better way to do it, I'm not an expert on labview so I only discovered its potential. Anyone can suggest a more effective and a quick way to do it. I would like to hgihly appreciate. Thank you!

    I've not shown in the code below, but using the DAQ assistant, I initialized lines at low logic level.


  • The only region to read - is there a better way to view the data?

    Hi, I have few parts on my page at some point, the data is displayed in read mode. When elements are modifiable, form looks ok, but when you view it in read mode, there are no boxes more and seems very messy (difficult to read). Does anyone know how to organize data on the page?


    Thanks in advance

    Robert

    Robert:

    Setting of the text to be "readOnly" box should keep the scroll bar activated.

    $x('P11_textarea').readOnly = true;

    CITY

  • Set the value of the parameter in the call sequence by programming

    Is there a way to set the value of the parameters of a call sequence with a vi with the context of the sequence in the order which is called? Cases not the same subseqence with a vi in the mainsequence maybe?

    In your VI, I think you should be able to set the value of Step.TS.SData.ActualArgs.paranumber.Expr to the value of the setting that you want. (This property is visible in the Variables pane, only if you have configured the Options of Station to display hidden properties). Note that the purpose of the step should refer to the sequence of your call step.  Also, remember that the property represents an expression, so if you want to pass the value 33, you must enclose the value in quotes ("33").

    Jeff

  • Set the value of cluster control in secondary school

    Hello

    Is there a way to set the value of control from one cluster to a high school?

    I enclose my screw in LV8.0

    Charly

    If you have a reference to the VI being put into secondary (which there or it is not in the secondary, right?) you can use it to get a reference to the façade of the VI. This in turn will allow you to read an array of references to all the controls and indicators on the front of the Secondary VI. Cross this table by looking at the text property of the label: for each reference in the table until you find the one for the control of the cluster.

    Now, use the specific function to more class to convert reference generic control of the pole to a cluster reference. You can use it to get an array of all the controls within the cluster. Now, go through this table by looking at the text property of the label: for each reference in the table until you find the one for control quevous want to set and you are there...

    Mike...

  • On a Windows 7 computer, I installed Firefox 9.0.1 and in my menu edit I have NO preferences at the bottom, so there is no way to set all the parameters

    On a Windows 7 computer, I installed Firefox 9.0.1 and in my edit menu I have NO preferences at the bottom, so there is no way to set all the parameters of the Edit menu opens and I cancel, redo, cut, copy, paste, delete, select all, find... but WITHOUT preferences below. This is a new laptop and nothing like Skype is installed. Installation of Firefox is again today 06/01/12

    Hi bruce,.

    What actually are you looking for? On Windows 7, your options will be under Tools > Options. If you have the Firefox menu, you can press Alt to temporarily activate the menu bar.

    The details of your system say Linux. Say you're on Windows 7 However, correct?

  • is there a better way to remove exact duplicates in my iTunes library, clicking on maintain organized the iTunes media folder is not working is not on for me

    is there a better way to remove exact duplicates in my iTunes library, clicking on maintain organized the iTunes media folder is not working is not on for me

    Do not automatically methods automated in the treatment of duplicates. There are several types of duplicates and how they should be solved is different.

    How to find and delete items duplicated in your iTunes library - http://support.apple.com/kb/HT2905

    More posts by turingtest2 on different types of duplicates and techniques - https://discussions.apple.com/thread/3555601 and https://discussions.apple.com/message/16042406#16042406 (Note: DeDuper script is for Windows).

    http://dougscripts.com/iTunes/scripts/SS.php?SP=scanfordoubleentries

    http://dougscripts.com/iTunes/iTInfo/Dupin.php (commercial) There are other similar tools, including a version much sooner this package called "duplicates iTunes Corral", which I'm sure that would reveal a general web search.

    For example, Corral iTunes duplicates a mod. Eric Pugh - http://opensourceconnections.com/blog/2006/11/11/better-itunes-song-deduping/

    May 2014 post on iCloud duplicates - https://discussions.apple.com/message/25867873#25867873

    See the exact replica (Mac and Windows) - https://discussions.apple.com/message/16951281#16951281

  • Is there a way to set the font size as default in WordPad - Windows 7?

    In Windows 7, is there a way to set the default value in WordPad to Courier 10? I see no place to set the default value. I save my changes and when I close and reopen the document it's back to Courier 11 and the spacing is all off. I create documents for customers who need very specific settings (including a 10 - PT font.) to copy and paste resumes to online applications. Once I have send the plain text for them, they, also, versions I can save these specific parameters. It's extremely frustrating; in XP and Vista, I was able to save 10-PT policy documents. I don't see why this was changed. Any suggestions? Anyone at MS have the power to solve this problem?

    I created a document called a new Doc - highlighted space vacuum-made my the font changes and size and saved.  So when I want a document with my size settings and the police, I opened my new Doc.  Make sure that when you save it you rename this new Doc remains empty.  I created a shortcut on the desktop and open the new Doc instead of WordPad.   I guess you can do your employees.  I hope this helps.

  • When you create a PDF from a scanner, is there a way to set the default value for the size of 8.5 x 11 letter custom every time I make a PDF from a scanner?

    When you create a PDF from a scanner, is there a way to set the default value for the size of 8.5 x 11 letter custom every time I make a PDF from a scanner?

    Hi kevin7frg,

    You can go to "file > create > scanner > configure presets PDF»

    The dialog box that appears, you can choose 8.5 X 11 as the default width and height of PDF pages to scan.

    Hope that helps.

    Kind regards

    Ana Maria

  • Is there a better way? importing a .mp3 at the presentation file complete?

    Is not sure if this is even possible, but I have a .mp3 file I try to import into Captivate. The problem is the file is a large file and those who speak in it is not able to save individual audio clips so I can import in each slide. My thought is to import the entire audio file for each slide and then the change until just the relevant section within each slide. Is there a better way to do?

    Hello

    Normally when you import an audio clip longer than the slide you're importing to, Captivate offers one more option to spread the music across multiple slides.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Does anyone know if there is a way to define the layout of icons on the desktop when it is a 'bureau', then a different configuration for when it's a laptop?

    Original title: desktop themes?

    I use my cell phone as both a laptop and a "desktop"(connecter à un moniteur 24''). "»  Does anyone know if there is a way to define the layout of icons on the desktop when it is a 'bureau', then a different configuration for when it's a laptop?  I don't want to keep moving icons and I'm a little OCD about where they are.

    Hi MelissaES,

    You can follow these links & check if it helps.

    Set up multiple monitors

    Understanding multiple monitors

    Multiple monitors: frequently asked questions

    Hope the helps of information.
    Please post back and we do know.

  • need the simple way to set the computer back to factory settings, and already saved safe data

    need the simple way to set the computer back to factory settings, and already saved safe data

    Vista recovery media obtain and/or use the Partition Recovery Vista on your computer to the factory settings .

    There is no Vista free download legal available.

    Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.

    Normally, they do this for a cost of $ small.

    In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    Also ask them if it is possible to do the recovery disk/s for the recovery Partition in case of a system Crash or hard drive failure.

    They will tell you how to do this.

    Every computer manufacturer has their own way of making recovery disk/s.

    Or borrow a good Microsoft Vista DVD (not Dell, HP, etc).
    A good Vista DVD contains all versions of Vista.
    The product key determines which version of Vista is installed.

    There are 2 disks of Vista: one for 32-bit operating system, and one for 64-bit operating system.

    If install a cleaning is required with a good DVD of Vista (not HP, Dell recovery disks):

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu

    http://support.Microsoft.com/default.aspx/KB/918884

    MS advice on the conduct of clean install.

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    Save all data, because it will be lost during a clean installation.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/default.aspx/KB/326246

    'How to replace Microsoft software or hardware, order service packs and upgrades, and replace product manuals'

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for