How to suppres Forms Default Locking message with user freindly message?

Hi,
In general if the record being edited by current user is locked by another user working on the application, forms would give the dialog box 'Could not reserve record(2 tries). Keep trying?' Is there any way by which i can suppress this message and give user friendly message by capturing it in any trigger.
Please suggest me?
Seshu

You should be able to modify the message to whatever you like by using an ON-MESSAGE or an ON_ERROR trigger. Then when/if the error happens, the default Oracle error message will be replaced by your message. An example is included.
IF message_type = 'FRM' and message_code = 40350 then
     MESSAGE(WAREHOUSE ID NOT FOUND');
     MESSAGE(' ');
ELSIF message_type = 'FRM' and message_code = 40401 then
     NULL;
END IF;

Similar Messages

  • How i can display default error message in alert window

    how i can display default error message in alert window
    i.e.,
    i have a text field with datatype Alpha
    if i am giving numbers.etc then it is displaying
    FRM-50001: Acceptable characters are a-z,A-z and space
    I want to display this message in alert window
    please tell how to do this

    In the on-error trigger :
    Capture error_code and error_text in a variable.
    Set the alert title to something meaningful.
    Set the alert message equal to the captured error information.
    Display the alert.
    declare
    v_alert varchar2(100) := 'ERROR' ; -- name of alert to use
    v_title varchar2(100) := 'Error !' ; -- text to display as title
    v_msg varchar2(200) := error_code || ':' || error_text; -- message to display
    v_btn number ; -- button pressed
    begin
    set_alert_property( v_alert, TITLE, v_title );
    set_alert_property( v_alert, ALERT_MESSAGE_TEXT, v_msg );
    v_btn := show_alert( v_alert );
    end;
    ----------

  • How to fill forms in adobe reader with lithuanian fonts?

    How to fill forms in adobe reader with lithuanian fonts?
    when i switch on my pc alt+shift to lithuanian language i can only use 2 lithuanian fonts, for other lithuanian fonts i get only blank
    could someone help me to solve this case?

    Adobe Acrobat.  A bit expensive just to change the document background...

  • How can i open my locked ipad with a forgotten apple id?

    how can i open my locked ipad with a forgotten apple id?

    If you’re being asked for your own Apple ID, either use Apple’s iForgot service or contact their Account Security team.
    If you’re being asked for someone else’s Apple ID, you need to contact the device’s original owner(if this is you, take the device and its purchase receipt to a physical Apple Store) or the person who set the lock.
    (122287)

  • How to get back default Lock Screen Image of Windows 8.1

    I recently upgraded windows 8 to Windows 8.1, but it reset my custom lock screen image .  I tried for default lock screen of windows 8.1.I can't find any default lock screen
    images of windows 8.1 (Only custom images are available). How to get default lock screen images? Does any any one know? please help me..

    The last "solution" works only for pressing Ctrl+Alt+Delete and clicking
    Lock. If you sign out of Windows and sign back in, that ghastly Windows 8.1 lock screen picture will come back.
    You can delete the img100.png file from your WinSxS folder: right lick on this file, click Properties, click the Security tab, click Edit, click Add, type your Windows user name in the white rectangle under "Enter the object
    name to select", click Check Names, click OK, then click Advanced, click Change, take ownership of the file, give yourself Full control over this file, click Apply and then OK. You may see your name three times in the Security tab (as user, administrator,
    and yourself). Make sure that each instance has full Control
    If this does not work, you can disable the Lock Screen: press Windows+R, type
    gpedit.msc, click OK, in the Local Group Policy Editor window that opens click on Computer Configuration > Administrative Templates > Control Panel > Personalization, right click on the "Do not display the lock screen" option, click
    Edit, check Enabled, then click Apply and OK.
    This, however, is a workaround rather than a real solution, which, it seems, Microsoft does not have.
    I have exactly the same issue with the horrid stripey thing. Furthermore, in Settings, Lock Screen Preview is completely blank both on current and past images.
    I've tried all the tips I've found around the web with no success. I get the horrid stripey thing back.
    I found this freeware called Lock Screen Customizer. Seems to work so far but time will tell. (Note that the download includes both win8 and win8.1 versions.)

  • How to make form field read only for users with certain permissions

    We need to make two form fields read only for users with certain permissions. Kindly guide me on how to do this in Infopath. I searched and there is an option to disable to the column, but no option to select user permissions. 
    Please give your suggestion on this. 
    thanks.

    Hi,
    See the link below:
    http://info.akgroup.com/blog-0/bid/69277/InfoPath-Restrict-visibility-to-users-in-a-SharePoint-Group
    Here you can add the fomatting action on the field to disable the field if those users belong to certain Sharepoint group (does not matter the permission levels though). Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • How to connect Forms 6i & Reports 6i with oracle 10g R2?

    Hey everybody,
    I need your help in connecting both Forms 6i & Reports 6i with Oracle 10g Release 2 db, MS Access(2003, 2007) and SQL database(Microsoft Visual Studio 2008). I am a newbie. I have installed all of them on my HP notebook, with Windows 7 Ultimate(32 bit OS) installed. I want to generate forms & reports by accessing data from above mentioned databases. Please provide me with the configuration steps.
    Thanks in advance...!

    Welcome to the forum ;-)
    Please be sure to review the following:
    http://blogs.oracle.com/shay/entry/10_commandments_for_the_otn_fo
    First, I think it would be a good idea if we can understand why you have chosen to use a nearly new operating system yet install Oracle products that are 10 years old (i.e. Forms/Reports 6i) on it. In general, this is not a good idea. Although running such an old version on Win7 can be made to work, the possibility of having problems is likely. If you are infact new to the product, using a configuration where you are likely to have problems may not be a good starting place. Also, you should be aware that Forms/Reports 6i was desupported several years ago. Documentation and other information is gradually being replaced by newer information, so resources for this old version are going away. The latest version of Forms/Reports is part of Fusion Middleware 11R2 (version 11.1.2.0) and requires WebLogic Server 10.3.5 (or 10.3.6) in order to be installed.
    Second, if you decide to stick with F/R 6i, are you planning to run the applications you create in a browser or as a client/server application? This information is important because how you connect to a database will slightly differ depending on which option you choose. Also, if you want to connect to non-Oracle data sources you can use ODBC for client/server or Oracle Transparent Gateway. However, if you plan to deploy the applications using a browser, Gateway is your only option for connecting to non-Oracle datasources. As for connecting to MS Access, I believe ODBC is your only option, so web deployment may not be an option.
    http://docs.oracle.com/cd/B19306_01/gateways.102/b14270/ch1.htm
    There are many other references available. Try a Google search.
    As for connecting to an Oracle database, this is generally easy. For the Builder(s) and client/server runtime to connect, add the db information to the tnsnames.ora found in the Oracle Home (installation directory) \network\admin. If you are unfamiliar with what goes in the file you can copy the entries created for your database. The db will have a similar file found in a similar place in its installation directory (Oracle Home). For example, you might find something like this:
    ORCL =
    (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = YOURSERVER.COM)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    )Simply copy this information to the end of your tnsnames.ora found where Forms/Reports is installed then restart any running Forms or Builders.

  • How do you set default programs for all users when deploying Windows 8.1?

    I have my Windows 8.1 image set up the way I want including the start screen, theme, etc. But how can I set the default programs for all users. Most of out computers are non-touch and I want the desktop apps (e.g. Windows Photo Viewer), not the store apps
    to be the default for opening pictures, videos, etc. Can that be done?

    Great question, this has been bugging me too!
    So, I did some research by using "Set Default Programs" app in Windows 8. Then I ran the super ProcMon.exe tool from Sysinternals.com <Thanks Mark!>
    After filtering out the junk, I could see some *interesting* writes to the registry:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpg\UserChoice]
    "Hash"="57y87/ogggU="
    "ProgId"="PhotoViewer.FileAssoc.Jpeg"
    But the "Hash" part had me concerned. I did some internet searching for the hash, and came across a post and a pointer to a blog with some answers.  This is both good news and bad.
    Background:
    One of the problems with Windows XP is that any program can come in and party on the entire system. No, I don't want you to put a shortcut on the desktop, install a crappy IE Toolbar, and change the default file association for *.jpg files to your app, I
    just wanted to play a stupid game. Since Windows 7, Microsoft has been attempting to block that functionality from the stupid applications, and give them back to the user. Take note of the last line in the ITaskbarList3 interface:
       Applications cannot programmatically pin themselves to the taskbar. That functionality is reserved strictly for the user.
    Of course that sucks for us IT Pros who may wish to create *default* working environments for corporate images, but there are some tricks we can do.
    Solution:
    This blog appears to have the answer:
    http://blogs.technet.com/b/mrmlcgn/archive/2013/02/26/windows-8-associate-a-file-type-or-protocol-with-a-specific-app-using-a-gpo-e-g-default-mail-client-for-mailto-protocol.aspx
    New for Windows 8 is a dism command: /Get-DefaultAppAssociations that allows you to export a control case from a known good computer. Microsoft the supports importing the exported xml file via GPO. For example, before I changed the file association, .AVI
    was pointing to the Modern App, after the change the /export-DefaultAppAssociations shows change to the new app:
    From:
    <Association Identifier=".avi" ProgId="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt" ApplicationName="Video" />
    To:
    <Association Identifier=".avi" ProgId="VLC.avi" ApplicationName="VLC media player" />
    I am still doing some investigation to see if a GPO is required, or if you can inject the association into a local user account. Also, if you do have some Modern Windows 8 Touch Tablets, it would recomend keeping most of the Modern App defaults in place,
    perhaps seperate GPO's for Desktops/Laptops vs Tablets?
    -k
    Keith Garner - keithga.wordpress.com

  • FORMCALC (or JS) Default date today with user override questions

    I have a date field where if null, I want today to be inserted. If the user overrides the today date and saves the form, I want the user entered date to stay.
    What I have in FORMCALC is:
    if ($.isNull)
    then
    $.rawValue = num2date(date(), DateFmt(2))
    endif
    The first part works, it populates with today, and I can overrided the date. When I save and then reopen the form, the date is "0".
    Any ideas here?

    I'm having the same problem as described above but I am using JavaScript to reflect the current date:
    var msNow = (new Date()).getTime();
    var d1 = new Date(msNow);
    this.rawValue = util.printd("mm/dd/yyyy", d1);
    The user can override the current date and save the form, BUT when the form is reopened it will run again and insert the current date over the user entered date.
    (I've tried several variations of "if (this.isNull)" to the above code which results in "01/00/0000" when opening the saved form --so it still doesn't retain the date entered by the user.)
    Does anyone know what code I need to add to to keep the user entered date that was saved with the form? Or if there is a better way to make the date calendar default to today, allow user override and save that user entered date on the form?

  • How to alter the default profile for multiple users

    I am trying to alter the default profile assigned to users during user creation to a new profile. I know to change the profile for one user using the syntax
    alter user abc profile profileabc
    The issue I have is that there are 100's of users under default profile and changing for each of them manually would be difficult. The approach that I see is to write a shell script where I connect to the db and get a list of all the users with default profile. Then I loop through the file making connection to the db each time and executing the alter statement.
    Please help if you think that there can be a more efficient approach to this.
    Thanks

    alter user abc profile profileabcspool newsql.sql
    select 'ALTER USER '|| USERNAME || ' PROFILE NEWPROFILE;' FROM DBA_USERS;
    SPOOL OFF
    @newsql.sql

  • How to create an default profile for every user on one machine? Deployment of configurations?

    On firefox 3.5.X i can copy an configured profile from an user-folder to the programm folder of firefox. \mozilla firefox\defaults\profiles.
    After an new user log in to the machine the default profile will get the actual profile of the new user. With all bookmarks, configurations and so on.
    But this doesn't work with the firefox 3.6.10? What changed? What will be the way i can get an default configuration for every user on one machine? I want to deploy the firefox with an default configuration in our enterprise? Why does the behaviour change?
    What to do?
    Thanks...

    No - there are no missing data, because nothing will be copied. The profile - folder does not work.
    There are the standard first start behavior.
    There might be another trick? Hint? Todo?
    Thanks.

  • How to avoid: Material data locked by another user

    Hi,
    'Material data locked by another user'
    We want to avoid this kind of situation  so that two different users can do the transactions on same material at same time.
    Regards,

    hi,
    As per SAP std. configuration its not possible...And if we the reason...then it good for a user...
    so, that once the user 1's work is not done fully user 2 can't work untill then and by this we avoid making of extra GR/IR or any of the duplicate documents...
    Regards
    Priyanka.P

  • How to Suppress form default message

    Hi I am having master-detail blocks in a form.
    When i make changes in details block and try to go to master
    record it is prompts me for to save changes or not?
    I want to make the changes posted without prompting
    In which trigger should i write the code.I cann't write in
    post-block,when-validate-record.
    Can Anybody Suggest me for a proper trigger.
    Thanks in Adv
    Sharath
    null

    SHARATH (guest) wrote:
    : Hi I am having master-detail blocks in a form.
    : When i make changes in details block and try to go to master
    : record it is prompts me for to save changes or not?
    : I want to make the changes posted without prompting
    : In which trigger should i write the code.I cann't write in
    : post-block,when-validate-record.
    : Can Anybody Suggest me for a proper trigger.
    : Thanks in Adv
    : Sharath
    hi sharath,
    :system.message_level = 15;
    set the ABOVE IN WHEN NEW FORM INSTANCE TRIGGER.
    null

  • How to use Forms Default Database Connection in java class

    When a form based application is started, a connection is made with underlying database. This is the Default (Primay) Database Connection.
    The problem is I have some of my business logic implemented in a java class. In this class I have to make a another connection with the same database. What I want to do is to use the original Database Connection in the java class. In this I may avoid the overhead of reconnection.
    Could anyone pls guide me in this way...

    you can't share the forms connection. Sorry :(

  • How to update form item in IR with value when it is null when pressing Go?

    Hello,
    in an IR i have created a Date Picker Item. This item i want when user enters page to have a default value. Also when the user clears this field i want the corresponding item to get a default value. i have achieved the 1st but not the 2nd. I need this replacement in the item value because it its needed in a between where date expression in the report query and i want to have the bind variables only, not NVL them in order to avoid scanning all partitions of table. Thi item is used as an extra search field in the Report and it is included in the Page Items to Submit | Advanced Report Attributes.
    How can i do this ?
    What i have set up atm:
    Source Used
    Always, replacing any existing value in session state
    Source Type
    PL/SQL Expression or Function PL/SQL
    Source value or expression
    TRUNC(SYSDATE)
    and also in Default :
    Default value
    RETURN TO_DATE('01/01/1980','DD/MM/RRRR')
    Default Value Type
    PL/SQL Function Body
    TIA

    Dionyssis ,
    Normally you could, but IRRs are a little different. You can use the page rendering options, but page submit options will not fire when the report is being redrawn.
    To get you started, add this to the item's HTML Form Element Attributes:
    onblur="this.value = $v('PX_HIDDEN_DATE_ITEM')"Then just create a hidden date item and give it a default value. This will keep you from having to get into JavaScript date formatting which is terrible when compared to Oracle.
    Regards,
    Dan
    http://danielmcghan.us
    http://www.skillbuilders.com
    You can reward this reply by marking it as either Helpful or Correct ;-)

Maybe you are looking for