Tweaking of default query so that the two fields are searched equally

I have a 'Customer Details' data block that contains the field "mobile1" and "mobile2" for customer's cell phone numbers. When a customer enters into a mobile number or a field, I need to check the two mobile fields to see if this number exist as the primary contact number or secondary to any client of the query.
I've tried to set a default_where clause, but oracle automatically adds to him whenever a number is entered in the field, making me a little trouble at the head!

For example, if I say something like, WHERE MOB1 =: BLOCK. MOB1 OR = MOB1: BLOCK. Mob 2 (do not question true, just one example)
And I took #-# in the field of mobile2,.
Forms adds to this "AND mob 2 =: 1'"

which causes the query to return nothing, since there is no entry mob 2 is equal to the registered number, even if there is an entry MOB1 bearing the same number.

Is there a way to change the AND a RC for the query?

If not, can anyone suggest how I can get the result, I'm looking for without having to change my block to a block not DB and duplicate me all the default features of Oracle Forms manually?

Thanks in advance,

A

Do something like this in the PRE-QUERY-trigger:

IF :BLOCK.MOBILE1 IS NOT NULL THEN
     SET_BLOCK_PROPERTY('BLOCK', ONETIME_WHERE, 'MOBILE1 LIKE ''' || :BLOCK.MOBILE1 ||  ''' OR ' ||
                                                'MOBILE2 LIKE ''' || :BLOCK.MOBILE1 ||  '''');

END IF;
:BLOCK.MOBILE1:=NULL;

Tags: Oracle Development

Similar Questions

  • So, now that the iPhone 7 no longer a listener, how can we charge the iPhone and listen to music at the same time?  There is an adapter that will be a separator so that the two things are possible?

    So, now that the iPhone 7 no longer a listener, how will we be able to charge phone and listen to music at the same time?  Will it be a card which will be a dispatcher?

    You can use a dock of lightning to reload everything using plug the dock integrated headset for listening to music.

    http://www.MacRumors.com/2016/09/08/lightning-dock-iPhone-7-charging-with-music/

  • The required fields are not displayed message when left blank

    Hello

    I set fields as required in the value, the field Type as user entered - required tab. Also, I entered a message in the empty Message field. When the user fills out the form, they are allowed to send the form without fill in the fields.

    Any help is greatly appreciated.

    Thank you

    MDawn

    Use the preSubmit event to check required fields / required before sending...

    Check the wire for ideas below.

    http://forums.Adobe.com/thread/606762?TSTART=0

    Usually, if you use the required field and submit the form, it will display the warning message that the required fields are missing, and continue to submit the form. It is therefore preferable to use the programmatic approach for the control on the form submission.

    When you search for the values of field programmatically, you must set the Type property of the value type as input by the user - option.

    Thank you

    Srini

  • That the two red bars displayed in an average of tab?

    That the two red bars displayed on an average tab?

    This is the icon of favorite for this site - http://www.hrdsoftwarellc.com/

  • prices mp4 wemb of video files, that the TWO needed for a video work in the MUSE?

    prices mp4 wemb of video files, that the TWO needed for a video work in the MUSE?

    Hi TheArthur,

    Now a version more recent days of all browsers support format video mp4 but some older versions of browsers still need to format to play webm video.

    HTML5 video

    So if your analysis says that none of the visitors to your site use these older browsers, so you can skip webm file but where there are users of the site who use the old version of browsers that do not support mp4 then it is advisable to use webm and mp4 videos.

    Concerning

    Vivek

  • r beeb used before on pc. The problem is that these two PCs are thrown NAWL avay chrased long, I hava a few photos on the program and its impossible to buy a new number for one that oldc product. What should do?

    r beeb used before on pc. The problem is that these two PCs are thrown NAWL avay chrased long, I hava a few photos on the program and its impossible to buy a new number for one that oldc product. What should do?

    If you have the serial number, you can contact the Adobe Support via chat (when they are available - not weekend) and ask them to reset your activations.  Which will allow you to reinstall and activate again using the serial number, which you have now.

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Serial number and activation support (non - CC) chat
    https://helpx.Adobe.com/contact.html?step=PHSP-PHXS_downloading-installing-setting-up_lice nsing-activation_stillNeedHelp

  • Windows says FireFox must be updated but cannot be because the two instances are running, which is not true. It happens everytime I open FireFox

    Windows says FireFox must be updated but cannot be because the two instances are running, which is not true. It happens everytime I open FireFox

    This has happened

    Each time Firefox opened

    == June 28 2010

    Firefox 3.6.6 came out on 26/06/2010 to solve problems that some were plagued with the new crash protection feature introduced in Firefox 3.6.4. NOTE: Version 3.6.5 has been used for another product, so there is a "jump" in the version numbers.

    You need to update to the latest version, Firefox 3.6.6.

  • text messages sent with an email address from a touch ipod duplicated on a second ipod touch using a different email address, but the two ipods are controlled by a parent with the same apple ID and password.

    Text messages sent with an email address from a touch ipod duplicated on a second ipod touch using a different email address, but the two ipods are controlled by a parent with the same apple ID and password.  This has happened recently.  My two girls have used their respective ipods and texting, without their messages of duplication for each of the other ipods for more than a year.  Somehow recently, both addresses seem to be synced with them or something, so that both see each and other messages.  I've recently updated two ipods, iTunes on my computer--not the cloud and added music for two ipods, but has not changed anything by email email settings or message I know.  Help, please!

    Welcome to the Apple community.

    I can't fully follow how you have everything set up, but a glance at the settings > messages > send & receive

  • Whenever I start the system complains that the following files are missing, c:\\Windows\System32\igfxpers.exe, igftray.exe and hkcmd.exe.

    Original title: files missing error

    Whenever I start the system complains that the following files are missing, c:\\Windows\System32\igfxpers.exe, igftray.exe and hkcmd.exe. Everything started after I ran scan and scan deleted some files infected. However, I can use the system. Where and how to download the missing files? Or how the system does not deliver messages?

    Simon

    Two of the three files are probably part of the malware infection and not the files infected. The third is probably the same details in this link:
    http://www.Runscanner.NET/file/Hkcmd.exe.html

    To identify what loads when you start using Autoruns (freeware from Microsoft).
    http://www.Microsoft.com/technet/sysinternals/ProcessesAndThreads/Autoruns.mspx

    With Autoruns, you can deselect an item which disables startup, or you can click with the right button on an item, then remove it. If you clear the check box that you can check back for re - activate the element. It is an approach much safer than editing the registry and better than using msconfig. You will find the three points and they will have a description 'file is missing' against everyone. Your antivirus software has removed the files, but not the startup entries in the registry. All you need to do is delete the entry using Autoruns to eliminate the error messages.

    Another useful feature of the program is that you can click with the right button on an item and select search online to get information about the selected item.

  • Can we fix the width of the lines of af: PanelFormLayout, so that the inputText fields adjust line width?

    Mr President.

    My worm jdev is 12.1.3.0


    Can we fix the width of the lines of af: PanelFormLayout, so that the inputText fields adjust line width?

    When I put a viewobject as a form with two rows in the panelbox, then the inputtext fields have different widths to disturb the box width of Panel and the distance between two lines increases.

    I want to keep equal with the panelbox two lines of formatting Panel.

    Concerning

    Select your inputText on pageEditor go to inspector and set width: 150px; in the contentStyle property

    check -binary: customization of the width of a UI control using the contentStyle attribute

    To set the width of the Panel form layout set in the inlineStyle property

    Ashish

  • It keeps telling me that the required updates are not installed... I have already installed SP2 and restarted my computer TWICE. Please help me!

    He continues to tell me that the required updates are not installed in order to download and run Internet Explorer 9... I have already installed SP2 and restarted my computer TWICE.  Please help me!

    I wouldn't bother downloading it, but I need for a course that is only compatible with IE9... He is constantly telling me that "Setup does not support this pack", even if the sine qua non pack has been installed!

    Hi stephprice,

    I suggest you follow the articles provided below and check if it helps.

    http://support.Microsoft.com/kb/910339/

    http://support.Microsoft.com/kb/971058

  • Windows installation encountered an unexpected error. Check that the installation sources are accessible and restart the installation. "The error code is:"0xE0000 100. "

    My antivirus and windows firewall was also automatically disabled and I was not able tun back on

    So, I tried to reinstall the windows operating system 7, but when I try to install, I get an error saying:

    Windows installation encountered an unexpected error. Check that the installation sources are accessible and restart the installation. »

    The error code is: "0xE0000 100."

    I think that some virus or malware is rampant in my installation of windows system. So, I want to know there is a way to solve this problem...

    Ideas or suggestions that anyone has would be greatly appreciated!

    Thank you!

    See if this post has resolved your problem: http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_install/error-code-oxe000100-windows-installation/aea498e2-09c3-43aa-bfa5-c06e68b1ea0c

    J W Stuart: http://www.pagestart.com

  • When I try to open streets and trips 2011, I thought that the registry files are not correct.

    HI, I keep trying to install streets and trips 2011 on my Windows 7 computer.  The installation files say it is installed correctly but when I try to open, I get an error message that the registry files are not correct. Must re-run Setup. It is a brand new program that I just bought.  What is going on?

    original title: streets & trips 2011 will not be installed. Incorrect registry problem files. Windows7

    You're more likely to get a useful response to the Highway, Streets & Trips, MapPoint Forum

    Good luck with it,

  • Try to copy a folder with subfolders, some don't copy, get the message that the folder names are too long under Windows 7

    Hi, when you try to copy a folder with lots of subfolders, some files don't copy.  I get a message that the folder names are too long, and the only option is to ignore these files.  Anyone know the maximum folder (and also) name length that will copy windows 7?

    Thank you

    Steve M

    Hello
     
     
    a. What are the data you're trying to move?
    b. what operating system (for example Windows files) files?
    c. What is the method that you use to copy data?
     
     
    Windows 7 supports filename up to 260 characters. I would ask you to decrease the characters in the file name and then try to copy the files.

    Let us, run disk checking hard disk utility and then check.
    Here's how:
    1. open the computer by clicking the Start button, click computer.
    2. click on the drive you want to check, and then click Properties.
    3. click on the Tools tab and then, under check for errors, click Find now. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    To automatically repair problems with files and folders that the scan detects, select automatically fix file system errors. Otherwise, the disk check will be a problem, but not to fix them.
    To perform a thorough check, select search and attempt to recover bad sectors. This analysis tries to find and repair physical errors on the disk itself, and it may take much longer to complete.
    To check for errors file and the physical errors, select both automatically fix errors in file system and search for and attempt recovery of bad sectors.
    4. click on start.
     
     
    Depending on the size of your drive, it may take several minutes. For best results, do not use your computer for any other tasks while it checks errors.
     
    Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • WES7: 'Windows cannot access the installation sources. "Check that the installation sources are accessible and restart the installation.

    I try to install Windows Embedded Standard 7 on an vacuum Compact Flash 4 GB but when installing, I get an error message "Windows cannot access the installation sources. "Check that the installation sources are accessible, and run the Setup again."

    I created an answer file with the Configuration of Image Editor and I created an Image of the IBW of my answer file. All the files and the Image of the IBW (738 MB) files are copied to a USB bootable 4 GB. I inserted the Flash DRIVE to a computer with a Compact Flash 4 GB (which contains only a primary NTFS partition set as Active) and it starts on a USB key. IBW Wizard starts and I followed the instructions until the disk selection step. I chose the disk and partition of Compact Flash and I press the next button. First 2 installation steps manage (copy of Windows files and extend Windows files) but 3rd step (installing features and updates) failed with the error message "Windows cannot access the installation sources. Check that the installation sources are accessible, and run the Setup again.'.»

    I tried to do the same thing with a Compact Flash 4 GB, which contains 2 partitions: a primary NTFS defined as active and a system partition, but I got the same result. Then I tried to install it on a Compact Flash 8 GB which contains 1 single defined primary partition as active and I managed.

    Problem is that I must install on a Compact Flash 4 GB.

    Can someone help me please?

    For Windows Embedded-related problems, please post in the forum on TechNet:

    http://social.technet.Microsoft.com/forums/en-us/category/windowsembedded

Maybe you are looking for

  • The browser crashes when I try to print from a specific Web site

    When I try to print from a specific website on Mozilla Firefox, the browser crashes. Before that the settings of the printer had been reset to set a new default printer from the browser. I have reset the browser again, updated the browser, confirmed

  • Screen shrinks to half size when running games

    Whenever my son trying to play games on his new laptop, the screen is reduced to half size. Its surrounded by a black border that is not part of the screen. At first I thought that it was opening up in a small window but its actually shrink the entir

  • How not to fix any low on Satellite A110-230?

    I read about other users having a few problems with the sound. There is no bass when I connect my stereo system. So I used the search and found a solution. Two renowned files! The sound quality is better now, but incomparable with other phones I've t

  • IdeaPad S500 Touch - screen goes black after driver update

    I have a Lenovo IdeaPad S500 Touch. It is running the latest update of Windows 8.1. He proposed an update of the video driver from Lenovo. After downloading and installing the update, the screen went black. When the computer reboots, the Lenovo logo

  • Please help with Wndows Genuine Advantage report

    Diagnostic report (1.9.0027.0):-----------------------------------------Validation of Windows data--> Validation code: 0Code of Validation caching online: 0x0Windows product key: *-* - CM74G - RPHKF-PW487Windows product key hash: 71BRYMECVaSXedfumfu8