Works do not return correct value

Hello

I have a function that is passed into a work of identification.  The function will be watching the ID for this work and compare them to a table.  If at least 1 id does not exist in this table, I need the function returns 0.  If each id exists, so I want to back a 1.  I thought I had work because he worked in a few tests, but it does not work for the current situation.

create or replace FUNCTION JOB_CHECK
(  
  P_JID IN NUMBER  
)
RETURN NUMBER
AS
  VSTRING CLOB ;  
  TABV UTL.TYPWORDS ;  
  NCHECK NUMBER := 1 ;
BEGIN
  SELECT VID INTO VSTRING FROM WorkJOBS WHERE JID=P_JID ;   
  TABV := UTLPKG.SPLIT(VSTRING) ;
    
  FOR I IN TABV.FIRST..TABV.LAST LOOP    
    SELECT 1 INTO NCHECK FROM JOBS_LIST WHERE VID = TABV(I) ;         
    RETURN NCHECK;
  END LOOP ;
  
  EXCEPTION
    WHEN NO_DATA_FOUND THEN
      RETURN 0 ;
END JOB_CHECK ;

What's happened is that we removed our job_list table IDS then any work which is verified with an old ID I want to report.

Thank you.

At least put the oudside loop back:

END LOOP;

RETURN NVERIFIEZ;

Tags: Database

