Applying changes to stacks, counter intuitive?

Help says:
Here are a few tips for working with stacks:
Any develop adjustments, ratings, flags, or color labels applied to a collapsed stack affect only the top photo.
If you select a photo in a stack and add it to a Quick Collection or collection, only the selected photo is added, not the entire stack.
Both of the resulting actions seem counter intuitive. Assuming that stacks are clearly identified, I want all of the flags, ratings, tags, and adjustments to act on the entire group. Grrrr.

For me when I group a stack of photos primarily when they are sufficiently the same in a way that I don't need retain a view of them. Either multiple shots of the same subject, or from the same event. So more often than not I will want to apply changes to all as a set. I can't think of a reason I would want to change only the top photo. If I want to work with an individual photo, I will go out of my way to do that, but isn't LR supposed to help up when dealing with many many photos? LR is the rule, PS is for the exceptions, isn't that what we've been told?

Similar Messages

  • Has Lightroom CC removed the ability to Batch apply changes to many files at once (after import) using presets?

    I've just upgraded to Lightroom CC and most of the changes are very welcome - especially the performance improvements.
    However I've been processing several thousand images and in Lightroom 5 when wanting to apply changes to many images at once it was as simple as selecting the group of images and then right clicking, selecting Develop Settings and then selecting one of my many Presets from a sub menu.
    This sub menu seems to have disappeared in Lightroom CC.
    This is a MASSIVE problem for me as I cannot work out how to apply the presets to multiple images anymore.   I note that there is a tutorial on how to do it during import - but I want to specifically be able to do it post import, during development of large groups of images for clients.
    Anyone know what has happened here and how we can get access to applying presets to multiple images during development under Lightroom CC?

    Yes ssprengel.
    I regularly work with all the Presets visible in the left of the Develop module.   But this cannot be used to apply the preset to multiple images.   For that (in Lightroom 5) you had to select the multiple images and then right click (on any one of the images) then go down the menu to Develop Settings, then select the Preset Folder and the Preset you wished to apply to all the images selected.   This worked well for me in my workflow.   But the access to the Presets through the Develop Settings menu has been removed in Lightroom CC.   ManiacJoe's solution above works - but it's accessed from the Library module.   That's kind of counter intuitive.   I want access to apply any preset I've saved to multiple images (in many cases t's being applied to thousands of images) from within the Develop module.   it makes little sense to apply a preset one image at a time to thousands of images when developing them
    The whole idea behind presets was that they could be quickly and consistently applied across multiple images.   Removing this functionality is a backward step by ADOBE in my opinion and I really want them to add it back to the Develop Module menu systems.

  • Syntax Error while applying support package stack 8

    I get the following short dump while I was applying support package stack 8.  I'm at the latest saint version 34
    Runtime Errors         SYNTAX_ERROR
    Date and Time          23.07.2009 14:09:27
    Short text
         Syntax error in program "CL_DYNPRO_PROPERTY_BAG========CP ".
    What happened?
         Error in the ABAP application program.
         The current ABAP program "SAPLSCR2" had to be interrupted because it con
         a statement that cannot be executed.
         In the include "CL_DYNPRO_PROPERTY_BAG========CM009 " in the line 176 of
          program "CL_DYNPRO_PROPERTY_BAG========CP " the following syntax
         errors occur:
         "The field "SPROP_C_TAG_CUSTOMPROPERTY" is unknown, but there is a fiel"
         "d with the similar name "SPROP_C_TAG_TOOLTIPTEXT". "SPROP_C_TAG_TOOLTI"
         "PTEXT"."
         Author and last person to change the include are:
         Author "SAP "
         Last changer "SAP "
    Error analysis
         The following syntax error was found in the program
          CL_DYNPRO_PROPERTY_BAG========CP :
         "The field "SPROP_C_TAG_CUSTOMPROPERTY" is unknown, but there is a fiel"
         "d with the similar name "SPROP_C_TAG_TOOLTIPTEXT". "SPROP_C_TAG_TOOLTI"
         "PTEXT"."
    Trigger Location of Runtime Error
         Program                                 SAPLSCR2
         Include                                 LSCR2U47
         Row                                     31
         Module type                             (FUNCTION)
         Module Name                             RS_SCRP_PROP_ADD_TO_PROP_LIST
    1 FUNCTION RS_SCRP_PROP_ADD_TO_PROP_LIST.
    2 *"----
    3 ""Lokale Schnittstelle:
    4 *"  IMPORTING
    5 *"     REFERENCE(P_TEXTFIELD) TYPE  D021S-FNAM OPTIONAL
    6 *"     REFERENCE(P_TOOLTIPTEXT_TEXTELEM) TYPE  CHAR3 OPTIONAL
    7 *"     REFERENCE(P_TOOLTIPTEXT_VARIABLE) TYPE  D021S-FNAM OPTIONAL
    8 *"     REFERENCE(P_KEEPTAB) TYPE  SEU_BOOL OPTIONAL
    9 *"     REFERENCE(P_DISABLEIMPLICITLABELS) TYPE  SEU_BOOL OPTIONAL
    10 *"     REFERENCE(P_BARCODEINPUT) TYPE  SEU_BOOL OPTIONAL
    11 *"  CHANGING
    12 *"     REFERENCE(P_PROP_LIST) TYPE  PROP_LIST
    13 *"----
    14
    15 data: l_prop type prop_line,
    16       l_prop_list type prop_list,
    17       l_string type prop_str.
    18
    19 * Property TextField
    20 * -
    21
    22 if p_textfield is supplied.
    23   clear l_prop_list.
    24   clear l_prop.
    25   l_prop-name   = sprop_c_tag_textfield_name.
    26   l_prop-syntax = sprop_c_syntax_content .
    27   l_prop-value  = p_textfield.
    28   append l_prop to l_prop_list.
    29 * Zusammensetzen eines Strings der Form
    30 * <Name>value_1</Name> ... <Name>value_n</Name>
    >>   call method cl_dynpro_property_bag=>fill_prop_list_into_properties
    32     exporting
    33       prop_list  = l_prop_list
    34     importing
    35       properties = l_string.
    36 * Property-Eintrag zusammensetzen
    37   clear l_prop.
    38   l_prop-name   = sprop_c_tag_textfield.
    39   l_prop-type   = sprop_c_type_string.
    40   l_prop-syntax = sprop_c_syntax_content .
    41   l_prop-value  = l_string.
    42 * Property-Eintrag in PROP_LIST aufnehmen/ersetzen
    43   read table p_prop_list transporting no fields
    44       with key name = l_prop-name.
    45   if sy-subrc = 0.
    46     modify p_prop_list index sy-tabix
    47         from l_prop.
    48   else.
    49     append l_prop to p_prop_list.
    50  endif.
    Can anyone help me?  I now get the same error with executing other transactions as well.

    Hi,
    Please let us know the component which you are trying to apply. Is it BASIS or ABAP or BW and also let us know the version?
    I hope you are applying the BW patch 8, as per SAP's recommendation we need to apply both 8 an 9 patch of BW at the same time. If not we need to apply some notes which you could find in the service market place. Once you apply the notes, you can proceed with the SP application.
    Regards,
    Varadhu

  • Logical standby server stopped applying changes

    Hi
    I set up a logical standby database with database guard and it worked fine for some time. But recently I had to use it again and discovered that applying changes from primary database to secondary database just stopped working. I see in V$ARCHIVED_LOG one entry per day. If I restart the logical standby then the changes from primary server are also applied. But if I just make a change on primary server and even call 'alter system switch logfile' then I see an entry in V$ARCHIVED_LOG on primary server but not on standby server (BTW in general there are much more entries in this view on the primary server). I checked pairs of log files indicated by the parameter *.log_file_name_convert in standby server's spfile: their last changed date is always the same.
    I will paste spfile of my standby server (dh5). Primary server name is dh2.
    dh2.__db_cache_size=79691776
    dh5.__db_cache_size=96468992
    dh2.__java_pool_size=4194304
    dh5.__java_pool_size=4194304
    dh2.__large_pool_size=4194304
    dh5.__large_pool_size=4194304
    dh2.__shared_pool_size=71303168
    dh5.__shared_pool_size=54525952
    dh2.__streams_pool_size=0
    dh5.__streams_pool_size=0
    *.audit_file_dest='/var/lib/oracle/oracle/product/10.2.0/db_1/admin/dh5/adump'
    *.background_dump_dest='/var/lib/oracle/oracle/product/10.2.0/db_1/admin/dh5/bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='/var/lib/oracle/oracle/product/10.2.0/db_1/oradata/dh5/control01.ctl'
    *.core_dump_dest='/var/lib/oracle/oracle/product/10.2.0/db_1/admin/dh5/cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_file_name_convert='dh2','dh5'
    *.db_name='dh7'
    *.db_recovery_file_dest='/var/lib/oracle/oracle/product/10.2.0/db_1/flash_recovery_area'
    *.db_recovery_file_dest_size=2147483648
    *.db_unique_name='dh5'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=dh2XDB)'
    *.fal_client='dh5'
    *.fal_server='dh2'
    *.job_queue_processes=10
    *.log_archive_config='DG_CONFIG=(dh2,dh5)'
    *.log_archive_dest_1='LOCATION=/var/lib/oracle/oracle/product/10.2.0/db_1/oradata/dh5_local
    VALID_FOR=(ONLINE_LOGFILES,ALL_ROLES)
    DB_UNIQUE_NAME=dh5'
    *.log_archive_dest_2='SERVICE=dh2 LGWR ASYNC
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    DB_UNIQUE_NAME=dh2'
    *.log_archive_dest_3='LOCATION=/var/lib/oracle/oracle/product/10.2.0/db_1/oradata/dh5
    VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLES)
    DB_UNIQUE_NAME=dh5'
    *.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_dest_state_3='ENABLE'
    *.log_archive_format='%t_%s_%r.arc'
    *.log_archive_max_processes=30
    *.log_file_name_convert='oradata/dh2/redo01.log','flash_recovery_area/DH5/onlinelog/o1_mf_4_5x0o5grc_.log','oradata/dh2/r
    edo02.log','flash_recovery_area/DH5/onlinelog/o1_mf_5_5x0o61mw_.log','oradata/dh2/redo03.log','flash_recovery_area/DH5/on
    linelog/o1_mf_6_5x0o63gj_.log'
    *.nls_language='AMERICAN'
    *.open_cursors=300
    *.pga_aggregate_target=311427072
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=167772160
    *.undo_management='AUTO'
    *.undo_retention=3600
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='/var/lib/oracle/oracle/product/10.2.0/db_1/admin/dh5/udump'
    Thanks in advance for any help.
    JM

    Hi,
    Nice to hear you issue got resolved.
    It is good practice to keep monitoring the progress of SQL apply on the logical standby on a regular basis.
    You can mark my response as helpful if it has helped you.
    Regards
    Anudeep

  • Applying changes to report queries results in HTML 404 page not found

    Hello,
    When I try to change report queries (especially by using multiple queries) I frequently get HTML 404 page not found.
    This happens when I click Apply Changes after I edited the query, but also quite often just when I try to confirm the changes in the query.
    When I logout and then login again, after a few tries, I finally succeed.
    The problem of HTML 404 page not found appears quite a few times, even when I try to delete a query or to open one for editing
    Can anyone help me out here? It is really frustrating any development of reports with APEX
    I'm using APEX version 3.1.2.00.02 with Oracle XE

    Where do you publish your site and how do you upload the files?
    What is the URL of your site?

  • 3d bar ...counter-intuitive

    Post Author: Jon80
    CA Forum: WebIntelligence Reporting
    HTML Interactive Viewer
    The Format chart dialog > Pivot tab screen is slightly counter-intuitive:
    - The order of the options Y-Axis, Z-Axis (optional) and X-Axis is usually meant to be sorted alphabetically at least by my usual way of creating charts (by my usual standards at least)
    - The default chart displayed is small and at first impression, 3d graphs are not immediately intuitive (such as dashboards for example)
    - No options for creating a graph legend within the Format chart dialog
    - I'm not sure why X-Axis is given as optional
    - Using 3DBar. When removing a dimension from the Z-Axis after having enabled it and unchecking General tab > Show Z Axis label, the legend for the Z-Axis is still displayed.  This happens even after a manual Refresh.
    Wouldn't it be great if the features available within the various panels (i.e. Java, HTML were standardized so that the user does not have to go through a training process for each screen? 

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    Jon:
    you wrote "Wouldn't it be great if the features available within the various panels (i.e. Java, HTML were standardized so that the user does not have to go through a training process for each screen?", which touches upon a sensitive subject -- user training.  In the particular deployment that I'm involved in, we've developed our own user training.  As my project lead says in our training class "we're trying to distill three days of a BusObjects WebI report writing class down to 4 hours...", which we somehow manage to do by "choosing one".  A thing that we do explain to our users is that they may someday discover another way to do something (like use a right-click versus the menu we point out, etc, etc) which is fine, but for today we're feeding from the fire hose, so too much information in one day is simply too much.  We also provide our users with a handbook that has screenshots from reports they're most likely to encounter when using our deployment, so we build up a comfortable look and feel for what they'll be doing once they get back to their cubicle.  So, we take users aside to a learning lab, we don't let them use the system on their own until they've been trained (preferably face-to-face, but we do have certain cases where we'll do some training "over the phone" in a structured manner), and we provide a take-away training guide.
    Just some thoughts for you as you move forward and try to provide your users with info.

  • Notification Email should be triggered when hit the Apply changes?

    Hi All,
    Am creating a request form similiar to a remedy form,when ever the user create a new request and submit the request.Notification email will be sent to the user and the admin.
    Here when the admin ppl rejects the request,a notification email triggered to the user like request has been rejected .
    I have three radio buttons in the Form
    1.Submitted(default).
    2.Rejected.
    3.Accepted.
    When the admin edit the request and select rejected radio button,and apply changes ,a notification email should be triggered to the user.
    Now i have a after submit process for edit the ,which will be triggered when ever the user hit the apply changes button and it will send notification to both user and admin.
    How to achieve the notification email that should be triggered when the admin rejects the request and submit the form???
    am using apex version 4.0
    when the Admin will select the reject radio button and hit tha apply changes then the notification email should be sent to the user!!
    Always appreciate your help!!!
    Thanks & Regards,
    Ramya.

    Ramya wrote:
    Hi Gurujothi,
    Thanks for your response!.
    I can able to send email now.Thing is i need to send an email like when the admin rejects the request.
    For eg.
    1.Admin opened the request and select the Reject radio button and clicking Applychanges button then the email notification will be sent to the user like,
    Your request has been Rejected.
    2.If the Admin selects the radio button accept radio button and clicked apply changes,start processing about the request then the Email notification will be sent to the user like ,
    Your request has been modified .Request will be notified by the admin.(Working now)
    DO i need to create two separate process for the email notification like
    one is for all the modifications that the user/admin will do in the form ,once the record is created and another process is for Rejection purpose of the Form.But only one Apply changes button is there in the Form.You don't need two page process, In one single process you can acces the page item session values using *:YOUR_ITEM_NAME* bind variable syntax or V function like this V('YOUR_ITEM_NAME')
    So in your PL/SQL code you can easily prepare the email body based on your radio group item's value
    declare
    l_body varchar2(4000);
    begin
    IF :Px_MY_RADIO_GROUP ='R' THEN
      l_body := build your conditional email body for rejected
    ELSIF  :Px_MY_RADIO_GROUP ='A' THEN
      l_body := build your conditional email body approved
    END IF;
    apex_mail.send(
            p_to       => '[email protected]',   -- change to your email address
            p_from     => '[email protected]', -- change to a real senders email address
            p_body     => l_body,
            p_subj     => 'APEX_MAIL Package - Plain Text message');
    end;
    See this http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/concept_ses_val.htm#HTMDB03012

  • Apply changes button not working as expected

    Hi
    I have a page, this page has some fields and a drop-down list where it has a projectname as the values and when I change a value in the drop-down list and click on "Apply Changes" button it does update the table and the changes can be viewed on the page ............. but when I have created a copy of this same page and changed the select statement of the drop-down list and in order to change the year from the drop-down list and click on apply changes then it does not update the table or changes are not reflected on the page.... am I doing soemthing wrong somewhere , but not sure where !
    Can anyone know what could be the reason ....?
    thanks

    Hi Nancy,
    That could be the case, but I tried it multiple times during the day and it was not working. I think I would have notice it if I "missclicked" it like 10 times in a row. I normally use this option more than once a day and it works. But If it happen again, I'll pay attention to that.
    Thanks!

  • HT1386 When I try to sync changes from my playlist to my iphone the sync process gets to step 7, applying changes and then freezes up, the changes are not being put on my iphone. What do I do to correct this issue?

    When I try to sync changes from my playlist on the computer to my iphone the sync process gets as far as step 7, applying changes, then freezes up and the changes are not getting to my iphnoe.  How do I fix this issue?

    Are all these songs associated with the same Apple ID or were some purchased on another account?
    Are they tagged properly? In the library does it break an album out into several different albums with a few tracks each?
    Check your sync settings for each device. Do you accidentally have only certain songs/albums syncing?

  • Apply changes in iphoto from ipad to mac?

    I made some changes in some pics on my ipad's iphoto. I tried to apply those changes on the pics I had in my mac by syncronizing with itunes, but changes were not made.
    Any idea on how to apply changes?

    iPhoto from iPhone or iPad does not at this time sync with iPhoto on the Mac.

  • Applying changes to multiple images . . .

    i'm relatively new to macs but i've been using aperture comfortably for the past few months.
    having just returned from a long photography trip and upgrading aperture to 1.5.1, i'm finding that i am unable to apply changes to multiple images like i used to, such as: selecting multiple images to rotate or selecting multiple images to apply the "stamp."
    when i try to "shift-select" multiple images, the change i'm trying to apply affects only the last image clicked-on in the "shift-select" grouping. does that make sense?
    has anyone else encountered this?
    mahalo nui loa
    Power Mac G5 Quad   Mac OS X (10.4.8)  

    You most likely have the Primary Only option turned on. Turn off that option in the Control Bar.

  • A counter-intuitive optimisation result... can anybody shed some light?

    Hi,
    I've been trying to make an asynchronouse PNG encoder as I am encoding some big and complex images that tie up even a good machine for several seconds. So, I thought, it would be easy to split out the processing of the ByteArray into chunks and process a new chunk on each Event.ENTER_FRAME.
    Well...
    It was easy to implement (thanks Adobe for giving access to your source code!) but the results were counter-intuitive:
    1. Encoding a PNG image entire: Approximately 1 seconds.
    2. Encoding a PNG image in chunks of 100 lines: Approximately 1.5 seconds PER CHUNK and then FOUR or FIVE seconds to compress at the end!
    When I tried this on AIR for Android, the results were even worse with the final ByteArray.compress() call taking more than FORTY seconds!
    This is obviously barmy as it is taking a multiple of the total time to process everything _INCLUDING_ the .compress() call to simply process the .compress() call.
    The ByteArray in Adobe's encoder is a temp variable encased in a single function where the ByteArray in my function is a class member that is populated at the start of the encode and then added to with each successive Event.ENTER_FRAME. That is the ONLY difference I can see at the moment (trust me, I didn't go messing with that code too much... it is strongly referencing the original). Is there any other reason people can see for the massive difference in performance for essentially the exact same lines of code?
    Thanks,
    G

    Oops!
    I found the cause - I'd not updated one of my loops, so instead of running from yFrom to yTo, it was running 0 to length every time. So I managed to build a 29.6MB PNG file from 1.6MB of content!
    Anyway, done. Works nicely.
    G

  • APEX 4 - Edit Application Properties - Apply Changes - Error

    This has seemed to have started after upgrading to Apex 4. We also updated to 4.0.1, and are still having the problem. With any application, if we attempt to apply changes to the application definition it fails...
    Home>Application Builder>Application 104>Shared Components>Edit Application, Defintiion tab. Make a change, then click 'Apply Changes' The browser returns a 404 error. In fact, we don't have to make a change to the values displayed. Just attempting to apply the existing values fails.
    This is the error we receive in the ohs.log...
    [2010-08-31T19:48:35.2479-05:00] [OHS] [ERROR:32] [OHS-9999] [mod_context.c] [host_id: hostname] [host_addr: xxx.xxx.xxx.xxx] [tid: 19] [user: username] [ecid: 004ZmWEhjJ35yW8C3jMMOz0001Lr0004y3] [rid: 0] [VirtualHost: main] MODPLSQL-00261: mod_plsql: /pls/apex/wwv_flow.accept HTTP-404 Failed to execute target procedure ORA-00604: error occurred at recursive SQL level 1\nORA-06502: PL/SQL: numeric or value error: character string buffer too small\nORA-06512: at line 10\nORA-06550: line 35, column 3:\nPLS-00306: wrong number or types of arguments in call to 'ACCEPT'\nORA-06550: line 35, column 3:\nPL/SQL: Statement ignored\n, referer: http://hostname:xxxx/pls/apex/f?p=4000:4001:3485056460649030::NO::FB_FLOW_ID:104
    We're unable to find any cause for the error. Any help would be appreciated.
    Thanks!

    Yes, we still have the logs. No errors from the install or patch to 4.0.1. All packages, procedures, functions are valid.
    And, I just found the problem. We had an 'after servererror on database' trigger enabled without the proper field checks. Disabled the trigger, problem solved.
    Thanks for the help!

  • What is the best way to apply Support Pack Stacks among satellite systems

    Hi,
    We have differenst systems liek R3, SCM,CRM,XI, BW  and EP. We would like to apply teh support pack stack 12.
    Which land sacpe need to be applied with the stack first?
    R3 or other satellite systems? Is there any recommendation available from SAP on this?
    Thanks in advance
    Jnaneswar.P

    Thanks for your reply Nick101. I see my example was oversimplified. When I say "multiple groups of contacts over multiple users" I'm really referring to N groups of contacts over N users.
    So I need to add Fred, who can access and sync Bob's contacts, Sally's contacts, and Common contacts, as well as Fred's contacts. Can I do it with OS X server?
    You mention you keep your and your partner's contacts administered locally. What keeps you from administering them through OS X server as well?
    I am guessing this can all somehow be accomplished with multiple contact accounts, but I can't find any information on the web explicitly describing this.

  • PL/SQL problem with too many lines - can not apply changes

    I have a complex PL/SQL that requires checking 90 check boxes and the query works to a certain point then it just stops being able to be saved (apply changes) after a high no. of lines has been typed in. (The PL/SQL query is to check against a file, that the file has all the check boxes as yes. If there is only 1 or 2 boxes checked, then the sql created only checks those 2 fields for yes.) Is there a way to increase the coding space (or number of lines) that APEX can save/use.

    This is the whole PL/SQL coding. At this point, we cannot add any more lines or it will come up with "web page cannot be found" message.
    declare
    q varchar2(32767); -- query
    new varchar2(1):='Y'; -- first one
    begin
    q := 'select a."CONTR_ID", a."NAME", b."PHONE_NO", b."EMAIL_ADDR" FROM contractor a, contacts b where a.contr_id = b.contr_id and a.contr_id not in (Select unique a."CONTR_ID" from contractor a, contractor_competency b where a."CONTR_ID" = b."CONTR_ID" ';
    -------------------Start ENV
    if :P33_AIR_QUALITY_TESTING = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Air Quality Testing'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_ASBESTOS_REMOVAL_DEEN = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Asbestos Removal De-Energized'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_ASBESTOS_REMOVAL_ENER = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Asbestos Removal Energized'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_BUILDING_ASBESTOS_REMOVAL = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Building Asbestos Removal'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_ENVIRONMENTAL_CONSULTING = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Environmental Consulting'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_MANHOLE_ASBESTOS_REM_DEEN = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Manhole Asbestos Removal De-Energized'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_MANHOLE_ASBESTOS_REM_ENER = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Manhole Asbestos Removal Energized'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_OIL_FILTERING = 'YES' then
    if new = 'Y' then q := q || ' and (';
    new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Oil Filtering'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_OIL_SAMPLING = 'YES' then
    if new = 'Y' then q := q || ' and (';
    new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Oil Sampling'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_OIL_SPILL_CLEANUP = 'YES' then
    if new = 'Y' then q := q || ' and (';
    new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Oil Spill Cleanup'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_PUMPING_OUT_MANHOLES = 'YES' then
    if new = 'Y' then q := q || ' and (';
    new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Pumping Out Manholes'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_SIGNED_ENVIRO_DOCS = 'YES' then
    if new = 'Y' then q := q || ' and (';
    new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Signed Enviro Docs PRO-MS-008'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_TRANSPORTATION_OF_D_GOODS = 'YES' then
    if new = 'Y' then q := q || ' and (';
    new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Transportation of Dangerous Goods'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_TRANSPORTATION_OF_PCB = 'YES' then
    if new = 'Y' then q := q || ' and (';
    new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Transportation of PCB'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_WASTE_PICK_UP = 'YES' then
    if new = 'Y' then q := q || ' and (';
    new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Waste Pick-Up'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    -------------------- start OCM
    if :P33_GREENFIELD_POLELINE_CONST = 'YES' then
    if new = 'Y' then q := q || ' and (';
    new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Greenfield Poleline Construction'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_HV_OVERHEAD_MAINTENANCE = 'YES' then
    if new = 'Y' then q := q || ' and (';
    new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''HV Overhead Maintenance'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_INSULATOR_WARNING = 'YES' then
    if new = 'Y' then q := q || ' and (';
    new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Insulator Warning'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_LV_OVERHEAD_MAINTENANCE = 'YES' then
    if new = 'Y' then q := q || ' and (';
    new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''LV Overhead Maintenance'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_OVERHEAD_INFRARED_SCAN = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Overhead Infrared Scanning'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_POLEHOLES_AND_ANCHORS = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || ' (instr(upper(b."JOB"),upper(''Poleholes and Anchors'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_POLELINE_INSPECTION = 'YES' then
    if new = 'Y' then q := q || ' and( '; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || ' (instr(upper(b."JOB"),upper(''Poleline Inspection'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_POLELINE_WORK_TO_35KV = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || ' (instr(upper(b."JOB"),upper(''Poleline Work to 35KV'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_POLELINE_TO_44KV = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || ' (instr(upper(b."JOB"),upper(''Poleline to 44KV'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_ROCK_DRILLING = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Rock Drilling'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_TENSION_STRINGING = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || ' (instr(upper(b."JOB"),upper(''Tension Stringing'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_TREE_TRIMMING_DEEN = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Tree Trimming (De-Energized)'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_TREE_TRIMMING_ENER = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Tree Trimming (Energized)'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_WOOD_POLE_TESTING_DEEN = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Wood Pole Testing De-Energized'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_WOOD_POLE_TESTING_ENER = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Wood Pole Testing Energized'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    ------------------ start UCM
    if :P33_CO2_CLEANING = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''CO2 Cleaning'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_CABLE_PULLING = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Cable Pulling'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_CABLE_TESTING_DEENERGIZED = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Cable Testing De-Energized'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_CABLE_TESTING_ENERGIZED = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Cable Testing Energized'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_CONC_DUCT_MAN_DEEN = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Conc. Duct & Manhole (De-Energized)'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_CONC_DUCT_MAN_ENER = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Conc. Duct & Manhole (Energized)'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_DIR_BURIED_DUCT_DEEN = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Direct Buried (De-Energized)'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_DIR_BURIED_DUCT_ENER = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Direct Buried (Energized)'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_DIRECTIONAL_BORING_DEEN = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Directional Boring De-Energized'')) > 0) and
    ((instr(upper(b."SET_YES_NO"),''NO'') > 0) or
    (instr(upper(b."CRAFTMAN_YES_NO"),''NO'') > 0) and
    (instr(upper(b."PROBATION_YES_NO"),''NO'') > 0)) ';
    end if;
    if :P33_DIRECTIONAL_BORING_ENER = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Directional Boring Energized'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_GENERAL_EXCAVATION = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''General Excavation Around Plant'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_HV_UG_MAINTENANCE = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''HV Underground Maintenance'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_LV_UG_MAINTENANCE = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''LV Underground Maintenance'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_MANHOLE_CLEANING_DEEN = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Manhole Cleaning De-Energized'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_MANHOLE_CLEANING_ENER = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Manhole Cleaning Energized'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_MANHOLE_INSPECTION = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Manhole Inspection'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_UG_EQUIPMENT_INSPECTIONS = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''UG Equipment Inspections'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_UG_INFRA_RED_SCANNING = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''UG Infra Red Scanning'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_UG_CABLE_LOCATES = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Underground Cable Locates'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    ------------------------ start SCM
    if :P33_FENCING_AROUND_SUBSTATION = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Fencing Around Substation'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_FENCING_GREENFIELD = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Fencing Greenfield'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_INSPECTION_AND_TESTING = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Inspection And Testing'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_STATION_CIVIL_WORK = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Station Civil Work'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_STATION_CONST_DEENERGIZED = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Station Construction (De'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_STATION_CONST_ENERGIZED = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Station Construction (E'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_STATION_INFRARED_SCANNING = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Station Infrared Scanning'')) > 0) and
    (instr(upper(b.”SET_YES_NO”),''NO'') > 0) ';
    end if;
    if :P33_STATIONS_ASBESTOS_REMOVAL = 'YES' then
    if new = 'Y' then q := q || ' and ('; new := 'N';
    else
    q := q || ' or '; end if;
    q := q || '(instr(upper(b."JOB"),upper(''Stations Asbestos Removal'')) > 0) and
    (instr(upper(b."SET_YES_NO"),''NO'') > 0) ';
    end if;
    if new = 'N' then q := q || ' ) ';
    end if;
    q := q || ' ) ';
    return q;
    end;

