Delete Allowed EL Expression

Hi
I am trying to restrict users from updating and deleting rows based on certain conditions.
I have put the following into the Update Allowed and Delete Allowed
#{data.StudentsPageDef.StudentsCustomerStatus.inputValue=='ACTIVE'}
When I look at the generated page the Read Only for the columns is set to
#{!(data.StudentsPageDef.StudentsCustomerStatus.inputValue=='ACTIVE')}
So this is all good as it sets it to read only if the student is not active.
However the delete checkbox has no restrictions and I can therefore delete records. The update is restricted so I know the EL expression is fine but it seems to ignore the delete.
Thanks
Rich

Also, just to note that if I go in and edit the page manually I can set the disabled property of the delete checkbox and it works fine.
For some reason, JHeadstart doesn't seem to generate it though???

Similar Messages

  • Delete Allowed generation for tables

    At my group level I have set a value for the "Delete Allowed EL expression". In table layout though, it uses this value to set the rendered property of the checkbox rather than the column, meaning the users still see a column called "Delete ?" with just nothing in it. I've created a custom template and moved the rendered attribute from the selectBooleanCheckbox up to the column.
    Of course I may be doing something wrong here or this might cause problems elsewhere but in case neither of those hold true I thought I would mention it as a possible future enhancement ?
    Cheers,
    Brent

    Brent,
    That's fine, the reason we only hide the checkbox is that it allows for row-specific delete rules. You can conditonally render the delete checkbox based on some attribute values of the row.
    Steven Davelaar,
    JHeadstart Team.

  • Delete Allowed Property For Current Record

    I have a requirement where I need to make a record allowed proeprty delete_allowed as false.
    Eg:
    If :variable:='YES' then
    SET_ITEM_INSTANCE_PROPERTY('block_name.item',CURRENT_RECORD,UPDATE_ALLOWED,PROPERTY_FALSE);
    end if;
    I cannot set delete_allowed property here, so how can I set delete allowed property to false?
    if I use
    SET_ITEM_PROPERTY('block_name.item',ENABLED,PROPERTY_FALSE);
    it will set property for all the records in the block, I have a multi-record block
    I am using Oracle Forms 10g
    Thanks

    Thanks for the reply.
    Yes I was thinking of doing this.
    if I put a validation in key-delrec trigger, then do I need to explicitly call a commit or any other method to delete a record if condition is not true?
    Eg:
    If :variable:='YES' then
    Message(' DELETE IS NOT ALLOWED');
    Raise Form_Trigger_Failure;
    ELSE
    commit or delete_record;
    End if;

  • Does the condition specified in the function 'DECODE' allow 'BETWEEN' expression?

    Does the condition specified in the function 'DECODE' allow 'BETWEEN' expression?

    As a completely different approach, in 8i SQL and 9i PL/SQL we can use the CASE function. This delivers decode functionality, but allows us to use conditions e.g.
    SELECT CASE WHEN col BETWEEN 1 and 9 THEN 'one' ELSE 'two' END FROM my_table;I love DECODE and wouldn't use anything else for straight value substitutions but CASE does have the advantage of clarity when it comes to maths, etc. Also I believe DECODE is not ANSI compliant. In which case (ho ho!) I suspect it will probably be deprecated, as Oracle seems to be moving towards ANSI SQL compliance, as part of its open standards drive.
    Cheers, APC

  • Problem in block property (delete allowed)

    hi friends,
    i have created a form having two blocks with non-isolated relation in them. i have set the delete allowed property to true for child block and false for master block. But when i run the form it will not allow me to delet the record from the child block as the delete allowed button appears in disabled form in the toolbar...
    please help in enabling the button so that i can delete the record at runtime for the child block

    which kind of toolbar did you use. selfwritten or oracle-standard ?

  • Deleting conditional build expressions

    I have created a project in RH7 and it has expanded to become
    our company's single source for user documentation. This is a good
    thing. However, as I've added information for different audiences,
    I've ended up with a number of conditional build expressions that I
    no longer need. I'd like to delete them so I don't have to search
    through a long list on the WebHelp General screen.
    I've searched the forum and don't see any information about
    deleting conditional build expressions (tags, yes; expressions,
    no). Can anyone tell me how to do this?
    Thanks for your help!

    Dear Mr. Grange,
    Forgive me for resurrecting such an old post. In your reply you state: "any layout that contains the build expression). By 'layout' do you mean the topics?
    Thank you in advance for your assistance.

  • Delete allowed in a multirow blk only if no records exist in another table

    How can I delete an existing row in a multirow block after checking that no records exist in another table ?
    How do I proceed please ?
    I know I need to check the primary keys of both tables to do that . Please help.

    I've written the following code in the KEY-DELREC trigger :
    DECLARE
    *     Fail EXCEPTION;*
    *     alert_title varchar2(100) := null;*
    *     p_button_choice number := 0; -- 10g : for Stop_Alert, Caution_Alert & Note_Alert*
    *     cnt NUMBER;*
    *     choice NUMBER;*
    Begin
    *     If :system.record_status NOT IN ('INSERT', 'NEW') THEN -- can be CHANGED or QUERY mode*
    *          begin*
    *          SELECT count(AMD_CODE)*
    *          INTO cnt*
    *          FROM t_mmamd,t_amdtype*
    *          WHERE AMD_CODE = :AMD_CODE*
    *          AND MMA_AMD_CODE = AMD_CODE;*
    *     IF cnt > 0 THEN*
    Alerts.Stop_Alert('Error: IMDG Code '||:AMD_CODE||'Delete not allowed!!Exists in t_mmamd table', choice);
    RAISE FORM_TRIGGER_FAILURE;                       
    *          ELSE*
    *          alert_title := 'Are you sure to remove this record ?';*
    *          Alerts.Stop_Alert_YesNo (alert_title, p_button_choice);*
    If p_button_choice = 1 Then
    *     delete_record;*
    End if;
    END IF;
    end;
    Else -- record status is in INSERT or NEW mode
    *          delete_record;*
    *     End if;*
    End;
    It works okay and prevents me from deleting records in the other table . However I get the following errors when I try to delete a record which doesn't exist in t_mmamd table :
    Could not resolve record(2 tries) keep trying?
    Error : 40501 - oracle Error unable to reserve record for update or delete .

  • Jjmack! All deleted "adobe photoshop express version 2.7.2." Please help me download way

    Please Jjmack! All deleted adobe photoshop version 2.7.2. Please help me download way.
    Oh~ I must need version 2.7.2.  Please help me!

    You posted in the Photoshop forum by mistake.  I've moved your post the Express forum where you're more likely to get help with Express.

  • Allowing EL expression in a resource bundles

    Mojarra 2.1.7-jbossorg-1 (20120227-1401)
    JBoss 7.1.1
    EL expressions in a resource bundle are currently not evaluated. That is, an an example, I have the following in the requiredMessage attribute of a JSF input control:
    requiredMessage="Status for #{someBean.documentMap[claimDocument.id].description} is required."I would like to move this to a messages.properties file like so:
    required.claimDocumentStatus=Status for #{someBean.documentMap[claimDocument.id].description} is required... so that the requiredMessage attribute becomes:
    requiredMessage="#{msg['required.claimDocumentStatus']}"Now the output for h:message(s) is
    Status for #{someBean.documentMap[claimDocument.id].description} is required.As I have found out, JSF resource bundles does not resolve EL expressions:
    http://stackoverflow.com/questions/6547136/el-variable-in-jsf-resourcebundle
    What I am trying to do is to allow such resolution / resolving to take place for JSF resource bundles. Now there is a class called "javax.el.ResourceBundleELResolver". I was wondering what it would take to extend this class to allow such a thing to take place. There does not seem to be a way to override it or to specify a custom resolver via faces-config.xml.
    Any thoughts ?
    Edited by: jmsjr on 14-Jan-2013 21:53

    jmsjr wrote:
    gimbal2 wrote:
    IMO this requirement, if it is possible to implement, is only going to lead to a hard to maintain application. But I guess that's something you have to experience before you believe it.
    You can't use EL directly in a resource bundle out of the box, but it is possible to parametrize them anyway, did you know that? Perhaps that is already good enough for you.
    http://murygin.wordpress.com/2010/04/23/parameter-substitution-in-resource-bundles/
    http://stackoverflow.com/questions/5697189/pass-parameters-to-messages-from-resource-bundle-to-components-other-than-hou
    Yes, I am aware of parameterising the resource bundles. However, these require you to use f:param .. and the last time I tried, these parameters were not available / visible at the requiredMessage attribute. I'll try it again anyway.As I have re-discovered, you cannot parameterise the requiredMessage attribute.
    http://stackoverflow.com/questions/9280915/how-to-parameterize-requiredmessage-attribute-in-composite-component
    The other alternative I am looking at, for the cases where the requiredMessage needs to be parameterised, or needs to have dynamic content, is to call a backing method for the requiredMessage attribute, from which I can then do whatever I need, even use EL expressions. I was thinking of this as a last resort.
    On the other hand, when one uses the validator attribute, usually one ends up adding one or multiple FacesMessage in code within the method being called, where the string of the message already comes from a resource bundle. I was trying to have a delineation whereby:
    1) requiredMessage should only use resource bundles, no backing bean method called.
    2) FacesMessages added via the method called by the validator attribute is OK

  • Need to totally delete Final Cut Express off networked machine

    I have two licenses for Final Cut Express to use on two networked machines. I loaded one and was working on it and needed to load the second license. Unfortunately, I picked up the wrong box and loaded the same one twice. Since these are networked computers, I and my support person cannot work at the same time. I have tried to delete all the files I can find so I can load the correct second license, but it still treats my "reload" as an upgrade and won't let me give it the second license number. Can any one tell me what I am missing?
    Thanks!

    Go to Library/Application Support/ProApps and trash the Final Cut Express System ID file.

  • How to delete an Airport Express from Airport Utility

    Here is my problem:
    I bought an Airport Express and tried to installed it but due to a problem with the unit it didn't work.
    The Apple Store change it for a new one and now, when I open Airport Utility to configure it I see 2 Airport Express, the old one and the new one.
    After checking the serial number of both I figured out which one is the new one, and everything went OK, but I would like to get rid of the old one because it also installed 2 loudspeakers options on iTunes.
    I tried deleting it but nothing happens.
    Any help is welcome.
    Thanks
    Pedro

    It certainly used to be possible but Apple does keep changing things..
    Did you save the configuration file in the same computer running the same version of OS? Does that version happen to be Yosemite?
    When you setup an Express or any Airport Router there is an option in the setup wizard to use replace an existing device in the network.. so if the old airport is still there and running the utility can take its settings and dynamically allocate them to the new airport.

  • Email Deletion with Outlook express

    Can the iphone be set so that when emails on the phone are deleted, they do not appear in outlook express when it is later opened?

    You need an IMAP account to do that.

  • Delete a Logic Express user created template?

    Can anyone tell me how to delete a template that I created?
    Thanks

    Your templates are in
    ~/Library/Application Support/Logic (Express)/Project Templates/
    The stock templates are in the same path but in your main system Library, not your user Library.

  • Implementing Conditional Insert, Update, and Delete Allows for View Objects

    Steve,
    Thanks for the info in this article it was very helpful. I have one question as I created a test case that used dept & emp tables as master and detail.
    Placing code in the emp detail ViewRowImpl that also tests to see if the master is updateable and it all works fine but I noticed that when you run it in the tester the dept master fields are grayed out but not the emp details and if you bring up the emp detail with out the view link then they are grayed out.
    Just wondering is this just a fact of the detail being shown in a table in the master detail and not a form or is there more to it then that??

    yes as follows:
    isMasterUpdateable checks the Dept table to see if it is updateable before allowing emp to be updated.
    public boolean isAttributeUpdateable(int index)
    if ( isMasterUpdateable() == true )
    return ( super.isAttributeUpdateable(index) );
    return(false);
    When I run this in the tester the results are correct except for the visual where the form is grayed out but the detail in the table is not. Should the table gray out also or is this effect something that must be coded in all Jtables that i may implement? If it needs to be coded to get the effect where does Jtable check for isAttributeUpdateable ?
    thanks,

  • How can I delete Conditional Build Expressions in RH7?

    I have a project with some Conditional Build Expression artifacts that I simply cannot get rid of.
    For example, I have created two Conditional Build Expressions:
    Internal OR Foo1
    Foo1 OR Foo2
    It has been determined that the second expression is the one we want.  But, the first one still shows up as an option in the SSL.  Furthermore, when I view a page, the first expression clutters up my list of possible Conditional Build Expressions.
    How can I lose a Conditional Build Expression?  I have quite a few possible arrangements, and I don't want to confuse other authors by having too many choices (especially with similar names).
    Kevin

    Hi Kevin.
    I think you have to do this by manually editing the project's .pss file (projectname.pss). If you take a backup of this file and open it in Notepad you'll find a [Global Build Tag Expressions] section and hopefully in there will be your "Internal OR Foo1" expression preceded with a date/time stamp. If you remove this line it should no longer appear in your project.
    Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
    Follow the RoboColum(n) on Twitter