Similar Questions

  • orgvdcnetwork.toAdminObject () does not return correct value

    Nice day

    When I run the orgvdcnetwork.toAdminObject () method, I get the error "resource not found". In the error message, it includes the href that cannot be found. It seems that "admin" is written twide in this url. Is there a way to get around this?

    The error is also present on the action System.getModule("com.vmware.library.vCloud.operation").toAdminObjectOrgVdcNetwork)

    ' https://vCloudCell.local/API/Admin//network/50599c9b-2576-4b7f-b5a4-a068b37350be admin'

    It is indeed strange that you get an admin url in a non admin object.

    I found my way to obtaining the admin VDC Org networks directly with the query service:

    var queryService = host.getQueryService();
    var expression = new VclExpression(VclQueryOrgVdcNetworkField.NAME, Network_Name, VclExpressionType.EQUALS);
    var filter = new VclFilter(expression);
    var params = new VclQueryParams();
    params.setFilter(filter);
    var oNetworks = new Array();
    var resultSet = queryService.queryRecords(VclQueryRecordType.ADMINORGNETWORK, params);
    while (resultSet != null)  {
        var records = resultSet.getRecords(new VclQueryResultAdminOrgNetworkRecord());
        System.log(records.length + " Org VDC Network record(s) found");
        for each (var record in records) {
            var onetRef = new VclReference();
            onetRef.href = record.href;
            onetRef.name = record.name;
            onetRef.type = record.type;
               oNetworks.push(host.getEntityByReference(VclFinderType.ADMIN_ORG_VDC_NETWORK, onetRef));
        }
        resultSet = resultSet.getNextPage();
    }
    adminOrgVdcNetwork = oNetworks[0];
    
  • Guest user does not return a value

    I have a user prompt dialog box which is a slightly modified version of questioning the standard user to enter VI express. I tried to change the VI so that it would allow the user to close the command prompt by pressing the enter/return key. The final objective is to have the popup dialog, the user will scan a bar code and barcode reader adds a carriage return, automatic closing of the dialog box character.

    I have followed this user lyrics: https://decibel.ni.com/content/docs/DOC-13973. The only difference between my code and the code it is that my user dialog box returns a string instead of a number. See below for my code.

    The problem that I am running is the string "Item number2" never really returns any value once it's called. The indicator on the front panel of the updated the express vi displays the correct value after you run, but the value is never returned to the VI, who called the dialog box. The express vi the value default value is successfully returned. The only change I made was the addition of the structure of the event, so I have to assume that my code does not go inside this node.

    Any thoughts are appreciated.

    Adjust the chain drive on 'Update value then of the hit'.

  • Control the output is not the correct value

    Hello

    I have a producer consumer with a queue architecture to pass values. I want to push a new value in the table by using "Insert table" when a button is pressed, but when I do the previous value is read the first time and the correct value on the second press.

    I am self-taught and this is my first time using the queue so maybe something I'm not seeing/thinking about here?

    Version 8 attached VI.

    To see the problem, follow these steps:

    1. run
    2. click on "master reading.
    3. change the 'value '.
    4. click on "master reading.
    5. click on "master reading.

    Any help is appreciated especially block critical diagram.

    Thank you!

    It all depends on how you change the value of 'value. ' If you use the increment and decrement buttons it works as expected.

    If however, you type a new value and click the button without clicking elsewhere first, it does not - and here's why:

    When you type a modified value value does not appear in the code until the control loses "touch focus". The problem is that clicking the button causes the digital input to lose key focus, but only after the code responded to the mouse event.

    To solve the problem put a property node in the supported mouse event to set the property KeyFocus the digital to false until the value is queued.

    Mike...

  • Popup LOV does not return a value in editable tabular report

    I'm having a problem with a Popup LOV in a report updated in table form. When you select value, the popup remains and the value is not returned to the element. I guess that's because the popup does not know which element to fill? I don't know how to fix.

    [http://apex.oracle.com/pls/otn/f?p=4000:1500:1011573666262225:NO:]

    workspace: csd_apex_demo
    user name: demo
    password: demo
    application: 35976 - Jason demo
    page: 3-1 report

    Thank you

    Jason

    Looking more closely, I see that you mix display_and_save with popup_from_lov. The p_item_id parameter seems to have no effect on the generated javascript code and I think that javascript doesn't work, but not like you might expect. If you use Firefox with Firebug you can inspect the items and watch what happens when you click on an element of the pop-up window. It is by the way of the return value, but it is stored in the first element of display_and_save line which is a named element f08 hidden. All the items are named f08 in this column as a result of your use of the p_idx = 8. But the javascript code to handle the valve of the popup is generated once and so is assuming that it is zero array position. He uses the name attribute and no id and I suspect that it is followed by the line number in their own country (IE in the popup_lov procedure).

    I don't see how to change the way the javascript code generated here then perhaps another solution is needed. I guess that display_and_save is used here so that you can coordinate the f08 array that is posted, but there is no process here "send" to confirm that this is your intention.

    If you remove the display_and_save and just see the 'reason' the works of popup. If you change the popup to something other than p_idx = 8 it will work also. But now we must find a way to align the line ID is displayed.

    There are several ways to coordinate the shipment but they will in part depend on if you want to display only one line of a popup lov field or several lines. I would like to know where you go and I can help you set up the form and submit processes.

    Greg

  • Changing the values in drop-down list in the event not return current value

    Hello

    I have a combo that I'm filling using javascript according to the post by Brad here http://blogs.4Point.com/Brad.White/2010/03/populate-a-drop-down-with-a-Web-service-in-a-PD e.html .

    I hooked the change event from the drop-down menu to display the new selection in a separate as text box below

    ApplicationForm.Page1.ddlUsers::change - (FormCalc, client)

    txtSelected.rawValue = ddlUsers.rawValue

    This code works, but shows the previous values (or the last) that has been selected in the drop-down list, but not the current value, which has been selected by the user. I also tried to use selectedIndex rather rawValue on ddlUsers but it has the same behavior. "Commit on" from the drop-down list is set to "SELECT".

    Am I missing something here? How can I get the current value is selected in the drop-down list.

    Thank you

    Marie Pascale

    Hi Carole,

    I didn't look at the blog, but the most appropriate property for use with the change event is xfa.event.newText instead of .rawValue.

    Thus, as the Javascript:

    txtSelected.rawValue = xfa.event.newText;
    

    Hope that helps,

    Niall

  • Custom function return is not a correct value

    Hello

    I have a code to create my own function, but it gives me a warning:

    -Incompatible integer to pointer conversion assigning to ' SMUserKey *' (aka ' unsigned long *') 'int '.

    -Incompatible integer to convert pointer sending 'SMUserKey' (aka 'unsigned' long) to the type parameter ' SMUserKey *' (aka ' unsigned long *')

    When I change NSString * result = [SMUser getValueForKey:SMUsername]; to NSString * result = [SMUser getValueForKey:SMEmail];  and then run the application, it will always record "Username". Must be in place.

    This is my code .h:

    typedef NSUInteger SMUserKey;

    {NS_ENUM (SMUserKey)}

    SMUsername = 1,

    SMFirstName = 2,

    SMLastName = 3,

    SMFullName = 4,

    SMEmail = 5,

    };

    It's my ".m" code:

    -awakeFromNib (void) {}

    NSString * result = [SMUser getValueForKey:SMUsername];

    NSLog (@"THE RESULT: % @", result);

    }

    + (NSString *) getValueForKey:(SMUserKey*) myUserKey {}

    NSString * myUserKeyValue = nil;

    If ((myUserKey = 1)) {}

    myUserKeyValue = @ "Username";

    }

    If ((myUserKey = 2)) {}

    myUserKeyValue = @ "First Name";

    }

    If ((myUserKey = 3)) {}

    myUserKeyValue = @ "Last Name";

    }

    If ((myUserKey = 4)) {}

    myUserKeyValue = @ "full name";

    }

    If ((myUserKey = 5)) {}

    myUserKeyValue = @ "Email."

    }

    Return myUserKeyValue;

    }

    This is the picture showing the warnings:

    The reason why you got warnings in the case of statements is that you assign the myUserKey variable the values 1 to 5 instead to compare the variable to these values, which is what you expect to happen. The = operator assigns values. The statement myUserKey = 1 myUserKey gives the value 1. Him == operator compares two values for equality. Education myUserKey == 1 checks if myUserKey is equal to 1. Adding a supplement of equal sign on each condition in the condition statements do the warnings go away.

  • LOV does not return a value

    Is there a problem with Apex v 3.2.1 or bug known?

    I have a LOV extracting data using the following code:
    SELECT FULLNAME d, ID r
       FROM EMPLOYEE
       WHERE TERMDT IS NULL
    ORDER BY 1
    In the EMPLOYEE table, the FULLNAME column is filled, and the ID column is PK if she is too populated.
    The form on which is the drop-down list uses this LOV works for each record in the table, with the exception of 2 folders that I have validated so far. Col TERMDATE is null for all records.

    Names that do not appear in the list, but by choosing them - ID data the value zero.

    I looked at the records and I see no problems with the two records that return null ID-

    Rich

    Hi rich,

    When the document is returned to
    Susan Manszo

    JavaScript throws this exception:
    "XML Parsing Error: not well-formed location: http://apex.oracle.com/pls/apex/wwv_flow.show line 1, column 86 number:this XML genericly defines several elements GPI & QE James Marhoefer

    You have probably escape & in GPI & QE?
    {code}
    GPI & QE => QE & GPI
    {code}

    You can check your file xml here
    http://www.w3schools.com/DOM/dom_validate.asp

    With * & *-parser error.

    If you delete * & * or escape - no error.

    Kind regards
    Lev

    Published by: the on December 9, 2010 16:26

    Published by: the on December 9, 2010 16:48

  • Gauss hypergeometric function does not return a value

    I need evaluate the Gauss hypergeometric function (mathematics > elementary > hypergeometric functions > Function.vi Gauss) for one of the following constants:

    a = 11/6

    b = 1/6

    c = 5/6

    for different values of x, all of which are negative.  A value of x is - 4.  When I run a VI with this function, it returns NAN.  I don't know what is current as the help file says the function is set to leave Neg. infinite to 1.  A condition is placed above being defined more precisely to 1 which I'm not interested.

    We used a script MATLAB Labview node to calculate these values successfully.  I know that some other programs can only calculate the function for | x |< 1,="" but="" the="" help="" file="" in="" labview="" claims="" it="" doesn't="" have="" this="" limitation="" as="" is="" the="" case="" with="" matlab.=""  can="" anyone="" else="" confirms="" this="" problem="" or="" am="" i="" just="" overlooking="">

    Also, it would be useful to check with Mathematica to verify that I did stupid miscalculation...

    Third time is a charm.

  • Case in SQL condition does not return the values as expected

    Hello gurus of PL/SQL,.

    SELECT amd.brkr_nm, amd.brkr_sym, AMD.MINORITY_FLG, atdf.comm_brkr_dim_key, atdf.exec_brkr_dim_key,
    WHEN atdf.COMM_BRKR_DIM_KEY = AMD.ACCESS_METHOD_DIM_KEY - CASE THEN
    WHEN AMD BOX. MINORITY_FLG = 'Y' THEN
    CASE WHEN atdf.EXEC_BRKR_DIM_KEY = atdf.COMM_BRKR_DIM_KEY THEN 'Done' ELSE 'InDirected.
    END
    ANOTHER "NA".
    END
    ELSE ' 0'
    END
    AS Direction_Method
    Of
    alloc_tran_det_fact atdf,
    ACCESS_METHOD_DIM AMD

    But it returns me the 0 value in the Direction_Method field. But when I checked the values in DB then my first condition (atdf.COMM_BRKR_DIM_KEY = AMD.ACCESS_METHOD_DIM_KEY)
    second condition (AMD. MINORITY_FLG = 'Y') and third (atdf.EXEC_BRKR_DIM_KEY = atdf.COMM_BRKR_DIM_KEY) condition of all them have passed, then it should show the value as indicated, but it is shwoing the '0' value only in the Direction_Method column.

    Kindly help me.. .am I missing something?
    I use Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production. I can't create the test data in the database, I did not have the required privileges to make :(

    Kindly help me, thnanks in advance for your time and your comments

    Published by: user555994 on May 24, 2012 02:00

    could be a space or case (upper or lower case). Try:

    /* Formatted on 2012/05/24 16:00 (Formatter Plus v4.8.8) */
    SELECT amd.brkr_nm, amd.brkr_sym, amd.minority_flg, atdf.comm_brkr_dim_key, atdf.exec_brkr_dim_key,
           CASE
             WHEN trim(upper(atdf.comm_brkr_dim_key)) = trim(upper(amd.access_method_dim_key))
               THEN CASE
                     WHEN trim(upper(amd.minority_flg)) = 'Y'
                       THEN CASE
                             WHEN trim(upper(atdf.exec_brkr_dim_key)) = trim(upper(atdf.comm_brkr_dim_key))
                               THEN 'Directed'
                             ELSE 'InDirected'
                           END
                     ELSE 'NA'
                   END
             ELSE '0'
           END AS direction_method
      FROM alloc_tran_det_fact atdf, access_method_dim amd
    
  • Work will not appear correctly if saved as .ai. Why?

    I'm trying to make different versions of a logo I created recently. There are 4 c, 2 c, 1 c and (the file in question) a KO or inverted version. All versions except for KO (polygons and underlined text filled in white) version behave correctly and appear as it should when saved as .eps and placed in InDesign. But when I try to use the same work and fill it white, then save it as a .eps, only white polygons appear when placed in InDesign. The text describes does not appear. However, if I save the file with an .ai and then place it in InDesign, all seems well.

    Is there something that I am missing on the preparation of file? It is true that all other versions have the letters described (the missing element of the KO version) on a white background. I just can't understand why the same selection statements letters and fill with white would make it unable to appear. Does anyone have a suggestion?

    Thanks in advance!

    Tim

    Make sure that your white text object is not set for a recovery.

    JET

  • CFCalendar does not return a value selected

    My host is running CF8, and I'll build a Web site for the company of my wife.  I try to use cfcalendar to allow customers to choose the dates of appointment, but I'm having a problem.

    I guess you get the selected date by submitting the form and looking at #FORM.calendarname # (where calendarname is whatever the name = attrib the cfcalendar tag).

    I use it in a form with format = "html" which is supposed to be allowed, but the form returns nothing.  If I turn it on format = "flash" then it works fine.

    Is it possible to make it work with an HTML form?  I really don't want the entire form to be flash (not to mention I heard flash forms go far in future versions of CF).

    I think you have found a bug.  Remove the ID attribute of the CFFORM Tag, then it works.

    You need to trigger the bug here:

    http://cfbugs.Adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html

    Report with the ref of bug, let people know where he is and may vote in its favour.

    Also: as a general rule, it's a bad idea to have a submit with a button 'submit' name.  It can collide with JS that is based on the method of the form object submit().  It's nothing to do with your question here, but just something to remember.

    Insofar as the thing in JQuery, I guess that I do not use that because I don't know the first thing about JQuery, LOL!

    Same as everyone before they start with him then.

    --

    Adam

  • Editor does not return a value

    10.1.3.42.70 ADF business components
    JHeadstart 10.1.3.3.81

    all,

    I use the "editor" display type in my def. app when I use the product page the editor préremplira value w / the appropriate, but when I hit the button, the value in the editor does not the text box. someone at - it else knows it?

    Thank you
    Paul

    Paul,

    It is indeed a bug in the EditorItemBean. You must override the method in EditorItemBean and change the line

    If (returnEvent.getSource () .equals ("OKButton"))

    in

    If (returnEvent.getReturnValue ()! = null)

    This is necessary, because otherwise the Cancel button will not work as it should (it will always save the value silently on the bottom).

    Thanks for finding this bug! The patch will be included in the next version of JHeadstart 10.1.3.3; but the substitution function will fix this bug as well.

    Kind regards
    Evert-Jan de Bruin
    JHeadstart team

  • pageContext.getParameter in processFormRequest in CO does not return a value

    Hello

    It seems that fields that are not rendered cannot be retrieved using pageContext.getParameter.
    I found a thread where it helps that a field must be ' Read Only: False' for this, but my fields are read-only: false.
    Is there another setting that should be set?
    The fields are messageTextInput style.

    I tried with setting the rendering and then they I get a value.

    Or I have to use something else for these areas?

    Thanks for your help

    Ronny

    Hi Ronny,.

    FormValue style is to hide the element on the page. Even if its form value, we must set to true so that values lies in the field.

    Region style header has nothing to do with the field hidden.

    Thank you

  • LOV using personaliztion is not return a value.

    Guys,

    I have a requirement where I need to add a field to a seeded page. This field must have a value list using customization that must search the EmployeeName but must return corresponding EmployeeId. To achieve this, I followed the below mentioned steps

    1 created EmployeeVO that contains two columns EmployeeName and EmployeeId IN JDEV.
    2. created AM and EmployeeVO annexed.
    3 created EmployeeVORN (/ xxlc/oracle/apps/eam/workplan/lov/webui/EmployeeVORN.xml) and imported.
    4 is went to customization and followed the below mentioned steps
    4.1 has created a MessageLOVinput XX_EMP_NAME with /xxlc/oracle/apps/eam/workplan/lov/webui/EmployeeVORN.xml
    Guest: employee name
    4.2 create a following LOV Mapping EMP_NAME_MAPPING
    LOV box item: EmployeeName
    Point of criteria: XX_EMP_NAME
    Goods return: (empty)
    4.3 create an another following LOV Mapping EMP_ID_MAPPING
    LOV box item: EmployeeId
    Point of criteria: XX_EMP_NAME
    RMA: XX_EMP_NAME

    That's what I've done so far to implement LOV using customization. I can see the name of the employee on the page with the torch trigger. I click on the button of the torch and search for an employee name and after finding it, select using quick selection. But the moment quick selection is made, I see no return value (or EmployeeName EmployeeId) in the region of the employee name field.

    Can guys you please tell me where I'm wrong in the application my requirement. Please help me in this regard.

    Waiting for your response.

    Thank you
    Sunil

    Hey, Sunil,.

    Please close the thred.

    Concerning
    Meher Irk

Maybe you are looking for

  • Equium A100-195 - what are hardware specifications

    Hey! Any who know the specifications for a Toshiba equium a100-195? 1 priority for me is to know what graphics card it contains... I tried to fill in the nr series and model, but it will not find a computer at all. I also tried to find it manually, b

  • satellite pro a60 problem with game called "call of duty".

    I have a satellite pro a60 with skvideo ati radeon 7000 igp. I have the problem with the game "call of duty" because it is too slow. With my old laptop with ati igp 340 skvideo is not this problem.ATI have solved this problem with the new driver, but

  • Satellite R630-14 days - WLAN turn FN + F8 option does not appear

    I just got my Satellite R630-14 days with OS Win7 in German so I reinstalled the OS is in English (Win7 Ultimate).I installed all the drivers supplied by Toshiba (Chipset utility, value added package, WLAN Broadcom Wireless Driver, etc.), although wh

  • IPED pro

    ارجو المساعدة في فتح الايباد بي الهاص

  • HP envy x 2 bluetooth

    Not c my bluetooth on my x 2, thought desire device itcame with... reinstalled drivers and this is not the case to find! Maybe he is not provided? Someone at - it the same problem? TIA Dan