How to ask user to discard or save changes in a custom form

Hi
let's take emp, dept... whenever user is updating DNAME if it has been assigned to more than one employee.... the form should show a warning message and should ask user to SAVE or DISCARD option?
How can you do that. is there any built-in function or trigger to pop-up SAVE or DISCARD window option?
Thanks
ESL

Hi
Key-next-item trigger is not working. my block is a MULTI-RECORD block. i wrote below code in PRE-UPDATE trigger, it's working when i select SAVE and not working when i select DISCARD option(alert has two buttons SAVE and DISCARD)
DECLARE
lv_assigned_more_prd NUMBER;
alert_button NUMBER;
e_assigned_more_prd EXCEPTION;
PRAGMA EXCEPTION_INIT ( e_assigned_more_prd, -100501);
BEGIN      
IF :System.record_status = 'CHANGED'      THEN
SELECT count(*)
INTO lv_assigned_more_prd
FROM xxgl.xxgl_sdroy_product_je_rules je
WHERE je.je_rule_id = :XXGL_SDROY_JE_RULES_V.je_rule_id;
IF lv_assigned_more_prd > 1 THEN      
     alert_button := Show_Alert('ALERT001');
     IF alert_button = ALERT_BUTTON2 THEN
     RAISE e_assigned_more_prd;      
END IF;           
END IF;     
END IF;
EXCEPTION
WHEN e_assigned_more_prd THEN          
raise form_trigger_failure;
WHEN OTHERS THEN
fnd_message.set_string(' Oracle Error -- '||SQLERRM);
fnd_message.error;
raise form_trigger_failure;
END;

