Restricting User from creating new records using when-validate-record

Hi,
I have a requirement for which I have to restrict he user from creating a record in the Supplier Master form if the suppliier type is 'Affiliate Supplier'.
I have done the following setups
Seq 10
Description Restricting user from creating Affiliate records
Level Function
Enabled Yes
Condition:
Trigger Event WHEN-VALIDATE-RECORD
Trigger object VNDR
Condition "${item.VNDR.VENDOR_TYPE_DISP_MIR.value} is NOT NULL
and
${item.VNDR.VENDOR_TYPE_DISP_MIR.value} LIKE 'Affiliate%'
Processing Mode BOTH
Context
Level User
Value User Name
Action Sequence 1
Type Message
Action Description Saving Affiliate record
Language ALL
Message Type Show
Message Text You Cannot Create Affiliate records Here
Action Sequence 2
Type Builtin
Action Description Stop Proceesing
Language ALL
Action Enabled Yes
Builtin Type RAISE FORM_TRIGGER_FAILURE;
This is working good on one instance but when I moved it to another instance
when I query the form and try to navigate to the bank accounts tab of the form which is based on a differnt block i.e VNDR_USES block, the when-validate-record trigger fires there also and stops the processing.
Any suggestions on this would be higly appriciated.
Thanks in Advance.

Hi Srini,
Yes, it does work...but in a Form Session if i Create more then one Item, in some cases it fires for the first records and not sleeps for the second.
Sometimes it doesn't give any response.
Appreciated if you divert to the link to check the Pacthes for 11.5.10 on Form Personalization.
Please share any ideas/example if yiou have to achieve the below requirement.
Requirement:
Once New record is created , a Custom Procedure should be invoked.
with out closing Form i am able to create n number of Items, so for every Item it should invoke Custom PLSQL Code on Save.
Let me know if i can achieve the same in Custom.pll .....as i can use either of Options.(Form Personalization/Custom.pll)
Thanks & regards,
Edited by: user632004 on Mar 16, 2010 7:50 PM
Edited by: user632004 on Mar 16, 2010 8:09 PM

