Problem with page validation APEX_APPLICATion master detail.  Help!

I'm having a problem with the Apex_Application.g_fxx data structure.  I'm trying to validate the lines in my page master detail and need to use apex_application.g_f10 as the name of the variable inside the HTML data source electricity.  The name of the item I need is "f10" because it matches the database column "status" on my page.  I'm trying to validate that all the detail items have the same status, or an error is reported.  I use the following PL/SQL block that returns a Boolean value:

< code >

declare
l_first_value varchar2 (4000);
Start

-f10 = column PO_STATUS of PO_DETAILS table on a part as a table on the page.

l_first_value: = apex_application.g_f10 (1);
because me in 2... apex_application.g_f10. COUNTY
loop
If l_first_value! = apex_application.g_f10 (i)
then
Returns false;
end if;
end loop;
Returns true;
end;


< code >

The HTML data that I is not intended to "f10" are the following:

< code >

< td headers= "Status" class= "t20data" >

< label for= "f10_0000" class= "hideMeButHearMe" >status< /label>

< Select name="f10"  id="f10_0000">

< option value= "" selected= "selected" >make a selection< /option> ""

< option value= 'APPROVED' >APPROVED< /option>

< option valeur= « FERMÉ » >FERMÉ< /option>

</ Select >

< entry type="hidden" name="f02" value=""  id="f02_0000" />

< entry type="hidden" name="f03" value="30427" id="f03_0000" />

< entry type= 'hidden' id= "fcs_0000" name= "fcs" value= "2158A9B101842608F4CA966C0BC1433D" >

< entry type="hidden" id="frowid_0000" name="frowid" value="" />

< entry type="hidden" id="fcud_0000" name="fcud" value="D" />

</ td >


< code >

So I do not know why there could be a problem when used to work before this validation.  The PL/SQL block takes the first line of F10 data and compare it to successive lines.  If the data is not equal, then an error occurs and the user is prompted to adjust the data.

It doesn't work anymore, although I checked and the status are still of points in F10.

I left mouth gaping.  I do not use an official page master detail previously.  I used two separate front pages: one for the header and one for show master detail.  I've updated the page for the treatment of the more fluid user. I think that even if the data structure would be the same, but maybe I'm wrong.

Any ideas?


Thank you!

Thank you to reproduce the problem so overall. Note that if you will share your workspace in this way you need to change your username to something else than a direct email address and don't use not the actual data for your test cases. Create a guest account to developer without administrator privileges to work space for the members of the forum to use.

Validation in this app is coded to use a different picture of the description in this thread. Above, you have identified the point like g_f10 dashboard, but the validation code is using g_f09:

declare
  l_first_value  varchar2(4000);
begin
-- f09 = PO_STATUS column of PO_DETAILS table
  l_first_value := apex_application.g_f09(1);
  for i in 2 .. apex_application.g_f09.COUNT
  loop
    if l_first_value != apex_application.g_f09(i)
    then
        return false;
    end if;
  end loop;
  return true;
end;

Therefore (thanks to instrumentation code added), the validation is running by using the values of the previous column, which was be the one that I have changed according to your instructions:

0.09114

0,00018

... Posting type "Status check IN." -: FUNC_BODY_RETURNING_BOOLEAN

4

0%

0.09132

0,00049

... Run the statement: select count (*) in the sys.dual where exists (Select 1 from PO_DETAILS where PO_ID =: P230_PO_ID)

4

0 g

0.09181

0,00015

...... Result = true

4

0%

0.09196

0.00573

... Run the statement: declare function x return boolean is begin declare

l_first_value varchar2 (4000);

Start

-f09 = PO_STATUS table PO_DETAILS column

l_first_value: = apex_application.g_f09 (1);

