Validate field in tabular forms apex 4.2

Hi.
i need help doing next validations :
1.- i have a product_item field (wich is a lov and user choose one value), so i need to call a function (sending it the selected value product_item) that will return me some data about the product i selected, for example :
if the function return 'A' then
disable the next item on tabular form, lets say quantity
else
enable the next item on tabular form, lets say quantity
end if
2.- i need to determine the result of two items operations:
total := final_quantity - start_quantity
the user will introduce start and final quantity and i will determine the total.
any ideas ?
i am new on apex and need to do this on tabular forms.
thanks in advance.

Thomas,
Is this a standard APEX tabular form validation, or a custom PL/SQL based validation? It might be easiest to diagnose what's going on there, if you could replicate this issue on apex.oracle.com, and point us to an example.
Thanks,
Marc

Similar Messages

  • How to make text field in tabular form as List of value (LOV)

    So the problem is next:
    I should to make field in tabular form as LOV(list of value (combobox)) to load there data form db. Could smb take me an advise how to make it.
    Thanks.

    So thanks, I did it, it works. How now to make next: I selected Id from list and in the next column appears name with ID from DB. so how to make ondemand process i know (thanks to you), but how to get value from LOV that I selected to give it to Dynamic Action.
    Thanks

  • Tabular Form Validation not working in tabular form APEX 4.0

    Hi,
    I am using APEX 4.0. I have a tabular form with Tabular form validation done with it.
    Item not null is the validation.. so if I dont type any value in the any of the fields in the tabular form and press the Submit button, the first time error is shown... but when I click the Submit button again, with still the empty rows the page is submitted.
    How to resolve this issue?
    Edited by: Suzi on Oct 5, 2010 11:13 AM

    Look at this thread - Re: Validations of tabular forms in 4.0

  • Link for field in tabular form

    Hi everyone,
    How can you create add a link (which opens a pop up screen) next to a field in a tabular form, in order to set the value in that field with the value
    selected in the pop up screen.
    I already know how to set the values.
    In the tabular form when you add a link, you see the id and row also. How can I remove that or is there another way to set the values.
    Thanks,
    Cleo

    I think you can accomplish what you want by changing the the field to update from text to a popup lov. You can do this by going into the report attributes of the tabular form and then clicking the pencil next to the field who needs the lookup values. Change the 'display as' box from text to popup lov and supply the values.
    You can also hide fields by going into the report attributes and unchecking Show.
    There is an overview of some concepts here http://download.oracle.com/docs/cd/E14373_01/appdev.32/e13363/frm_tabular.htm.
    Let me know if I'm not understanding your post correctly.

  • Initializing the date field in tabular form

    i m creating one time sheet application. in that i hv created one tabular form to take timesheet entries. current_date attribute is one of them. the problem is that i want to initialize the current date with the sysdate as the form loads and then afterwards the user can edit the date using the calendar if he wishes to. the current_date type is date picker.
    but the before header for computations is not showing thhe item and process is not allowing to create any pl/sql block..can any1 help me?

    In the source of the column use PL/SQL Expression or Function and put there
    SYSDATE (include some formating if you want). This will set the default value of the
    field to what you want once you add new rows.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • No Data returned for tabular form APEX 4

    Hi,
    I have a page that uses a tabular form, however it is not showing me any data. If I click the add row button and enter some details and press submit, the data is saved to the database but the page is refreshed and still shows me no data. I don't however get a No Data Found message.
    If I create a region on the same page based on a sql report, that returns the data I have added through the tabular form.
    Any ideas
    Cheers
    Paul

    My previous post appears to be incorrect as neither pages are now returning data!!!!
    So I started again and this is what I have done.
    1) Run the page and get no data. The SQL statement on the page is
    select
    "ID",
    "ID" ID_DISPLAY,
    "REFERRAL_ID",
    "REASON",
    "CREATED_BY",
    "CREATED_ON",
    "UPDATED_BY",
    "UPDATED_ON"
    from "#OWNER#"."REFERRAL_REASON"
    where referral_id = :P82_REFERRAL_ID
    2) Checked the wwv_flow_activity_log and can see that the number of rows returned is correct (12 in this case)
    3) Traced the page and looked at the trace file which has the following statement
    select NULL "CHECK$01",
    NULL "ID",
    NULL "ID_DISPLAY",
    to_number(123) "REFERRAL_ID",
    NULL "REASON",
    NULL "CREATED_BY",
    NULL "CREATED_ON",
    NULL "UPDATED_BY",
    NULL "UPDATED_ON",
    NULL "ROWID"
    from dual
    union all
    select "CHECK$01" "CHECK$01",
    "ID" "ID",
    "ID_DISPLAY" "ID_DISPLAY",
    "REFERRAL_ID" "REFERRAL_ID",
    "REASON" "REASON",
    "CREATED_BY" "CREATED_BY",
    "CREATED_ON" "CREATED_ON",
    "UPDATED_BY" "UPDATED_BY",
    "UPDATED_ON" "UPDATED_ON",
    "ROWID" "ROWID"
    from (select NULL "CHECK$01",
    "ID" "ID",
    "ID_DISPLAY" "ID_DISPLAY",
    "REFERRAL_ID" "REFERRAL_ID",
    "REASON" "REASON",
    "CREATED_BY" "CREATED_BY",
    "CREATED_ON" "CREATED_ON",
    "UPDATED_BY" "UPDATED_BY",
    "UPDATED_ON" "UPDATED_ON",
    "ROWID" "ROWID"
    from (select "ID",
    "ID" ID_DISPLAY,
    "REFERRAL_ID",
    "REASON",
    "CREATED_BY",
    "CREATED_ON",
    "UPDATED_BY",
    "UPDATED_ON"
    from "IMPULSE"."REFERRAL_REASON") apex$_rpt_src
    order by 1)
    call count cpu elapsed disk query current rows
    Parse 4 0.00 0.00 0 0 0 0
    Execute 4 0.00 0.00 0 0 0 0
    Fetch 16 0.00 0.00 0 24 0 12
    total 24 0.00 0.00 0 24 0 12
    4) Amended the page to remove the where clause
    5) Amended the page to removed the process that adds 5 empty rows
    6) Run the page and still get no rows
    7) Checked the wwv_flow_activity_log and can see that the number of rows returned is correct (12 in this case)
    8) Log out of application and log back in
    9) Run the page and get 500 rows
    10) Checked the wwv_flow_activity_log and can see that the number of rows returned is correct (500 in this case)
    11) Added the where clause back in to the SQL statement and rerun the page and get the correct numer of rows (12 in this case)
    12) Log out of application and log back in
    13) Run the page and get no rows!!!!!!!
    14) Checked the wwv_flow_activity_log and can see that the number of rows returned is correct (12 in this case)
    So I can only conclude that whilst the data is being retrieved from the database it is not being displayed on the screen. So what would be stopping the data from being displayed?
    Regards
    Paul

  • LOV in tabular form-Apex 4.0

    Hi
    I am creating a wizard based tabular form in Apex 4.0 and my scenario is like
    I have a deptno column in my form and i want the employees for that particular dept in the ename select list.
    I know that it can be done with manual tabular form. But since i am using a wizard based tabular form, is it possible for achieving this scenario.
    Thanks.
    Divya

    Hi Vee,
    I have tried your solution. I have replaced the column in my SQL with the apex_item version of the LOV. For showing the column correctly in the Grid I have to set the column to a "standard report column".
    But Now it is now the edit flag is gone and it is not a updatable column anymore. When I push the Add button I cannot insert a value for the column.
    How can I define the column as editable so the standard procedures for updating and inserting the column are working again.
    Regards,
    Fred.

  • Display null text field in tabular form

    Seems too simple to ask in this forum but I know how to display null for a select list but how can I have a text field display blank instead of '(null)' in a tabular form?

    Hi,
    Go edit report attributes and check that attribute "Show Null Values as" do not have any value.
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Validation problem on tabular form APEX 4.2

    Hi,
    My APEX Version is 4.2.
    I have problem with validations on tabular forms, for example : I have a column who must be numeric... when I get a character it is controlled properly, but it removes my line of the screen and he writes in the table below:
    state error:
    ORA-01403: no data found
    ORA-06510: PL / SQL: exception defined by the user untreated
    I Haven't this problem with this application on APEX 4.0
    PS : the validation was automatically create by APEX
    Regards

    Thomas,
    Is this a standard APEX tabular form validation, or a custom PL/SQL based validation? It might be easiest to diagnose what's going on there, if you could replicate this issue on apex.oracle.com, and point us to an example.
    Thanks,
    Marc

  • Updating fields on Tabular Forms created with wizards

    I have created a Tabular Form using the creation wizard in version 2.0.
    When we update database records, we always place a date and a user ID into the record to track the last time updated.
    In HTML-DB I typically create an "After Submit" process called "Set Hidden" which updates my items LAST_UPDATE_DATE and LAST_UPDATED_BY.
    This works great on non-Tabular forms when I am dealing with one record at a time.
    How do I do this on a multi-row tabular form?
    Any help would be appreciated.

    Sorry, I assumed a basic familiarity with Oracle and HTML DB development concepts
    1. "v" is a HTML DB function to read session state
    2. v('APP_USER') will give you the authenticated username of the current session
    3. For some reason, if that is blank, the NVL will evaluate to USER which is a builtin Oracle keyword just like SYSDATE. USER evaluates to the userid for the currently connected Oracle user (typically HTMLDB_PUBLIC_USER)
    4. FOO is the function which will take the username and convert it to the internal id you seem to want.
    5. NVL is a function that evaluates both its arguments and returns the first non-null expression.

  • Use Javascript to disable fields in tabular form built by wizard

    i know this type of disable question has been asked before and i have searched the forum thoroughly but the solutions always seem to be for items i.e P1_NAME and i do not have these as my form is built by a select statement
    i have worked out the syntax (i think)
    <script language="javascript" type="text/javascript">
    function desactiverElement(item)
    var x = document.getElementById(item);
    if (x)
    x.disabled = true;
    </script>
    to disable and think it goes in the html header or a html region before footer but i cannot work out how to disable the field because i cannot work out how to reference them
    i.e get the value for 'item' in the code
    any help i would be extremely grateful for
    cheers Chris

    the CENTRE_NO field has to be unique , and when i am doing my validation check ,if the user amends the field by accident and then replaces the value it gets an error when it shouldn't
    wish it was as simple as forms just change property to update_allowed = false !!

  • Resizable Fields on Tabular Form ?

    Hi,
    I have a requirement which needs a form to have resizable fields i.e. allow a user to drag and drop or resize the field width with a mouse. Is it possible ? ; and if so, can anyone please explain as to how it could be done.
    I was searching the forum and understood that this could be done but could not quite understand HOW !!!
    Any help will be greatly appreciated.
    Thanks
    Hilal.

    In Client Server you can use the mouse triggers to do this. Check out the forms 6i demos for the drag and drop sample.
    On the Web you might be able to do it with a PJC.

  • Null Validation in Tabular Form in APEX 4.2.2

    Hi to all respected Gurus of this Forum!
    Recently downloaded APEX 4.2.2. As we know that this version has some improved features and one is the best is i.e. *"Validation on Tabular Form".*
    For test purpose I succeeded to apply validation on field of tabular form and I am not allowed to "SUBMIT" data as per Validation Rule.
    But now, I want to customize that validation as per below logic.
    If required field is null than a message-box should appear with two buttons , as under:
    Blank field not allowed. Do you really want to submit? (Buttons should be = YES NO)
    If user press "YES" then validation should be false and record should be saved
    AND
    If user press "NO" then no data should be submitted/inserted as per validation logic.
    Please help. Your as usual cooperation is highly appreciated in advance.
    Regards
    Muhammad Uzair Awan
    ORACLE APEX Developer
    Pakistan

    Hello Sabine,
    >> I read about enhanced validation in 4.1 and would love to get rid of g_f-programming.
    The major “trick” is to associate the validation/process with a Tabular Form. On the first screen of both wizards, the first field is Tabular Form. You must select the tabular form on your page (currently there can be only one. In future versions this will change).
    Another factor that might influence the behavior of Tabular Form validation/process is the new attribute of Execution Scope. Unfortunately, you must enter Edit mode to gain access to this attribute (i.e., it can’t be set directly from the Tabular Form create wizard). Set it according to your need.
    The rest is very simple. You should treat your Tabular Form as a simple form, where every column header stands for a form item. The following is a very simple example of validating the SAL column:
    if :SAL < 1500 then
      return 'Sal Value is under 1500';
    else
      return null;
    end if;In this validation I’m using the Function Returning Error Text type.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Dependent LOV in Tabular Form

    All,
    We are developing an application where we come across requirement to have two fields in tabular form and both are required to have LOV. But the issue is the second field LOV in the tabular form is dependent on first field value.
    ex: Assume first field is "Country" and second field is "Cities", when user selects first field country as "US", then we have to populate list of citiies in "US" for that row. And if the user selects country as "UK" for the second row, we have to populate second field (city) with list of citieis in "UK".
    We are unable to achieve this functionality and any help/pointers would be highly appreciated.
    Ram

    Hi Ram,
    Please have a look at this example by Denes Kubicek
    [http://apex.oracle.com/pls/otn/f?p=31517:176|http://apex.oracle.com/pls/otn/f?p=31517:176]
    I was able to achieve the cascading LOV functionality based on the above example.
    Thanks,
    Dippy

  • Column alignment in tabular form

    Hi,
    how to change column alignment in f.e Text Fields in tabular form.
    Manual option doesn.t work (alingment not heading). I tried to add
    style=text-align:right ( i cut quote)in element column formatting options but I didn't find solution.
    Anyone know how to change this?
    Maybe sth simillar to the same problem in IR:
    .apexir_WORKSHEET_DATA td, .apexir_WORKSHEET_DATA td div{text-align:right}I understand ".apexir_WORKSHEET_DATA" it's only IR definition and it doesn't work with tabular form
    Edited by: nirud on 2010-03-12 07:53

    Hi,
    Go edit your tabular form Column Attributes where you like apply that style.
    Then add to Element Attributes
    style=text-align:rightBr,Jari
    Edited by: jarola on Mar 14, 2010 11:22 AM
    Forum do not like my code
    wrap text-align:right to double quotes

Maybe you are looking for