Dynamically change the attribute "display as"?

There is a form where some fields should only be edited by connections with certain roles.
The layout changes often, so I prefer to keep only a single shape.
Is there a way to dynamically assign a value to the attribute "display as" (on Application Builder > Page definition > elements on the Page) for example

If the login is admin role, Display_as = "text field.
else Display_as = "view only".

If the connection is the role of Manager, Display_as = "Radiogroup".
else Display_as = "view only".

Thank you in advance.

Wolfram,

Each element has a 'Read Only' condition that can apply to it. It is used exactly as conditional display. The read-only attribute can be found after the conditional display.

See you soon,.

Janet Tyson

Tags: Database

Similar Questions

  • Dynamically change the attributes of HTML form elements

    I have a form region that contains the elements, some attributes of the HTML Form readonly = 'true '.

    It is possible to dynamically set these so I can enable / disable read only to the level element is based on a function PL/SQL (or other method).


    Thanks in advance.

    A bit of Javascript can do for you.

    Put this function JS in the header HTML of the page

    
    

    And then define a process of "after a footer" which returns the items to read only according to the conditions you decide

    if pl_sql_function_to_determine_RO ('') then
       htp.script('setReadOnly(""');
    end if;
    ....... repeat for other items
    
  • How to programmatically change the attribute of af:message.for?

    < p >
    I would like to know how, if possible, dynamically change the attribute 'for' of the af: message in the code for the validator in my grain of support. In my example below, I would like to change the af: message for the 'txtReportNumber' attribute 'txtCaratWeight '.

    I have included an excerpt from the next page
    & lt; AF:panelGroup binding = "#{backing_ReportVerificationCriteria4.panelGroup2} '"
    ID = "panelGroup2" layout = "vertical".
    styleClass = "body_text15" & gt;
    < /p >
    < p >
    & lt; < color = "#ff0000" > af:message < / police > binding = "#{backing_ReportVerificationCriteria4.message1} '"
    ID = "message1", color = "#ff0000" > for = "txtReportNumber".
    < / police > inlineStyle = "font family: Gil without, Verdana, Arial, Helvetica, without serif;" do-size: 15px; color: #FFFF00; make-weight: bold; left margin: 0px; Max-width: 300px; line-height: 5px; < br / >
    messageType = "none" / & gt; < br / >
    & lt; AF:objectSpacer width = "10" height = "10" < br / >
    Binding = "#{backing_ReportVerificationCriteria4.objectSpacer1}" < br / >
    ID = "objectSpacer1" / & gt; < br / >
    & lt; / af:panelGroup & gt; < br / >
    & lt; AF:panelGroup binding = "#{backing_ReportVerificationCriteria4.panelGroup3}" < br / >
    ID = "panelGroup3" layout = "horizontal" < br / >
    inlineStyle = "font family: Gil without, Verdana, Arial, Helvetica, without serif;" do-size: 11px; color: #052149; margin left: 15px; line-height: 14px; "& gt; < br / >
    & lt; AF:outputLabel value = "number of statement:" < br / >
    Binding = "#{backing_ReportVerificationCriteria4.outputLabel5}" < br / >
    ID = "outputLabel5" < br / >
    inlineStyle = "do-family: Gil without Verdana Arial Helvetica without serif;" font-size: 11.0px; Color:RGB (5,33,73); line-height: 14.0px; "/ & gt; < br / >
    & lt; AF:inputText label = "number of statement:" < br / >
    Binding = "#{backing_ReportVerificationCriteria4.txtReportNumber}" < br / >
    < color = "#ff0000" > id = "" txtReportNumber < / police > ' columns = "20" simple = "true" < br / > "
    inlineStyle = "do-family: Gil without Verdana Arial Helvetica without serif;" font-size: 11.0px; Color:RGB (5,33,73); line-height: 14.0px; "< br / >
    showRequired = 'false' immediate = "false" < br / >
    Validator = "#{backing_ReportVerificationCriteria4.txtReportNumber_validator}" < br / >
    requiredMessageDetail = 'Both report number and Carat weights are necessary.' < br / >
    required = "true" / & gt; < br / >
    & lt; / af:panelGroup & gt; < br / >
    & lt; AF:panelGroup binding = "#{backing_ReportVerificationCriteria4.panelGroup4}" < br / >
    ID = "panelGroup4" < br / >
    inlineStyle = "font family: Gil without, Verdana, Arial, Helvetica, without serif;" do-size: 11px; color: #052149; margin left: 15px; line-height: 14px; "< br / >
    page = "horizontal" & gt; < br / >
    & lt; AF:outputLabel value = "Carat weight: ' < br / >" "
    Binding = "#{backing_ReportVerificationCriteria4.outputLabel6}" < br / >
    ID = "outputLabel6" < br / >
    inlineStyle = "do-family: Gil without Verdana Arial Helvetica without serif;" font-size: 11.0px; Color:RGB (5,33,73); line-height: 14.0px; "/ & gt; < br / >
    & lt; AF:inputText label = "Carat weight:" < br / >
    Binding = "#{backing_ReportVerificationCriteria4.txtCaratWeight}" < br / >
    < color = "#ff0000" > id = "" txtCaratWeight < / police > ' columns = "20" simple = "true" < br / > "
    inlineStyle = "do-family: Gil without Verdana Arial Helvetica without serif;" font-size: 11.0px; Color:RGB (5,33,73); line-height: 14.0px; margin-left: 7.0pt; "< br / >
    Validator = "#{backing_ReportVerificationCriteria4.txtCaratWeight_validator}" / & gt; "" < br / >
    & lt; / af:panelGroup & gt; < br / >
    < /p >

    Hello

    the field 'for' supports the El. So you can use a reference of bean managed to replace the value

    Frank

  • Dynamically change the number of sub-panels

    Hello

    I have a computer where usually 4 testplaces of production are connected to.

    I want to have a main VI indicating the status of the 4 different testplaces, that I can do with 4 separate sub-panels - no problem.

    The issue is that I would be flexible in testplaces how I show in a program (as this hole thing is pretty cool, and I expect that some changes will come). Is it possible to dynamically change the number of sub-panels displayed (other that make it twenty of them and turning off then those you don't need)?

    My first idea was to place the school in a table, but unfurtunately is not possible.

    Best regards

    Frank

    Yamaeda wrote:

    The POP in separate windows, and you can have as much as you want.

    Or make separate them windows, and then set up a child-parent relationship in Windows, it seems as if it was all about a user interface.

    http://screencast.com/t/P9SJ1anR

    It's nice enough for the demo beta like software, but works.

    https://lavag.org/topic/17046-multi-panel-interface/

  • How can I change the attributes read-only or system files?

    How can I change the attributes read-only or system files?

    To view or to remove the read-only or system attributes, use the Attrib command at a command prompt:

    1. click the Start button, type cmd in the search box and press ENTER.

    2. to view the syntax for the Attrib command, Type attrib------? at the command prompt.

    WARNING: If you remove the read-only or a file system attribute, it may seem like a regular folder and some customizations may be lost. For example, Windows customizes the Fonts folder and provides a special folder view that allows you to hide variations, such as bold and italics. It also allows you to change the display settings of the file in a way that is specific to fonts. If you remove the read-only attributes and the Fonts folder system, these custom display settings not available. For folders that you have customized by using the tab, customize the folder properties dialog box, the folder icon and other other customizations may be lost when you remove the read-only attribute.

    If a program cannot save files to a folder with read-only, such as My Documents, change the read-only to the system attribute by using the Attrib command at a command prompt.

    To remove the read-only attribute and to set the system attribute, use the following command:

    attrib - r + s drive:------------.

    For example, to remove the read-only attribute and set the attribute to system for the C:\Test folder, use the following command: attrib - r + s c:\test

    Be aware that some programs may not work correctly with folders for which the read-only attribute and the system attribute are granted. You can use the following command to remove these attributes:

    attrib - r-s c:\test

  • Change the attributes of resources in GR 11, 2 ASM grid Infrastructure

    Hello

    I have two or three never starts automatic start-up located in the crs profile 11 GR 2, can I change the profile of resources to auto_start = always while the cluster is running? or fact cluster will display the parameter ASM_DISKGROUP starts listed of spfile?

    Thank you

    Hello

    user9097501 wrote:
    Hello

    I have two or three will never start Autostart located in the crs profile GR 11, 2...

    Let us clarify which component has effect on what it:
    1 profiles/resources src have nothing to do with the ASM starts
    2 auto_start is a resource of src attribute that specifies if the clusterware automatically starts the resource in question after the restart of the cluster server.
    3. the list of parameters init ASM_DISKGROUP names of disk groups that the ASM instance goes up at startup.

    I can change the profile of resources to auto_start = always while the cluster is running?

    You can change the attribute auto_start to the value 'always' online, no downtime is required.

    or fact cluster will display the parameter ASM_DISKGROUP starts listed of spfile?

    No, not this connection between the CBC and the ASM instance. Crs begins the only DSO resource (using the script specified in the resource action_script attribute) and groups of disks listed in the ASM_DISGROUP parameter, will be mounted by the instance ASM itself.

    HTH.
    Kind regards
    József

    Published by: Jozsef on October 21, 2010 21:43

  • is it possible to dynamically change the industrial action.

    Hi friends,

    I have a scheduler job to call the shell script. Is it possible to dynamically change the industrial action (IE change the name of the shell script based on requirement).

    My basic idea is to have a scheduler job to call different shell scripts based on requirement.

    Thanks in advance
    Jeeva.

    You can try using DBMS_SCHEDULER. SET_SCHEDULER_ATTRIBUTE with:

    attribute => 'JOB_ACTION'
    
  • dynamically change the selection table of

    is it possible to dynamically change the table used in a select statement for an interactive report 3.2 on 11g database? I have a series of similar tables, one for each month of the year. I want to click a month on one page and to set up a table for this month report. I want to use a page for this report and have all the links from the link to the previous page on the same page, just different results based on what month has been clicked.
    I know I could just install 12 different reports and conditionally display each region based on a value passed to the page, but I prefer to create only a single page and a report on this page.

    Thanks for ideas or solutions.

    Hello:

    Because the tables involved are fixed for a given month, you can try something like

    select * from tab_1
    where :p_mth=1
    UNION
    select * from tab_2
    where :p_mth=2
    UNION
    ....
    select * from tab_12
    where :p_mth=12
    

    only the query for the IR. "P_MTH" is the page element has the value entered by the user for the months for which data should be retieved.

    CITY

  • Dynamically change the path of the report

    Is it possible to dynamically change the path where reports are saved. TestStand 4.1.1

    Glennjammin,

    You can set a path to the specific report for any sequence that you run via the entry points of process model using the reminder of your sequence ReportOptions. It will allow you to change the current settings in the Options report (including the path) for the execution of this sequence. This allows each of your sequences have unique report options.

    If I understand your question, you want to do is exactly what is meant recall ReportOptions.

    -Jack

  • Dynamically change the language in cvi

    Hello

    I would like to know if it is possible to dynamically change the IUR in English language to Russian?

    I have a program written in cvi and I need to be able to scwitch English to Russian UI when the user clicks a button...

    Thanks in advance

    Yes: You must create a resource of language of the dossier and can then use the LoadLocalizedPanel / LocalizePanel and LoadLocalizedMenuBar / LocalizeMenuBar

  • dynamically change the HomeScreen application title

    Hi all

    As you know, we can dynamically change the application ICON on the home screen,

    what I want to know how to change the title of the application on the home screen.

    I mean when the user foucs on my application, text will appear on the screen.

    When I change an ICON, I want that the text will be changed according to the new icon.

    Is this possible?

    Thank you.

    Try the HomeScreen class - see the documentation of the api for HomeScreen.setName)

  • Dynamically change the order of the components

    Can I dynamically change the order of the components (input text entry LOV, etc.)  inside the layout of the Panel form?

    Currently in 11.1.1.7 but may be considered if necessary upgrade

    Yes, you can.

    See the example attached to this bug: https://java.net/jira/browse/JAVASERVERFACES-2390

    Dario

  • How can I change the information displayed in the "task log?

    We currently have a very customized version of the unifying Primavera product v9.13.6.0.  We would like to change the information displayed in the field "Title" of the task log.  For some bits/s the title field is filled by the registration number.  For other bits/s, this field is populated by one of the custom of the BP fields.

    We have looked through the available documentation and uDesigner and the company Admin mode but remain to locate the section where we would be able to change which field (by BP) would have filled the field journal title 'tasks' in each shell (Home tab, Shell, shells at the project level).

    Any help or insight would be appreciated.

    Kind regards

    -Kevin

    It is not possible to configure what is displayed in the task journal. Since the task log is used for all bps, we are limited to the display of what is common to all the as bps. find does support the ability to search on other fields are not not in the newspaper.

  • Two quick questions (hopefully) - right way to dynamically change the CSS class and put of Splash screen implemented

    Couple of quick questions have left me speechless!

    So, it seems obvious that many JavaFX applications want to dynamically change the CSS styles.  Is the best way to do it through la.getStyleClass () .add ("classname") < node >?  The underlying data structure is a list of observable.  So let's say we have 5 styles that simply to change the fill color of a circle of 5 different colors, respectively.  So if I have a condition in which I want to dynamically apply 1 of these 5 styles, as I do now it's by setting all 5 styles as a string in a list by using a static initializer, then I call < node > .getStyleClass () .removeAll (list), then getStyleClass () .add ("classname").  I do this to avoid adding again and still the same style and inflate the underlying list.  What is the right way to manage dynamic CSS styles?

    Finally a very simple I think.  So I know there's a little differently to implement a splash screen.  My app has certainly got bigger in the last few months of development and I noticed there are about a 5 second delay between when I run the application when I see the main stage.  I was thinking what a splash screen would be nice to fill that time.  I had no time to prototype using a Preloader and I fear that using another, early stage start-up again would be too long of a delay.  "I actually thought that using the Nice and simple JVM argument" - splash: image name > "would be simple, easy and effective.  Unfortunately when I try to do, the splash screen appears but never goes away.  Anyone know what is happening with this?

    Your mechanism to manage the css style classes is a good approach; I've used several times. I wonder why the style classes have been implemented as a list, instead of a game, but there may be cases of good use for the use of a list.

    In some cases you can also consider using CSS PsuedoClasses, which were presented in JavaFX 8. Here is a little easier to use, especially if you have two options. But a use case might look like:

    public class Message {
        public enum Status { NORMAL, WARNING, CRITICAL }
    
        private final ObjectProperty status = new SimpleObjectProperty<>(Status.NORMAL);
        private final StringProperty message = new SimpleStringProperty();
    
        // constructor, getters, setters, and property accessors....
    }
    
    public Label createLabel(Message message) {
        PseudoClass warning = PseudoClass.getPseudoClass("warning");
        PseudoClass critical = PseudoClass.getPseudoClass("critical");
    
        Label label = new Label();
        label.textProperty().bind(message.messageProperty());
        message.statusProperty().addListener((obs, oldStatus, newStatus) -> {
            label.pseudoClassStateChanged(warning, newStatus == Message.Status.WARNING);
            label.pseudoClassStateChanged(critical, newStatus == Message.Status.CRITICAL);
        }
        return label ;
    }
    

    And then your css looks like

    .label:warning {
        -fx-text-fill: orange ;
    }
    .label:critical {
        -fx-text-fill: red ;
    }
    
  • How to change the default display

    all my pictures are using to open since the upgrade to windows 10 11 items; I want to open them with lightroom 6.  How to make the change? Thank you.

    You can change the default display for images of items in the Windows Photo Viewer using the instructions in this article

    How to change default image viewer in Windows

    and if the images are displayed as missing in Lightroom, you must reinstall them.

    See this article for moving: https://helpx.adobe.com/lightroom/help/locate-missing-photos.html

Maybe you are looking for