Show option to define Item type for form in new Designer

In the old designer we had an option to set the item type of a form to a specific DataTable:

When you click (unkown type), this popup shows:
image

After you choose a type, the propertie shows like this:

In the new designer this option is now gone:
image

Setting this helps with autocomplete suggestions which are really welcome in larger apps.

Also, if it isn’t asking too much (it probably is), could we also be able to set the item type to custom classes that we have in our project? Maybe only classes that are decorated in some way or that have a specific superclass. I know this is a whole new thing that probably is kind of hard to implement, but asking never hurt anyone. :stuck_out_tongue:

(Edit: Added more info of how the item type is set)

2 Likes

What happens when you click on the link button (to the right of “item”)? Does that serve the same purpose?

Frankly, whenever I saw the “Set at runtime” instruction, I followed that instruction and set it at runtime (i.e., via code). Given the wording, I had no idea that it could be set at design time. Why it even appeared in the designer was a puzzle.

The link button serves for binding. That’s not what I was talking, but I can understand the confusion since I didn’t specified better.

When you click on the (unknown) link below a popup letting you select the type of item would appear.

Also, this does not set the item, it only sets the TYPE of the item. This helps creating items of a certain type and offers autocomplete for the attributes of that selected type.

My other confusion was the “Set at runtime”, which I took as an instruction, meaning that there was (implicitly) nothing there for me to click on.

The “(unknown type)” phrase certainly doesn’t look like a button or link, so unless you happen to mouse over it, and notice the cursor-shape change, you’d never know you could usefully click on it.

It is an instruction, but also an information about how to set it.

I actually don’t really remeber how I know you could set this, maybe in the classic editor is a little more obvious. I do know this is old (but usefull).

Also, added more information in the original post about how to use it.

1 Like