apex_debug.message ('g_f09 (1): %s, l_first_value);

because me in 2... apex_application.g_f09. COUNTY

loop

(apex_debug.message('g_f09(%s): %s, i, apex_application.g_f09 (i));

If l_first_value! = apex_application.g_f09 (i)

then

Returns false;

end if;

end loop;

Returns true;

end;

Returns a null value. end; begin wwv_flow.g_boolean: = x; end;

4

28%

0.09769

0.00005

g_f09 (1): TEST2

4

0%

0.09773

0.00010

g_f09 (2): TEST

4

0%

0.09783

0,00003

...... Result = false

4

0%

0.09786

0.00004

...... Does NOT pass

I created a new liquidation which uses the correct column, but at some point the validation passes and data, so I didn't get a chance to conduct tests.

Tags: Database

Similar Questions

  • Problem with script on the master page

    So I have my build script of the unique number bit that I have posted here before... it's on the Initialize event of the field.


    If (this.rawValue == null) {}
    var d = new Date();
    this.rawValue = parseInt(d / 1000);
    }
    else {}
    this.rawValue = rawValue;
    }

    Which works very well if on the body of the form, but if I put it on the master page it re - initializes (and changes the number) whenever a subform gets shown/hidden. No idea how to stop it from doing this? I tried it on a few other events without a bit of luck.

    I came across another problem with this script, a field called 'Date' was interfering with the script - throw an error "the Date is not a constructor. Is - this normal (function/field collision)?

    Hi Jono,

    I had problems with script within the Master pages before. What I've done in the past, it is a textfield hidden in the main pages of script with overall binding (which featured many here today); then same name textfield in the master page picks it up.

    Good luck

    N.

    Post edited by: Niall O'Donovan

  • Satellite L30: Vista problems with pages minimizing

    Hello

    I just bought the computer Satellite L30 toshiba laptop and I'm having problems with pages to minimize whenever I click on the page. Most of the time it happens when I click on the scroll bar, but it also happens when I click on any part of the page and when im typing.

    It becomes very annoying. I've only had this laptop for about 2 weeks and the problem has been there since the first day. IM runing Windows Vista Home Basic Edition.

    No one knows the cause or how to sort?

    Hi maxien

    Question very, very extraordinary in my view we need to know if there of something wrong with the hardware or software
    You have certainly a few disks; Recovery CD
    Then try to reinstall the whole OS again on the operating system and check if the minimization problem
    Please come back and report the results

  • Problem with page number display

    Hi, need some help please.


    I changed without intention some settings or something, but I can't fix it. I have documents (book chapters) that do not start with page 1 but the spirit 230 or 130 or some other number, but I see the sign where you ca see pages or master pages, the only pages starting with 1 (as in "the first page of this document and so on".) On another computer, no problem, the same file number in this Panel page corect.

    Can someone please help and tell me how corect this?

    I almost forgot; I am working on Windows and with InDesign CS3.

    I thank the of to help.

    IonP

    Check your settings on each computer in Edit > Preferences > General > Page numbering. Chances are it's different on both computers.

  • Firefox load any website in a proper way. It loads the wise online website. I'm not facing any problem with other browsers. Can you help me with this problem?

    Hello

    Firefox does not load any website in a proper way. It loads the website, but not in an appropriate manner. It loads in the good column.
    Another website are load appropriately.
    Can you help me solve this problem?

    Thank you

    You can try the following steps in case of problems with web pages:

    You can reload webpages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and delete cookies only from Web sites that cause problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe

    See also:

  • Windows live mail has stopped working properly. Can view the Inbox but not send e-mail messages. Send a message: problem with page caused either to stop working.

    My windows live mail has stopped working correctly: I can view my Inbox but not send emails, because a box appears and indicates a problem with this caused page internet explore to stop working. This seems to be connected to the other problem I have with windows live messenger, who says his side by side configuration is incorrect.

    I uninstalled windows live essentials and reinstalled it but still the same result. Have also installed all updates via the windows installer.

    I am close to throw the computer because the problem seems irreparable: HELP!

    Hello

    The question you have posted is related to Windows Live, and would be better suited in the Windows Live forum. Please visit the link below to find a community that will provide the support you want. http://windowslivehelp.com/

  • I'm having a HUGE problem with my computer (Lengthy and detailed)

    I have serious problems with my computer and I don't know what to do, it's a very long story, so be prepared. I use Windows Vista Home Premium

    -J' have been very frustrated by this virus call "Adware one Step" so I deleted manually, because my Mcafee security has not detected, neither the 'MalwareBytes' or 'HitmanPro.

    -With a sigh of relief that I have (hopefully) got rid of the program, I wanted to play this game called roblox. But I received an error

    "The application could not initialize properly (0xc0000135). Click OK to terminate the application"

    -Then, after a little research I tried to get the Windows service pack 2 to solve my problems, so I decided to get the Windows Update as well as 19 other important updates. When I try to install the Service Pack, I get the error

    'ERROR_NOT_FOUND 0 X 80070490.

    When my updates finished, they are all impossible to install, which resulted in the error 'Code 490. Looked up code490 error, nothing, gone.

    -The site of Microsoft, suggested that I have download the system analysis tool in which I did. When it was first downloaded it stop 3/4S the way on the progress bar. And being impatient that I am, I forced closed and refused to work, so I deleted and got another, and now the progress bar... doesnt move at all. Strangely if it ends after the installation of 2-3 hours without the moving bar at all.

    -So the thought of my problems are solved, I have re - download the Service Pack and once again failed.

    Basically, after I tried all the solutions for the most part they gave me to try to fix the service pack and nothing came. I tried CCleaner and nothing. I'm now desperate beyond this point.

    -Another solution was to do a 'sfc/scannow' in the command prompt, I do it and the report comes with 1 corrupted file.

    "The details are included in the convertible bonds. Journal windir\Logs\CBS\CBS. Newspaper. For example C:\Windows\Logs\CBS\CBS.log.

    Not really but do understand, he moved.

    -A final solution that I began to resort to the had to reinstall windows vista home premium again. But demand for the solution that I choose the 'upgrade' choice, but has been grayed out not because of my version of windows is quite recent.

    Yet once, did not. I'm in a tight jam. My last resort is a wipe to CLEAN the computer and reinstall all programs. The problem is, I don't really know what important programs to save, because my father was the one who set up this computer at the time, and I had no idea on how to put it together after a clean reboot.

    Unfortunately my father is no longer here, so I'm completely alone with this problem. Help, please.

    What application or antivirus security suite is installed and your current subscription?  What anti-spyware (other than Defender) applications?  What third-party firewall (if applicable)?  Who were these applications that run in the background when you tried to install SP2?

    A (another) Norton or McAfee application has already been installed on the computer (for example, a free trial version which is preinstalled when you bought it)?

    See if a reset fixes the problem: http://support.microsoft.com/kb/971058 (Tip: run the difficulty in the default and if necessary, aggressive mode.)

    Otherwise...

    Free unlimited installation and compatibility support is available for Windows Vista SP2 issues until August 30, 2010. Availability of support chat or messaging differs depending on your location. Some questions may require that more support for which he is advanced a charge.  Go to http://support.microsoft.com/oas/default.aspx?prid=13014&gprid=582034 & select appropriate category (i.e., download problem;) Installation problem; Problems after installing a service pack).

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Problem with the change of payment details

    Hello

    I tried many times to update my credit card payment information, but I can't change the 'old'.

    I still got the message "there is a problem with the information of card entered here. Please enter another card or contact your bank. »

    The card is newly issued and is on the name of my company. I paid her for other accounts online without a hitch, then there is no problem on my side.

    I use a Mac and Google Chrome.

    Is it possible for me to provide details by e-mail and make the change?

    I await your response and thank you in advance,

    Cristina

    This is an open forum, not Adobe support... Click below to contact Adobe staff for help

    While the forums are open 24/7 you can't contact Adobe support at any time

    Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • I have problems with the text... Help

    Hey

    I have problems with the text box in indesign cs4...

    When I do a text frame and write a short text and want to make a new line and press ENTER, my cursor goes to the next page and the small red cross in the corner of my document apears.

    someone knows what to do here?

    I realle need your help

    Thank you

    This has been covered a lot. A BIOS update may be an option to solve the problem of keyboard mapping, you can change your keyboard shortcuts to reassign the digital keypad input to be a paragraph return or you can try simply by changing the State of the numlock - if it is on, turn it off and vice versa. Withthis problem most of the systems that seems to change the function of the two keys back and forth between the enter alpha and entry number.

  • Problems with pages.ect

    Hello everyone, I have a problem with the pages. After erasing my macbook air completely, I can't seem to get back them and it seems that I have to pay for it. What should I do to get back them.

    Thank you

    OS X App Store. Contact store support and start a conversation with them. This is a site to users, and we cannot do it for you.

    If you are connected to the OS X App Store and press the option key and tab buy, you have an option to download the Pages again? If not, then the first paragraph.

  • I have a problem with the reception of MMS! Help!

    Good evening everyone.

    I hope that you all can help me, I hope that I can ask for help here. I found this place on Google looking for answers on my phone.

    I was not able to find an answer or a solution for my problem. I hope this place can help, I really need to cause.

    So I got my new Motorola Droid 3 back in August 2011, I think that I don't really remember the exact date. But since I got it I really have not had any problems with it. A few times he has not desire to market even if it was fully charged I jumped all simply the back opened and removed the battery, then put back to solved the problem.

    I did not really send picture messages since I got my phone, of course I sent normal text messages but just not been sending images to third parties or received no more. Well yesterday my good friend sent me a picture and for me he gets up and shows the message size, and has two buttons indicating the download and the other one that said reject and then he said: the date it will expire. So I clicked on the download button, the text turned gray and says download. So I waited... and waited and waited some more more, but nothing appeared. I thought maybe it was the message, but today at my mother and sister tried to send me picture messages and that they would not open either. He comes to say download I waited thirty minutes for each message today and nothing.

    It upsets me and I don't know what to do or how to fix. There, can someone help me? Give me some information or give me a solution? Should I just go to Verizon to ask them for help? Or y at - it an easy way to solve this problem.

    So please please please someone help!

    Please and thank you!

    I'm sorry if you can't post it here, I thought that you could, I saw a few here. But I'm not really used to post in the forums.


  • Problem with HP Officejet Pro 8600 printer - HELP Please!

    Help!

    I installed a new set of cartridges (black and color) in my printer HP Officejet Pro 8600 today and now it won't print a document.  I did everything I knew to do that isn't much.  I even uninstalled and reinstalled the printer without success.  I am a 71 year grandmother, who is working on a project for my grandson.  A kind person out there in cyperspace could you please give me some advice on how to restore my printer?  Thank you! Sharon-

    I'm so bad that down below where I have to select a category, I don't know even what to check, because I don't think my problem apply to one of them.  It's just a problem with a printer.  Will you please excuse anything I check because I do not know and there is no "miscellaneous" category

    Thank you very much for the reply.  After "fiddling around" with the cartridges, uninstalling and reinstalling etc, I finally got to work.

    Thanks again for your response!  I appreciate your time!

    Sharon

  • Lost my copy and I tried to download the iso from the Microsoft web site, but my product key will not validate, pass this message: we had a problem with the validation query

    Original title: error Windows 7 installation files

    I bought a copy of Windows 7 at Tiger Direct on 22/05/2014.  I lost my copy and I tried to download the iso from the Microsoft web site, but my product key is not valid.  I get this error message

    We had a problem with the request for approval.

    FAQ

    See for other directions:

    http://answers.Microsoft.com/en-us/Windows/wiki/Windows_7-update/how-to-what-are-my-options-for-obtaining-Windows-7/528163c1-0b2e-4AD2-a26d-7112851d1dc2

  • There is a problem with your recent update payment details

    Hello

    I get this message:
    Oh no! There is a problem with your recent payment. Update payment details for uninterrupted service.

    But I have no idea what the 'problem' and payment information are correct...


    What should I do? It seems impossible to contact any Adobe

    Hi Frederic,.

    I checked with your Adobe Id on the forums and found information on the billing issue.

    I wrote a message with details please check.

    Kind regards

    Bani

  • (Muse) having problems with pages

    Hi guys

    I did encounter a small problem of pages, what image I clicked on my site. He will direct the link to the homepage (home).
    How can I disable this?

    I thank very you much for sending me the .muse file.

    In the master page, you applied a hyperlink to the image of the logo at the home of anchor. This creates a conflict.

    If you remove the hyperlink from the image of the logo, it will work fine.

    Concerning

    Vivek

Maybe you are looking for

  • Can I embed a YouTube video in a Pages document?

    Can I embed a YouTube video in a Pages document?

  • LaserJet P1102: do not print landscape

    It is surely not normal... I just said my new P1102 cannot print landscape. I have not heard this kind of thing being said since about 1987 Symphony finally worked out how to print spreadsheets in format landscape. Surely this is not right? Can peope

  • Its narrow.

    Hello I bought the Clip + a month before, with the latter... http://www.Amazon.com/JBuds-Hi-Fi-noise-reducing-buds-black/DP/B000IG66VS/ref=sr_1_3?ie=UTF8&s=elect... They look much better than the default headset and the sounds of the player is great.

  • help closing a pop-up (open with Skillbuilder popup) AND passing a return value to the parent window

    I use apex 4.2 as well as the pop-up skillbuilder.   The parent (p110) window opens a child using skillbuilders 2.0 popup.  The pop-up (p114) transmits a report worth (#VESSEL_ID #) after confirmation by the user.For some reason any and I'm sure it's

  • To another server to Vcenter Server

    I am currently in the process of planning a move / upgrade vCenter server, the current version, we are on East 5.1.0 would you recommend to install the same version as a 'move' and then making a separate upgrade regarding the jump since 5.1.0 to 5.5.