Similar Messages

  • In Ver. XI it always asks if I want to save changes-even tho I made no changes. How can I stop that?

    In Ver. XI it always asks if I want to save changes-even tho I made no changes. How can I stop that?

    Thank you Pat..that was very kind of you to help. And yes-it does happen with every pdf. But you're right-if I just say yes one time..then I'm not prompted the next time I open that particular pdf-but it does make me confirm I want to write over the same name the file had already in order to save it.
    I made all my pdf's with the Chrome save as pdf command..never had a error message in prior Acrobat when closing the file.
    All the best Pat

  • HOW TO SUPPRESS "DO YOU WANT TO SAVE CHANGES YOU HAVE MADE"

    ORACLE APPS CUSTOM FORM
    WHENEVER I AM PRESSING CTRL+F11 AND SERACH ABOVE PROMPT IS COMING. HOW TO SUPPRESS THAT ONE.

    The message is occurring because the user (or your code) has changed something in the form. Forms needs to know what you want to do with the changes before it can continue.
    When you suppress this message, then when the user has changed something in the form, he won't be asked to save his changes. What do you plan to do then? If you silently discard his changes, he may not be happy with you. If you silently save his changes he may not be happy either. So let the user see the message and let him decide what to do.
    If your code is changing something in the form (not the user), then you need to find out what is being changed. Once you know, then you can fix it.

  • How to allow user chaning his password in OBIEE 11g weblogic custom LDAP?

    Hi,
    How to allow user chaning his password in OBIEE 11g weblogic custom LDAP?
    I need to give user an option to do so, without the intervention of any Administrator. I also do not want to make user a Administrator else he will be able to login in weblogic and can do any damages unknowingly.....
    Regards,
    Rahul

    Hi,
    Replace the line in the instantconfig.xml
    <WebMessage name=”kmsgChangePasswordLink”><!–<HTML><sawm:messageRef name=”kmsgUIChangePassword”/></HTML>–></WebMessage>
    with
    <WebMessage name=”kmsgChangePasswordLink”><HTML><sawm:messageRef name=”kmsgUIChangePassword”/></HTML></WebMessage>

  • After printing, Pages asks if I want to save changes.

    When I print a document from Pages and then close the document, Pages always asks if I want to save changes. I can save the document, print it, and immediately try to close it and I still get the warning message. Is there a reason that Pages doesn't already know it's been saved?

    There is no such feature and my guess is that happily, this behavior will not change.
    It's the same for every Apple program.
    All of them saves several useful informations from the print task:
    <sl:SLLastPrintedDateProperty>
    <sl:date sfa:ID="NSDate-2" sf:val="2008-12-21T16:23:18+0100"/>
    </sl:SLLastPrintedDateProperty>
    <sl:slprint-info sfa:ID="SLPrintInfo-0" sl:page-width="842" sl:page-height="595" sl:page-scale="1">
    <sf:page-margins sfa:ID="SFWPMargins-0" sf:top="20" sf:left="20" sf:bottom="56.692916870117188" sf:right="20" sf:header="0" sf:footer="0"/>
    <sl:print-info>
    <sl:NSJobDisposition>
    <sl:string sfa:string="NSPrintSpoolJob"/>
    </sl:NSJobDisposition>
    <sl:NSPaperSize>
    <sl:value>
    <sfa:size sfa:w="842" sfa:h="595"/>
    </sl:value>
    </sl:NSPaperSize>
    <sl:NSMustCollate>
    <sl:number sfa:number="1" sfa:type="c"/>
    </sl:NSMustCollate>
    <sl:NSVerticalPagination>
    <sl:number sfa:number="0" sfa:type="i"/>
    </sl:NSVerticalPagination>
    <sl:NSPagesAcross>
    <sl:number sfa:number="1" sfa:type="i"/>
    </sl:NSPagesAcross>
    <sl:NSVerticallyCentered>
    <sl:number sfa:number="1" sfa:type="c"/>
    </sl:NSVerticallyCentered>
    <sl:NSPrintAllPages>
    <sl:number sfa:number="1" sfa:type="c"/>
    </sl:NSPrintAllPages>
    <sl:NSPaperName>
    <sl:string sfa:string="A4"/>
    </sl:NSPaperName>
    <sl:NSScalingFactor>
    <sl:number sfa:number="1" sfa:type="f"/>
    </sl:NSScalingFactor>
    <sl:NSCopies>
    <sl:number sfa:number="1" sfa:type="i"/>
    </sl:NSCopies>
    <sl:NSPrinter>
    <sl:printer sfa:ID="NSPrinter-0" sl:type="Generic PostScript Printer"/>
    </sl:NSPrinter>
    <sl:NSPrintProtected>
    <sl:number sfa:number="0" sfa:type="c"/>
    </sl:NSPrintProtected>
    <sl:NSRightMargin>
    <sl:number sfa:number="72" sfa:type="f"/>
    </sl:NSRightMargin>
    <sl:NSHorizontallyCentered>
    <sl:number sfa:number="1" sfa:type="c"/>
    </sl:NSHorizontallyCentered>
    <sl:NSBottomMargin>
    <sl:number sfa:number="90" sfa:type="f"/>
    </sl:NSBottomMargin>
    <sl:NSLeftMargin>
    <sl:number sfa:number="72" sfa:type="f"/>
    </sl:NSLeftMargin>
    <sl:NSFirstPage>
    <sl:number sfa:number="1" sfa:type="i"/>
    </sl:NSFirstPage>
    <sl:NSLastPage>
    <sl:number sfa:number="2147483647" sfa:type="i"/>
    </sl:NSLastPage>
    <sl:NSTopMargin>
    <sl:number sfa:number="90" sfa:type="f"/>
    </sl:NSTopMargin>
    <sl:NSDetailedErrorReporting>
    <sl:number sfa:number="0" sfa:type="c"/>
    </sl:NSDetailedErrorReporting>
    <sl:NSHorizonalPagination>
    <sl:number sfa:number="2" sfa:type="i"/>
    </sl:NSHorizonalPagination>
    <sl:NSPagesDown>
    <sl:number sfa:number="1" sfa:type="i"/>
    </sl:NSPagesDown>
    <sl:NSOrientation>
    <sl:number sfa:number="1" sfa:type="i"/>
    </sl:NSOrientation>
    </sl:print-info>
    </sl:slprint-info>
    Yvan KOENIG (from FRANCE mardi 6 janvier 2009 11:40:08)

  • How To dynamically change values in custom form

    Hi,
    Requirement is to change values in custom form dynamically that are passed by Global variables through standard form .
    I have used forms personalization to call custom form and passing some parameters to custom form using global variables.
    Now i have to change values displayed in custom form(already opened) when user moves from one record to another record.
    I cannot change the standard form.Only i have write logic in custom form that dynamically changes values as user moves from one record to another in standard form.
    Global variables values will be different for each record.
    Pls let me know how i can achieve this.
    Regards
    Udit

    Udit,
    Your question should be posted to the Enterprise Business Suite (EBS) forum. This forum is dedicated to non-EBS forms development.
    Craig...

  • How to display success message when data is changed in the custom tab in MM

    Hi,
    I have added a new custom data tab in the MM01/MM02/MM03 transactions. Whenever I do changes to fields in the custom tab in MM02 transaction, and no changes in the standard tabs, I will get a message stating "No Changes Made".
    But if I do changes in the standard tabs, it works as usual with display of message "Changes to particular material has been done.
    Please let me know, if anyone of you know, how to display the success message if the changes to the custom tab is done.
    Thanks in advance,
    sudhanva

    Hi Sudhanva,
    The exit EXIT_SAPLMGMU_0001 is a function exit that you can use for custom validation but not to add custom tab/screen.
    But the message issued by SAP is not related to this Function Exit.
    If you have used a Screen Exit, then there must be some Function Exits also in the same Enhancement using which you can assign the value of custom fields to/from the standard structure. Thus when the value of any custom field is changed the system can understand that the some changes have been changed and will  not issue the message.
    In case you have used a BADI, there can be other methods in the BADi using whcih you can assign the value of custom fields to/from the standard structure. This might also prevent the message from being displayed.
    I could try giving you further details if you can provide the name of the Enhancement/BADi that you used to add the additional tab.
    Hope this helps.
    Regards,
    Abhisek.

  • How to ask user to enter value in select statement

    Hi,
    Can anyone tell me syntax of select statement where i can ask user to enter value .
    for example i am trying to use belowthing but it displaying error
    select * from emp where empname=:empname
    SP2-0552: Bind variable "empname" not declared.
    2.Is there any data dictionary table to see all pl/sql procedures and corresponding code?
    Thanks,
    sri

    user632733 wrote:
    Can anyone tell me syntax of select statement where i can ask user to enter value .None. The SQL engine resides on the server. It is incapable of prompting for data entry on the client.
    The client interacts with the user. The client is suppose to:
    a) prompt for variable values
    b) send a SQL statement to Oracle
    c) bind values to bind variables in the SQL statement
    for example i am trying to use belowthing but it displaying error
    select * from emp where empname=:empnameIn SQL*Plus, you need to create a bind variable:
    SQL> var empname varchar2(200)
    And then assign a value to it:
    SQL> exec :empname := 'John Doe';
    Note that this is still not ideal - as the assignment is also done via the server and sends a PL block to the server. This block contains non-sharable code and this can lead to fragmentation of the server's Shared Pool.
    But it does illustrate the basic principle.

  • SAP MDG - How to activate user settings for Dropdown box Change request?

    Hello Expert,
    I have a question related to Hide DropDown Box Change request.
    When i save change request via collective processing, Change request Dropdown box is displayed. When, i select Change request dropdown list, only change request description is displayed,  not change request number.
    So how to activate access key from user settting ? Could you show me the menu path in order to activate it?
    Best regards,
    RAOELISON

    This is a generic Web Dynpro question and not specific to MDG. Any way, this is how you can do it:
    Right-click the field
    Select: Use Settings --> More
    Check the "Key Visible" checkbox
    Keep in mind this is a user-specific setting and not a global setting.

  • How to disable 'do you want to save changes to...'

    Is it possible to disable the 'do you want to save changes to...' pop-up in Reader 10.1.1 LS? I'm using CrystalViewer to read reports - but I don't edit them so don't need to save any changes.

    Make sure that the PDF files are not corrupted. Otherwise Adobe Reader repairs the files and will save the changes.

  • Edit item in list doesn't allow save changes (save disabled on a custom form)

    Hi folks
    I created a custom form in InfoPath.
    The form works fine when adding a new item. It adds everything entered into the fields, and you can see it in the list.
    When I click on the one of the existing entries, it shows OK. I click "edit item" and it allows me to change any field... but the SAVE button is greyed out, and I cannot save any changes.
    If I change the form to go back to default and stop using my custom InfoPath form, then I can save changes no problem.
    I checked the form in Infopath, and it is not ReadOnly. I have perms to the list (as seen by using the default form ok).
    Any ideas?
    Thanks

    Hi,
    Can you check whether Allow users to submit this form is checked under Submit Option.
    See the screen print below -
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • How to allow user to modify his own data with a Portal Form

    Hi,
    I have a form (Master-Detail) to update a user-profile (Master) and the user's skills (Detail).
    How can I make sure, that a user can only modify his own profile - assuming the master table has an attribute containing the users loginname for Portal?
    thanks!
    bye Stephan...

    Yes, along with the default value of wwctx_api.get_user, you also need to specify the default value type. In this case it should be Expression returning Varchar2.

  • How to prevent users from seeing my email address in a mailto: form?

    I've created the form but everytime I test it my email opens up and shows who the form would be mailing to. I do not want users to be able to see my email address. Is there anyway to encrypt it or black it out, etc? 

    Alright, I have created my php form and everything works like I would like except for the information in the email. When I tested it I recieved an email with the body of my form but none of the information that was typed in. What do I need to do?
    php
    /* Subject and Email Variables */
        $emailSubject = 'Test Form';
        $webMaster = 'I blacked out my email';
    /* Gathering Data Variables */
        $emailField = $_POST['email'];
        $stateField = $_POST['state'];
        $districtField = $_POST['district'];
        $votersField = $_POST['voters'];
        $body = <<<EOD
    <br><hr><br>
    Email: $email <br>
    State: $state <br>
    District: $district <br>
    Voters: $voters <br>
    EOD;
        $headers = "From: $email\r\n";
        $headers .= "Content-type: text/html\r\n";
        $success = mail($webMaster, $emailSubject, $body, $headers);
    /* Results rendered as HTML */
        $theResults = <<<EOD
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <p>Your email has been sent</p>
    <p> </p>
    </body>
    </html>
    EOD;
    echo "$theResults";
    ?>

  • How to promt user to save changes when changing non-database fields?

    Hi,
    I have a form with two tabs. The datablock Block_1 on tab_2 is based on a database view. But all the displayed items of Block_1 are non-database items. Whenever a user changes some items in Block_1 and presses save button, the values from non_db items get copied to the db_items (based on view) and commit_form is called. This works fine.
    But the problem here is: after changing some items in block_1, if the user navigates to some other option/form from the menu , the form doesnt promt the user to 'save the changes' and all the changes made are lost. How can I fix that?
    I have a form level key-exit trigger, (which does not fire) with following code :-
    Declare
      X  Number;
      alert_is             alert;
    Begin
    If :System.Mode = 'ENTER-QUERY' Then
           Exit_Form;
    Else
      If :System.Form_Status In ('NEW','QUERY') Then
           alert_is := FIND_ALERT('TMPL_EXIT'); -- "Are you sure you want to exit?"
        X := Show_Alert('TMPL_EXIT');
        If X = Alert_Button1 Then
           Exit_Form(no_validate);
        End If;
        Else
           Exit_Form;
      End If;
    End If;
    End;

    Slava Natapov wrote:
    Samita wrote:
    Whenever a user changes some items in Block_1 and presses save button, the values from non_db items get copied to the db_items (based on view) and commit_form is called. Try to copy values to the db_items not in save button, but in WHEN-VALIDATE_ITEM of non_db items.- I created the non-db items becoz, it was asking me 'Do you want to save changes', even when I only queried data from the view (becoz i was doing some computations while displaying the items. and the form assumed that the DB items were begin changed ). Inorder to get rid of that problem, i used mirror_items (non-db) for all the db items.
    So under this scenario, when i copy values to the db_items in WHEN-VALIDATE_ITEM trigger of non_db items, the form considers the db_items are changed and asks 'Do you want to save changes' even when the user has not made any changes and only queried data.
    Edited by: Samita on Dec 9, 2009 10:12 AM

  • How do I stop Photoshop CS6 from asking to save changes to a file when closing the file, after "savi

    I save a lot of files to "save for web". After saving PS asks if I want to save changes to the original file. I never want to save the changes to the original. Since the default is to change the file I am afraid I will accidentally OK the change without wanting to. I would like it to stop asking and just not save it. Is there a way?

    Stephen Douge wrote:
    I never want to mess with originals. I am asking because I want to make sure I stated the question properly in the first place. Thanks.
    Then don't work on the original open the file using Photoshop menu file>open once its in Photoshop as a document dupe the document and close the original document. Photoshop will just close the original and not ask it you want to save the original document for no changes were made to it.  You could easily record an action to automate this process. The first step in the action would be an inserted menu item menu File>Open.  The second step Duplicate Document, third step select previous document the fourth and final step close. The action would look like this recorded Work in the dupe and save it under the name you want to where you want it saved. The First step is an interactive you will be able to open any file Photoshop has support for that you have access to.

