Validate the question in table form

It's my PLSQL:

DECLARE
l_error VARCHAR2 (4000);
BEGIN
BECAUSE me in 1... apex_application.g_f01. COUNTY
LOOP
IF (apex_application.g_f05 (i) IS NOT NULL
AND apex_application.g_f09 (i) IS NULL)
THEN
l_error: =.
l_error
|| "< other >".
|| ': Flag_Code must be selected ";
END IF;
END LOOP;

RETURN LTRIM (l_error, "< other >");
END;

The logic is that, if G_F05 (i) is filled with values AND G_F09 (i) IS NULL when the SEND button is pressed, then throwing the error, but it does not work.

The meter of the LOOP is just an identifier of rownum and this value is correct. Any thoughts? I guess it has to do with my IF statement...

Thank you
Jon

Hi Jon,
You want to the PL/SQL to raise the error when the IF condition is met and
When submit button. Are getting you any error (error ora) when submit button?
Another way that I would say is:
1. create an element hidden (for example Px_TEST) and set the hidden element l_error.
2 mention this point hidden in the message of success or failure of the process (as & Px_TEST.).

Kind regards
Jean Claude

Tags: Database

Similar Questions

  • Dynamic action on change the question in table form

    Hi guys!

    I wanted to add dynamic action on the (tabular) changes to execute the PL/SQL that checks if the form in a table column has been changed and if yes go into text field walue Y or N. It does not work... and I don't know why. If I create a validation with this PL/SQL, it works. Can you help me?

    DA:

    On change - tabular

    PL/SQL;
    DECLARE
       nazwa     VARCHAR2(4000);
       counter   NUMBER := 0;
    BEGIN
       FOR i IN 1 .. apex_application.g_f08.COUNT
       LOOP
        SELECT NAZWISKO INTO nazwa FROM SPR_META.M_UZYTKOWNICY WHERE NAZWA_UZYTKOWNIKA = apex_application.g_f02(i);
        
          IF wwv_flow_item.md5(nazwa) <>  wwv_flow_item.md5(apex_application.g_f08(i)) THEN
            counter := counter + 1;
          END IF;
       END LOOP;
    
       IF counter > 0 THEN
       :P5_IS_TABULAR_FORM_CHANGED := 'Y';
       ELSE
        :P5_IS_TABULAR_FORM_CHANGED := 'N';
      END IF;
    
    END;
    Page to submit items: P5_IS_TABULAR_FORM_CHANGE

    What's wrong?

    With respect,

    PsmakR

    In my opinion, a way more simple identify as change is to have just a handler which fires if any editable in tabular form field is changed.
    No connection to the server, without ajax. Do these controls PLSQL when/before submitting the page.

    $('#REGION_STATIC_ID').find('input,select').change( function(){
       $s('P5_IS_TABULAR_FORM_CHANGED','Y');
    });
    

    REGION_STATIC_ID's static ID region

  • JHeadstart - how to configure the form to be modal window in the style of table-form available?

    JHeadstart release 11.1.2 Relase

    When you use the Application JHeadstart Editor, I chose "table-form" style of layout for the field.

    Issue. When the field editing either way, by clicking on the edit button, which will be the user to the form, is it possible to have the form opens in a modal window?  If Yes, where and how configure this option?

    Summary: currently, the flow is as follows: field displays in a table.  The user clicks on the button Edit and screen refreshes the field in a form.  What I want is to have the form to be displayed as a modal window with the table in the background.

    Thank you.


    I think you could do this with 2 different versions of the JHS group.  A configured as 'table' and set up the other as a 'form '.  Then, add a groupLink item in the table to open the form in a modal popup.  (you might even be able to link the group to itself, but then you will need to do some adaptations to prevent it to generate the default table-form link)

  • How to validate the columns in tabular form date?

    Hello


    I have two columns in tabular form date

    1.start_date 2.End_date so here I need validate the end_date shouldn't be less than column start_date

    so any solution for this?

    Hello

    use a validation of type "Function returning a Boolean" and the following code:

    IF to_date(:YOUR_END_DATE,'YYYY-MM-DD') < to_date(:YOUR_START_DATE,'YYYY-MM-DD') THEN RETURN FALSE;
    ELSE RETURN TRUE;
    END IF;
    

    The date format is of course your choice.

    I hope this helps...

    Thank you
    Sandro

  • Set the focus to select the list in table form?

    Version 4.1.1

    Hello

    I have a tabular presentation that has a display column in the first field, the date field, and then a selection list.

    When the user clicks the button add_row, is it possible to have the focus of cursor by default on the selection list or at least the date field?

    I tried a few suggestions listed in this forum, as the addition of it to add line javascript

    $('select:enabled:visible:last').focus ();

    and a little more. but they do not work.

    Any suggestions please? or this is not possible?

    Thank you
    Ryan

    ECHR wrote:
    Hi Ryan,

    If you know what the column number has the selection list, you can use this snippet of javascript after the AddRow:
    Assume that the selection list is the 3rd column

    $('input[name="f03"]').last().focus()
    

    It won't work, if f03 is a selection list that the selector must be

    //try
     $('select[name="f03"]').last().focus()
    
  • Is it possible to achieve a high level simply by means of raising the question threads?

    I just noticed a question posted by a person at a level 6-8, with more than 10 k points... and somehow the question wasn't form, standing that I expect in general that points up.  A quick glance suggests recently a large number of debates question raised and rare if no answering other questions.  I can't view the earlier story of how the points were won.  And most may indeed have been won answering the question on the other.  And somehow, I care little.  But is that what we are overemphasizing points for raising a thread that says: 'how to... '. » ?

    It's just a thought.  Maybe a confession that I sometimes pay a glance at the 'level' to answer questions; I am also aware that even the great guru can be in the "level 1"!

    Not necessarily by simply asking questions (Yes, some points are awarded, and lower levels of status do not require a lot of points to get through them), but it can also be that the person really is (it may be a surprise) marking answers as correct and useful, that rewards the further.

    So, Yes, a person can certainly win first levels quite easily by simply asking questions, as that shows they are involved, but does not necessarily mean that they are any kind of expert in the field.

    If you look at the profile of people and then move to their reputation, you can see how they earned their points; and if you see someone who appears to be games/abuse the system by simply stocks that give them points without really contributing, please feel free to raise them up to the admin who will take a look and deal with them if necessary.

  • How can I recover file in table form in a modal window with the id of the request.

    Dear all,

    I use Apex 4.2 worm.

    I've created classic report with 5 columns and add additional column with the name "ADD COMPONENT" link in classic report.

    I call in a table in a modal window, click on link add COMPONENT classic report. .

    Modal window is popup when I click on the link add COMPONENTS , but it does not have any record of respective "Reservation_id and Res_line_id" I have place in link add COMPONENT report Classic.

    How can I view respective folder of reservation_id and res_line_id in table form in the modal window.

    I create in my account. You can view using

    Workspace: APEX_ISSUE

    User:               [email protected]

    Password: kaushik1@34


    Application 71690 - questions

    Page not 13

    Tab: In the form of modal window.

    Thank you

    Hi Maxence,

    CORINE wrote:

    It is wounderfull but I use the Apex 4.2 worm. There is no dialogue option and page mode.

    So how can I do that in Apex 4.2 worm.

    Check this old similar thread that runs in 4.2 APEX where I explained step by step: How to extract the values inside the jquery element dialogue modal rigion

    Also check the options of the iframe for your application sholud be set to 'Allow' or ' Allow from same origin.

    Edit Application Properties-> security-> the browser-> Embed security Connectionwithsuchprocedures-> is set to 'Allow' or 'Allow same origin'

    Hope this helps you,

    Kind regards

    Jitendra

  • Internal error in the routine mru: ORA-20001: no data available in table form

    Unfortunately, this feels like a question where the answer to Tom Kyte would be: the car won't start. I suspect it's to say, I won't ask the question properly, because I don't know what the problem is. But I'll try to be brief:

    I work with 4 tables: Ven_Add, addresses, sites, cities

    I have an interactive report places, leading to an LMD. DML in the name of the place on top and, theoretically, addresses of sites in tabular form below that. Here is the code:

    Select
    ven_add. VEN_ADD_ID,
    ven_add. VA_VENUE_ID,
    ven_add. VA_ADR_ID,
    Addresses.adr_ID,
    addresses. ADR_LINE_1,
    Addresses.adr_CTY_ID,
    Cities.cty_ID,
    Cities.cty_name
    of ' #OWNER # '. " VEN_ADD 'ADDRESSES, CITIES '.
    where ven_add. VA_VENUE_ID =: P122_VENUE_ID
    and ven_add. VA_ADR_ID = addresses.adr_id (+)
    and addresses.adr_cty_id = cities.cty_id (+)

    I thought that the problem was caused by my reaching out to the table of the city via a STATIC LOV I did, but I don't think that's the problem; even if I remove the columns related to the city, I get the same error message. In fact, I also tried to remove the connection to the address table, and I can not add a new line.

    I don't know what else to include ideas on how to solve this problem. I found other threads about this error, but they seem very old, and I have not learned something useful. My join seems ok, given that the command works fine in SQL * workshop (after I have change the code slightly change the equation venue_id).

    What else can I tell you if you can help me understand this?

    Thank you-
    Marion in New York

    PS - every 8 columns that are in my source code are included in the report as a table (Yes, most of them is not necessary, but I got them so I can see that the links are good); I read another post where Andy specified that all the selected columns must be included, so I thought I would include this tidbit

    OK, Marion - just let us know if there is anything else we can help you

    Andy

  • validate the integer in inputtext [table]

    I enter text in table and I need to validate whether the value is an integer.

    For this I used a convertNumber with properties:

    < af:convertNumber

    hintPattern = "#{LoggedUserBean.mapTranslations ['MSG_INTEGER']}" "

    messageDetailConvertPattern = "#{LoggedUserBean.mapTranslations ['MSG_INTEGER']}" integerOnly = 'true' "

    model = "^ [1-9] [0-9] +" * $"minIntegerDigits ="1"type ="number"/ >"

    and text input:

    < af:inputText value = "#{row.bindings.QtyPerBox.inputValue} '"

    label = "#{LoggedUserBean.mapTranslations ['COLUMN_QTY_PER_BOX']}" "

    required = "#{bindings." PackOriginDtl11.hints.QtyPerBox.mandatory}.

    columns = "#{bindings." PackOriginDtl11.hints.QtyPerBox.displayWidth}.

    shortDesc = "#{bindings." PackOriginDtl11.hints.QtyPerBox.tooltip}"id ="it5.

    autoSubmit = "true" inlineStyle = "" text-align: right; ""

    Disabled = "#{backingBeanScope.backing_PackOrigem.ViewMode} '"

    maximumLength = "7" >

    < f: validator binding="#{row.bindings.QtyPerBox.validator}"/ >

    < af:convertNumber

    hintPattern = "#{LoggedUserBean.mapTranslations ['MSG_INTEGER']}" "

    messageDetailConvertPattern = "#{LoggedUserBean.mapTranslations ['MSG_INTEGER']}" integerOnly = 'true' "

    model = "^ [1-9] [0-9] +" * $"minIntegerDigits ="1"type ="number"/ >"

    < / af:inputText >

    However, is a message error everytime I go just for a number as 22.

    Why?

    version of myjdev is 11.2.4.0

    Ok. That's what I thought. Once again, listen you specified is incorrect. The model is used to format the number only. It looks at "# 0.0" to allow a number such as 0.5 or 25.7 or 328.0 "»

    The model is not used to validate the number he just puts it. You got the error because the 22 were not in the given format, which does not valid numbers because it is wrong for this purpose.  Click the link in my first post and read more about the models.

    To use a regular expression to validate an entry, you can use a http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_validateRegExp.html af:validateregexp

    Timo

  • I create a form based on two tables that have sequences also. When I create insert only row is inserted in the fields in table first and second fields of the table are empty. Why?

    Mr President.

    I create a form based on two tables that have sequences also. When I create insert only row is inserted in the fields in table first and second fields of the table are empty. Why?

    formdoubletables.png

    the page source is

    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                    xmlns:f="http://java.sun.com/jsf/core">
      <af:panelFormLayout id="pfl1">
        <af:group id="Group">
          <af:inputText value="#{bindings.VoucherId.inputValue}" label="#{bindings.VoucherId.hints.label}"
                        required="#{bindings.VoucherId.hints.mandatory}" columns="#{bindings.VoucherId.hints.displayWidth}"
                        maximumLength="#{bindings.VoucherId.hints.precision}"
                        shortDesc="#{bindings.VoucherId.hints.tooltip}" id="it1">
            <f:validator binding="#{bindings.VoucherId.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.VoucherId.format}"/>
          </af:inputText>
          <af:inputDate value="#{bindings.VoucherDate.inputValue}" label="#{bindings.VoucherDate.hints.label}"
                        required="#{bindings.VoucherDate.hints.mandatory}"
                        columns="#{bindings.VoucherDate.hints.displayWidth}"
                        shortDesc="#{bindings.VoucherDate.hints.tooltip}" id="id1">
            <f:validator binding="#{bindings.VoucherDate.validator}"/>
            <af:convertDateTime pattern="#{bindings.VoucherDate.format}"/>
          </af:inputDate>
          <af:inputText value="#{bindings.Credit.inputValue}" label="#{bindings.Credit.hints.label}"
                        required="#{bindings.Credit.hints.mandatory}" columns="#{bindings.Credit.hints.displayWidth}"
                        maximumLength="#{bindings.Credit.hints.precision}" shortDesc="#{bindings.Credit.hints.tooltip}"
                        id="it2">
            <f:validator binding="#{bindings.Credit.validator}"/>
          </af:inputText>
        </af:group>
        <af:group id="g1">
          <af:inputText value="#{bindings.Lineitem.inputValue}" label="#{bindings.Lineitem.hints.label}"
                        required="#{bindings.Lineitem.hints.mandatory}" columns="#{bindings.Lineitem.hints.displayWidth}"
                        maximumLength="#{bindings.Lineitem.hints.precision}" shortDesc="#{bindings.Lineitem.hints.tooltip}"
                        id="it3">
            <f:validator binding="#{bindings.Lineitem.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.Lineitem.format}"/>
          </af:inputText>
          <af:inputText value="#{bindings.VoucherId1.inputValue}" label="#{bindings.VoucherId1.hints.label}"
                        required="#{bindings.VoucherId1.hints.mandatory}"
                        columns="#{bindings.VoucherId1.hints.displayWidth}"
                        maximumLength="#{bindings.VoucherId1.hints.precision}"
                        shortDesc="#{bindings.VoucherId1.hints.tooltip}" id="it4">
            <f:validator binding="#{bindings.VoucherId1.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.VoucherId1.format}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Debit.inputValue}" label="#{bindings.Debit.hints.label}"
                        required="#{bindings.Debit.hints.mandatory}" columns="#{bindings.Debit.hints.displayWidth}"
                        maximumLength="#{bindings.Debit.hints.precision}" shortDesc="#{bindings.Debit.hints.tooltip}"
                        id="it5">
            <f:validator binding="#{bindings.Debit.validator}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Credit1.inputValue}" label="#{bindings.Credit1.hints.label}"
                        required="#{bindings.Credit1.hints.mandatory}" columns="#{bindings.Credit1.hints.displayWidth}"
                        maximumLength="#{bindings.Credit1.hints.precision}" shortDesc="#{bindings.Credit1.hints.tooltip}"
                        id="it6">
            <f:validator binding="#{bindings.Credit1.validator}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Particulars.inputValue}" label="#{bindings.Particulars.hints.label}"
                        required="#{bindings.Particulars.hints.mandatory}"
                        columns="#{bindings.Particulars.hints.displayWidth}"
                        maximumLength="#{bindings.Particulars.hints.precision}"
                        shortDesc="#{bindings.Particulars.hints.tooltip}" id="it7">
            <f:validator binding="#{bindings.Particulars.validator}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Amount.inputValue}" label="#{bindings.Amount.hints.label}"
                        required="#{bindings.Amount.hints.mandatory}" columns="#{bindings.Amount.hints.displayWidth}"
                        maximumLength="#{bindings.Amount.hints.precision}" shortDesc="#{bindings.Amount.hints.tooltip}"
                        id="it8">
            <f:validator binding="#{bindings.Amount.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.Amount.format}"/>
          </af:inputText>
        </af:group>
        <f:facet name="footer">
          <af:button text="Submit" id="b1"/>
          <af:button actionListener="#{bindings.CreateInsert.execute}" text="CreateInsert"
                     disabled="#{!bindings.CreateInsert.enabled}" id="b2"/>     
          <af:button actionListener="#{bindings.Commit.execute}" text="Commit" disabled="#{!bindings.Commit.enabled}"
                     id="b3"/>
          <af:button actionListener="#{bindings.Rollback.execute}" text="Rollback" disabled="#{!bindings.Rollback.enabled}"
                     immediate="true" id="b4">
            <af:resetActionListener/>
          </af:button>
        </f:facet>
      </af:panelFormLayout>
    </ui:composition>
    
    
    
    

    Concerning

    Go to your VO Wizard, select the tab of the entity and to check if both the EO is editable or not.

    See you soon

    AJ

  • Is it possible to create a form with text boxes of "adjustment" to the participants to answer the questions?

    Is it possible to create a form with text boxes of "adjustment" to the participants to answer the questions? Questions are open to everyone, so asking narrative responses.

    Hi landon39843319,

    You can have fields flowing / more dynamic in a PDF of LiveCycle Designer form, but not in an AcroForm (only created in Acrobat).  LiveCycle Designer is a program completely separated used for are delivered with each purchase Acrobat Acrobat XI has been release.  Now you must buy separately.  But LiveCycle Designer PDF forms are wrapped in a shell of PDF so that they will be displayed and can be filled in the free Acrobat Reader DC and earlier versions.

    If you do this in Acrobat with an AcroForm, you have as much information typed into a field that the user wants, but he's going to show everything on the screen.  Displays only the text that fits into the field, then a + sign will appear in the field to indicate that there is more text in this field, you can scroll down to read.  You can also set the automatic font size so that as more text is entered in the police becoming smaller and smaller to adjust the text, but that is usually not desirable for many forms.

    Hope this helps,

    Dimitri

    WindJack Solutions

    www.pdfscripting.com

  • Name of tables listing the definitions of Web Forms row\column\POV

    All,

    We have some applications planning and a lot of Web forms to allow entry in varied combinations of row\column\POV. Users, it is difficult to locate the correct online with the combination of right row\column\POV form, to allow them to enter data and have to open\close a large number of Web forms before they find the right pair they need\want.

    I know that the relational component of a planning application includes many tables store the definitions of Web forms, etc.. I would like to know where I could find a list of the tables that contain the definitions row\column\POV of each Web forms for each planning application in order to quickly identify the correct webforms who could access their data entry of support staff.

    Thanks in advance.

    JBM

    I think the feature is available for a long time even since version 9

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to design the table from the answer to the question table.

    Hi all

    I am creating an application for student review online.

    There are two types of questions, the only choice of response and multi choice answers.

    My question is less than
    create table question_master
    (
    exam_id number references exam_master(exam_id),
    marks_of_each_question number,
    type_of_question char(1),-- single choice answer/multiple choices answer
    q1 varchar2(2000),
    q2 varchar2(2000),
    q3 varchar2(2000),
    q4 varchar2(2000))
    my table to answer (I'm not satisfied with who is below
    create table answers_of_questions
    (
    answer_id number primary key,
    question_ID number referenes question_master(question_id),
    answer varchar2(4000) not null,
    is_answer_correct char(1),--y/n,
    student_selection char(1),--y/n   student select it or not
    ....
    ...
    now, I'm perfectly how to create the RESPONSE table to contain the answers.
    the only choice is good, but several checkboxes choices, what to do?
    How to design the table from the answer?

    do I have to create 2 tables to contain the answers?
    Note: the QUESTIONS and ANSWERS, all will be entered by the teacher. students will make a choice and I will store this choice in another table
    may be called STUDENT_SELECTED_ANSWERS or something like that.
    If anyone has some reference to the script retail scheme review online, kindly share with me.

    Kind regards.

    Kind regards.

    If you need to have answers in another table:

    Student (student_id, name, etc...)
    Review (exam_id, exam_name, etc...)
    Question (question_id, exam_id, question_text)

    Response (question_id, a_text, b_text, c_text, d_text, a, b, c, d).<-- one-to-one="" with="" question="" table,="" a-d="" flags="" used="" to="" indicate="">
    OR
    Response (question_id, answer_id, answer_text, OK)<-- many-to-one="" with="" question="" table,="" correct="" flag="" used="" to="" indicate="" correctness="" for="" this="" single="">

    Student_Answer (student_id, question_id, a, b, c and d)
    OR
    Student_Answer (question_id, student_id, answer_id)<-- creation="" of="" a="" question_id+answer_id="" in="" this="" table="" implies="" the="" student="" checked/selected="" it="" as="" an="">

    To what extent you want to standardize, it is up to you.

  • compress the question from the table

    My question is simple:

    If I execute this SQL:
    ALTER TABLE some_table_name MOVE COMPRESS;
    and the table is already compressed, Oracle jump or spend time re - compress?

    Why I ask this is because I have a few nice PL/SQL that loops through all the tables
    in my schema, I have about 1800 tables and it compresses, but it takes a long time, hours
    and I would like to only compress Tables which are not already compressed, so compressed, jump, so
    that's why I ask... try to determine whether or not PL/SQL needs a dry:-)

    Kodiak_Seattle wrote:
    Thanks for all the help, space is always a big problem for us here, we always run out of it. On only 1/3 of all Tables is compressed, 2/3 is not.

    So just research in there, thanks!

    on the 11G R2

    To continue the question I found the following:

    (a) have compression enabled for a table does not necessarily mean that the data is compressed. If compression is enabled with the statement:

    ALTER TABLE tablename COMPRESS;
    

    the existing data in the table remain uncompressed.

    However the execution of the order

    ALTER TABLE tablename MOVE COMPRESS;
    

    Compress in the existing data in the table and it is caught in time.

    Try to compress an already compressed or partially compressed table is taken on time. Oracle will analyze the data in the table again and try to compress.
    I did a test on a table with half million records already compressed and time was almost the same as the initial compression.

    You can do a quick test on your environment to verify that.

    Sorry for the misinformation, I provided before.

    Kind regards.
    Al

  • Add filter slot table form to show the lines with null values

    Hello

    I have a tabular presentation where we need to add a filter with two values (selection list) so that if one of the columns in a table (column1) is zero, then I need to display all records where column1 is null.

    I was wondering how do I put this in the Source of tabular forms where condition. This filter has only two values,

    All the
    NULL for the error

    So when the user selects all, then all the records in the table are shown
    If the user selects 'Value Null in error', while the records where Column1 is null will be shown

    For example
     column1        column2
                           A
                           B
          1               C
          3               D
     
    If the user selects, then

    all four files will show up. Else, only the first and the second will be returned.

    Thank you

    Hi, Ryan.

    Try a static LOV like this

    STATIC2:;,--- All ---;--- All ---
    

    and a Where clause, like this

    where column1 is null or :p1_filter like '%%'
    

    Jeff

Maybe you are looking for