Why it triggers the validation of the obligation when rows are deleted?

Hello


My standard Page, Modal I do my secondary Page. I have a grid in my subpage. Record of grid has some
Required fields. I also have a box in my secondary page, when this box is checked, my grid will be hidden and lines
be deleted.


WE CHANGE THE CHECKBOX FIELD:

& myRowset = GetRowset (Scroll.MY_GRIDRECORD);


If MY_RECORD. CHECK_BOX_FIELD = 'Y' Then
GROUPBOX. Visible = False;
I = 1 & at & myRowset.ActiveRowCount
& myRowset.DeleteRow (1);
-End;
& myRowset.HideAllRows ();
On the other

GROUPBOX. Visible = True;
& myRowset.ShowAllRows ();
End - If;



WE CHANGE THE SCOPE OF MY OK BUTTON:

& myRowset = GetRowset (Scroll.MY_GRIDRECORD);


If MY_RECORD. CHECK_BOX_FIELD = 'Y' Then
I = 1 & at & myRowset.ActiveRowCount
& myRowset.DeleteRow (1);

-End;
End - If;

EndModal (1);


Be default checkbox is not checked, and I press OK, it saves even there is no row in my grid but
Whenever I checked or not checked the checkbox, then press OK.

Error comes:
The highlighted area is required. You must enter a value for it before you continue. (15,54)

The specified field is required, but has no value.

My question is, I am remove the record grid OK lines as well as the change of field checkbox if the box is checked then why it triggers the validation of the requirement?

That shouldn't be the case. You could try to encode like this; where you only use the DeleteRow when you press the OK button and not when you press the checkbox. Be sure to include the step - 1, otherwise it will fail anyway.

ON FIELD CHANGE OF CHECK BOX :

If MY_RECORD.CHECK_BOX_FIELD = "Y" Then
GROUPBOX.Visible = False;
&myRowset.HideAllRows();
Else
GROUPBOX.Visible = True;
&myRowset.ShowAllRows();
End-If;

ON FIELD CHANGE OF MY OK BUTTON :

&myRowset = GetRowset(Scroll.MY_GRIDRECORD);
If MY_RECORD.CHECK_BOX_FIELD = "Y" Then
For &i = &myRowset.ActiveRowCount to 1 Step -1
&myRowset.DeleteRow(&i);
End-For;
End-If;

/* Save and do further processing */

Tags: Oracle Applications