Maybe you are looking for

  • Ejecting a Firewire DV camera daisy chained vis a External Firewire HD

    I have my firewire DV camera daisy chained via my firewire external Hard drive. When I unplug my firewire dv camera, after a little while I get a message on my mac that a device was removed incorrectly and the external firewire dirve dismounts. This

  • Problem with file used by external table

    Hi all, following situation: I am creating my file on unix/solaris and ftp it to oracle server which is running on windows. I am getting following error when I try to do select on the external table I get: ORA-29913: error in executing ODCIEXTTABLEFE

  • Content server  configuration in  CSADMIN

    Hello Experts, i had install the  Content server 640/MaxDB 7.6on Solories platform . how to configure the CSADMIN in R/3 system . when we are adding the R/3 system , it need to mention  the HTTP script what i  need to mention in the field: HTTP scrip

  • Adobe Air - HTML, Javascript and Threading

    Hello, I am developing an application using Adobe Air - HTML and Javascript. What I am trying to do is to implement threading in Javascript. I am using implementing threading in Javascript as per this Neil blog. Click Here. It clearly says that this

  • Creating WSDL

    Hi All: While creating WSDL what does the Step 3 : Specify the interface means in ID>Tools->Define WS Here I am creating SOAP to File (Asynch Scenario) So while creating .wsdl from ID...what I have to specify in the Step 3 of the Define Webservice wi