cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

guillaume-hrc
Active Contributor
0 Kudos

> 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

ankur_garg5
Active Contributor
0 Kudos

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...

Former Member
0 Kudos

Hi

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

Thanks

Harsimran

Former Member
0 Kudos

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