Help needed in using the appropriate Trigger

I have a master detail form.DEPT block is the master block and Employee is Detail block.I need to display the message when user is
trying to enter the ENAME field in the Employee block(detail) when the DEPTNO in the DEPT block(master) is not equal to 10.
Messgae should be displayed when user trying to type the value but not when the user navigates into the ENAME text field.
What is the appropriate trigger that is useful here?
Thanks.
GSR

If the DEPT block is table based in the block's POST-QUERY trigger you can simply set
  if :DEPT.DEPTNO !=10 then
    set_item_proerty('DEPT.ENAME', insert_allowed, property_false);
    set_item_proerty('DEPT.ENAME', update_allowed, property_false);
  else
    set_item_proerty('DEPT.ENAME', insert_allowed, property_true);
    set_item_proerty('DEPT.ENAME', update_allowed, property_true);
  end if;if the block is a non-database one then you can put that code in EMPNAME's WHEN-VALIDATE-ITEM trigger
Luca
Don't forget to mark the answer as helpful/correct if it is. please.

Similar Messages

  • Help needed in using the DocCheck utility

    Hi
    Can somebody help me to use the DocCheck utility.I need to check that all the java files have the required javadoc tags and they are correct.
    I have downloaded the zip file and I have been giving the following commands
    c:\javadoc -doclet com.sun.tools.doclets.doccheck.DocCheck -docletpath c:\svk\jdk1.2.2\bin\doccheck1.2b1\lib\doccheck.jar -sourcepath<full path with the file name>
    But I get the following error message : No package or class specified.
    I also tried giving the following command:
    D:\SegaSource\sega\src\com\sega\account>javadoc -doclet com.sun.tools.doclets.do
    ccheck.DocCheck -docletpath d:\jdk1.3\doccheck1.2b1\lib\doccheck.jar User.java
    But I get the following message:
    Loading source file User.java...
    Constructing Javadoc information...
    javadoc: warning - Import not found: com.sega.account.address.Address - ignoring
    javadoc: warning - Import not found: com.sega.account.icon.Icon - ignoring!
    javadoc: warning - Import not found: com.sega.common.DateUtil - ignoring!
    javadoc: warning - Import not found: atg.nucleus.GenericService - ignoring!
    javadoc: warning - Cannot find class com.sega.account.icon.Icon
    javadoc: warning - Cannot find class com.sega.account.address.Address
    javadoc: warning - Cannot find class com.sega.account.MasterManager
    7 warnings
    please help
    Thanks
    SVK

    I have never ran the DocCheck from the command prompt, so I really don't know how to do it, but I do run it succesfully using ant (build tool from apache - jakarta, if you use tomcat you already have it installed).
    So.. if you do use ant.. this will help:
    <target name="doccheck" depends="prepare">
         <javadoc
              packagenames="${packages}"
                    destdir="${doccheck.home}"
              doclet="com.sun.tools.doclets.doccheck.DocCheck"
              docletpath="${doccheck.path}" >
              <classpath refid="project.classpath"/>
              <sourcepath refid="project.classpath"/>
         </javadoc>
    </target>If you don't use it.. I guess I was of no help, sorry.
    Ylan

  • Help Needed in using the FM-URGENT

    Hi ALL,
    Can anybody throw some light on how the following FM's are used , a sample program if any .
    RKE_CREATE_CO_ITEM_PLANNING
    RKE_POST_CO_ITEM_PLANNING.
    Actually I could not come to any conclusion on using one of them for posting my Planning data across my Control area to a specific Cost center.
    If there is any other better way to achive this other than posting directly to transactions through BDC, Please let me know.
    Boss its very Urgent. Please help me.
    Regards
    Sunil Kumar P

    I have never ran the DocCheck from the command prompt, so I really don't know how to do it, but I do run it succesfully using ant (build tool from apache - jakarta, if you use tomcat you already have it installed).
    So.. if you do use ant.. this will help:
    <target name="doccheck" depends="prepare">
         <javadoc
              packagenames="${packages}"
                    destdir="${doccheck.home}"
              doclet="com.sun.tools.doclets.doccheck.DocCheck"
              docletpath="${doccheck.path}" >
              <classpath refid="project.classpath"/>
              <sourcepath refid="project.classpath"/>
         </javadoc>
    </target>If you don't use it.. I guess I was of no help, sorry.
    Ylan

  • I lost my receipt (bought a beats earphone at Apple store in Miami. Now I need to use the warranty. I have the earphone in the box, almost new! Help me please!!!

    I lost my receipt (bought a beats earphone at Apple store in Miami. Now I need to use the warranty. I have the earphone in the box, almost new! Help me please!!!

    If you paid with debit or credit card, contact your financial institution for
    a copy of the transaction.
    If you used your AppleID when making the purchase, it may be in your
    purchase history in the AppleStore app.

  • HT1386 I recently updated and restored my Iphone on a Mac. My music was erased, therefore, I am trying to sync all of the music from my computer into the iPhone, but it says that I need to use the original computer/itunes in order to sync, but it is the s

    I recently updated and restored my Iphone on a Mac. My music was erased, therefore, I am trying to sync all of the music from my computer into the iPhone, but it says that I need to use the original computer/itunes in order to sync, but it is the same computer and iTunes account. The error reads: The iPhone, "Name" is synced with another iTunes library. Do you want to erase this iPhone and a sync with this iTunes library? If I click "Erase and Sync," will it delete my contacts, apps, etc?

    The following may help: iOS: Device not recognized in iTunes for Windows

  • Href and target tags tutorial/help needed for use with an existing website

    I have a website, (built through iweb), and an intro movie. I have spent a lot of time trying to understand the proper tags and how to use them without much luck. My goal is to have the homepage associated with my domain name load in a browser while at the same time have my intro movie open in a Quicktime Player window, play, and automatically close leaving the webpage visible. If anyone can point me to a tutorial or walk my through the process I would appreciate it.

    Poster movie style. Requires QuickTime Pro:
    Create an image (or a frame from your movie). This becomes the "poster". You could add text to it (Click to Play) in a graphic editor app to help your viewers or add text to the page under the image with these instructions.
    Save this new file as poster.mov
    It becomes the src="poster.mov" (source tag in the html code). Set its dimensions to fit your page layout.
    Your "intro movie" will be your href="intro.mov" (href tag in the html code).
    Open it with QuickTime Pro and then open the Movie Properties window. Click on the Presentation tab to see the choices. Automatically close option will close the QuickTime window. Automatically quit option will quit the running QuickTime Player app. This would be a better option as the browser should come back as the "front" application. You also want to check "auto play".
    Use Save As (preserves fast start feature) and name this file intro.mov
    In your html code for the QuickTime files you need to set target="quicktimeplayer" (this launches the QuickTime Player app instead of using the browser plug-in). It may also help if you use the full URL to both files in each tag (http://myserver.com/foldername/intro.mov).
    One of mine as an example. It uses automatically close window:
    http://homepage.mac.com/kkirkster/mycareerfuture/
    View the source code to see the tag structure. My page uses javascript instead of the older object/embed tag code.
    More useful links:
    http://developer.apple.com/internet/ieembedprep.html
    http://www.qtbridge.com/pageot/pageot.html

  • I changed my system on my mac 10.6.8 by doing a migration of my data and now i do find issues when i open logic, like i cant close it anymore (need to use the force quit option) if i ll bounce anything it will crash and same thing will happen if i wanna i

    i changed my system on my mac 10.6.8 by doing a migration of my data and now i do find issues when i open logic, like i cant close it anymore (need to use the force quit option) if i ll bounce anything it will crash and same thing will happen if i wanna import something, if anybody has a idea??

    Hi
    This any help?
    http://support.apple.com/kb/TS3968
    CCT

  • Help needed to optimize the query

    Help needed to optimize the query:
    The requirement is to select the record with max eff_date from HIST_TBL and that max eff_date should be > = '01-Jan-2007'.
    This is having high cost and taking around 15mins to execute.
    Can anyone help to fine-tune this??
       SELECT c.H_SEC,
                    c.S_PAID,
                    c.H_PAID,
                    table_c.EFF_DATE
       FROM    MTCH_TBL c
                    LEFT OUTER JOIN
                       (SELECT b.SEC_ALIAS,
                               b.EFF_DATE,
                               b.INSTANCE
                          FROM HIST_TBL b
                         WHERE b.EFF_DATE =
                                  (SELECT MAX (b2.EFF_DATE)
                                     FROM HIST_TBL b2
                                    WHERE b.SEC_ALIAS = b2.SEC_ALIAS
                                          AND b.INSTANCE =
                                                 b2.INSTANCE
                                          AND b2.EFF_DATE >= '01-Jan-2007')
                               OR b.EFF_DATE IS NULL) table_c
                    ON  table_c.SEC_ALIAS=c.H_SEC
                       AND table_c.INSTANCE = 100;

    To start with, I would avoid scanning HIST_TBL twice.
    Try this
    select c.h_sec
         , c.s_paid
         , c.h_paid
         , table_c.eff_date
      from mtch_tbl c
      left
      join (
              select sec_alias
                   , eff_date
                   , instance
                from (
                        select sec_alias
                             , eff_date
                             , instance
                             , max(eff_date) over(partition by sec_alias, instance) max_eff_date
                          from hist_tbl b
                         where eff_date >= to_date('01-jan-2007', 'dd-mon-yyyy')
                            or eff_date is null
               where eff_date = max_eff_date
                  or eff_date is null
           ) table_c
        on table_c.sec_alias = c.h_sec
       and table_c.instance  = 100;

  • We recently updated to Lion, prior to this update we could plug in our Sony Mini DV camera using the appropriate firewire and the iMovie would recognize the camera. This function no longer works after the update to Lion. Any suggestions?

    We recently updated to Lion, prior to this update we could plug in our Sony Mini DV camera using the appropriate firewire and the iMovie would recognize the camera. This function no longer works after the update to Lion. Any suggestions?

    Zap the PRAM and Reset the SMC, then try again.

  • I have a Mac Pro 4,1 quad core intel Xeon running mac OSX 10.6.8 and I have just moved studios and now need to use the Internet wirelessly but there's no airport facilities on this model can anyone tell me what model of airport card I would need for this

    I have a Mac Pro 4,1 quad core intel Xeon running mac OSX 10.6.8 and I have just moved studios and now need to use the Internet wirelessly but there's no airport facilities on this model can anyone tell me what model of airport card I would need for this mac

    Instead of getting a wireless card for the Mac Pro, you might want to consider getting an 802.11ac wireless bridge device that would enable you to connect more than one device to it by Ethernet cable and to eventually take advantage of the faster 802.11ac wireless standard.

  • I recently connected my new MBA to an ACER display using the appropriate Apple hardware to connect to a VGA port. The quality of the ACER display is poor- the image is not clear. How do I achieve the same clarity of picture as my MBA screen?

    I recently connected my new MBA to an ACER display using the appropriate Apple hardware to connect to a VGA port. The quality of the ACER display is poor- the image is not clear. How do I achieve the same clarity of picture as my MBA screen?

    Welcome to the Apple Community.
    AirPlay Mirroring requires a second-generation Apple TV or later, OS X 10.8 or better and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer).
    On the basis of the specifications you have given for your set up, mirroring should work.

  • I need to use the PDF editor so I can sign or edit documents already on pdf format. Please advise?

    I need to use the PDF editor so I can sign or edit documents already on pdf format. Please advise?

    As per my understanding , To disable the field RV45A-KWMENG based on the condition for Transaction VA01/VA02.
    The conditions which i need to check is Order Type and item category.
    I understand that this is the code which i need to insert for disabling the field but i have a question here, where is the condition here and how the system understand for this field RV45A-KWMENG it has to disable. I think we need give the condition as if RV45A-KWMENG....... Another one if iam not wrong we need check that it has to be done in VA01 and VA02 then only this condition should be executed.
    IF VBAK-AUART EQ 'XXX' OR VBAP-PSTYV EQ TANN .
    IF SCREEN-NAME = 'XXX'.
    SCREEN-ACTIVE = 0
    ENDIF.
    ENDIF.
    Please suggest me the better way how can i do it in the coding.
    Awaiting for ur prompt reply.

  • What os do I need to use the newest Airport Extreme?

    what operating system do I need to use the newest Airport Extreme? I am running on 10.6.8 but I think I need 10.7.5.  Is it worthwhile to go with the latest Mavericks?

    1. You should check if Mavericks is supported on your Mac - OS X Mavericks - Technical Specifications
    2. You can also check AirPort Utility 6.3.1 for Mac. It supports 10.7.5+, 10.8.3+ or 10.9+.
    3. On Windows side AirPort Utility 5.6.1 for Windows . It supports W7+.

  • Has anyone had issues with the charger mine says i need to use the original charger and it is the original charger

    my charger stopped charging says I need to use the original charger which I am Verizon says Samsung is aware of this and is working on it

    Try using these directions on this link: http://support.apple.com/kb/HT1926 or http://support.apple.com/kb/HT1923
    This resolved my issue with the new update on Vista.
    Use the Control Panel to uninstall iTunes and related software components in the following order and then restart your computer:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)

  • Do I still need to use the old mobile me backup system for backing up a mac desktop and if I delete it will it affect the memory of my system which has now Maverics

    Do I still need to use the old mobile me backup system for backing up all my data and having it able to get at in case of a crash, or can the icloud reset everything? Because I can not find any structured refrence, as to how it would be done. I am updated to Maverics. Also does the icloud continue if I uninstall the backup to free up space?

    MobileMe was discontinued in 2012 and all the data stored on it was deleted, and iCloud can't make backups of Macs.
    What I recommend you to make backups is to get an external drive and use Time Machine or an application like Carbon Copy Cloner. With this, you can access to your data everywhere and safely, and then, if you want, use a cloud storage service like CrashPlan. You can keep on using iCloud without backups

Maybe you are looking for

  • Installing MacPorts (and RMagick, Rails etc)

    Hi All I have a perfectly functioning development setup with PHP, MySQL and Rails. However, I've recently come across two Rails gem installations which, apparently, would be easier to do, and maintain, if I was using MacPorts. But before I go ahead a

  • Adding routes not on the Global Zone

    Is it possible to add a route to a non global zone? if not, is there a way to manipulate the route coming from non global zone?

  • " At least one entry could not be found in object buffer" Error

    Hi there, When I launch my PCUI application, I'm getting the above error. Is there a way that I can clear the buffer? This is strange, I keep refreshing but it doesn't seem to enter my application?! Thanks in advance for any help. Cheers

  • Retrieve Data  externally

    Hello all I work on Gemalto developer suite on wallet example I define Balance in my code What I need how to get Balance externally like this: when the user enters a menu this will create a TCP/IP to a listening server then the server response with B

  • Skype crashes on Yosemite

    I'm running Yosemite beta 3 on a MBP late 2011. Everytime I restart my machine Skype crashes. I have to reinstall it to get it working again. Can anyone help me? Attachments: Skype_2014-07-14-142832_Xaviers-MacBook-Pro.crash ‏70 KB