How to determine if a form was created at runtime

Hi all,

At runtime, I need to get a list of all forms which are created at design time. In other words, I need some way to distinguish if a particular JSForm is part of the original solution or is created at runtime using the Solution Model.
The only thing I could find which is remotely related to this is the method solutionModel.revertForm which throws and exception if the specified JSForm is not an original form, however I need to be able to perform the check without modifying in any way the current form state.

Is there any way I can get such information or should I file a feature request so it can be added.

Thanks for your help!

there is currently no api that tells you that.
There are also 3 kind of states here:

1> design time form
2> design time form changed at runtime
3> form created at runtime

so what about the <2> one? is that a runtime form or not?

jcompagner:
there is currently no api that tells you that.
There are also 3 kind of states here:

1> design time form
2> design time form changed at runtime
3> form created at runtime

so what about the <2> one? is that a runtime form or not?

You have a point, but really there should be two separate methods for that:

  • is form created at design time? - Y/N
  • is form changed at runtime? - Y/N

In my particular case, I just need to know if the form was created at runtime or design time but having a way to figure out if the form was created at design time but modified at runtime also has a value.

please make a case for this.