Page level process doesn't works for tabular form.....

I am developing an application on inventory of an chemical factory.......
I have an master-detail form where detail table is in tabular form.......
I have an LOCATION1 AND QUANTITY1 COLUMN in detail table..........
I have location say...LT01A02 AND limit of each location to hold an quantity is .....say 1000.
I wrote an process for these but it doesn't work.......
declare
x NUMBER(6);
z number(6);
begin
selecT NVL(SUM(QUANTITY1),0) INTO x from RM_LOCATION1 where LOCATION1 = :P3_LOCATION1;
z := x;
if :P3_LOCATION1 LIKE'%1)' or :P3_LOCATION1 LIKE'%2)' then
if z > 1200 then
raise_application_error(-20101,'LOCATION YOU HAVE SELECTED IN LOCATION1 IS 1ST OR 2ND PALLETE ,WHICH CAN HAVE MAXIMUM 1200KG,PLEASE CHECK IT PHYSICALLY');
end if;
elsif :P3_LOCATION1 LIKE'%3)' or :P3_LOCATION1 LIKE'%4)' then
if z > 800 then
raise_application_error(-20101,'LOCATION YOU HAVE SELECTED IN LOCATION1 IS 3RD OR 4TH PALLETE ,WHICH CAN HAVE MAXIMUM 800KG,PLEASE CHECK IT PHYSICALLY');
end if;
elsif :P3_LOCATION1 LIKE'%5)' or :P3_LOCATION1 LIKE'%6)' then
if z > 750 then
raise_application_error(-20101,'LOCATION YOU HAVE SELECTED IN LOCATION1 IS 5TH OR 6TH PALLETE ,WHICH CAN HAVE MAXIMUM 750KG,PLEASE CHECK IT PHYSICALLY');
end if;
elsif :P3_LOCATION1 LIKE'%7)' or :P3_LOCATION1 LIKE'%8)' OR :P3_LOCATION1 LIKE'%9)' or :P3_LOCATION1 LIKE'%10)' OR :P3_LOCATION1 LIKE'%11)' or :P3_LOCATION1 LIKE'%12)' then
if z > 600 then
raise_application_error(-20101,'LOCATION YOU HAVE SELECTED IN LOCATION1 IS 7TH OR 8TH OR HIGHER PALLETE ,WHICH CAN HAVE MAXIMUM 600KG,PLEASE CHECK IT PHYSICALLY');
end if;
end if;
end;
I HAVE SEEN THAT APEX DOESN'T PICKS VALUE CALLED... _:P3_LOCATION1_*
NOW WHAT TO DO ,CAN ANY ONE HELP ME....HOW TO RUN THESE PROCESS......

Hi User XY,
tabular forms do not have Page Items. The values you entered in the tabular form are stored in arrays like APEX_APPLICATION.g_f01 to g_f50.
Here are some links you might find helpful: http://www.talkapex.com/2008/07/manually-creating-tabular-form.html
http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21676/apex_app.htm#CHDICJDA
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at and http://www.wirsindapex.at

