How to validate htmldb_item form item

I have a multiple row form item using htmldb_item.text ( so that a user can enter a quantity for that row item ).
How is validation best handled to ensure that a value is entered for that row?
note: there is also a htmldb_item.checkbox on the row that the user checks to flag that an operation should be done.
Thanks as usual
Bill

for what this is worth:
as scott said, only checked values are passed through from htmldb_item.checkbox'es over to the htmldb_application.g_fNN arrays. that's just how conventional web checkboxes work. if you want to keep your checkboxes in your form, just do their processing in a separate loop. if you're having a hard time keeping the values of your checkbox array matched up with the other htmldb_item values from their corresponding rows, just make sure your checkboxes return values you can use to identify your checked rows. so if you were going against the emp table, i'd suggest having your checked values return EMPNO's...
select htmldb_item.checkbox(1,empno) c from emp
...that way you could more easily match those empno's up with your other htmldb_application.g_fNN values during your page processing.
hope this helps,
raj

Similar Messages

  • How to validate the line item values in OFR - quantity , unit price and UOM

    Hi All,
    Is there any possibility to validate the line items like quantity, unit price and UOM against the DB and stops those invoices at verifier (1 batch =10 invoices) level  if yes could you please let me know the process how to proceed further.
    due to this some the invoices are coming to OFR is with incorrect quantity, UOM and unit price different from PO lines information like quantity , UOM and unit price and those invoices are not validating from the DB and these are processed to EBS and it's effecting the GL and reporting.
    Regards,
    Anil

    Hi ,
    I did not get the exact requirement.Let me bit:
    In standard AP project lines validation will try to compare the quantity , unit price and UOM of line against the database for match which actually performed on export.
    So even if match fails batch will be exported.Now if you want to correct it before EBS,i think you can do it in the business process easily that you are consuming whether BPEL/BPM process.
    We have done this in several projects
    =========================
    But If you want that to be done from OFR side i think we need to code  UserExitPONumberValidate event to  compare the line items values against database.I need to test this also.

  • How to validate a text item/display item in Oracle forms 9i?

    Hello Everyone,
    I have a form in which we have to type in a product_id as shown below in the screenshot. And when we type in, it has to get validated.
    If it is valid then ok, else display a message saying not valid.
    How do we achieve it on a text box/diaply item in the form shown below.
    Any kind of help would be really appreciated.
    Thanks in advance,
    Vishal

    Just create a when-validate-item trigger for that text item and write the code inside to validate it.
    Hope it helps.
    Navnit

  • How to validate a date item  "DD/MM/YYYY HH24:MI" ?

    Hi,
    I want to create a validation item. I have a date item usinhg this mask : "DD/MM/YYYY HH24:MI".
    I want to validate if a date entered according to this syntax "DD/MM/YYYY HH24:MI"
    Unfortunately APEX gives me only the choice to validate if a date is under the form "DD/MM/YYYY" which gives this syntax :
    ^([012]?[[:digit:]]|3[01])/(0?[[:digit:]]|1[012])/[[:digit:]]{4}$I don't know this syntax, do you know how I could transform it (I mean adding the hours and minutes criteria) to attain my goal ?
    Sorry for my english, not perfect, today !
    Regards,
    Christian

    Try this:
    SELECT REGEXP_INSTR('04-OCT-2011 23:12',
    '^([012]?[[:digit:]]|3[01])-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)-[[:digit:]]{4}[[:space:]][0-2][0-9]:[0-9][0-6]$') test_result
    FROM dualFor case-insenstive matching, use below:
    SELECT REGEXP_INSTR('04-OCT-2011 23:12',
    '^([012]?[[:digit:]]|3[01])-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)-[[:digit:]]{4}[[:space:]][0-2][0-9]:[0-9][0-6]$',1,1,0,'i') test_result
    FROM dualThanks!
    JMcG

  • How to validate non commited items in detail block.

    Hi All,
    I have a Detail block with 10 rows and 2 columns. the select of items is based on LOV. If i select One item in one row, then the user cannot select the same item again in other rows. either I need to not show the selected item in LOV or I need to raise form trigger failure and ask him to change values. This is to be done before commiting the items. Can anyone, please suggest me some way or triggers I can use.
    Thank you.

    If the process is done by a key-commit trigger or a when button-pressed trigger then it is simple . But if there is no such trigger then you should create it because it is more convenient to make controls inside key-commit rather than in pre-update or pre-insert because these triggers do not accept restricted built-ins.
    To validate your items just loop through the list of records and compare the values to the one you are on. Then if there are no match then you go to the next record to search for.
    Something like this :
    declare
    v_current_value_to_compare varchar2(100);
    v_record pls_integer;
    begin
    go_block('detail_block_name');
    first_record;
    while :system.last_record = 'FALSE' loop
    loop
    next_record;
    v_current_value_to_compare := :detail_block_name.item_name;
    v_record := :system.trigger_record;
    if :detail_block_name.item_name = v_current_value_to_compare then
    -- make your control here
    end if;
    exit when :system.last_record = 'TRUE';
    end loop;
    go_record(v_record);
    end loop;
    end;

  • How to access the form items dynamically

    The issue here is that I want to acces the value in the textboxes dynamically
    Here is the code ( I know its wrong )
    <cfset temp = TaskEntryIDs.Split(',') />
        <cfloop index="x" from="1" to="#arrayLen(temp)#">
        <cfset TempControl = "Form.t"&temp[x]>
        <cfif isdefined("Form.t"&temp[x])>
             <cfoutput>#"Form.t"&temp[x]#</cfoutput><br/>
        </cfif>
        </cfloop>
    I don't know the correct way to access it, I know that the textbox name start with T and the task number
    I know that the textbox for the task number 74 is t74, but how can I access the value of this text box so I can insert it into to the database ?
    Please help me
    Thanks

    Array Notation:
    Form["t" & temp[x]]
    StuctKeyExists() is an easier function to determine dynamic form fields exist.
    <cfif structKeyExists(form,"t" & temp[x])>  rather then isDefined().

  • How to validate a shuttle item in oracle apex

    Hello,
    I am having a shuttle item in the page . I want to validate the shuttle . am using oracle apex 3.2.1 on oracle 11g.
    I want to raise an alert if the user not selected value from shuttle else display the selected value in alert .
    please help me in resolving this issue.
    thanks
    Edited by: kumar73 on Apr 17, 2010 2:15 PM

    Hi,
    This might help
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/bldr_pgs.htm#sthref565
    Create item level validation Item Not Null
    Br,Jari

  • How to open XML form item into the same window?

    Hello All,
    I've developed a xml form, when I click on the  item with KM Navigation Iview It opens in a new window.( _blank ).
    Is there a way to open it in the same window ( _self )?
    Thanks
    Amit Yosha

    Hi Amit,
    at the moment, this is not configurable. See XML form display in same browser window for possible workarounds.
    Hope it helps
    Detlev

  • How to validate BC forms to stop spam

    I'm having a problem on a couple of my sites - even though we have standard BC validation and captcha's in place my forms are being propogated by spammers.
    http://tasbus.com.au/member-application.htm - on this site the spammers are completing the company name with 'google'. Is there a way I can check the value of the field and if it is 'google' then send them an error message?
    if (theForm.Company) why += checkEmail(theForm.Company.value); if(why != "google"){alert(why);return false;}
    I tried this, which gave the error message, but gives the error for every entry.
    thanks
    deb

    Server side is the only way to prevent spam Deb.
    Script stuff does not really work or have any effect because bots are not humans. They read and render and view forms, sites etc in a very different way.
    IF you search the forums you will see that BC are very well aware of the current issues and working on sollutions.

  • How to validate a radio item and multiselect item

    Got it.
    Edited by: kumar73 on Apr 21, 2010 7:18 AM

    Hello ,
    I got it . Thanks .
    rgds
    Edited by: kumar73 on Apr 21, 2010 7:19 AM

  • How to validate an text field item using javascript for numbers only.

    hi,
    how to validate an text field item using javascript for numbers only.please help me on this urgent
    please mail me solun if posible on [email protected]

    Hi,
    Page HTML header
    <script>
    function onlyNum(evt) {
      // Usage: onKeyPress="return onlyNum(event)"
      evt = (evt) ? evt : window.event;
      var charCode = (evt.which) ? evt.which : evt.keyCode;
      if (charCode > 31 && (charCode < 48 || charCode > 57)) {
        var status = 'This field accepts numbers only!';
        alert(status);
        return false;
      var status = '';
      return true;
    </script>Item HTML Form Element Attributes
    onKeyPress="return onlyNum(event)"Br,Jari

  • How to validate editbox item

    hi everybody...
    i have  a form with eidt box(uid 23) i want to check whether entered value is numeric or alphanumeric or alpha....
    i want to make it fix so that i should be able to enter only numeric values.....
    how to check this condition????

    Shenaz,
    This thread looks to be a repeat of this thread ...
    Re: how to validate editbox item
    Please only post your question once.
    Eddy

  • How to identify listeners types for forms, items and events in addon wizard

    Dear users,
    I have developed a sample addon through B1DE wizards and successfully installed and connected the addon and can view menu and form of my addon. Since i am new to this, i didn't add any listeners to my form, items and events because i don't know what type of listeners to add and what coding to add after adding listeners.
    If anyone describe me how to work with listeners, i would be glad. My form has basic fields like BPcode, BPname, Docnum, Itemcode, Item name, quanity, price, total etc. Uptil now my addon form has no function of getting list of BP and Items and calculating the totals based on price and quantity but it has some basic functions like add, update,del, add print view, next record previous, record next etc. which are due to object registration and auto-code generation wizards i think.
    Please help me in adding listeners and their relevant coding.
    Thanks in advance.

    Thanks for reply, Actually I am asking about listeners in the wizard of B1DE, code generator wizard. I think you are telling me about adding listeners directly in the vb.net. Kindly, tell me first, what event type I should add for item, form etc while adding listeners during  the wizard. Or If you know some link where event types of listeners are decribed, you are more than welcome.
    Thanks,
    Farhan

  • How to fetch the value of tabular form item in javascript

    Hello all
    I want to do some calculations on the value entered by the user in the textfield of a tabular form, how can I fetch the value of tabular form item in the javascript?
    I am using normal tabular form, not using apex_item tabular form.
    I can pass the current textfield value to the function using "this" as a parameter, but how can I fetch the value of other rows of that same column?
    Thanks
    Tauceef

    Hi Alistair
    jQuery is still not working, but I got it done through some other means, this is the code:
    function total(pThis){
    var l_Row = html_CascadeUpTill(pThis,'TR');
    var l_Table = l_Row.parentNode;
    var l_Row_next = l_Row;
    var n_rows = l_Table.rows;
    var lInputs;
    var v1;
    var sum = 0.0;
    var temp;
    var i = 0;
    var j = 0;
    //alert(n_rows.length);
    while(j < (n_rows.length - 1))
    temp = 0;
    if(l_Row_next != null){
    lInputs = html_Return_Form_Items(l_Row_next,'TEXT');
    v1 = lInputs[0].value;
    //alert(v1);
    sum = parseFloat(sum) + parseFloat(v1);
    l_Row_next = l_Row_next.nextSibling;
    temp = 1;
    if(temp == 0){
    l_Row_next = l_Table.getElementsByTagName('TR')[1];
    lInputs = html_Return_Form_Items(l_Row_next,'TEXT');
    v1 = lInputs[0].value;
    sum = parseFloat(sum) + parseFloat(v1);
    l_Row_next = l_Row_next.nextSibling;
    j= j+1;
    $x('P78_TOTAL').value= parseFloat(sum);
    I am calling this function onblur event of the textfield.
    Still I am having one problem, I want to perform this calculation on load of the page also, how can I do that? because while calling onblur of the textfield I can pass that textfield to this function but on onLoad how I will pass the textfield to call this function so that I will be able to get the textfield value in the function?
    there may be some rows already existing, so I want the total of the existing rows to be displayed in my P78_TOTAL textfield that is why I need to do this calculation on onLoad of the page.
    Thanks
    Tauceef
    Edited by: Tauceef on Jul 8, 2010 4:57 AM

  • How to validate multiple lines which is exist in the form builder at the same session

    Hi All,
    we are working on oracle Forms personalization to trigger the message at the point of saving multiple lines rather than requiring each line to be save individually. Currently the oracle form is allowing to user to enter two distinct lines that have same resource and basis type in BOM.
    Currently the Oracle form is allowing to enter the duplicate combination and not giving any error message even we enter the same combination of data.
    As per the customer requirement, they don’t want to validate the data while creating the records but when they try to save the form, in that case it should validate all the records at a time then need to display the appropriate message.
    Customer don’t want to customize the Oracle standard form. Here we have only option to use form personalization or through custom.pll.
    Any idea on how to validate multiple lines which is exist in the form builder at the same session as before inserting the record itself need to perform the validations for all the records.
    Thanks for your help in this regard.
    Regards,
    Thirupathi

    you can write a post script which will do the necessary tasks.
    I mean, once you are done with inserting records into these tables, exeute another procedure which will insert these "extra" records, based on some logic.
    you may not be able use DB trigger as it may generate mutating error or if you don't write it carefully, it will go into recursive loops as you are refering to same tables.
    HTH

Maybe you are looking for