Similar Messages

  • How to prevent users from creating new folders in share folder directory?

    Hello guys
    I'd like to know How to prevent users from creating new folders in share folder directory but still keep their power of creating new folders in their personal 'my folder'?
    I tried changing the 'manage privilage ---- create folder' to deny certain user accounts, but by doing so, it also stops the user from creating new folders in their 'my folder', which is not good..
    I also tried going into these share folders and tried different access types such as 'change/delete', 'read', 'traverse folder' etc, but none of it work ideally. The 'change/delete' access still allows them to create new folders, 'read' access prevents creating new folders but also take away their power of saving reports..
    Any thoughts on how to take away their ability to ONLY create new folders in share folder areas without affecting their other privileges?
    Please advise
    Thank you

    Easy, on the shared folders root folder only give them 'read' or 'traverse folder' but on the the folder inside the shared folders root folder give them 'change/delete'. That means they can change anything inside those folders but not create any folders at the shared folders root level.

  • Restricting users from Creating Request in OBIEE

    Hi,
    I want to restrict users fron creating request, in the Manage Priviledge section i was not able to find the where i could restrict the user from *"Creating Request"*, so is it possible to restrict users fron creating request if yes from where.
    Regards,
    Amit

    look for "Access to Answers" under Access in Manage Privileges. That is where you restrict access to creating requests.
    - Mahesh

  • Is it possible to restrict the user from creating a sibling and allow him to ONLY create child nodes in DRM?

    When in a hierarchy, a user right clicks on a node to crate a new node, he has two options
    -Child
    -Sibling
    Is it possible to restrict the user from creating a sibling and allow him to ONLY create child nodes?
    Business cases:
    1. different level nodes need to have different prefixes.
    - Thus, the default prefix property definition uses the level number to assign a prefix
    - Also, a validation, to ensure the correct prefix, uses the level number
    But if the user can create a child and a sibling then the default prefix will only be right for a single case and not both.
    Thanks

    If the images are exactly the same size then make sure the layer with the mask
    is the active layer and in the other documents go to Select>Load Selection and choose
    your document with the layer mask under Source document and under channel choose the layer mask.
    After the selection loads press the layer mask icon at the bottom of the layers panel.
    MTSTUNER

  • Imported Form and sub-form from another database. Sub-form not creating new records tied to parent form's data.

    I have imported all objects from an old access db (.adp file) into a new db (.accdb).  All of my data lives in sql server so I have added all the tables and views to the .accdb as linked tables.  My forms all connect to data, but I am having issues
    with a sub form.  The sub form does not allow for creation of children records tied to the parent record the way the old db did/does.
    Correct - old format .adp file (notice the empty second record in sub-form with the defaulted date of today's date):
    Incorrect - new .accdb file (notice the lack of empty second record in sub-form like above):
    If I click the create new record icon in the bottom of the subform, it creates a completely blank record not tied to the parent record (fields blacked out in screen shots above).  When using this button all parent record fields are blank.  
    I have also verified the child table used in the sub-form has a valid Fky relationship to parent table used in the parent form.
     

    Have you checked each forms 'Filter' property (in Design view) to make sure they are blank and that each forms 'Filter On Load' property to make sure it is set to 'No'? Also, you might try inserting the following commands in each forms On
    Open event:
    DoCmd.RunCommand acCmdRemoveAllFilters
    DoCmd.ShowAllRecords
    If you can open each forms Record Source and they are showing that new records are able to be entered (the new record * is showing at the bottom of the recordset), then check each forms On Load and On Open events to make sure there is no filtering.
    In addition, check any macro or VBA commands behind the button that opens the main form to make sure there is no SQL filtering in the DoCmd.OpenForm command.
    If one of the forms Record Source does NOT allow new records, then you will need to change that Record Source so the new record * indicator shows.
    Out of ideas at this point.

  • Restrict users from using Manual series

    Hi SAP,
    Is there a way to restrict users from using the Manual series?
    Thanks,
    Janice

    Hi Rahul,
    Ok, i have seen already the authorization for document manual numbering and it is available only for 8.8 versions and not on 2007 version of SAP.
    Anyway, when im doing the testing i found out that for banking transactions like incoming, user can still use the manual series even if he has no authorization for manual document numbering.
    Another concern from our client was  the use of manual series only, is it also possible in SAP? I tried to give user authorization in the manual document numbering and no authorization to series group no but user cannot already open the transaction window. Let us know if their inquiry is possible so i could inform them that only manual series can be restricted.
    Thanks for your help.
    Regards,
    Janice

  • How to clear the previous  filter text when creating new record??

    Dear All,
    my question is i i created table having filter and sorting.
    when i m searching data through filter text data is coming but i want to clear that text(filter text) when i am creating new record.
    for my case when i am creating new record all blank field is coming but in that filter text box previous data is coming which one i was searching.
    but i need when i will create a new record tat filter text should be clear.
    Thanks
    Damby

    Damby, please tell us your jdev version.
    Check my blog http://tompeez.wordpress.com/2011/10/29/jdev-how-to-reset-a-filter-on-an-aftable/ you can add this to the button you use to create the new record.
    Timo

  • My friend gave me ipod touch with all his accounts, i created new accounts but when i went on the appstore and tried to update apps installed by him,i was asked his account's password! i dont know his password.how can i use my account to update apps?

    my friend gave me ipod touch with all his accounts, i created new accounts but when i went on the appstore and tried to update apps installed by him,i was asked his account's password! i dont know his password.how can i use my account to update apps?

    You can't.  Apps and really all content purchased/downloaded through one Apple ID is forever tied to that Apple ID.  In the case of Apps they will always request that Apple ID to update as they are licensed to that Apple ID.
    In reality, the Apps were licensed to that Apple ID by the developer.  And cannot simply be given away to you for you to use.
    He should have wiped the iPod clean so you could set it up for your use without any of his accounts or purchased content as you are not really licensed to any of those Apps.
    Your friend should have followed this support document before giving the iPod to you:
    What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support

  • I'm getting this error message: "User not registered for online use" when i'm trying to download music/ track names from a CD into ITunes on my Windows 8 PC.  I'm registered and my itunes account/ appleID are all correct and working.

    I'm getting this error message: "User not registered for online use" when i'm trying to download music/ track names from a CD into ITunes on my Windows 8 PC.  I'm registered and my itunes account/ appleID are all correct and working.

    The ""not recognized for on-line use". error is associated with the Gracenote service that iTunes uses to look up and retrieve metadata for CDs.  Some users have reported that this error occurs when trying to import from CD, subsequent to upgrading to version 12.  A number of slightly different solutions have been reported (though all of a similar nature).
    Try walking through the following steps - before starting you may have to enable hidden files and folders to be viewed - in Windows 7 / Windows Explorer select Organize > Folder and search options, then on the View tab make sure that Show hidden files, folders and drives is selected.  Without this you won't see the AppData folder in C:\Users\username\
    Exit iTunes
    In Windows Explorer, go to the folder C:\Users\username\AppData\Roaming\Apple Computer\iTunes
    Delete the following files:
    CD Info.cidb
    com.apple.iTunes.Gracenote.plist
    Restart iTunes
    Insert a CD and see if details are now correctly retrieved from Gracenote
    If this doesn't work:
    In iTunes, select Edit > Preferences and make a note (or take a screenshot) of your preferences settings in all relevant tabs
    Exit iTunes
    In Windows Explorer, go to the folder C:\Users\username\AppData\Roaming\Apple Computer\iTunes
    Delete the following file:iTunesPrefs.xml
    Restart iTunes
    Insert a CD and see if details are now correctly retrieved from Gracenote
    If this second procedure does work, you'll need to restore other iTunes preferences settings to those that you noted in step 1.
    If this one didn't work:
    Exit iTunes
    Check the following folders:
    C:\Users\username\AppData\Local\Apple Computer\iTunes
    C:\Users\username\AppData\LocalLow\Apple Computer\iTunes
    Delete any copies of the following files:
    CD Info.cidb
    com.apple.iTunes.Gracenote.plist
    iTunesPrefs.xml
    Restart iTunes
    Insert a CD and see if details are now correctly retrieved from Gracenote
    Again, if this procedure does work, you'll need to restore other iTunes preferences settings to those that you noted in step 1 of the second procedure. If you're still not able to retrieve CD info:
    Exit iTunes
    In Windows, select Start > Control Panel > Programs and Features.  Find the entry for iTunes, right-click and select Repair.
    When this process has finished, restart iTunes
    Insert a CD and see if details are now correctly retrieved from Gracenote
    If none of these have worked (and almost everything I've seen suggests you should be OK by this point), you may have an issue with the installation and configuration of iTunes itself.  If you have got this far, see turingtest2's notes on Troubleshooting issues with iTunes for Windows updates for advice on how to remove and replace of all components of iTunes.

  • When creating new records in any entity getiing error in mscrm 2011

    Dear all;
    when i try to create new record in any entity for example opportunity i am getting this error 
    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Server was unable to process request.Detail:
    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
      <ErrorCode>-2147023878</ErrorCode>
      <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic"
    />
      <Message>Server was unable to process request.</Message>
      <Timestamp>2013-09-04T12:10:21.3522306Z</Timestamp>
      <InnerFault i:nil="true" />
      <TraceText i:nil="true" />
    </OrganizationServiceFault>
    please help

    Hi Anwar,
    As suggested above enable the trace, This would help you get the exact and detailed error.
    Steps:-
    1. Start the trace
    2. Reproduce the Error
    3. Stop the trace.
    4. Look in the log file and search for error.
    Thanks,
    Prasad
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

  • In oracle forms how to restrict creating new record

    I have a multi record block, I dont want to create new record. If I use the down key after the last record control is moving to next record. I dont want this to happen. I want to scroll between first and last record.
    Can anyone tell me ?

    Look up the Forms Help for 'system.last_record'.
    I'd code the KEY-DOWN trigger on the block as...
    IF :System.Last_Record = 'TRUE' THEN
    Bell;
    Message('You are on the last row');
    ELSE
    down;
    END IF;
    This avoids any processing or validation work being done on leaving the current record or creating the new record.

  • I have creat new apple id when i sign in 1st time this will say this apple id has not yet been used in itunes store? please help

    i have creat new apple id when i sign in 1st time this will say this apple id has not yet been used in itunes store? please help

    I changed my dads password, then went back to sync my apps and when it came to the Authorization, I entered his account name and the new password (which was by the way accepted and changed correctly) to have it come up on the screen as the incorrect password...REALLY!!! I went back and changed the password again...guess what? Same result "inncorect password".
    As I mentioned my dad PASSED AWAY, there is no way I can ask him what his password originally was, i can't accesses his email account as it no longer exists.
    What am I supposed to do, this is very frustrating.
    If I use my new account that's in my name, the Authorization screen just keeps asking for my Dads account.

  • When I select HTML from Create New, it appears in Doc tab as untitled-1.XHTML

    Every time I select HTML from Create New in the Welcome screen, it appears in the Document tab as untitled-1.XHTML, with a green icon.  In the past it's always come up as document-1.html, with no icon, as in my textbook.  I don't know why it's doing this, whether it's important (I would guess that it is), or how to change it.  I'm new to Dreamweaver.  Any help would be much appreciated...

    Which version and build # of DW do you have?  You'll find it under Help > About Dreamweaver.
    Also, which preferences have you specified for new documents?
    Go to Edit > Preferences > New Document. 
    The default extension should be either  .htm or .html, .shtml or .php -- depending on the type of files you work with most. 
    Nancy O.

  • How can I make the popup with empty fileds and create new record?

    I would like to use a popup to create new record.
    I created a af:popup by drag and drop a VO from data control to jsff. then, I created a button and place a af:showPopupBehavior. I was able to popup window by click the button.
    however, the window filled with the information from the 1st record. and when I select a record in table and click popup, the popup is filled with that record.
    How can I make the popup with empty fileds and create new record by saving the popup?
    Thanks

    You can have edit and new buttons, in the PopupFetchEvent identify button source (using popupFetchEvent.getLaunchSourceClientId()) if new button clicked clear the binding using below code.
    If you want to see empty fields, in the popup PopupFetchEvent clear the input component bindings.
    resetBindingValue("#{bindings.<componentid>.inputValue}", null);
        public static void resetBindingValue(String expression, Object newValue) {
            FacesContext ctx = FacesContext.getCurrentInstance();
            Application app = ctx.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = ctx.getELContext();
            ValueExpression valueExp = elFactory.createValueExpression(elContext,expression,Object.class);
            Class bindClass = valueExp.getType(elContext);
            valueExp.setValue(elContext,newValue);
        }

  • Restrict users from archiving PST to local computer

    Hi all,
    I would like to restrict users from archiving emails in outlook to the local computer. We have a serious problem that users are archiving emails to the local computer and then they can copy those emails to external devices or that they can attach this local
    pst file to their personal outlook profile which they can forward it to external recipients. We have ran into a serious problem now and I am try to resolve this problem by restricting users to archive the emails to their local computer. Is there any way I
    can do this?
    Only designated users should be able to archive the outlook emails (from the support team) and they can save it to a central file server.
    Please share me your thoughts. Thank you all for taking time to read this and for your suggestions.

    Hi Friend,
    Use Group Policy Feature and enable the “DisablePST” Reg value as it will not allow users to create new  PST file or even remove the Archive function from their Outlook interface.
    Registry path to disable PST File authentication (Group policy):
    HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Outlook
    Take a brief explanation about various restrictions over PST File:
    https://www.simple-talk.com/sysadmin/exchange/using-group-policy-to-restrict-the-use-of-pst-files/
    Note: Improve community discussions by marking the answers helpful otherwise respond back for further help.
    Thanks
    Clark Kent

Maybe you are looking for

  • Creation of Variant BOM using Simple BOM

    Hi I am havign a production BOM, i wanted to create Variant BOM using Production BOM. Pls let me know, whether we have any Function modules for the same. Regards MD

  • MSI GT70 20C WIN 8.1 UPGRADE ISSUES!!!!

    Hello everyone  A bit of a quagmire here.  I have a new MSI GT70 20C.  It is an awesome gaming machine to say the least.  I decided to choose the best of two evils and decided to upgrade to WIN 8.1..... Here is the issue: 1:Uninstalled the old Killer

  • Java.lang.NullPointerException while getting this.getForm()

    public class Test extends PageProcessorComponent {   public DynPage getPage(){     return new Test DynPage(); public static class Test DynPage extends JSPDynPage{     public void doInitialization(){          public void doProcessAfterInput() throws P

  • Multiple HANA systems connection for Smart Business Fiori Apps

    Hi Experts, I could configure and run standard Fiori apps through launchpad and able to configure all type of Fiori apps through web dispature and single HANA system1 [retail] As per the recommendation from SAP, we have separate HANA system2 for fina

  • 2LIS_13_VDHDR  confusion

    Hi  Team,     We  have  0doc_number  in  header  data  for Billing  Header extractor VDHDR. Do we   map this  to  Billing  invoice  number.? If  no,  where does  the  billing invoice  number  map to. I'm  confused  with 0doc_number showing in  header