Maybe you are looking for

  • CryptDecrypt function failing on Windows Server 2012

    Hi, I have a sample program which does encryption / decryption. This program works on Win7 and Win8.1 but fails on Windows Server 2012. Please can somebody help me on resolving this issue? const char KEY_FILE[255] = "C:\\key.txt"; In Constructor: dwR

  • Iphoto opens but will not display photos, just spins

    nto sure what happened, opened iphoto and it opens fine, but the processing circle just spins.  I shut the program and the computer down to not resolve.  its not the color wheel but the other one.

  • 404 :Exception in thread "main" java.rmi.RemoteException

    I have Install Sun Application Server PE and JWSDP,when I run asant run-sample,an error below: run-sample: [echo] Running the simple.TestClient program.... [java] Service URL=http://localhost:8080/securesimple/Ping [java] 2005-11-11 1:03:11 com.sun.x

  • Worflows based on roles

    Hi, Is it possible to have multiple workflows and trigger them based on roles. For example, I have a workflow with, say, 6 steps and I want to trigger it when a person with 'Marketing' role tries to update a record. Then I have a different workflow w

  • HT4910 icloud backup failed on ios6 iphone5

    my iphone 5 failed to backup automatically so i tried to back up manually and it says " LAST BACKUP COULD NOT BE COMPLETED"