Validation on text item

Hi all,
i have a text item P6_MAXLIABILITY
I put a validation on that item with regular expression.
I want that validation to happen, when the focus moves to the next item.
could any one give me a suggestion?
bye
Srikavi

Hi,
if the focus changes the javascript is event "onblur();" automatically fired. Then you can call own javascript function and validate the input.
Example:
<form name="test" action="">
Name: <input type="text" name="input1" onblur="checkContent(this.value)">
</form>
<script type="text/javascript">
document.test.input1.focus();
function checkContent (field) {
if (field == "") {
alert("Please input something!");
document.test.input1.focus();
return false;
</script>

Similar Messages

  • Validation on text item as Regular Expression Question(Repetition Operator)

    These are my success entries for a field;
    123456,
    123456,123456,
    123456,123456,123456,
    123456,123456,123456,123456,
    "," seperated 6 digits can be repeated unlimited times.
    I found on documentation this; "Repetition Operators; {m,}     Match at least m times" and for my need i tried this regular expression; "^[[[:digit:]]{6},]{1,}$", but didnt worked :(
    Any comments?
    Thank you very much :)
    Tonguc

    Your expression is a little incorrect because you can't use repetition operators within a bracket expression. How about something like this
    "^([[:digit:]]{6},)+$"
    Regards,
    Peter

  • Text item validation into Formular.

    hi.
    From some days I have written my fiirst application using Oracle Forms6i.
    In oracle9i I created table USER with column id_user number(5), username varchar2(10) and passwd varchar2(12).
    In oracle forms builder I created the formular with 4 controls(2 fields - username and passwd ,one button to login user and Text item to the botton of this formular to print message for user). In ProperPalette for Text item 'username' and 'passwd' I set adequately Maximum Lenght peperty to 10 and 12(for 'passwd' field) and Required to Yes.
    Then I wanted to make a validation username and passwd fields in this way, that the user can put in 'username' field the string with length between 8 to 10 and for 'passwd' between 8 to 12 and checking all other cases incorrect data entering by login user.
    I created trigger WHEN-MOUSE-CLICK for button with this body:
    declare
         dlug_username number;
         dlug_passwd number;
    begin
         dlug_username := length(:user_data_log.username);
         dlug_passwd := length(:user_data_log.passwd);
         if (:user_data_log.username = NULL and :user_data_log.passwd = NULL) then
              :user_data_log.komunikaty_logowania := 'you didn enter any data!';
         elsif dlug_username >= 8 and dlug_passwd >= 8 then
         :user_data_log.komunikaty_logowania := 'Correct data!';
         elsif dlug_username < 8 or dlug_passwd < 8 then
                   :user_data_log.komunikaty_logowania := 'Fields USERNAME i PASSWD must have more then 8 sign. Correct them!';
                   :user_data_log.username := '';
                   :user_data_log.passwd := '';
         end if;
    exception
         when VALUE_ERROR then
         :user_data_log.komunikaty_logowania := dlug_username;
    end;
    When I run this form by Run Form client/server button, it's not matter what I'll enter in two field 'username', 'passwd', when I press button always is invoke exception section
    but no if condition.
    Now, I don't know what do with this. What is the best way to resolve problems with validation of form elements?
    Thanks in advance for all help, some hints, tutorials. I appologise for so long post, but I
    want directly describe my problem. Thanks.

    Hi,
    Regarding to your post and your problem , obviously the code doesn't go into the
    IF condition and validate it becouse the syntax is not appropriate and every time it goes to the IF it jumps into the exception part. Thats why you have to correct your code as fllowing.
    if (:user_data_log.username IS NULL) and (:user_data_log.passwd IS NULL) then
    etc till the end of the code.
    Kindly if this approach meet your requirment of solving , update your problem with a Subject of Solved
    Regards
    Omar

  • Validation in POST-TEXT item trigger

    Hi
    Does POST-TEXT -ITEM trigger fire in ENTER-QUERY mode?
    If not suggest me solution for following scenario:
    I have supplier field in master block. When Form is in -ENER-QUERY mode, i want to validate the user input in the supplier field before user navigate out of the field using TAB KEY (KEY-NEXT-ITEM) or MOUSE (POST-TEXT-ITEM).
    Thanks
    Cheers
    Ram

    The Forms help says that it doesn't, and nor does when-validate-item.
    It looks like you'll have to use the when-new-item-instance trigger. You can store the value of the current field and whenever the trigger fires, run some code to validate that field. If it passes the validation then store the value of the new field, otherwise put the user back in the original field.
    You'll also need to call the code from the key-exeqry trigger, so that you can validate the field which the user is in when they execute the query.

  • Text Item Validation in Oracle Forms 6i

    Dear All Seniors
    Please guide that how to do validation on text fileds in oracle FORMS 6i.
    I have form like that
    table name= emp
    columns:
    Code, Name
    Code is auto generationg and Name field manually data typed.
    now if
    code, Name
    1 Asim
    2 Asim // it should not take .
    please help.

    Hi,
    You mean it should not take dupliate names or it should not take "//"
    If you have a set of character that should not be there for this field try using instr function. You can check if the field contains any character you don't want to be included in the name field.
    If instr(:name,'A') > 0 then
    message('xxxxxxx');
    Regards
    Yoonas

  • Validating list item with text item havin LOV, how  2 do?

    Dear Sir’s,
    I have two items,
    a) emp_id which is a TEXT ITEM having a LOV
    b) dept_name which is a LIST ITEM.
    Suppose, those employee id’s having 100 and 101, when selected from the LOV, the dept_name list item should automatically become IT_DEPT and the user should not be able to change the value in the list item and the cursor should not be navigable. Like wise, when employee id is 102, the dept_name should show, some of the specific name from the list and not navigable.
    For this, what should I do? Please help me.
    Mitto.

    First in the LOV query select the department name. In the LOV properties, in column mapping properties make the field width as 0 so that it will not be visible in the LOV. In the return item field browse for the item and select it.
    In the run time, upon clicking the lov, the value will be populated automatically.
    I hope this helps.
    Regards,
    Anantha Narayanan
    http://askanantha.googlepages.com

  • How to change the "name of column" property of an text item in runtime?

    How to change the "name of column" property of an text item in runtime?
    I look the properties of items in help and found nothing about this!
    It's possible?

    Hi,
    an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
    First create block and add items
    The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
    Set into items the column name property to col1 , col2 ...
    At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
    in this way you can change the source of column value.
    Caution because if you change value type from varchar2 to date you must cast date into varchar2.
    May be that this way is valid only for view data not for insert-update, i don't remember.
    bye
    Message was edited by:
    Killernero

  • Text item not showed properly

    Hi,
    one text item is like
    <af:inputText value="#{bindings.Id.inputValue}" label="ID"
    required="#{bindings.Id.hints.mandatory}"
    columns="#{bindings.Id.hints.displayWidth}"
    maximumLength="#{bindings.Id.hints.precision}"
    shortDesc="#{bindings.Id.hints.tooltip}"
    binding="#{backingBeanScope.backing_User_profile.it1}"
    id="it1" inlineStyle="width:300px;">
    <f:validator binding="#{bindings.Id.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.Id.format}"/>
    </af:inputText>I don't know why when showing the jsf, there is 0 length for the text items inside

    hi friend
    this is sample code,which is in panelformlayout comprises some inputtext.
    just compare. and correct your mistake.
    or else paste the code.
    <af:panelFormLayout binding="#{pageFlowScope.managedbean_GeneralLedger.pfl1}"
                                                      id="pfl1" maxColumns="3"
                                                      rows="3">
                                    <af:inputListOfValues id="inputListOfValues1"
                                                          popupTitle="Search and Select: #{bindings.GlalPlant.hints.label}"
                                                          value="#{bindings.GlalPlant.inputValue}"
                                                          label="#{bindings.GlalPlant.hints.label}"
                                                          model="#{bindings.GlalPlant.listOfValuesModel}"
                                                          required="#{bindings.GlalPlant.hints.mandatory}"
                                                          columns="#{bindings.GlalPlant.hints.displayWidth}"
                                                          shortDesc="#{bindings.GlalPlant.hints.tooltip}"
                                                          binding="#{pageFlowScope.managedbean_GeneralLedger.inputListOfValues1}"
                                                          autoSubmit="true">
                                      <f:validator binding="#{bindings.GlalPlant.validator}"/>
                                    </af:inputListOfValues>
                                    <af:inputText value="#{bindings.GlalPlantDesc.inputValue}"
                                                  label="#{bindings.GlalPlantDesc.hints.label}"
                                                  required="#{bindings.GlalPlantDesc.hints.mandatory}"
                                                  columns="#{bindings.GlalPlantDesc.hints.displayWidth}"
                                                  maximumLength="#{bindings.GlalPlantDesc.hints.precision}"
                                                  shortDesc="#{bindings.GlalPlantDesc.hints.tooltip}"
                                                  partialTriggers="inputListOfValues1"
                                                  binding="#{pageFlowScope.managedbean_GeneralLedger.it38}"
                                                  id="it38">
                                      <f:validator binding="#{bindings.GlalPlantDesc.validator}"/>
                                    </af:inputText>
                                    <af:inputListOfValues id="inputListOfValues2"
                                                          popupTitle="Search and Select: #{bindings.GlalLvl1.hints.label}"
                                                          value="#{bindings.GlalLvl1.inputValue}"
                                                          label="#{bindings.GlalLvl1.hints.label}"
                                                          model="#{bindings.GlalLvl1.listOfValuesModel}"
                                                          required="#{bindings.GlalLvl1.hints.mandatory}"
                                                          columns="#{bindings.GlalLvl1.hints.displayWidth}"
                                                          shortDesc="#{bindings.GlalLvl1.hints.tooltip}"
                                                          binding="#{pageFlowScope.managedbean_GeneralLedger.inputListOfValues2}">
                                      <f:validator binding="#{bindings.GlalLvl1.validator}"/>
                                    </af:inputListOfValues>
                                    <af:inputText value="#{bindings.GlalLvl1Desc.inputValue}"
                                                  label="#{bindings.GlalLvl1Desc.hints.label}"
                                                  required="#{bindings.GlalLvl1Desc.hints.mandatory}"
                                                  columns="#{bindings.GlalLvl1Desc.hints.displayWidth}"
                                                  maximumLength="#{bindings.GlalLvl1Desc.hints.precision}"
                                                  shortDesc="#{bindings.GlalLvl1Desc.hints.tooltip}"
                                                  partialTriggers="inputListOfValues2"
                                                  binding="#{pageFlowScope.managedbean_GeneralLedger.it39}"
                                                  id="it39">
                                      <f:validator binding="#{bindings.GlalLvl1Desc.validator}"/>
                                    </af:inputText>
                                    <af:inputListOfValues id="inputListOfValues3"
                                                          popupTitle="Search and Select: #{bindings.GlalLvl2.hints.label}"
                                                          value="#{bindings.GlalLvl2.inputValue}"
                                                          label="#{bindings.GlalLvl2.hints.label}"
                                                          model="#{bindings.GlalLvl2.listOfValuesModel}"
                                                          required="#{bindings.GlalLvl2.hints.mandatory}"
                                                          columns="#{bindings.GlalLvl2.hints.displayWidth}"
                                                          shortDesc="#{bindings.GlalLvl2.hints.tooltip}"
                                                          binding="#{pageFlowScope.managedbean_GeneralLedger.inputListOfValues3}">
                                      <f:validator binding="#{bindings.GlalLvl2.validator}"/>
                                    </af:inputListOfValues>
                                    <af:inputText value="#{bindings.GlalLvl2Desc.inputValue}"
                                                  label="#{bindings.GlalLvl2Desc.hints.label}"
                                                  required="#{bindings.GlalLvl2Desc.hints.mandatory}"
                                                  columns="#{bindings.GlalLvl2Desc.hints.displayWidth}"
                                                  maximumLength="#{bindings.GlalLvl2Desc.hints.precision}"
                                                  shortDesc="#{bindings.GlalLvl2Desc.hints.tooltip}"
                                                  partialTriggers="inputListOfValues3"
                                                  binding="#{pageFlowScope.managedbean_GeneralLedger.it40}"
                                                  id="it40">
                                      <f:validator binding="#{bindings.GlalLvl2Desc.validator}"/>
                                    </af:inputText>
                                    <af:inputListOfValues id="inputListOfValues4"
                                                          popupTitle="Search and Select: #{bindings.GlalLvl3.hints.label}"
                                                          value="#{bindings.GlalLvl3.inputValue}"
                                                          label="#{bindings.GlalLvl3.hints.label}"
                                                          model="#{bindings.GlalLvl3.listOfValuesModel}"
                                                          required="#{bindings.GlalLvl3.hints.mandatory}"
                                                          columns="#{bindings.GlalLvl3.hints.displayWidth}"
                                                          shortDesc="#{bindings.GlalLvl3.hints.tooltip}"
                                                          binding="#{pageFlowScope.managedbean_GeneralLedger.inputListOfValues4}">
                                      <f:validator binding="#{bindings.GlalLvl3.validator}"/>
                                    </af:inputListOfValues>
                                    <af:inputText value="#{bindings.GlalLvl3Desc.inputValue}"
                                                  label="#{bindings.GlalLvl3Desc.hints.label}"
                                                  required="#{bindings.GlalLvl3Desc.hints.mandatory}"
                                                  columns="#{bindings.GlalLvl3Desc.hints.displayWidth}"
                                                  maximumLength="#{bindings.GlalLvl3Desc.hints.precision}"
                                                  shortDesc="#{bindings.GlalLvl3Desc.hints.tooltip}"
                                                  partialTriggers="inputListOfValues4"
                                                  binding="#{pageFlowScope.managedbean_GeneralLedger.it41}"
                                                  id="it41">
                                      <f:validator binding="#{bindings.GlalLvl3Desc.validator}"/>
                                    </af:inputText>
                                    <af:inputListOfValues id="inputListOfValues5"
                                                          popupTitle="Search and Select: #{bindings.GlalLvl4.hints.label}"
                                                          value="#{bindings.GlalLvl4.inputValue}"
                                                          label="#{bindings.GlalLvl4.hints.label}"
                                                          model="#{bindings.GlalLvl4.listOfValuesModel}"
                                                          required="#{bindings.GlalLvl4.hints.mandatory}"
                                                          columns="#{bindings.GlalLvl4.hints.displayWidth}"
                                                          shortDesc="#{bindings.GlalLvl4.hints.tooltip}"
                                                          binding="#{pageFlowScope.managedbean_GeneralLedger.inputListOfValues5}">
                                      <f:validator binding="#{bindings.GlalLvl4.validator}"/>
                                    </af:inputListOfValues>
                                    <af:inputText value="#{bindings.GlalLvl4Desc.inputValue}"
                                                  label="#{bindings.GlalLvl4Desc.hints.label}"
                                                  required="#{bindings.GlalLvl4Desc.hints.mandatory}"
                                                  columns="#{bindings.GlalLvl4Desc.hints.displayWidth}"
                                                  maximumLength="#{bindings.GlalLvl4Desc.hints.precision}"
                                                  shortDesc="#{bindings.GlalLvl4Desc.hints.tooltip}"
                                                  partialTriggers="inputListOfValues5"
                                                  binding="#{pageFlowScope.managedbean_GeneralLedger.it42}"
                                                  id="it42">
                                      <f:validator binding="#{bindings.GlalLvl4Desc.validator}"/>
                                    </af:inputText>
                                    <af:inputListOfValues id="inputListOfValues6"
                                                          popupTitle="Search and Select: #{bindings.GlalAcct.hints.label}"
                                                          value="#{bindings.GlalAcct.inputValue}"
                                                          label="#{bindings.GlalAcct.hints.label}"
                                                          model="#{bindings.GlalAcct.listOfValuesModel}"
                                                          required="#{bindings.GlalAcct.hints.mandatory}"
                                                          columns="#{bindings.GlalAcct.hints.displayWidth}"
                                                          shortDesc="#{bindings.GlalAcct.hints.tooltip}"
                                                          binding="#{pageFlowScope.managedbean_GeneralLedger.inputListOfValues6}">
                                      <f:validator binding="#{bindings.GlalAcct.validator}"/>
                                    </af:inputListOfValues>
                                    <af:inputText value="#{bindings.GlalAcctDesc.inputValue}"
                                                  label="#{bindings.GlalAcctDesc.hints.label}"
                                                  required="#{bindings.GlalAcctDesc.hints.mandatory}"
                                                  columns="#{bindings.GlalAcctDesc.hints.displayWidth}"
                                                  maximumLength="#{bindings.GlalAcctDesc.hints.precision}"
                                                  shortDesc="#{bindings.GlalAcctDesc.hints.tooltip}"
                                                  partialTriggers="inputListOfValues6"
                                                  binding="#{pageFlowScope.managedbean_GeneralLedger.it43}"
                                                  id="it43">
                                      <f:validator binding="#{bindings.GlalAcctDesc.validator}"/>
                                    </af:inputText>
                                    <af:inputText value="#{bindings.GlalDesc1.inputValue}"
                                                  label="#{bindings.GlalDesc1.hints.label}"
                                                  required="#{bindings.GlalDesc1.hints.mandatory}"
                                                  columns="#{bindings.GlalDesc1.hints.displayWidth}"
                                                  maximumLength="#{bindings.GlalDesc1.hints.precision}"
                                                  shortDesc="#{bindings.GlalDesc1.hints.tooltip}"
                                                  binding="#{pageFlowScope.managedbean_GeneralLedger.it44}"
                                                  id="it44">
                                      <f:validator binding="#{bindings.GlalDesc1.validator}"/>
                                    </af:inputText>
                                    <af:inputListOfValues id="inputListOfValues7"
                                                          popupTitle="Search and Select: #{bindings.GlalClId.hints.label}"
                                                          value="#{bindings.GlalClId.inputValue}"
                                                          label="#{bindings.GlalClId.hints.label}"
                                                          model="#{bindings.GlalClId.listOfValuesModel}"
                                                          required="#{bindings.GlalClId.hints.mandatory}"
                                                          columns="#{bindings.GlalClId.hints.displayWidth}"
                                                          shortDesc="#{bindings.GlalClId.hints.tooltip}"
                                                          binding="#{pageFlowScope.managedbean_GeneralLedger.inputListOfValues7}">
                                      <f:validator binding="#{bindings.GlalClId.validator}"/>
                                    </af:inputListOfValues>
                                    <af:inputText value="#{bindings.GlalClassDesc.inputValue}"
                                                  label="#{bindings.GlalClassDesc.hints.label}"
                                                  required="#{bindings.GlalClassDesc.hints.mandatory}"
                                                  columns="#{bindings.GlalClassDesc.hints.displayWidth}"
                                                  maximumLength="#{bindings.GlalClassDesc.hints.precision}"
                                                  shortDesc="#{bindings.GlalClassDesc.hints.tooltip}"
                                                  partialTriggers="inputListOfValues7"
                                                  binding="#{pageFlowScope.managedbean_GeneralLedger.it45}"
                                                  id="it45">
                                      <f:validator binding="#{bindings.GlalClassDesc.validator}"/>
                                    </af:inputText>
                                    <af:selectOneChoice value="#{bindings.GlalOptType.inputValue}"
                                                        label="#{bindings.GlalOptType.label}"
                                                        required="#{bindings.GlalOptType.hints.mandatory}"
                                                        shortDesc="#{bindings.GlalOptType.hints.tooltip}"
                                                        binding="#{pageFlowScope.managedbean_GeneralLedger.soc4}"
                                                        id="soc4">
                                      <f:selectItems value="#{bindings.GlalOptType.items}"
                                                     binding="#{pageFlowScope.managedbean_GeneralLedger.si4}"
                                                     id="si4"/>
                                    </af:selectOneChoice>
                                    <af:selectOneChoice value="#{bindings.GlalStatus.inputValue}"
                                                        label="#{bindings.GlalStatus.label}"
                                                        required="#{bindings.GlalStatus.hints.mandatory}"
                                                        shortDesc="#{bindings.GlalStatus.hints.tooltip}"
                                                        binding="#{pageFlowScope.managedbean_GeneralLedger.soc5}"
                                                        id="soc5" readOnly="false"
                                                        valueChangeListener="#{pageFlowScope.managedbean_GeneralLedger.soc5_valueChangeListener}"
                                                        autoSubmit="true">
                                      <f:selectItems value="#{bindings.GlalStatus.items}"
                                                     binding="#{pageFlowScope.managedbean_GeneralLedger.si5}"
                                                     id="si5"/>
                                    </af:selectOneChoice>
                                    <af:selectBooleanCheckbox value="#{bindings.GlalBudFlag.inputValue}"
                                                              label="#{bindings.GlalBudFlag.label}"
                                                              shortDesc="#{bindings.GlalBudFlag.hints.tooltip}"
                                                              binding="#{pageFlowScope.managedbean_GeneralLedger.sbc4}"
                                                              id="sbc4"
                                                             valueChangeListener="#{pageFlowScope.managedbean_GeneralLedger.sbc4_valueChangeListener}"/>
                                  </af:panelFormLayout>

  • 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

  • Disable ENTER KEY on text item

    All,
    I am trying to disable SUBMIT on ENTER KEY for a text item on a page as below but still its submitting how can i achieve this.
    I want the page to totally disable the enter key so when i press ENTER KEY nothing happens,
    what i did:
    1. when page loads,
    $("input").keypress(function evt) {
    var charCode = evt.charCode || evt.keyCode;
    if (charCode  == 13) {
    return false;
    2.
    Submit when Enter pressed
    NO
    APEX 4.2
    thank you.

    Hi,
    Your code is not valid.
    I'm sure it raises errors.
    Place to page JavaScript -> Execute when Page Loads
    $("input,select").keypress(function(e){
    return e.keyCode!==13;
    Regards,
    Jari

  • How to keep values in text items.

    Hi,
    I have created a tabular form with report.out of this form Two items are converted to LOV'S(TEAM_LOV,TYPE_LOV) i.e TEAM_LOV for P4_TEAM item and TYPE_LOV for P4_TYPE item.
    TEAM_LOV := select team d, team_id r from teams;
    TYPE_LOV := select type d , type_id r from types where team_id=:P4_TEAM;
    1. For P4_TEAM item is select list with redirect .
    2. For P4_TYPE item is select list.
    Problem:=
    When i create a new record and enter new values in the text items above the P4_TEAM item and then selects the list of values from P4_TEAM then the values from the above text items gets clears . How to prevent the clearing the item values.
    If i use select list with submit. then i have validation on two items so i gives validation errors.
    Help !
    Thanks,
    Ramesh

    Hi Ramesh,
    I had the same problems and solved it with AJAX. then only the second list is updated and no submit or redirect is needed.
    Otherwise you could set a condition for your validation, i.e. only if item is not null.
    chrissy

  • How to make form text item nullable?

    I created an Apex form using wizard.
    It had a text item which was not null column in database. Now I made the column nullable in database.
    However, in Apex form, it still refuses to accept any null value in that text item.
    Where do I need to change in form to make it nullable?
    Thanx

    Hi,
    Has the wizard created a not null validation for the column that was originally not null. Check validations and remove the entry.
    Regards
    Paul

  • How do you write UNDO for a text item?? examples? or a REDO??

    How do you write UNDO for a text item?? examples? or a REDO??
    I created a pop-up menu with CUT, COPY, PASTE, UNDO, CLEAR for my text items.
    Using MAGIC menu type works great but there is no MAGIC for UNDO or REDO.....
    How do you write UNDO for a text item?? examples? or a REDO??
    I have Oracle Forms 6i...
    Lets say I highlight all the text in the text item, and start typing over it... then I realize OH NO it is the wrong text field...
    Now I want to UNDO the typing and get back to the previous text.
    I'd use the initial value that was populate right? How do I access that if that is correct?
    Thanks, Bill

    You can use;
    <ITEM> := Get_Item_Property(<ITEM>,DATABASE_VALUE);
    Or you will have to write a pre-text-item trigger;
    PRE-TEXT-ITEM:
    :CTRL.CURRENT_VAL := :<BLOCK>.<ITEM>
    MENU (PL/SQL):
    :<BLOCK>.<ITEM> := :CTRL.CURRENT_VAL;
    You may also want to set the item property back to ITEM_IS_VALID so that item validation does not fire again.

  • Language restriction on Text Items.

    Hi,
    We are developing an application in Oracle 8i & Forms 6i
    for a Thailand based company. The users will enter data
    in English as well as Thai language.
    We have tested the forms that accepts both English
    & Thai characters in a single text item. The database
    also stores both language's characters. We are using
    TH8TISASCII character set.
    Now, the user has a requirement that certain text items
    (fields) should allow only Thai characters to input.
    In other words, that particular field should not
    accept English characters.
    Is it possible to achieve in Forms 6i ? Are there any
    built-ins or properties available that would do this job ?
    The client machines are running on Windows 2000 Professional
    Edition with locale as Thai.
    Your inputs will be highly appreciated.
    Thanks.
    Mayur
    [email protected]

    Could you not write a validation trigger that checks the ASCII value of each character in the string that the user has entered and then raises an error if it is not in the correct range?
    If you are web deployed you could use the Keyfilter PJC (you can download this for 6i or 9i) which allows you to define exactly which characters are allowed in the field without having to write PL/SQL validation code.

  • Diffrence between when-validate-item and post-text-item trigger

    What is the Diffrence between when-validate-item and post-text-item trigger, when they are written for the same item and the basic diffrence between when-validate-item and post-text-item trigger.

    Two big differences:
    1. post-text-item is only available to, and only triggered when leaving a text item, whereas when-validate-item is triggered by the forms validation process, and is available for any item type.
    2. p-t-i is a navigation trigger and you cannot invoke it programmatically, whereas the 'validate' built-in can be used to execute validation which fires the w-v-i trigger(s).

Maybe you are looking for

  • Direct URL link to "Last Instance" on XI 3.0

    I am looking for getting direct URL to "Last Instance" of a Desktop Intelligenge Report on XI 3.0. An idea ?

  • Inconsistent behaviour in Java 1.2 and 1.3 version

    Hi Where can I find the complete list of methods and classes which are not depricated but have different behaviour in Java1.2 and 1.3 version, like one method is nextToken(String) of StringTokenizer class.

  • Dropbox files causing Indesign, Word and Excel to crash

    If we try to open any file contained in our dropbox folder - the application instantly hangs and crashes. The is the same for applications like Word and Excel and also Indesign when 'placing' a file. You can open the files by clicking on them directl

  • Forcing a UITableView to scroll down.

    I have a UITableView that needs to scroll down as I add more content. If my cell height is say 100, how would I force the table to scroll to the bottom cell if there are more than 5?

  • Broadband speed dropping out of sight

    I moved from sky where i was getting a download speed of 17.00. the first fortnight of bt i had 15.00 .  then it dropped to 12.00 now it is down to 2.6. the upsetting thing is noone seems to care as long as they are paid. i must have been a total mug