Salary and the date of validation at the OS level.

Hi all

I have two wage and Date fields both are present at the level of the OS

I need to write a validation that if date of birth is entered on the user interface is more than 50 years as of today pay should not be less than 5000

Ex: if entered date is 02/02/1961 and entered salary is 4500, then it must raise an error message when the button is clicked.

There are to many validations customized at the OS level, but exactly where this is done.

Thank you
Arun

Hello

You can use a script expression for the attribute of salary at the entity level to calculate the age (DOB-based) and then trigger the error based on two conditions.

Ex:

Calendar now = Calendar.getInstance();
Calendar dob = Calendar.getInstance();
dob.setTime(); //Change it to the name of the attribute which holds the DOB.

int year1 = now.get(Calendar.YEAR);
int year2 = dob.get(Calendar.YEAR);
int age = year1 - year2;
int month1 = now.get(Calendar.MONTH);
int month2 = dob.get(Calendar.MONTH);
if (month2 > month1) {
  age--;
} else if (month1 == month2) {
  int day1 = now.get(Calendar.DAY_OF_MONTH);
  int day2 = dob.get(Calendar.DAY_OF_MONTH);
  if (day2 > day1) {
    age--;
  }
}

if(age>=50 && newValue<5000) {
  adf.error.raise("SOME_ERROR")
  return false;
}
else return true;

Define SOME_ERROR in the section of the error of the Add Rule dialog box.

Arun-

Tags: Java

