Skip to Content
author's profile photo
Former Member

Is it currently Possible? Dynamic UI Element Types

It is currently possible to change a UI Element based on a Data Field in the BO,

For example If I have a BO with an element defined as "type" (which is an enumeration of my own where 1= Check box, 2 = Select)

based on this "type" I either want the UI element to be a TextBox or a Select ... Can you dynamically change the UI in this way

(note: not looking to use a custom pane with my own Silverlight component currently)

Edited by: William Gast on May 4, 2011 6:05 PM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on May 04, 2011 at 04:06 PM

    Changing the display type of a UI element dynamically is not possible.

    You need to create two UI elements which you dynamically disable or enable depending on your BO field for the type. So for the UI user, the UI either should display a check box or a dropdown list box. To move the result from two different UI elements into one BO element or vice versa, you probaly need to define a third data element in the data model which gets defined by ( or sets) one of the two UI elements. To move one data element to the other you can use a event handler operation of type DataOperation or, alternatively, frontend scripting.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Sure. There is a UI property Visible which you should control dynamically in order to display either the check box or the dropdown list box on the UI.