Disabling controls at runtime

Jdev 11.1.2.3.0
============
I am having problems on what I want the user to see at runtime. I want to use controls (command buttons, etc) to control what a user will be able to see depending on the situation. My scenario is described in the following points:
1) I have a page template (jsf) and have created other jsf pages as adf regions which uses the page template. When a user clicks on button to navigate to any of the adf page regions, I l want to disable some of the controls on the page template. That is, the command buttons, menus and other controls will be visible but when a user clicks on it, it will not respond.
2) Just like the above, when a user is in a page (jsff), I want at runtime, to disable or render some of controls invisible either by a click of a button or before the page starts.

Create VO based on SQL "select 1 dummy from dual"
Create new attribute by using "New" option in the attributes section. Make it always updatable and boolean type and call it ShowCreateUserFlag and put the default value to true
Drag VO data control on the page as table , but make it rendered false, since you really interested in the binding of this VO and not presentation
on "Create User" button set the value of "rendered" property to binding of ShowCreateUserFlag.AttributeValue
When you do some operation you get getCurrentRow() of VO, getAttribute("ShowCreateUserFlag") and set it's value to Boolean.False.
Sorry if it is still not clear. I am writing it from memory

Similar Messages

  • How to dynamically enable or disable a control's runtime shortcut menu?

    Is there a way to do it?  
    I need to disable a control's runtime menu while my VI is running and then enable it at other point of time.  All the way, I can make use of the default menu items (Reinitialize to default values, Copy data etc..,) for the control and I don't have any customized menu items.

    GerdW wrote:
    Hi Ajay,
    as a quick & dirty way you could use a filter event for mouse clicks. When you want to disable the right-click menu you filter the right-click mouse events…
     Thats nice dirty idea.  But it might give my end-user an impression that my application doesn't respond to the given options.  I specifically want to greyout the right-click menu.
    Thanks,
    Ajay.

  • Can I add controls at runtime in JApplet

    Please also tell me what good is JApplet for. As I cannot interact with database and there are several other limitations. Should I go and use JApplet in my application or avoid using them.
    My basic question remains the same "Can I add controls at runtime in JApplet"

    Yes, you can add controls to an applet at runtime.
    Applets are run on remote computers, in browsers for instance.
    Since they are run remotely, connecting to a database can be difficult. In most cases you'll need a server that makes the connection with the database. The applet speaks with the server via a socket.
    If you're writing a standard desktop application, then you should use JFrame.

  • How to disable/control the dock icon sizes when hovering over them?

    Hello.
    How do I disable/control the dock icon sizes when hovering over them? They are too big when enlarged with my mouse cursor.
    Thank you in advance.

    BDAqua wrote:
    Hi,
    Apple icon at the top left of the screen>Dock>Dock Preferences>Size & Magnification.
    Thank you!

  • EREC: Disable controlling area integration

    Is there a way to disable controlling area - company code integration in erec system? when we try to hire an employee in HCM system we are getting errors that controlling area doesnt exist for a company code. We didn't have this issue until we started HCM and EREC integration.

    Prasad,
    Here is my simple answer.
    At the time of creating COA, you have specified that Manual creation of cost elemants right?
    if you select this, then the system will not create a cost elemant at the time of GL creation.
    So whenever you want to create cost elemants for each GL, you will have to create it manually by going into each GL and clicking on Edit cost elemant and need to enter the cost elemant cateogry for that and save them.
    To avoid this manual creation, SAP provides a batch input processing method for this.
    In Tcode OKB2 you have to give GL range along with cost elemant category, Again in Tcode OKB3 you have to execute the program, it will create a batch input session  with all the cost elemants those to be created.  And then execute the batch input session with Tcode SM35. It does not mean that you are creating the cost elemants automatically by creating GL accounts.
    This is a standard way for doing manual creation of cost elemants with a batch input processing.
    And if you select option Automatic creation of cost elemants at COA config, no need to create a range in OKB2, and generate session in OKB3 and execute session with SM35.
    Hope you have understood what i am trying to say.
    Thanks,
    Srinu

  • Disable Control Panel for users but NOT for administrators

    I'm unsure why Microsoft has not yet published this information.  I'm sure that sysadmins everywhere want more granular control of the control panel besides disabling for everyone or enabling for everyone, which is what it seems Microsoft wants me and
    you to do, disable CP for everyone, enable it every time I log on as admin and need to use it, then disable again.  Ridiculous.
    I am a consultant for a large company and our partners like to take as much control as possible.  I do too, for that matter.  Last week I began researching how to disable the control panel for everyone except admins.  I am operating under
    the assumption that non-admin accounts do not need access to control panel and it's better if they don't, especially in a production environment where the terminals the users are operating are mission critical.
    Finally, I found the answer.  I hope this helps you because it took me 3 days to finally find it.  It works.  I've tested it with admin and non-admin.  The great thing is, you can control any GP setting for non-admin users in this manner,
    not just the Control Panel.  You could disable any and all functionality not necessary for day to day operations for all your users but still maintain access to everything by logging on as an administrator.
    The question is answered here
    http://www.sevenforums.com/tutorials/101869-local-group-policies-apply-all-users-except-administrators.html

    Don:
    Sorry for the confusion.  Not sure why my link is bad and yours is good.  They both appear to be identical.
    The issue with executing gpedit.msc is that when you apply a setting, the setting is for all users, even administrators.  If I want to disable access to the control panel, I do so for admins as well when simply executing gpedit.msc, which means if I
    log in and need access to control panel, I have to enable it in GP, do the work necessary and then disable it again (if I remember) when work is complete.  A bit of a drag, especially for busy admins and support techs.  On the other hand, following
    the instructions in the link disables control panel for all users except administrators.  So if I need to work with Control Panel as an admin, I've saved the enable, disable steps and don't have to worry about remembering as well.
    I hope that clarifies.  Thanks for your feedback.
    ok, thanks. I re-read the guide one more time and now I understand the logic - it creates a LocalGPO object, when gpedit.msc is launched in this very special way. It's kind of cool, even if rather niche. (I'm assuming that it only works for LocalGP and not
    for Domain GP).
    I think your original link had a trailing dot, but it's fine now.
    Thanks for clarifying - even after all these years, I am still learning new things :)
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • How can I disable Control+PageUp/Control+PageDown Tab switch?

    How can I disable Control+PageUp/Control+PageDown Tab switch? I have found various addons to provide additional key combinations for this action, but no option to disable that (these key combinations are mapped on my X server to serve as Home/Pos1 and End, and I would like to have that functionality within firefox as well).

    Hi Guigs2, I already tried that (and a whole bunch of other key costumization/mapping plugins), and it does not help. It helps to add other shotcuts for the tab switching, but does not give an option to eliminate the existing key combination. Thank you anyways.

  • Enabling and disabling tabs (tab control) at runtime

    I have an app that uses the tab control. I would like to disable certain tabs based on login/password. I don't seem to be able to find the right property to make this happen. Thanks for the help.
    Todd

    I'm seeing the same properties as you: visible, disabled, page selector visible, and pages.  I don't see anything about a "page visible" property.  BTW, I'm using LV 7.1.  Also, the tab control property node only has an error in input and error out output.  No connectors for a reference, even though the context help has references shown.
    HOWEVER...if I simply copy and paste the tab control property node, I get a generic node that DOES have a reference input and when wired to output from the index array function, I CAN select the PageVis function and wire a boolean to it!  My test vi works exactly like I want and can make various tabs appear and disappear on command.
    Attachments:
    Test VI FP.jpg ‏37 KB
    Test VI BD.jpg ‏31 KB

  • Enable/disable report parameter control at runtime in SSRS

    Hi,
    I am using SSRS 2012. I want to enable/disable or hide/show parameters based on another parameter selection.
    I have a 3 parameter, Parameter 1 says which parameter need to show either Parameter2 or parameter3 in the parameter panel. i don't find any expression to show/hide option.
    Appreciate your help.
    Paramesh G

    However if you want parameters to enable disable then that functionality can be obtained by using cascading parameters
    ie make parameters  2 and 3 dependent on 1
    So for that created two datasets which will provide values for parameters 2 and 3
    Check allow null values for both the parameters
    Set default value as NULL for both parameters
    then for dataset use queries like
    SELECT ...
    FROM ..
    WHERE @Parameter1 = 'Parameter2'
    SELECT ...
    FROM ..
    WHERE @Parameter1 = 'Parameter3'
    This will make sure parameter2 or 3 gets enabled with required values based on what you choose for parametr1
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to change properties for some controls in runtime ?

    hi,
    I would like to change some of the properties for some controls in front panel in runtime. Number of control properties I want to change is depending of a log file user opens in final application.
    I attach an example where I'm trying to change the visibility of numeric controls. Problem I have I don't know which reference to connect to property node in case the control in for loop is not a numeric control. The example relies to label.text property but I could use the more generic classname property as well.  
    regards,
    petri
    Solved!
    Go to Solution.
    Attachments:
    dynamic reference.vi ‏11 KB

    pcardinale wrote:
    Initially, a control has no caption.  It's not just that the caption string is empty and the caption not visible, but the caption object does not exist.
    I think this should probably be changed in future versions, because even if each control had a caption, it would still be a negligible small part of the VI. The current behavior made sense many years ago where HD and memory space was very precious. Not any more!
    This issue comes up often enough that it warrants addressing the root of the problem.
    It is hard to convince the casual that the caption does not exist if he can simply do a "show caption" at edit time and it will show in all glory, even with the default set to the current label. It is confusing!
    There is even an idea about this that seems worth supporting (also read the link in the discussion).
    What do you think?
    LabVIEW Champion . Do more with less code and in less time .

  • It´s possible disable CONTROL+C in sqlplus???

    Hi friends, i have some scripts that will run in sqlplus... They are waiting for parameters to be will insert for users... But then this problem, if user use CTRL+C, the prompt will go to the sqlplus prompt and the database will be open for execute any command...
    My question is, how BLOCK OR DISABLE THE CONTROL + C in sql plus???????
    Any help will be welcome!
    Regards,
    Felipe

    955478 wrote:
    Hi friends, i have some scripts that will run in sqlplus... They are waiting for parameters to be will insert for users... But then this problem, if user use CTRL+C, the prompt will go to the sqlplus prompt and the database will be open for execute any command...AFAIK CONTROL-C cannot be disabled in SQL*PLUS. Perhaps you can find a way to disable it from the operating system or keyboard manually. If you can find such a way I'm not conviced it is a good idea; CONTROL-C is useful to kill commands you started a moment after you press RETURN and realize that something is not right ...
    You will need to find another interface for your programs, or lock down the users executing the scripts very tightly to allow nothing to happen except your script execution.
    Also look into the WHENEVER SQLERROR option to see if you can force exit if a script errors or does not complete. Check the documentation for SQL*PLUS settings
    Edited by: riedelme on Aug 28, 2012 10:51 AM

  • Disabling Controls in the Full Featured User Interface

    Hi Ppl,
    I do not want few controls (variables view, stack view) to be displayed in my full featured User Interface. What is the best way to do this. Are there configuration parameters(UserInterface.xml) that could make these controls  in visible. Or Should these controls be make in visible only through the Visible Property.
    Thanks 

    Hi Dennis,
    Will Deleting the controls solve the purpose ? I tried moving the controls from the visible part of the front panel. but when the code was run the controls came back to their original position. Then I discovered that the full featured user interface has some code to set the position,size etc of the controls. This part of the code also checks the number of controls present. So I was wondering if just editing the configuration alone could disable the controls.
    Thanks 

  • How can i add control at runtime??

    hi,
    please help me! how can i add control(textfield, dropdownlist or subform...) at run time???
    thanks

    this option had no relation about editing items or not , i hadn't notice it was accessible true pop up
    when you rigt click is properties disable also ?
    may be i 'm wrong i talking about that :
    see attachement
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte
    Attachments:
    example.jpg ‏57 KB

  • Controlling AIR runtime updates

    Hi,
    I'm writing an AIR app for a client who is concerned about the AIR runtime updates. He foresees problems with his users being taken aback by the sudden appearance of multiple dialogs related to software that they (the users) have never heard of.
    I've thought of several options, given that his regard for his users is not going to change any time soon. I have no idea which of these is feasible and I hope to get some pointers here.
    1. Silent updates
    2. Providing a custom UI for AIR runtime updates
    3. Distributing AIR with the app so that it is version-locked and never attempts to update itself
    4. Install AIR normally, but provide some flag with the app that tells AIR not to update itself
    5. A clever, elegant solution
    This aspect may make or break the project, so my full (!) gratitude is guaranteed to whoever helps out.

    Hi,
    To disable check and updates of the AIR runtime, you just have to put a empty file named "updateDisabled" into your "C:\Documents and Settings\*YOUR_WINDOWS_ID*\Application Data\Adobe\AIR" directory for windows and I think /Users/*YOUR_USER_ID*/Application Support/Adobe/AIR for MacOSx.

  • Cursor does not change on disabled controls

    How can I set another cursor on disabled nodes?
    My use case:
    I want to disable a node, while a Task is running and simultaneously change the cursor to the wait cursor.
    But it has no effect, if the node is disabled.
    Any solutions?
    import javafx.application.Application;
    import javafx.scene.Cursor;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class TestApp3 extends Application {
        public static void main(String[] args) throws Exception {
            launch();
        public void start(final Stage stage) throws Exception {
            VBox root = new VBox();
            Button button = new Button("Test Button");
            root.getChildren().add(button);
            root.setDisable(true);
            root.setCursor(Cursor.WAIT);
            Scene scene = new Scene(root);
            stage.setScene(scene);
            stage.show();
    }

    can I set another cursor on disabled nodes?apparently not - log a jira with your test case.
    Any solutions?A couple of workarounds.
    Set the cursor on the parent of the disabled region (wrapping the disabled region in a pane for this specific purposes if needed).
    import javafx.application.Application;
    import javafx.scene.Cursor;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.*;
    import javafx.stage.Stage;
    public class DisabledControlCursor extends Application {
      public static void main(String[] args) throws Exception { launch(args); }
      @Override public void start(final Stage stage) throws Exception {
        VBox root = new VBox();
        root.getChildren().add(new Button("Test Button"));
        Pane wrapper = new Pane();
        wrapper.getChildren().add(root);
        root.setDisable(true);
        wrapper.setCursor(Cursor.WAIT);
        Scene scene = new Scene(wrapper);
        stage.setScene(scene);
        stage.show();
    }Set the cursor on the entire scene containing the disabled region.
    import javafx.application.Application;
    import javafx.scene.Cursor;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.*;
    import javafx.stage.Stage;
    public class DisabledControlCursor extends Application {
      public static void main(String[] args) throws Exception { launch(args); }
      @Override public void start(final Stage stage) throws Exception {
        VBox root = new VBox();
        root.getChildren().add(new Button("Test Button"));
        Scene scene = new Scene(root);
        root.setDisable(true);
        scene.setCursor(Cursor.WAIT);
        stage.setScene(scene);
        stage.show();
    }

Maybe you are looking for

  • How do I make a recovery disk for my Mac running 10.5.8?

    How do I make a recovery disk for my Mac running 10.5.8?

  • Macbook pro won't boot after update to 10.6.8

    Hi everyone, Yesterday I bought an used macbook pro (15 inch early 2008). When looking at it, it was in good shape and the previous owner just did a fresh install of snow leopard. I took it home and whas happy with it. In the first two hours of using

  • Zooming image from mouse position(like in  windows vista photo gallery)

    hello all; here's my situation, hope someone can help.. i wanna Zoom an image, which zoom from my mouse position like in windows photo gallery in windows vista so i do this.. g2.translate(iMoux,iMouy);                g2.scale(zoom, zoom);            

  • Broadband Video Direct to TV

    I am looking for someone with knowledge and experience with video streaming. I live in rural area and have been covering local news and events for the past six months and posting them on YouTube. Folks have been after me about expanding and improving

  • Please advise a novice..

    Hi, Am considering buying the Zen Touch 20gb after much research. Whilst I am aware that this apparantly holds "up to 0,000" songs, it seems this differs with mp3 or wma format. I will be using mp3, so was wondering if anyone could give a rough estim