Similar Questions

  • fan stays on too long and the battery level decreases rapidly: any problem identified?

    Fan stays on too long and the battery level decreases rapidly: all identified cause problem or possible?

    MacBook Air mid-2013

    OS 10.11.13

    Processor 1.7 GHz Intel Core i7

    8 GB of DDR3 memory at 1600 MHz

    Thank you, Paolo

    Hi Paskowski,

    Can you give us a little more information about your problem?  What applications or processes are you using when you encounter the problem with your fan and battery?  The activity monitor application can provide you with some basic information.

    Use the monitor activity on your Mac.

    The resources below provides general information on how optimize the battery life and troubleshoot the battery on your MacBook Air.

    On batteries for laptops Mac

    Take care

  • I want to detect if my PC supports: Client Hyper-V and the second level address translation (SLAT)

    I want to detect if my PC supports

    Level address translation Hyper-V and the second customer (SLATS)

    and activated it. Hyber VT - X

    How?

    my PC is

    HP Pavilion Elite m9372.gr Desktop PC 2008-2009

    Series number:

    PART_NUMBER: FZ110AA-B1A

    the processor is Intel core 2 Quad

    You are right, that the CPU will not support it little matters not matter what OS you are using.

  • PHOTOSMART HP 6520 does not print black. And the ink levels estimated for the other inks are not correct.

    Hi, I bought my photosmart Hp 6520 year last, October. But it is no more print black after replacing ink twice. I tried to clean the print head with water and tried "clean print head" in tools, does not solve the problem...

    What is wired is that I bought 4 new 564 inks the hp of the target 2 days ago, printed only less than 10 pages to see if the problem is resolved. Then my printer told me that the cartridge is too low... Is this possible?

    It makes me crazy now... What is even worse, I used a tool to detect my printer, and he said that is no longer under warranty... But he was only 9 months... How can I solve this problem? Thank you.

    The document here can help solve the black does not print on your Photosmart 6520.  Be sure to check the vents, as on the three solution.

    If this does not resolve the issue I suggest you call HP (1-800-HPINVENt to the United States, see here for details by the way).  The warranty online tool is an estimate, they will have a process of updated the status of the guarantee if necessary.

  • Upgrade to vcenter 5 to 6 - trying to install a profile picture without the singing and the verification level of acceptance message

    I'm upgrading our server vCenter of 5.0 to 6.0 update 2.

    At one point, I had these emails for each esxi host.



    Try to install a profile picture without the signature and acceptance of audit level. This can be a big security (2016-06 - 07 T 14: 12:38.242Z cpu29:2685025)


    It is a cluster of production vcenter.  Please tell me what is normal?

    Nothing serious happened.  I think it was just vcenter 6.0 connection and update the connector / agent on the ESXi 5 existing servers so that they could be handled by the instance of vCenter upgraded.

  • What is the difference between levels 1 to 4 of the performance monitoring? What is the default level?

    What is the difference between levels 1 to 4 of the performance monitoring? What is the default level?

    Collection and levels of collection intervals are two things that are used to monitor and collect statistics of performance for entities.

    Research in detail what intervals of Collection and collection levels mean:

    Collection intervals determine the duration for which the statistics are gathered. VirtualCenter currently has four intervals of collection: day, week, month and year.

    Every interval between two collections has a default collection level that determines how the counters are used when collecting statistics. Default collection-level is set to 1 (because the minimum number of counters). This level is configurable and can be set from 1 to 4.

    For more details on the intervals of the collection and the collection level (with respect to the measurements taken at each level), please see the "Collecting statistics" section, page 281 base System Administration Guide.

    http://www.VMware.com/PDF/vi3_35/esx_3/R35/vi3_35_25_admin_guide.PDF

    Hope that the information above will clarify your doubts regarding the level of default collection and what they mean.

  • Simple validation on the start and end dates

    Apex 4.2

    I'm trying to create a script of validation on my start date and end date. A simple validation indicating the start date must be less than the end date. Because apex deals my fields of date as a string, using an expression of pl/sql as P101_START_DATE < = P101_END_DATE does not work. This may seem like an easy question, but I'm unable to create this simple validation. Any help would be greatly appreciated. Thanks in advance!

    Take a look how the TO_DATE plsql function works... ie... to_date(:P101_START_DATE,'mm-DD-yyyy')<=to_date(:P101_END_DATE,'mm-dd-yyyy'),>

  • Error:-200277 is not a valid combination of the position and the offset in mx data acquisition

    Hello everyone, I use a NI SMU 6361 DAQ in LabView 2013 (32 bit) to acquire samples from six sensors (currently). The signal is a bit noisy, but behave correctly after filter software by averaging, so I dug a little and found the code shown by NOR in this video:

    https://www.YouTube.com/watch?v=fkIYp1mqp_g

    So far, it has worked great, the loop basically takes anything to run and gives me a signal clean and Nice, but when VI starts first of all, I get the error code mentioned in the title, by saying that I am referencing a non-existent sample, since it is before the first (example 0). He has absolutely zero effect in the real VI, since if I hit continue, it works fine, but as it is for end-user oriented, I don't think they like to see a mistake every time you start up then, did somebody encountered this problem? And if so, how do solve you? Any ideas to spend at least the error message? So far I have tried:

    -Insertion of a sample of reading the real while loop, no luck

    -Insert a wait for completed task, gives me a timeout error

    -Which in fact a little wait to not round, no chance

    EDIT: Please ignore the loop for now, it has been used just to show if the data has been formatted correctly and will be used for filtering software, but has no effect on the error.

    I'll take a shot at your comments:

    -When I run with a simple/general error handler outside the while loop, it reports no errors

    -When the error handler is inside the loop (after the reading) it sends the error message, but doesn't give the option to continue

    -When I run all at once, with a real constant for the stop condition, it reports the error of loop

    -When I run on the execution of highlight mode, it does not report the error once again

    All relate to the thrust of the error that you can not collect samples which are periods of sampling of 2000 in the past until the task is run at least 2000 sampling periods to capture.

    1. the error in the loop tunnel is only retains the last value of the error.  Probably, the loop runs several times where the error is generated, but never seen.  Once spent enough time to get samples of 2000 in the buffer of data acq, subsequent executions no longer produce an error.  If you stop the loop after this date, the most recent error value is indeed "no error".

    2. Yes, you see the error that happened on the iteration 1.  The time required to respond to the dialog box is quite probably a long time you * only * see the error on the iteration 1.

    3 Yes, as described above.

    4. the code runs pretty slowly for the start time of the task until you come finally to the first Read DAQmx is longer than the 2000 sampling periods.  Once again, Yes.

    Couple of several things:

    -Bob comments are super useful and important to keep.  Auto error handling behavior are a real subtlety in LabVIEW, not at all intuitively obvious because almost any other terminal output can remain unwired without consequence.

    -J' threw together a quick example, mess of my notice to loop before calling with offset = 0.  The following works fine without error on my end, using a desktop computer X - card in the series similar to yours.  I ran 4 channels at 100 kHz, and then again at 1 kHz without error.  The case of 1 kHz took the second planned couple to run to completion and the first Offset = 0 reading has done its job.  You can save the pic (save in png format) and then drag the file on an empty LabVIEW diagram to get the instant code.  Adjust the device, channels, sampling according to your needs and tell me what you get.

    -Be sure wiring in the 'NB of samples' entry on the call of DAQmx Read!  When I removed this thread in the example below, I saw your error also.  You must connect this number of 2000.

    -Kevin P

  • Rstrui.exe - bad Image of the application or DLL C:\Windows\System32\Wbem\Framedyn.dll is not a valid windows image. AND the exe task manager. -Bad guess. The application or DLL C:\Windows\System32\VDMDBG. DLL is not a valid windows image.

    I use WIndows XP.  After that THINKPOINT is presented on my system, I have not been able to access my task manager or restore my system to an earlier date.

    I have checked Kellys Korner and various other suggestions on the internet, but have had no luck with anything.

    It shows that the HKEY value for the Task Manager is set to 0.  Don't know if that helps.

    I BELIEVE I have the THINK POINT removed from my system.  I use Microsoft Security, Ad-Ware and Malwarebytes Anti - Malware.  Between the 3, it seems I have everything.

    But now I can not restore my system, or use my TASK MANAGER.

    Help would be GREATLY appreciated.

    Thank you!

    Bindifer

    Think like a malicious software...
    It infects your system and is not to be found and removed.
    What are you most likely to use to find and remove malware?
    Internet, Google, Task Manager, regedit, restore the system command prompt, etc...
    The malware is often afflicts one or more of these components to try to trick into thinking you need to perform a system restore, a repair facility, or even to reinstall your XP from scratch.  None of these things are necessary since you can usually just to thwart malware.
    If the referenced files are completely absent from your system, you will see messages like this when you try to run the applications:
    Taskmgr.exe - Unable to locate component
    This application has failed to start because VDMDBG.dll is not found.  Reinstalling the application may fix this problem.
    Rstrui.exe - Unable to locate component
    This application has failed to start because framedyn.dll was not found.  Reinstalling the application may fix this problem.
    Sometimes you can click through the OK messages to access the System Restore screen, but the restoration of the system is still broken.
    If the referenced files are present on the system, but somehow corrupted, you will see messages like this when you try to run the applications:
    Taskmgr.exe - bad Image
    The application or DLL C:\WINDOWS\system32\VDMDBG.dll is not a valid Windows image.  Please check this against your installation diskette.
    Rstrui.exe - bad Image
    The application or DLL C:\WINDOWS\system32\wbem\framedyn.dll is not a valid Windows image.  Please check this against your installation diskette.
    Sometimes you can click through the OK messages to access the System Restore screen, but the restoration of the system is still broken.
    These files are part of the file 3498 who cares about Windows File Protection, so unless the WFP is also broken it is likely that files are missing completely (you get a different error message).  What is more likely is that the files are somehow corrupt or have been replaced by incorrect files.
    Assuming that XP is installed on your C drive and in the windows folder, XP keeps copies of 3498 files that he cares about this issue:
    c:\Windows\System32\dllcache
    On a health care system, Windows File Protection keeps track of 3498 protected files and quickly and quietly replaces all the files in the list that appears missing from the backup folder.  File protection Windows will not replace the files if they are somehow corrupted or replaced by bad files.
    You can simply copy the backup files in the dllcache folder in the folder where are the suspects or missing files.
    Using Explorer, navigate to the folder c:\windows\system32\dllcache and individually to copy the backup files in there and then navigate the folders where the suspect or incorrect files are and paste in the copied files.
    Depending on your installation, you can also find copies of the files in this folder:
    c:\windows\ServicePackFiles\i386
    Answer Yes, if you are prompted to replace existing files.
    Test your functions now and then to reboot your system to make sure the changes 'stick', and then fix any problems.

    Do, or do not. There is no test.

    I need YOUR voice and the points for helpful answers and propose responses. I'm saving for a pony!

  • "services.exe - bad image" and "the application or the DLL...\ShimEng.dll is not a valid Windows image.

    At the start this morning, I received the message following "services.exe - bad image" and "the application or the DLL...\ShimEng.dll is not a valid Windows image. Is there a simple solution to this problem? If it is ok, the unit freezes then

    Hello

    1. you remember to make changes to your computer, after which the issue started?

    I would recommend that you follow these steps and check if the problem persists.

    Step 1:

    I would recommend that you run a full scan using theMicrosoft Safety Scanner and check if the problem is related to malicious software.

    Note: You may lose data while eliminating malware.

    Step 2:

    Test the issue in a clean bootand verify if the issue.

    Note: Follow step 7 to your computer as usual.

    Step 3:

    Make SFC scan and check if the problem persists.

  • Copy of Windows is not genuine and the Validation Code: 0x8004FE21

    Original title: Windows decided I'm not not authentic Windows

    Hello

    Re the above, I ran the diagnostic tool:

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->

    Validation code: 0x8004FE21
    Code of Validation caching online: 0x0
    Windows product key: *-* - VGV87 - C7XPK-CGKHQ
    The Windows Product Key hash: sdEjrEJjW0FuXAhegYxl8GAkBYg =
    Windows product ID: 00359-OEM-8992687-00016
    Windows product ID type: 2
    Windows license Type: OEM SLP
    The Windows OS version: 6.1.7601.2.00010300.1.0.003
    ID: {957DD72C-4BE2-4E23-B6B2-7DA21406DE0E} (1)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: Windows 7 Home Premium
    Architecture: 0 x 00000009
    Build lab: 7601.win7sp1_gdr.120503 - 2030
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 109 n/a
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files (x 86) \Mozilla Firefox\firefox.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->
    [File mismatch: C:\Windows\system32\wat\watadminsvc.exe[7.1.7600.16395], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\wat\watux.exe[7.1.7600.16395], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\sppobjs.dll[6.1.7601.17514], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\sppc.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppcext.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppwinob.dll[6.1.7601.17514], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\slc.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\slcext.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppuinotify.dll[6.1.7600.16385], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\slui.exe[6.1.7601.17514], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\sppcomapi.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppcommdlg.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppsvc.exe[6.1.7601.17514], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\drivers\spsys.sys[6.1.7127.0], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\drivers\spldr.sys[6.1.7127.0], Hr = 0 x 80092003
    [File mismatch: C:\Windows\system32\systemcpl.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\user32.dll[6.1.7601.17514], Hr = 0x800b0100

    Other data-->
    Office details: {957DD72C-4BE2-4E23-B6B2-7DA21406DE0E}1.9.0027.06.1.7601.2.00010300.1.0.003x 64*-*-*-*-CGKHQ00359-OEM-8992687-000162S-1-5-21-3111097882-3599632542-1217928279Sony CorporationVPCF12M0EAmerican Megatrends Inc.. R1120Y6 20101011000000.000000 + 00096893A07018400FE08090409GMT Standard Time(GMT+00:00)03SonyVAIO109

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.1.7601.17514

    Name: Windows 7 HomePremium edition
    Description: operating system Windows - Windows (r) 7, channel OEM_SLP
    Activation ID: d2c04e90-c3dd-4260-b0f3-f845f5d27d64
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 00359-00178-926-800016-02-2057-7600.0000-0842010
    Installation ID: 020282293221092940813812188063337024446971455913676902
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
    The machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=88341
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
    Partial product key: CGKHQ
    License status: licensed
    Remaining Windows rearm count: 3
    Trust time: 25/10/2012 20:13:54

    Windows Activation Technologies-->
    HrOffline: 0x8004FE21
    HrOnline: n/a
    Beyond: 0x000000000001EFF0
    Event timestamp: 10:20:2012 14:31
    ActiveX: Registered, Version: 7.1.7600.16395
    The admin service: recorded, Version: 7.1.7600.16395
    Output beyond bitmask:
    Altered the file: %systemroot%\system32\sppobjs.dll
    Altered the file: %systemroot%\system32\sppc.dll|sppc.dll.mui
    Altered the file: %systemroot%\system32\sppcext.dll|sppcext.dll.mui
    Altered the file: %systemroot%\system32\sppwinob.dll
    Altered the file: %systemroot%\system32\slc.dll|slc.dll.mui
    Altered the file: %systemroot%\system32\slcext.dll|slcext.dll.mui
    Altered the file: %systemroot%\system32\sppuinotify.dll|sppuinotify.dll.mui
    Tampered files: Check %systemroot%\system32\slui.exe|slui.exe.mui|COM
    Altered the file: %systemroot%\system32\sppcomapi.dll|sppcomapi.dll.mui
    Altered the file: %systemroot%\system32\sppcommdlg.dll|sppcommdlg.dll.mui
    Altered the file: %systemroot%\system32\sppsvc.exe|sppsvc.exe.mui
    Altered the file: %systemroot%\system32\drivers\spsys.sys

    --> HWID data
    Current Hash HWID: MgAAAAEAAwABAAEAAAACAAAAAgABAAEAln1AeiJFzq6scsxxUizOA plus wcFM4gwf6/dlY

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes
    Windows marker version: 0 x 20001
    OEMID and OEMTableID consistent: Yes
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    APIC Sony VAIO
    Sony VAIO FACP
    HPET Sony VAIO
    MCFG Sony VAIO
    SLIC Sony VAIO
    SSDT Sony VAIO
    SSDT Sony VAIO

    Can you please help?

    Thank you

    This may simply be caused by a bad set of drivers of technology Intel Rapid Storage Technology-

    Intel rapid storage driver installation

    try to download and install them from here - http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&ProdId=2101&DwnldID=21730

    (you want the download of iata_enu.exe)

    Once complete, please restart twice, then after another MGADiag report.

  • View the name of the person who got pay MAX() of all employees and the amount of salary without the aid of a subquery

    The table is the table of the sample already provided to the user 'hr' to oracle. The structure of the table is:

    NameNull valueType

    --------------                        -------- ------------

    EMPLOYEE_IDNUMBER (6) NOT NULL
    FIRST NAMEVARCHAR2 (20)
    LAST_NAMEVARCHAR2 (25) NOT NULL
    E-mailVARCHAR2 (25) NOT NULL
    PHONE_NUMBERVARCHAR2 (20)
    HIRE_DATEDATE NOT NULL
    JOB_IDVARCHAR2 (10) NOT NULL
    SALARYNUMBER (8.2)
    COMMISSION_PCTNUMBER (2.2)
    MANAGER_IDNUMBER (6)
    DEPARTMENT_IDNUMBER 4

    So I wanted the result to display the 'FIRST_NAME' of the person with the maximum salary of all employees and the salary of this person "Max (Salary)".

    I had the answer to the following query:

    Select first_name, salaries of employees

    where wages (select max (salary) of employees);

    But I wanted to know if there was another way to get the results without using subqueries? Thanks for your help. Appreciate it.

    Use the DUNGEON:

    Max (first_name) SELECT first_name from Dungeon (dense_rank last order of salary).

    Max (salary) salary

    of hr.employees

    /

    FIRST NAME SALARY
    -------------------- ----------
    Steven 24000

    SQL >

    SY.

  • Gives the Script import FDM of oracle RDB to import - import has failed. Data not valid or empty content.

    Hi all

    I create an FDM interface to extract data from Oracle RDB and onto an essbase database. I feel that if you have to shoot the script import data of RDB, you must create an integration. So I created a script to import integration based on the example given in the FDM Document admin.

    The Script is as below:

    Function PSIP_TEST (lngCatKey, dblPerKey, strLoc, strWorkTableName)

    '------------------------------------------------------------------

    "Import oracle Hyperion FDM integration script:

    '

    ' Created By: admin

    "Creation date: 18/02/2014-18:00:33.

    '

    ' Object:

    '

    '------------------------------------------------------------------

    Dim cnSS ' ADODB. Connection

    Dim strSQL ' SQL string

    Dim rs ' Recordset

    Dim rsAppend ' tTB table add rs object

    'Initialize objects.

    Define the cnSS = CreateObject ("ADODB. Connection")

    Set rs = CreateObject ("ADODB. Recordset')

    Set rsAppend = DW. DataAccess.farsTableAppend (strWorkTableName)

    "To connect to the Oracle database

    CNSS. Open "Provider = OraOLEDB.Oracle.1; Password = PSIP_TST; Persist Security Info = True; User ID = PSIP_TST; Data Source = PSIP.

    ' Create the query string

    strSQL = "SELECT YEAR, COST_CENTRE, PROGRAMME_CODE, PROJECT_CODE, ACCOUNTS, AMOUNT FROM VW_PSIP_EBUDGET_ESTIMATES.

    «Get data»

    RS. Open strSQL, cnSS

    "Locate the data.

    If rs.bof and rs.eof then

    RES. PlngActionType = 2

    RES. PstrActionValue = "no records to load!

    Exit Function

    End If

    ' Loop through records and add table APCs to place DB

    If it is rs.bof and not rs.eof then

    While Not rs.eof

    rsAppend.AddNew

    rsAppend.Fields ("PartitionKey") = RES. PlngLocKey

    rsAppend.Fields ("CatKey") = RES. PlngCatKey

    rsAppend.Fields ("PeriodKey") = RES. PdtePerKey

    rsAppend.Fields ("DataView") = "CDA".

    rsAppend.Fields ("CalcAcctType") = 9

    rsAppend.Fields ("Account") = rs.fields ("ACCOUNTS"). Value

    rsAppend.Fields ("Entity") = rs.fields ("COST_CENTRE"). Value

    rsAppend.Fields ("UD1") = rs.fields ("COST_CENTRE"). Value

    rsAppend.Fields ("node2") = rs.fields ("PROGRAMME_CODE"). Value

    rsAppend.Fields ("UD3") = rs.fields ("PROJECT_CODE"). Value

    rsAppend.Fields ("Amount") = rs.fields ("Amount"). Value

    rsAppend.Update

    RS. MoveNext

    Loop

    End If

    "Loaded files

    RES. PlngActionType = 6

    RES. PstrActionValue = "import successfully!

    'Assign the return value.

    SQLIntegration = True

    End Function

    When I run the Script in the Script Editor, I get the following error:

    Error: An error occurred while running the script:

    -2147467259-data access error.

    Online: 19

    If I see in the error log, it is as follows:

    ERROR:

    Code... - 2147467259

    Description... ORA-00903: invalid table name

    Process... clsDataAccess.farsTableAppend

    The component... upsWDataWindowDM

    Version.......................................... 1112

    Thread........................................... 41900

    Nude of the line. 19 is as follows: Set rsAppend = DW. DataAccess.farsTableAppend (strWorkTableName) and, therefore, I thought that perhaps this is when I run the script in the Script Editor, perhaps that the value of the variable "strWorkTableName" does not get filled it is why it gives an error.

    So I ran the import stage in the Workflow, and Got the following error:

    Error: Failed to import. Data not valid or empty content.

    and there is no entry in the error log.

    I'm lost, need your help please.

    One last thing, I would like to ask is kindly please post if my connection string is correct, either:

    CNSS. Open "Provider = OraOLEDB.Oracle.1; Password = PSIP_TST; Persist Security Info = True; User ID = PSIP_TST; Data Source = PSIP.

    I read that FDM is a 32-bit product and will require a connection 32-bit oledb provider.

    FDM here is installed on a 64-bit computer and the provider that is used here in the connection string is 64-bit.


    Please help, my work here came to a fixed support. Kindly help

    That would mean that your 32-bit TNSNAMES. ORA file does not have a good connect descriptor for what you provide in the UDL file.

    Check your TNSNAMES 32bits. ORA file and make sure you have a good connect descriptor for the Oracle database.

  • How to remove the ADF LOV error no data input validation validates

    Hi all


    I am developing a custom Application of ADF, in my custom, ADF application as part of the home page, I have a set of ADF LOVs as well as a custom to "Seek" button and the button 'Clear' ADF. the erase button is used before every new search is called. the "Clear" button and search button work properly, except that when the user enter all the values in the LOV text box and then press the Clear button, the LOV throws an exception indicating invalid in LOV data and won't let me delete them until I have explicitly focus the cursor in the LOV and use remove / return back to clear this field If the LOV has valid data and when I click the button clear clears the field as it was planned.

    Please suggest how can I delete the message 'Error in data not valid' in LOV

    Thanks in advance,
    TK

    Hello
    You can try with

    http://download.Oracle.com/docs/CD/E12839_01/apirefs.1111/e12419/tagdoc/af_resetActionListener.html

  • Comparison of the data with froms and database data

    Hi all


    I have data in my table like this
    SQL> /
    
    SALE_ORDER_NO                                             QTY
    -------------------------------------------------- ----------
    TEST JOGI                                                  16
    TEST JOGI                                                  17
    TEST JOGI                                                  18
    12205                                                       2
    and question like that

    DECLARE
    Num_Stock NUMBER;
    BEGIN
    GO_block ('gin_detail1');
    Premier_enregistrement;
    LOOP
    SELECT quantity INTO num_stock from sale_order_barcode
    WHERE the barcode =: gin_detail1. BAR CODE;

    IF num_stock <: gin_detail1.xs then
    message ("' first already issued please receive" ");
    message ("' first already issued please receive" ");
    RAISE FORM_TRIGGER_FAILURE;
    GO_ITEM('GIN_DETAIL1.) BARCODE ");"
    END IF;
    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";
    NEXT_RECORD;
    END LOOP;
    end;


    If the data Enter twice then he saved twice, but I need when I run it will calculate the amount according to the sale_order_no

    example of

    sale_order_no
    12205 2
    12205 2

    It will save on the form and the vale is higher then 2 I need when it is large then 2 it will display the message

    validation on the other;


    Please guide

    Thanks and greetings
    Vikas Singhal

    Published by: vikas singhal on January 13, 2011 19:17

    Rather than check it in a loop, you could put your check in a before INSERT. If you do so, in the first record, the audit will be ok and the associated record will be inserted into the database. the second insert the alread can 'read' the inserted record previously and therefore properly check and will raise an error. If you raise an error, all insertions in the transaction (and therefore also the first) will be rollbacked.

Maybe you are looking for

  • HP photosmart C4780: Hp Solution Center

    I have recently upgraded to Windows 10 and now I can not scan from my computor using HP solution center app as before in windows 7. I tried several times following the instructions from HP. A problem in trying to uninstall the existing software, it w

  • Phones ringtones smart blackBerry

    HelloI have a blackberry priv. In the past it I can give each of my contacts an individual ringtone. Now, I think that after an update of the system, I always can give each contact a separate tone, but any time someone calls me, he has only the same

  • unexpected error 50001

    unexpected error

  • When I insert my recovery disk its Blanck, but if I used the same disc in another computer I can see the content inside

    Original title: DVD RW drive I'm having a problem with my computer toshiba M645. When I insert my recovery disk its Blanck, but if I used the same disc in another computer I can see the contents inside. I try inserting the disk dvd movies and it will

  • House Win7 Ultimate upgrade

    I just bought a new laptop which has Windows 7 Home Premium 64 - bit installed on it.  I already bought a Windows 7 Ultimate Upgrade (designed for Windows Vista).  Can I switch from the Windows 7 Home Premium on my new computer laptop to ultimate usi