Similar Questions

  • does anyone know how to number the photos when they are exported so someone can choose the peak of number

    Anyone know how to number the photos when they are exported from LR, so someone can choose the photo they like with a number

    Sorry took with the last answer.

    More simple form used something like-Sequence_Filename number suffix

    If an image as _ABC0987.nef will become 0001_0987.nef and 0002_0988.nef, etc.

    Ask your customer to give you the full file name. The suffix indicates the original file.

    (I hope that you only need to search in a folder and do not have a bunch of images named the same that would cause problems!)

  • How to hide a column in the report when there are only zeros.

    Hi Experts.,.

    Is it possible to hide a column in the report when there are only zeros.

    Thanks in advance
    Vincent

    Vincent Krishna wrote:
    Hi Experts.,.

    Is it possible to hide a column in the report when there are only zeros.

    Thanks in advance
    Vincent

    No out-of-the-box, but there are several workaround solutions if you want to continue an any of them:

    (1) use a view selector. A single report will be a pivot table with the column, the other will have the same report less column. Users can switch reports.

    (2) use a column selector. The two choices would be this column or an empty space. If white is chosen (because the user has no values), the column "will disappear" according to the report.

    (3) guided use NAV. This method involves the intervention of the user. Build a small report using the single column and put a filter "is not equal to" 0. Because there is only a single column, so all lines are 0, the report returns no rows.

    Use this report in the properties of guided navigation from one section of the dashboard. Assign to this "If the report returns lines" and put the report that contains the column in this section. Now add another article on your table edge and in the properties of guided navigation of this section, set on "If the report will return no rows" and it points to the small report as well. In this section, put a second version of your report without the column in it.

    When the column contains all zeros, the second section with column will not display in it; the first section is not displayed. When at least a line contains a value not zero, the first section is displayed with the column, and the second part will not be.

  • How to get the coordinates of the screen when they are hit.

    Hi all!

    I am a beginner on the development of blackberry, also a beginner in programming in general ^^

    I've done some app using just QML and take some C++ tutorials

    I try to get the coordinate of the screen when the user touches, I wasn't able to do that you use just QML, I found the source TouchEvent and tried to make it work on C++, to get the windowX and windowY coordinates of the touch.

    http://developer.BlackBerry.com/Cascades/reference/bb__cascades__touchevent.html

    I use the image on background to try to get contact with the event.
    So far, we have:

    PPS:

    class LostInSpace : public QObject
    {
        Q_OBJECT
    public:
        LostInSpace(bb::cascades::Application *app);
        virtual  ~LostInSpace() {}
    public slots:
    Q_INVOKABLE float screentouchY(bb::cascades::TouchEvent* event);
    Q_INVOKABLE float screentouchX(bb::cascades::TouchEvent* event);
    
    private:
    QPointer fundo;
    
    };
    

    CPP:

    LostInSpace::LostInSpace(bb::cascades::Application *app)
    
    {
    
        QmlDocument *qml =
    QmlDocument::create("asset:///main.qml").parent(this);
        qml->setContextProperty("app", this);
        AbstractPane *root = qml->createRootObject();
    
        app->setScene(root);
    
        fundo = root->findChild("fundo");
        bool res = QObject::connect(fundo, SIGNAL(touch(bb::cascades::TouchEvent*)),this, SLOT(screentouchY(bb::cascades::TouchEvent*)));
        Q_ASSERT(res);
        res = QObject::connect(fundo, SIGNAL(touch(bb::cascades::TouchEvent*)),
    this, SLOT(screentouchX(bb::cascades::TouchEvent*)));
        Q_ASSERT(res);
    
    }
    
    float LostInSpace::screentouchY(bb::cascades::TouchEvent* event) {
        return event->windowY();
    }
    float LostInSpace::screentouchX(bb::cascades::TouchEvent* event) {
        return event->windowX();
    }
    

    QML: (I'll do later animations, it's just to see if it works. I mean a "unknown simbol app" the Notecard, I thought I just had to put "qml-> setContextProperty ("app", this);  in the constructor)

    ImageView {
                    objectName: "fundo"
                    imageSource: "images/fundo1.png"
                    touchPropagationMode: TouchPropagationMode.Full
                    onTouch: {
                        tiro.translationX = app.screentouchX();
                        tiro.translationY = app.screentouchY();
                    }
                }
    

    Any help will be very appreciated!

    Thank you!

    Hey there,

    You don't need to do... You can access the 'event' TouchEvent object in the notecard: {} area QML...

    ImageView {
                    objectName: "fundo"
                    imageSource: "images/fundo1.png"
                    touchPropagationMode: TouchPropagationMode.Full
                    onTouch: {
                        tiro.translationX = event.windowX
                        tiro.translationY = event.windowY
                    }
                }
    
  • Describe utility load - which replaces just the size when they are imported or he will make a complete replacement.

    I extracted all my standard dimensions and the dimensions of the attribute of PROD, I'm back to DEV importer. After import and redeploy the application in DEV, I see that some dimensions in DEV has more members than prod.

    I want members to examine exactly the same as PROD. What is the parameter I pass to sketch the utility to replace the dimension when importing? Please let me know if anyone has tried this. Appreciate your help.

    I couldn't find it in the oracle documentation.

    Use a column called operation, it can be used for the following

    Update

    Remove Level0

    Remove descendants

    Delete Idescendants

    Members using the utility OutlineLoad of loading / refresh

    Concerning

    Celvin

  • Lose the italics of the word when you are exporting FrameMaker 11 files

    When I import a Word file into image - the italics and boldface are maintained. But if I save the file as HTML or XML - that they disappear. If I retag them with character tags, they are maintained, but work in a science paper the italics are everywhere. Is it possible to find the italic origin and replace with label of character?

    I use FrameMaker 11.

    Are applied in the form of tags in Word character attributes or are they fair substitutions? Check the FM file to see if the items in italics and bold character applied tags. If this is not the case, use the search/replace to quickly label elements.

    1. first create the appropriate character tags.

    2. apply the tag to a single instance.

    3. use the copy > special to pick up the tag of characters to the Clipboard.

    4. use find it > Format characters to find the attribute setting in the shape you want to tag (SHIFT + F8 sets at AsIs ensure you selectt only Hat properties that you need to look for, i.e. italic or bold).

    5. use by gluing... option in the change for you apply character tag to all instances found.

  • How do to display the number of rows Inserted/deleted etc. in PL/SQL

    In Oracle 10 g PL/SQL, I have a delete statement in a stored procedure. This isn't in a cursor. I want to see the number of lines that I deleted. I can use dbms_output.put_line package. I should know this, but I don't have time to perfect syntax. How do I get the number of rows that are deleted and the display via dbms_output.put_lline?

    For example:

    set serveroutput on
    
    begin
    
       delete  dept;
    
       dbms_output.put_line(sql%rowcount);
    
    end;
    /  
    

    Miguel

  • How to treat the points when they are just above the other?

    I was fiddling around with the trace function and create outlines of text. For some reason any sometimes I'll end with two points that overlap each other and no way to get rid of one or the other. How the hell can I clean this up? I know I can do something like simplify to reduce points on an object, but it goes beyond the necessary adjustment to remove one troubling point.

    Even when you zoom in as far as possible I can't to select one point on the other because they are in the same place.

    Also if you want to do this manually the negative of anchor point tool, which is part of the toolset of feather pen icon with the sign less will allow you to remove the top. Also, if you click on the anchor point with the direct Selection tool, and then press DELETE it should remove just an anchor.

    But Concatenate could do this as a difficulty.

    you will find it useful.

  • Form triggers the error when the table trigger fires.

    Hi all!

    Recently, I had to add a modification_date column to a table accessed in several forms.

    In an effort to not modify these several forms, my initial effort was to add an insert/update trigger.

    As you can guess, the trigger works as expected, but an error is triggered by each form to the effect that another user has made changes that require a re - interview.

    Can anyone suggest an alternative method (short discount - I don't still want to send forms if possible)?

    If I am forced to change the forms, SYNCHRONIZE will do?

    Alternatively, do I change before insertion and prior update on each form?

    Thank you!

    Mike

    MikeShannon wrote:
    .. .my initial effort was to add a trigger for insert/updated to date...

    ... As you can guess, the trigger works as expected, but an error is triggered by each form to the effect that another user has made changes that require a re - interview...

    What trigger you added to your table? (Before insert/update; After insert/update?)

    So, the "record error updated by another user" occurs after a change has been introduced and the user attempts to edit the record again - is that correct?  From your description, it's when I 'think' you get the error.  Could clarify you?

    You could just refresh your block after validation, but this would require to change your forms - which is what you were trying to avoid.  I don't think you'll be able to avoid modifing your forms.

    Craig...

  • Why is there the lag when you press the SPACEBAR for playback in edit mode?

    When I press the SPACEBAR to start playback of a file in edit mode, a second of 2-3 delay before playback starts ago, this makes editing very difficult competently. does anyone know of any settings that may resolve this problem or may have another reason for why this might be happening?

    It may happen if the sampling frequency of your hearing file does not match that of your audio interface as hearing should make a conversion of the prior sampling rate it loads the audio buffer.

  • Triggers the hide when clause

    I have a when clause contained in the header of an insert trigger that does not appear when you use SQL Developer to view the code.
    select
      text
    from
      user_source
    where
      name = 'FOO_INSERT_B_TRG'
    order by
      line;
    
    TEXT
    ----
    trigger bar.foo_insert_b_trg
      before insert
      on bar.foo
      for each row
      when (new.foo_id is null)
      declare
    begin
      :new.foo_id := key_pkg.create_key_f ('BAR', 'FOO');
    end foo_insert_b_trg;
    
    9 rows selected
    However, when I go back to the code by double-clicking the trigger I get this.
    create or replace 
    trigger bar.foo_insert_b_trg
      before insert
      on bar.foo
      for each row
      declare
    begin
      :new.foo_id := key_pkg.create_key_f ('BAR', 'FOO');
    end foo_insert_b_trg;
    Note that the 5 line, which has my when instruction, is missing. It is originally this line to actually be deleted when we open the object, modify it, and then save it.

    Published by: mimi on March 22, 2013 11:55

    Published by: mimi on March 22, 2013 12:01

    Published by: mimi on March 22, 2013 12:04

    Hi mimi,

    This problem has been reported before on this forum:
    Unable to see the WHEN clause for a trigger.

    The bug referenced in this thread is a regression in SQL Developer 3.1. and remains open. Any bug comments:

    With only minimal privileges, we query all_triggers to get only the package
    body (when-clause kept in a different column), whereas with
    SELECT_CATALOG_ROLE or DBA role we query dba_source that contains the full
    trigger source.
    

    Alternatives to work around this issue are:
    1. keep several versions of SQL Developer installed, using 3.1 when you need work with triggers.
    2. get additional privileges to avoid regression in 3.2

    Hope this helps,
    Gary
    SQL development team

  • How can I change it time the screen returns to the newspaper in the obligation, when idle.

    If I do not use the system for more than a few minutes he returned to the login screen that requires typing the pasword

    throughout the day, how to change this time-out to lengthenit feature.

    Thanks O T

    Hello

    Open windows control panel, personalization open, click on the link on the bottom right and in the next window, screen saver set time "Wait" to a more acceptable figure and if you would rather not to Log-on after this period of time, Remove the tick box "in»the logon screen curriculum vitae  Click on apply, then Ok to save these changes.

    Kind regards

    DP - K

  • Why is there the lag when the controls of the transformation of an image are changed

    I have not noticed this until the course of the latest updates.   When I manipulate the anchor point, position or scale an image using the sliders to entry in Control Panel under Motion effects image redrawn in the timeline is behind the entrance to the value of the slider with the mouse.   So when I click and drag the x value of the position property of the image does not seem to move at the same speed that the value is changed by the mouse.    It feels like the image try constantly catching up to the value being edited.    It makes it quite difficult to use visually control transform simple handling.

    My best guess is that the most recent update uses the GPU to redraw the images in a way that causes redraw poor and problems behind.   Unfortunately I found the user interface of many Adobe products becoming more and more difficult to use because of problems of refreshment and buggy redrawing issues.

    Can I solve this problem of lag when you change the values for transform a sequence or an image in the Panel effects/movement in some way?

    As I discovered under file > Project Settings > General in the rendering engine: only the Mercury playback engine software and was gray.    I had to update the Nvidia Quadro 5000 drivers version 340.84 to market the MPE GPU accelerated rendering engine.  This solved the problem of lag in refreshment for the images I use on the timeline.

    * I found it strange the GPU of MPE VAC. become disabled without warning until an update of my pilots was completed.

  • LOV does no validation of the list when tabs are

    Hello

    I have an element attached to a generated dynamically based on an another LOV LOV. When I change the value in the parent LOV and click on the child element (which still has the old value) and the tab out, she does not validate in the list that has new values. The old value of the field is actually bad. However, it shows new values when I click the list of values for the child element.

    I am also if the property VALIDATE_FROM_LIST to PROPERTY_TRUE. Set_lov_property to the dynamic query code is generic and is used by key-listval and once - new - item - instance trigger. Except in the listval key, I added list_values.

    I use the version of forms 6i.

    Can someone tell me where I am doing wrong?

    Thank you

    New problem :D

  • Visible = "true" and partialtriggers of the problems when you are using "necessary".

    Hi, I think that I have not had my coffee today, but is it possible to have the following?

    Panelformlayout with a selectOneChoice and three inputText elements. "Visible" from each inputText attribute is based on the value selected in the selectOneChoice. The selectOneChoice a autosubmit = true and each inputText has the selectOneChoice as a partialTrigger. It all works fine, until I try to do the required selectItems = true. The hide-dynamic stops working, and the entries are marked as empty (but the selectOneChoice shows the new value).

    I tried to play with the addition of additional checks for the indicators 'immediate' and 'compulsory', for example, required = "#{pageFlowScope.testBean.requiredSet and pageFlowScope.testBean.showVal1}" but that seems to make no difference. " Someone at - it ideas?

    Example of project: (uncheck the box to display the form works well without defined the required indicator and check to enable the problems I see)

    http://www.mediafire.com/?immky4ynxqi

    In the event that the link above does not work, here is the source:

    JSP:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" title="test thing">
          <af:form id="f1">
            <af:panelStretchLayout id="psl1">
              <f:facet name="center">
                <af:panelFormLayout id="pfl1">
                  <af:group id="grp1">
                  <af:selectOneChoice label="Select" id="selOne"
                                      value="#{pageFlowScope.testBean.selectValue}"
                                      autoSubmit="true" immediate="true">
                    <af:selectItem label="Show: Value 1" value="reqVal1" id="si1"/>
                    <af:selectItem label="Show: Value 1 + 2" value="reqVal1_2" id="si3"/>
                    <af:selectItem label="Show: Value 1 + 2 + 3" value="reqVal1_2_3" id="si2"/>
                  </af:selectOneChoice>
                  <af:inputText label="Value 1" id="it1"
                            visible="#{pageFlowScope.testBean.showVal1}"
                                partialTriggers="selOne"
                                required="#{pageFlowScope.testBean.requiredSet and pageFlowScope.testBean.showVal1}"/>
                  <af:inputText label="Value 2" id="it2"
                            visible="#{pageFlowScope.testBean.showVal2}"
                                partialTriggers="selOne"
                                required="#{pageFlowScope.testBean.requiredSet and pageFlowScope.testBean.showVal2}"/>
                  <af:inputText label="Value 3" id="it3"
                            visible="#{pageFlowScope.testBean.showVal3}"
                                partialTriggers="selOne"
                                required="#{pageFlowScope.testBean.requiredSet and pageFlowScope.testBean.showVal3}"/>
                  <af:inputText label="Value 4" id="it4"/>
                  </af:group>
                    <af:selectBooleanCheckbox
                                            label="Make Vals1-3 required" id="sbc1"
                                              value="#{pageFlowScope.testBean.requiredSet}"
                                              autoSubmit="true"/>
    
                </af:panelFormLayout>
              </f:facet>
              <f:facet name="bottom"><af:spacer width="10" height="10" id="s1"/></f:facet>
              <f:facet name="end"><af:spacer width="10" height="10" id="s2"/></f:facet>
              <f:facet name="start"><af:spacer width="10" height="10" id="s3"/></f:facet>
              <f:facet name="top"><af:spacer width="10" height="10" id="s4"/></f:facet>
            </af:panelStretchLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    TestBean, as managed pageFlowScopeBean:
    package com.testapp.view;
    
    public class TestBean {
    
        private String selectValue = "reqVal1";
        private boolean requiredSet = false;
    
        public TestBean() {
            super();
        }
    
        public void setSelectValue(String selectValue) {
            this.selectValue = selectValue;
        }
    
        public String getSelectValue() {
            return selectValue;
        }
    
        public boolean getShowVal1(){
            return "reqVal1".equals(selectValue)
                || "reqVal1_2".equals(selectValue)
                || "reqVal1_2_3".equals(selectValue);
        }
    
        public boolean getShowVal2(){
          return "reqVal1_2".equals(selectValue)
              || "reqVal1_2_3".equals(selectValue);
        }
    
        public boolean getShowVal3(){
            return "reqVal1_2_3".equals(selectValue);
        }
    
        public void setRequiredSet(boolean requiredSet) {
            this.requiredSet = requiredSet;
        }
    
        public boolean isRequiredSet() {
            return requiredSet;
        }
    
    }
    Thank you
    Barry

    Nick Haralabidis wrote:
    Hello

    The behavior is as expected: you make a value of 1, the value 2 and 3 value required and you autoSubmit on the selectOneChoice. Thus, when you make a selection, value 1, 2 and 3 of the value value are tempted to submit because of the partialTrigger. But since they are required, the validation is triggered.

    No, the validation is thrown in a different phase. The selectOneChoice is immediate and his calls renderResponse ValueChangeListener then the validation phase is never executed. It would be the case if the 3 values were also immediate, but it is not so.

    Nick Haralabidis wrote:

    If you don't want the postings through the Select and always have value 1, 2 and 3 of the required value value, follow these steps:

    (1) remove all partialTriggers of the jsf page

    (2) linking the panelFormLayout to support bean as in:


    Binding = "#{pageFlowScope.testBean.panelMain}" > "

    (3) add a valueChangeListener to the selectOneChoice as in:


    value = "#{pageFlowScope.testBean.selectValue} '"
    autoSubmit = 'true' immediate = "true".
    valueChangeListener = "#{pageFlowScope.testBean.onSelectionChanged}" > "

    (4) in your valueChangeListener add a partialTarget in the Panel as in:

    {} public void onSelectionChanged (ValueChangeEvent valueChangeEvent)
    AdfFacesContext.getCurrentInstance () .addPartialTarget (this.panelMain);
    }

    I tested it and it works :)

    Yes, it's another way to do it.

    Kind regards

    ~ Simon

Maybe you are looking for

  • VPN connection error - pppd limited

    Hi I think I have a problem with OX, the captain and the networks, I sail perfectly with the team but since update stops running the VPN, I tried the possibility to go to recovery mode to 'disable csrutil' then ' sudo chmod u + s / usr / sbin / pppd

  • Preview does not open

    Preview does not open suddenly.

  • Re: Qosmio G30 (PQG32) - buttons does not work

    I have a problem with my Qosmio G30 HD-DVD. I use Windows Vista 64 bit Ultimate, but my buttons will not work. I tried to download the drivers for it, but I couldn't find a 32-bit version.Can someone help me? I also tried to download util_tvap that s

  • Carrying case for Portege R500?

    I'm looking for a pretty tight case, preferably not too bulky, for my Portege R500. I'll use it for travel, so it should be robust (so not something as a sleeve or whatever it is). Any ideas?

  • P780 problem

    Hi I have a question about p780 battery is possible to remove the battery and do not break the seal on the screw? The one I scored on the photo? Person who sold me the phone sad that I broke the seal of the battery by removing it and I lost my warran