Skip to Content
avatar image
Former Member

Is it possible to add the UI element to iview at runtime?

Hi Expert,

I want to do a prototype, which can dynamicly create the UI element(For example, create a new input box) in the form iview, is it possible in VC? as I know in webdynpro it works but I am not sure whether it is allowed in VC.

Thanks for your answer.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Mar 01, 2007 at 03:49 AM

    No, that's not possible. You need to use hidden fields and make them visible when you need them.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 01, 2007 at 05:26 AM

    Hi

    You can use another form with input fields and make the form visible at runtime

    Thanks

    Harsimran

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 02, 2007 at 10:22 AM

    Hi,

    In whatever scenario you want to create a dynamic UI element in a VC iView, you have to have an event, on occurance of which something happens dynamically. This event can be in the form of a button click or some value coming from a previous iView or page. But the important thing to note is that if you want something to become visible or invisble in your iView, the event to make this happen, has to occur in some other view.

    For example, you can have two forms in an iView, make a button in one form, which when clicked passes something (say a number) to the second form. You can now make your input box or anything else in the second form. In the properties of this second form, you have the <b>visibility</b> field, where you can enter a formula, something like:

    <b>BOOL(IF((@Status==1),true,false))</b>

    Similarly you can make tabs in your iview, make the button in one tab, and do something dynamically in the next tab.

    Reward points if it helps...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 02, 2007 at 10:32 AM

    Hi Ya Wang,

    there are a lot of answers now. An important thing is as Mario already mentioned, you have to define all UI elements at design time, you can not dynamicly create an UI element at runtime. It's possible to hide/unhide elements, which are already there in your model.

    Best Regards,

    Marcel

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      > An important thing is

      > as Mario already mentioned, you have to define all UI

      > elements at design time, you can not dynamicly create

      > an UI element at runtime.

      Hi all,

      Thus, it this possible to dynamically generate the whole application, for instance by giving GML as input to the VC compiler ??

      That would be awesome ! 😊

      Best regards,

      Guillaume