Maybe you are looking for

  • ITunes Match will no longer let me add my PC... Help?

    iTunes Match will no longer let me add my PC.  As it is, about 50% of the time that I have opened iTunes for the last year, I've gotten an error stating that iTunes Match has encountered an error and I would need to re-login.  This is on my main PC,

  • Query tuning-how to reduce physical reads-help me

    1* select * from masterbillingInvoiceview Where SiteIID =300964 and InvoiceID like '%' order by Invoice asc SQL> / 33 rows selected. Elapsed: 00:00:00.34 Execution Plan Plan hash value: 352896138 | Id | Operation | Name | Rows | Bytes | Cost (%CPU)|

  • To display chinese characters with SQL Developer

    I have created one table on the Oracle Express Database. In this table ther is one field Nchar tipe. The NLS_CHARACTERSET of the d.b. is WE8MSWIN1252, the NLS_NCHAR_CHARACTERSET is AL16UTF16. I have done an insert on the table and in this field i hav

  • Privelege for normal backup

    Hi, I need to know whether there is a specific privilege for a user to perform backup only in oracle. He should not be able to do any other activity.please help me with this. Regards, Dileep.

  • MP4's tagged as music video only play audio + static picture?

    Hi everyone, Is it normal that MP4 files, that have been tagged as Music Video (Itunes Media Type), only show a static image on playback instead of a moving image. I assumed that a music video would show the video too. Hence the tag name "Music VIDEO