Similar Messages

  • Update process does not work on Tabular Form

    Hello,
    I have 2 tabular forms on one page, which are using manual update processes.
    First form is created using wizard, and therefore works perfectly.
    The update process is as follows:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f01.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*03*(i) || '|' || APEX_APPLICATION.G_f*04*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Second form is created manually, using the following code:
    SELECT apex_item.checkbox (30,
                               '#ROWNUM#',
                               'onclick="highlight_row(this,' || '#ROWNUM#'|| ')"',
                               NULL,
                               'f30_' || '#ROWNUM#'
                              ) delete_checkbox,
           CATALOG_ID,
              apex_item.hidden (31, CATALOG_ID)
           || apex_item.text (32,
                              LANG,
                              80,
                              100,
                              'style="width:100px"',
                              'f32_' || '#ROWNUM#'
           || apex_item.hidden (33, wwv_flow_item.md5 (LANG, DESCRIPTION)) LANG,
           apex_item.text (34,
                           DESCRIPTION,
                           80,
                           100,
                           'style="width:255px"',
                           'f34_' || '#ROWNUM#'
                          ) DESCRIPTION
      FROM V_CATALOGS
    UNION ALL
    SELECT     apex_item.checkbox
                              (30,
                               TO_NUMBER(9900 + LEVEL),
                               'onclick="highlight_row(this,' || '#ROWNUM#' || ')"',
                               NULL,
                               'f30_' || TO_NUMBER (9900 + LEVEL)
                              ) delete_checkbox,
               NULL,
                  apex_item.hidden (31, NULL)
               || apex_item.text (32,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:100px"',
                                  'f32_' || TO_NUMBER (9900 + LEVEL)
               || apex_item.hidden (33, NULL) LANG,
               apex_item.text
                                               (34,
                                                NULL,
                                                80,
                                                100,
                                                'style="width:255px" '  ,
                                                'f34_'
                                                || TO_NUMBER (9900 + LEVEL)
                                               ) DESCRIPTION
          FROM DUAL
         WHERE :P18_TEMP = 'ADD_ROWS1'
    CONNECT BY LEVEL <= 1However, the update process does not work on this form.
    I created it using the first one as an example, but with the id's of the second form:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*32*(i) || '|' || APEX_APPLICATION.G_f*34*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Also, both forms are opening in a modal pop-up dialog window.
    I use a Dialog Region plug-in for that.
    Please advise, what is causing a problem with update?

    Sloger,
    if this is your tabular form
    SELECT apex_item.checkbox (30,
    ...and this is your update statement
    FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
    ...Then you will only ever update records that have been checked. Unchecked checkboxes are not passed back in the global array. You need to have a hidden column with the ID's for the record and loop through that when you are updating/inserting. That is why the built in tabular form has a MRU and a MRD. the MRU loops through the hidden ID column. The MRD loops through the checkbox.
    Thanks,
    Tyson Jouglet

  • Page turn effect doesn't work for PDFs in iBooks

    Hi All,
    Page turn in iBooks doesn't seem to be working for PDF files. Whenever I open the PDF file on Macbook, iBooks opens the file in Acrobat reader.
    I was just wondering if this is the default behaviour or something can be changed to get the page turn effect for PDFs in iBooks.
    Configuration:
    Macbook Pro OS X 10.9.2
    I would appreciate any help on this.

    That is normal. My PDFs open in Preview as that is what I use as the default application for reading PDFs.

  • Delete button doesn't work in tabular form after upgrade from APEX3.2 to 4

    I just upgraded the APEX from 3.2 to 4.0. However, my application is not working anymore.
    First of all, my delete button in tabular form is not working. When I select a row and click the delete button, the row is not deleted, however the message showed 1 row is deleted.
    Could you anybody tell me how can I debug this problem?
    Thanks a lot !

    I had the same problem. I first tried the solution above, but that didn't work. I also had a derived column for a custom popup and some display only columns. I removed the derived column and took out the display columns from my query. I then made sure my column order matched the source query. I applied changes and the delete button worked. FYI. I found out by some testing that it was actually trying to delete from the table, but with the wrong id. My first editable field was qty so if the qty was equal to 2 it then tried to delete from the table where pk=2(I had to restore that record). I believe it is related to the bug above. Backup your app first. I always do before I mess with the tabular forms.
    Jeff

  • "Exclude page from menu" doesn't work

    Choosing Page > Page Properties > Menu Options > Exclude page from menus doesn't work for me in the current release. Anybody else having this problem?

    Humm?
    Just tested both your process and again by going to Plan View > rt-click on page >  Menu Options and both instantly remove the page.
    Have you tried just making  simple/quick test site with 2-3 pages and trying? 
    Maybe somthing in your site and not in Muse that's causing the issue.

  • Multi Row Update for Tabular Form

    1) I'm trying to understand how the built-in MRU works for tabular forms: While running through every row, does it check for changes before issuing an UPDATE or does it blindly UPDATE every row in the current pagination range?
    2) If I need to write my own Multi Row Update process for tabular forms, could someone give me some tips on how to do that?
    Thanks,
    Pavel

    1) It stored a checksum for each row that it renders. It calculates the checksum again before processing the rows. The UPDATE statement it issues has a predicate like where old_checksum!=new_checksumSo, it only updates the rows that have at least 1 column value that is different (causing the row checksum to be different)
    2) See the howto at http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html

  • How can I add a new Template to My Templates in Pages? I've read most of the discussions on the subject but it doesn't work for me. By the time I reach the Templates folder, I only see templates for Numbers and not for Pages. Need help, please.  Thanks

    How can I add a new Template to My Templates in Pages? I've read most of the discussions on the subject but it doesn't work for me. By the time I reach the Templates folder, I only see templates for Numbers and not for Pages. Need help, please.  Thanks

    Si vous avez utilisé la commande Save As Template depuis Pages, il y a forcément un dossier
    iWork > Pages
    contenant Templates > My Templates
    comme il y a un dossier
    iWork > Numbers
    contenant Templates > My Templates
    Depuis le Finder, tapez cmd + f
    puis configurez la recherche comme sur cette recopie d'écran.
    puis lancez la recherche.
    Ainsi, vous allez trouver vos modèles personnalisés dans leur dossier.
    Chez moi, il y en a une kyrielle en dehors des dossiers standards parce que je renomme wxcvb.template quasiment tous mes documents Pages et wxcvb.nmbtemplate à peu près tous mes documents Numbers.
    Ainsi, quand je travaille sur un document, je ne suis pas ralenti par Autosave.
    Désolé mais je ne répondrai plus avant demain.
    Pour moi il est temps de dormir.
    Yvan KOENIG (VALLAURIS, France)  mercredi 23 janvier 2011 22:39:28
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Find function cntrl-f doesn't work for long pages. frustrating

    find function cntrl-f doesn't work for long pages. Works find on your competitions IE, though I strongly prefer FF.
    == This happened ==
    Every time Firefox opened
    == Several versions of FF

    Hi Cb,
    I did try that and it didn't work. the site in question (though I could pick any) is midwestmafia.com and I typed in capone (which is near the end of the page)
    Works well on IE, though I'd like to stick with FF.

  • Syntax for page level process to invoke an on-demand app level process?

    I want to use a page level process (if that's the right thing to do) to run an application process on-demand each time certain pages load. What is the proper syntax for the page level process?
    I tried many variations of the following but it does not pass syntax checking.
    1.
    APPLICATION_PROCESS=GLOBAL_UPDATE;
    2.
    begin
    APPLICATION_PROCESS=GLOBAL_UPDATE;
    end;
    What is the proper syntax?
    Thanks,
    Linda

    Linda - If you want to run an application process when certain pages load, just create an application process (PL/SQL type) with the desired firing point, e.g., On Load: Before Header and in the process condition use a condition type like "Current Page Is Contained Within Expression 1 (comma delimited list of pages)". No need to create either a page process or an on-demand application process to do this.
    Scott

  • T.code S_ALR_87012177. It doesn't work for histories: is there a solution?

    Hi All
    Rif t.code S_ALR_87012177. This report requires, for working, the flag in th filed "Payment history record" in the tab "payment transactions" of customers master data.
    I've adjourned the master data of the customers putting in the field "Payment history record". But the report doesn't work for histories. Is there a program which make the report working for histories too?
    Thanks
    Gandalf
    Edited by: Umberto Gandalf on Mar 23, 2009 12:02 PM

    Hi Suresh,
    I have one issue with same report
    when i seen the report there are two  arrears days are showing to corresponding to the months Feb
    as per the Report S_ALR_87012177 help  following below
    Arrears in days
    The average days in arrears are determined as follows: Every
    incoming payment in the periods concerned is multiplied by its days
    in arrears. These amounts are added together and then divided by the
    total amount from all the incoming payments. This process ensures
      that the days in arrears are weighted by the payment amount
    but for February month there are 9 payments on one customer  and when checked in FBL5N report
    there are no Arrears days on each payment document but in the report "customer history ' there showing  2 days as arrears under " payments with Cash discount .Arrears"
    User has doubt how this report is working to show the Arrears days
    Are there any Formula  , can you please advise me
    if you  knows well   about this
    Regards
    Ranamka

  • Receiver determination doesn't work for same IDoc type but in differentSWCV

    hi guys,
    we have an emergency now. Receiver determination doesn't work for same IDoc type but in different SWCV.Please check below for detail.
    1. The process flow is : R/3 IDoc -> XI -> Third party system
    2. In previous release R13, IDoc ORDERS05 was imported and used in XI and software component version is R13. And receiver determination was created.
    3. Now, in new release R17, IDoc ORDERS05 was imported from R/3 to XI again and software component version is R17. And in R17, the receiver determination created in R13 was used for both old interface(R13) and new interface in R17.
    Then we encountered the problem, both interfaces doesn't work now, even we deleted the receiver condition(In R13, IDoc ORDERS05 was sent to system A, and in R17 IDoc ORDERS05 was sent to system B, RCVPRN was used as an condition).
    Does anyone encounter this problem? really need and appreciate your help.
    -Eddie

    information from monitor:
    Status     Sender               Service Sender Namespace                         Sender Interface
    reschedul  XXXCLNT100     urn:sap-com:document:sap:idoc:messages   ORDRSP.ORDERS05
    columns for "Receiver Service","Receiver Namespace", "Receiver Interface" are blank
    And then double click records in monitor, go into detail information...
    Normally there's lots of setps existed, such as
    Inbound Message ( CENTRAL )
    Receiver Identification
    Interface Determination
    Receiver Grouping
    Message Branch According to Receiver List
    Technical Routing
    Call Adapter
    But now there's only one setp -
    "Inbound Message ( CENTRAL )" existed, no any another setp..., and payload in inbound message looks good.
    And in SMQ2, I checked the queue information, found there's an error - "An exception occurred that was not caught." No any other detail information for this error.

  • [BUG]: MakeWritable doesn't work for mac

    I'm trying to use oracle.jdeveloper.refactoring.util.MakeWritableHelper in my plugin, and I found it doesn't work for MAC. The byte code shows it only check the osname for "Windows" and "Linux".
    and some Jdeveloper refactoring feature failed due to can't make file writable, they may also related to this class.

    My MAC version is OSX 10.5.4.
    I don't have a stacktrace. It just fails silently.
    You can easily reproduce this bug by reformat a readonly file.
    Here is the code I reverse engineered from oracle.jdeveloper.refactoring.util.Util.java:
    public static boolean setReadOnly(java.net.URL url, boolean readOnly)
    boolean ret = false;
    java.lang.String cmdarray[] = null;
    java.lang.String platformPathName = oracle.ide.net.URLFileSystem.getPlatformPathName(url);
    java.lang.String osName = java.lang.System.getProperty("os.name", "");
    if(osName.startsWith("Windows"))
    cmdarray = (new java.lang.String[] {
    "ATTRIB", readOnly ? "+R" : "-R", (new StringBuilder()).append('"').append(platformPathName).append('"').toString()
    else
    if(platformPathName.equalsIgnoreCase("Linux"))
    cmdarray = (new java.lang.String[] {
    "chmod", readOnly ? "u-w" : "u+w", (new StringBuilder()).append('"').append(platformPathName).append('"').toString()
    if(cmdarray != null)
    java.lang.Runtime runtime = java.lang.Runtime.getRuntime();
    try
    java.lang.Process process = runtime.exec(cmdarray);
    if(process.waitFor() == 0)
    ret = (new File(platformPathName)).canWrite();
    if(ret)
    oracle.ide.model.Node node = oracle.ide.model.NodeFactory.find(url);
    if(node instanceof oracle.ide.model.TextNode)
    oracle.ide.model.TextNode textNode = (oracle.ide.model.TextNode)node;
    textNode.isReadOnly();
    catch(java.io.IOException e)
    e.printStackTrace();
    catch(java.lang.InterruptedException e)
    e.printStackTrace();
    return ret;
    }

  • Website doesn't work for downloading driver software

    http://support.hp.com/us-en/product/HP-Officejet-Pro-8600-Plus-e-All-in-One-Printer-series---N911/43... doesn't work for downloading driver software, the link to your page sends me here and it just hangs

    Suz1st wrote:
    I also had download issues re: with getting a newer driver version.
    I have an HP Photosmart Premium (All-in-One_ model c309g-m )
    can you send me a link for that driver?
    What operating system? ForXP, Vista or Windows 7 download the latest software from the link here.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Application Restart and Recovery APIs doesn't work for windows services

    I am using the Application Restart and Recovery mechanism (provided in Windows API Code Pack for Microsoft.NET Framework) to collect some information (i.e. stack information when there's an unhandledexception)  before my windows service crash down.
    It works well for windows form applications, but the callback method wouldn't be called if the host is a windows service. 
    I have checked the article: https://msdn.microsoft.com/zh-cn/subscriptions/downloads/cc303708
    But it doesn't specify clearly whether it works for a windows service. It seems that the recovery will only be activated when the user interacts with the error dialog of Windows Error Reporting (clicking "close" on the dialog, for example).
    So I am wondering is my guess right that the Application Restart and Recovery mechanism doesn't work for windows services. Or is there a better way to meet my requirement? 

    I would suggest trying ARR if that's what you want to use.  The restart portion won't work, but it doesn't need to as if you fail out of your service, the Windows service controller will handle recovery (up to and including restarting your service).
     You configure those recovery actions either through code or one of the built in administrative tools for services such as services.msc.  
    DebugDiag/ADplus and similar tools ultimately do use built-in APIs; you don't need to add anything external to collect debugging information.  You do however have to write a good deal of code to do somethings.  It's pretty simple to use the unmanaged
    function that I pointed out before and
    MiniDumpWriteDump to write a minidump when you hit an unexpected error(the dbghelp.dll that comes installed with Windows has it so you don't need anything additional installed).  You can even write a basic debugger that literally debugs a process using
    only kernel32 functions (see
    https://msdn.microsoft.com/en-us/library/windows/desktop/ms679301(v=vs.85).aspx if you're interested).  
    WinSDK Support Team Blog: http://blogs.msdn.com/b/winsdk/

  • My FaceTime doesn't work for some reason, and i want to know why. ;\  It's iOS 6.1.6

    My FaceTime doesn't work for some reason, and i want to know why. >;\  It's iOS 6.1.6

    Judging by all the posts on the forum, there seems to be an issue at Apple's end, although they have made no announcement on their status page. Some users have reported that Apple is aware of the issue.
    http://www.apple.com/support/systemstatus/

Maybe you are looking for

  • My Firefox 20 seems to not shut down but only restart. Also, rather than my home page, the last pages visited appear.

    It's as if Firefox 20.0 never shuts down but only restarts. Even when I close Firefox 20.0 by clicking the X button on the top right or use "exit," when I open Firefox, it acts the same as if I'd used "restart," namely the tabs don't load until I cli

  • Harmon Kardon AVR 430 and Audigy

    I'm trying to run MP3's through my HK reciever (It has a built in decoder). It looks like it should be straight forward enough. As I understand, I can use a stereo or mono miniplug out of the sound card and crossover to RCA plug for the reciever. I'v

  • Why is my photo downloader dialogue box pixelated?

    I have noticed recently that when I take images off a CF or SD card and use Bridge. The photo downloader dialogue box is not very high quality. The text is pixelated and the over all graphic isn't very high quality. I seem to only notice in this sect

  • IWS 6.0 and Struts 1.1 exception

    Has anyone got iWS 6 working with any of the Struts 1.1 betas? I get an exception in the Jakarta commons logger. Yet it seems to work fine in Tomcat.

  • Disable iOS auto-lock

    @ http://www.adobe.com/products/air/features/ we read : ---Begin Screen dimming (where applicable) Disable auto-lock and screen dimming on the phone to prevent  applications from going to sleep (useful, for example, in a video  streaming application