Item/button of wrong data captured validation

Morning All,
im new to apex.. ive got a small form im designing, so far so good. but i want there to be a validation if the wrong empno is entered i.e after the getdata button is clicked.
the applcaition -- http://apex.oracle.com/pls/apex/f?p=23206:1:975406786794201:::::
theres no authentication yet... so its pretty much open for now..
kindly assist.
Edited by: 910111 on Feb 24, 2012 2:19 AM

try inserting a process that generates an error.
by moving this around you can check if your code actually is being fired.
begin
  raise_application_error(-20000, 'Error');
end;would suffice.
Regards,
Richard
blog: http://blog.warp11.nl
twitter: @rhjmartens
If this question is answered, please mark the thread as closed and assign points where earned..

Similar Messages

  • Ordered of item master show wrong Data

    Dear All
    i have problem in Ordered field of item master data ,because in some items it shows quantity but no open PO or A/R Reserve or Production Order or Inventory Transfer request and even Inventory status report show nothing ,you can find image of problem in attachment.
    Please some help with this
    Regards

    Hi,
    Not sure about this SAP note whether need to consider or not.
    752031 - Using the Restore functions
    Thanks & Regards,
    Nagarajan

  • Exit button not working when entering wrong date

    how do I get the message not to appear by day Invalid (Frm-50004) in forms

    dear Shrikant,
    i have one item start_date whose data type is Date and format mask is DD/MM/RRRR ,
    when i m entering worng date it is showing below message which i kept on ON-ERROR trigger of start_date item with an error code 50004 ;
    "FRM-50004: Day must be between 1 and last of month."
    as i m entering wrong date i want to exit my form but my exit button is not working properly.
    The message appears several times, about 3 or 4 times, because the focus is on the text item to the date, and is firing the trigger ON-ERROR, debugging the code, you notice that after the message back running the line "IF", because the error frm-50004 can not be erased, is giving this error all the time because the focus is on her text item!
    i have kept my push buttons mouse and keyboard navigation property to "NO".
    then also it is not working tell me if any solution is there.

  • Why is CS4 putting wrong dates on files?

    Moved my CS4 from XP computer to new Windows7 computer. All seemed fine for a week.
    Now when I create or change a file, it does not put correct date on file (e.g., instead of 5/30/11 it will put 3/26/10 or on 6/2 it will show a date of 5/3/11 on the file). Wrong date shows in Explorer too but when I right click the file, the correct date is shown in properties. I can open the file in Adobe if I type in the filename.
    System date, clock, etc. are all fine.  No other program (Access, Word, Flash) does this
    Don't know if there's a connection but I did move over my preference/preset files from the XP just before this happens. I'd appreciate any help....thanks

    Aha!  Your Explorer view is displaying the Date Taken, which is of course the date the image was originally captured (and which is stored in the EXIF data within the file).
    That it is different from the Modification Date normally seen in Details view is because Explorer tries to show you a view of your files that can differ depending on the types of files it senses you have in the folder.  A real head-scratcher if you don't expect it.
    You can alter this behavior, on a folder by folder basis, by right-clicking the folder, choosing Properties, clicking the Customize tab, then choosing General Items.
    What many don't know is that you can set the behavior Windows-wide to ALWAYS show General Items views for all new folders (i.e., circumventing the derivation of what Customization to make by looking at the files) by this process, excerpted from my Windows 7 tuning guide.  Note that it involves adding an item to the registry with regedit - BE VERY CAREFUL WITH THIS:
    Configure Explorer
    Do not set Folder Types but use "General Items" for all by adding the following string value to the registry:
    [HKEY_CURRENT_USER\Software\Classes\Local Settings\
    Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
    FolderType                           REG_SZ                NotSpecified
    -Noel

  • CDC (Change Data Capture) with 2 Tables

    Hello,
    i want to use the change data capture for the typical Data Warehousing progress (bring the new or updatet table from source to the staging area)
    So i have implemented a mapping with to tables. The source table is S_Account, the target or staging table is W_Account_DS.
    I have connected/mapped the tables and in the next step i goes into property inspector of W_ACCOUNT_DS into the Area Change Data Capture --> Change Data Capture Filter and put into the follow expression Builder
    Select *
    from S_Acccount
    where INOUTGRP1.LAST_UPD_DT = CURRENT_DATE (<-- Validation Succesful)
    and the next Step i make Enabeled is true in the Change Data Capture Area. So i think it should ready for one test case.
    I set in SQL Developer with an update statement the LAST_UPD_DT at 28.03.2012 in this case he should not update/insert anything, right? But he insert the full table.
    I set in SQL Developer with an update statement the LAST_UPD_DT by 2 Columms to 28.03.2012 in this case he should update he should update the full table - 2 columns with the date 28.03.2012, right?
    So what make i wrong or have i forgotten anything? (must set keys by the tables? I think not! If yes why?)
    Must i set anything properties else? Why doesnt´work it?
    I look forward for your replies :)

    Setting up CDC is a fairly complex process with different options. Setting just the filter in OWB is only a very small part.
    There is a blog post below on how to use code templates to do CDC which gives some insight;
    http://www.rittmanmead.com/2009/10/changed-data-capture-and-owb11gr2/
    Plus and older one illustrating how to use Oracle logs;
    http://www.rittmanmead.com/2006/04/asynchronous-hotlog-distributed-change-data-capture-and-owb-paris/
    Cheers
    David

  • Showing the Apple Pay button for future dates

    I have a somewhat peculiar use case where the Apple Pay button may need to be shown when it is technically usable, but application validation would disallow it's usage.
    Apple Pay is meant to be for instant purchases. In my case, a user may select the Apple Pay option, and then after the fact try and change the date of payment to some future date. We would throw an alert if the button was tapped to disallow an attempt at payment if the wrong date is selected.
    It seems like this behavior would go against:
    1. Do not use the Apple Pay payment button to invoke other views.
    2.  The payment button must always invoke the Apple Pay payment sheet.
    3. Don’t display any Apple Pay UI if a user can’t use Apple Pay.
    # 3 seems like the big one here.

    hi
    ... i  have  a similar problem
    but  just  with  the sleep botton.
    fist use  your adapter with other iphone/itouch ... is posible itś the  problem
    second ..  let your  phone charging
    ...normally if  we  conect  our  phone ... after  some minuts  it's put on.
    after 2 hours ... trate   to use  it ... if  after  it  your phone continue same... could  be qaa electrical/physic problem
    please  if you  have a guaranty use it.
    im  sorry but  my english   is terrible.

  • Report returns wrong data when run on server

    Hi,
    I'm runing CRS XI R2 on Windows Server 2003 SP2.  When I refresh a report in the Crystal Reports XI Designer, I'm getting correct data.  But when I schedule the report to run on the server it returns wrong data.  The data is different from what I see when I refresh it from the designer.  In the report I have running totals set up to count customers that meet a certain criteria.  The report is very large.  It take almost 2 hours to refresh.
    I was wondering what is causing the difference in running total data between refreshing it on the designer and running it on the server.  Is it returning wrong data b/c of it not reading all the records?  Should I be making any changes to the server settings?  I saw that under pageserver, there are options for  setting the 'Minutes Before an Idle Report Job is Closed' and 'Database Records To Read When Previewing Or Refreshing a Report".  Do either of those have anything to do with the report returning incorrect data when being scheduled to run on the server?
    Thanks,
    Kim

    Hi Xuandao,
    You would need to Use Cell Binding and Trigger concept to accomplish this.
    Its simple, however, you would have to work on a trial and error basis to understand this concept as implementing the same is subject to your dashboard and WEBI Design.
    Open you LiveOffice.
    Insert your WEBI, Now, go to Object Properties of your WEBI, select the second tab that says Prompt, Here, it lists the prompts that you have for your WEBI. This would also enlist your BEx variables as well. Select this BEx variable and click on the button that says Prompt at the bottom of this window. Here, select choose Excel Data Range and click on the cell select button on the right (small button that lets you choose what cell you want to bind this prompt to), Now select a free cell that would not be even populated later on when you run the dashboard say A1 (remember the value that you select). Click on OK and again OK. The WEBI Refreshes and you can see all the prompt values at the cell A1. These are all the possible values stored for your BEx prompt variables (these values are fetched from BW system dynamically).
    Now, save this LiveOffice, Go to you dashboard. Connect your dashboard to your Live office. Go to Data-> connections-> Now, select the WEBI and in the right hand pane  go to Usage tab, here, Click on Trigger cell button on the right hand side and select A1 in you LiveOffice.
    It should work fine.
    Let me know.
    Rgds,
    Sreekul Nair

  • SkillBuilders Modal 2.0 plugin with a page-item button - pass parameters

    Hi all.
    I have an employee table, which is connected with a 1:N relationship to two tables: Emp_Tech_Fields and Emp_Kids.
    I've created a form to update / insert employee data, and I want to add two modal pages: one for kids and one for tech_fields. I think this will be the most usable way for this form.
    I've created two page-item buttons on that form, which open the respective modal pages successfully, but I can't dynamically pass them the EMP_ID in order to filter the data in them.
    Iv'e uploaded an example to http://apex.oracle.com/pls/apex/f?p=64921:1:6401028834215::::: guest / gu12est3
    Document Types is a report with a link-column which opens a modal page with data filtering, as it should.
    Employees (click an edit link) has two buttons: Kids, which open the modal form, but does not filter, and Tech Fields, which is filtered hard-coded with EMP_ID = 1 (see in the dynamic action definition).
    As far as I understand, this should be something quite easy and day-to-day, so I don't know why I did not find a way to do this. What am I missing?
    Any help will be greatly appreciated,
    Dovi.

    Hi Dovi,
    I had a look at your application and can see the link your using for the kids and tech fields modal isn't passing the session ID which is why it is asking you to log in again.
    Below is an example URL for your issue, it isn't tested though.
    f?p=&APP_ID.:20:&APP_SESSION.:::19:P20_EMP_ID:&P19_EMP_ID.:: You will need to change the page numbers of the pages and items to match the page numbers of yours. This is using the statically defined url inside the plugin itself, I have also only done this in an earlier version of plugin but believe the functionality is very similar.
    Hope this helps.
    Paul

  • Function module for GL account open items at a key date

    Is there a function module for "GL account open items at a key date" similar to following for customer and vendor accounts?
    BAPI_AR_ACC_GETOPENITEMS Customer account open items at a key date
    BAPI_AP_ACC_GETOPENITEMS Vendor account open items at a key date
    If not, please suggest any alternatives. I am looking to capture the output of FBL3N (GL account line item display) in a program.
    Thank you in advance.
    Prasanna Pujari

    hi,
    please go through the below link i think it will help u.
    http://sapfunctional.com/FI/GL/Balance.
    Regard
    Abhishek Tripathi

  • How to find out Which LineItem is having the wrong data

    Hi All,
    This is Idoc--File scenario
    Iam sending the Idoc from R/3 and it may have several Line items and related data.
    If One line item data is wrong also the Idoc will be errored Out in MONI,for this i used UDF in mapping  to through the Exceptions. So i have to goto WE05 in R/3 and i have to check each and every line item for wrong data and then i will repost it.
    the thing is how can i find out the Particular line item is caused for this Error.
    REgards

    Hi Sarvesh,
    No, in MONI it will not take us to the correct Lineitem which is having the wrong data.
    That is only the problem here.
    Any Views.........
    Regards

  • Error While enahling CDC(Change data capture) on Table.

    I am enabling Change data capture (CDC) on SQL server 2012 Enterprise edition(11.0.2100.60)
    . I am able to enable it on Database level with below SQL, but failed to enable on Table level.
    Use DatabaseName
    GO
    Exec sys.sp_cdc_enable_db 
    GO
    EXEC sys.sp_cdc_enable_table @source_schema = N'dbo',
                @source_name = N'TableName', @role_name = NULL
    GO
    Got Error like,
    'msg 22832, Level 16, State 1, Procedure sp_cdc_enable_table_internal, Line 623
    Could not update the metadata that indicates table [dbo].[TableName] is enabled for Change Data Capture. 
    The failure occurred when executing the command '[sys].[sp_cdc_add_job] @job_type = N'capture''. 
    The error returned was 22836: 'Could not update the metadata for database DatabaseName to indicate that a Change Data Capture job has been added. 
    The failure occurred when executing the command 'sp_add_jobstep_internal'. 
    The error returned was 14234: 'The specified '@server' is invalid (valid values are returned by sp_helpserver).'. 
    Use the action and error to determine the cause of the failure and resubmit the request.'. 
    Use the action and error to determine the cause of the failure and resubmit the request.'
    Would anyone help me to out of this?
    Thanks in advance..!!

    Related thread:
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/fa0c2a52-63b5-4a39-9f35-fe6f0eb21d1d/change-data-capture-on-table?forum=sqldatawarehousing
    Make sure SQL Server Agent is running.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Custom field in VA01 at item level in Additional Data B Tab

    Hi ,
    I have a requirement to add a custom field at item level in Additional Data B tab of VA01/VA02. We have to store the data in that field in the VBAP table also have to validate the data entered in the field when user hit save.
    Can any body tell me step by step procedure to do that.
    Appreciate your response.
    Thanks,
    Rohit

    Add append structure  ZAVBAP  in table VBAP in Tcode: SE11.
    In this structure include the new fields to be added to the screen.
    Then in Tcode : SE80
    take program: SAPMV45A
    take screen 8459  and add the new field.
    Also add the validation in the flow logic.

  • JSObject returns wrong date. How can I extract correct date from digital signature?

    I'm trying to extract name and date from digital signatures by using JSObject in Excel VBA, but JSObject returns wrong date. Year, month, hour and minute are correct, but only day is incorrect.
    Here is my code. I'm using Acrobat 8.1.3.
    Please tell me what's wrong with this code and how I can extract correct date from digital signatures.
    Public Sub sbTest()
    Dim oApp As Acrobat.acroApp
    Dim oPDDoc As Acrobat.AcroPDDoc
    Dim jso As Object
    Dim f As Object
    Dim sig As Object
    Dim strFileName As String
    Set oApp = CreateObject("AcroExch.App")
    Set oPDDoc = CreateObject("AcroExch.PDDoc")
    strFileName = "C:\Test.pdf"
    If (oPDDoc.Open(strFileName)) Then
    Set jso = oPDDoc.GetJSObject
    Set f = jso.getField("Signature1.0")
    Set sig = f.signatureInfo()
    Debug.Print sig.Name
    Debug.Print sig.Date
    End If
    Call oPDDoc.Close
    Call oApp.Exit
    End Sub

    Hi
    You can use TDMS file format to save the data. I have attached a reference Vi.
    On button click you can log the data or remove the case structure and continuous log the complete acquisition data.
    Thanks and Regards
    Himanshu Goyal
    Thanks and Regards
    Himanshu Goyal | LabVIEW Engineer- Power System Automation
    Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
    It Only gets BETTER!!!
    Attachments:
    Data Save in File.vi ‏35 KB

  • Item Button Positioning: Too far to the right with "Begin on New Field"

    I'm attempting to add an item button inline with other items. If option "Begin on New Field" is set the button is too far to the right, however, if this option is unset the button is too close to the item on to its left.
    Any suggestions on how I can get more granular conrol of this button's location?
    Thanks in advance,
    Jeff

    Jeff,
    For situations like this I highly recommend the Firefox web developer toolbar. Since ApEx makes heavy use of tables for layout, using the "Outline >> Table Cells" feature shows you how things are broken up (with td tags) and offers clues to resolving problems.
    There is also a CSS viewer along with a "Display Element Information" option that shows a full hierarchical view of any element on that page that you want to click on. Check it out. You'll be glad you did.
    BTW, in your case, it appears that you simply have multiple elements of differing heights that are being vertically-aligned differently. The date picker icon appears to be bottom-aligned with it's associated text box while all the other elements appear to be centered on the row. Correcting it? Don't know. I'm sure Vikas or Carl could come up with a DOM/CSS hack that could make it look the way you want it.
    Earl

  • Using Java Script With Item Button

    Hi All,
    please i want to know how can i call any java script function from an item button?
    i cannot find the "Action When Button Clicked" tab which is exist in a region button.
    Thanks in advance,
    Ola

    Hi,
    i am having a strange problem with java script
    i have defined the following commandlink in an af:table
    <af:commandLink
    text="lockUser"
    disabled="#{!bindings.lockUser.enabled}"
    id="cl1"
    partialTriggers="cl1"
    action="#{searchBean.lockUser}">
    <af:clientListener method="onlock1" type="click"/>
    </af:commandLink>
    I have defined the following java script function.
    <f:facet name="metaContainer">
    <af:resource type="javascript" >
    function onlock1(){
    if(confirm("Do you want to cancel")){return true;}
    else {
    return false;}
    </af:resource>
    </f:facet>
    when i click on the link, the dialog box appears asking if i want to cancel: when i press yes still the link action is activated. Kindly suggest where i am going wrong.
    the behaviour i need is to if cliked on yes then the link action does not activate and nothing happens. if i press any other button the link functionality should be activated and it should perform the locking functionality

Maybe you are looking for

  • Cost center planning for overhead calculation

    Gurus, I have a doubt regarding the cost center planning for overhead calculation. My scenario is: There is a service cost center from which a certain percentage I want to allocate to the products as overhead. Now while doing so I have created a cost

  • SQL Server slow on some records after insert

    Have an application that uses Web Service which picks packages with 250 records on the server. Each item is validated and inserted into the database. The problem is that with an empty table, the process inserts 20 records per second, although I still

  • Earplug is not working properly IPhone 5

    Headphones, sound quality is very poor, strong noise and can not be controlled

  • Mini bridge crashes?

    I tried to open two images through mini bridge as layers, it opened Bridge and then I received a message indicating that "Bridge Discontinued, Click OK to continue" this has happened multiple times. It is almost as if it crashed. Any ideas? Thanks.

  • BUG - remove hidden information - Acrobat remove some visible/live text (in all Acrobat versions)!!!

    hello I need to check many pdf for hidden/clipped text and remove them. Acrobat can find this BUT have bug. Acrobat mark some live visible text and this is problem if you click "remove" button. Here is evidence (6):