WorryFree Computers   »   [go: up one dir, main page]

Different view and form name

Hello
Does anyone know why it doesn't show the real name of the view?

For example I have a table "People" with 3 slices
1 Parents = Row filter condition = [Type] = "Parent"
2 Teachers = Row filter condition = [Type] = "Teacher"
3 Staff = Row filter condition = [Type] = "Staff"

And I want in the field [type] type Enum only show the corresponding value

I am trying Valid if value with this formula, But I see that the name of the form is the same no matter which view I am in

IF(
CONTEXT("View") = "ParentsViewPC",
IN([_THIS], {"Parent"}),
IF(
CONTEXT("View") = "TeachersViewPC",
IN([_THIS], {"Teacher"}),
IF(
CONTEXT("View") = "StaffViewPC",
IN([_THIS], {"Staff"}),
FALSE
)
)
)

LeviP_1-1716272778999.png

 



 

Solved Solved
1 3 79
1 ACCEPTED SOLUTION

Slices don't automatically create all the associated views.

The 3 main types of view you would be interested in would be a Detail, a Form and an Inline (Table).  I would name these views in a similar manner to how the system names system views.

You have 3 slices.  Parents, Teachers and Staff and these would all be slices of a Table you haven't mentioned.  But that Table would have had some system created views made at the time you added the table to your app.

When you add views to your app, you get the chance to specifiy which table the view is for.  You can also specifiy a slice of a table in here as well.  I would try first of all the create a new view of type Form on your Teachers slice.  Name the view Teachers_Form.  This will allow the system to automatically find and display that view whenever you click the Add button while displaying a view based on your Teachers slice.

Also add a View of type Detail for your Teachers slice and name it Teachers_Detail.  This will allow the system to automatically show you the correct detail view for your Teachers slice.

Finally, add a Table view for your Teachers slice and name it Teachers_Inline.   This will give you all the main viewtypes for that specific slice.  If you click a row on the inline view then the system will show you the correct detail view for that slice.

That is generally the way different views are constructed for slices.  You may or may not want to have all those views for all those slices though.

Generally, if a view does not exist for a specific table or slice, the system will construct a temporary view that is displayed at the time the view is needed.  If a viewtype of type TABLE does not exist for instance and the current view has an Inline list of records then Appsheet will construct a view called 'fast table' as a temporary view.  It is NOT possible to edit and make changes to temporary views like this.  However, you could create the view as described above and the next time the inline table was show, Appsheet would choose your 'Tablename_Inline' view name to display instead of 'fast table'.

Also, if a specific viewtype for your slice does not exist, but the viewtype exists for the base table then Appsheet will choose that view whenever it has to display that type of view to the user.

I hope this explanation has given you some ideas as to how to progress.

View solution in original post

3 REPLIES 3

Slices don't automatically create all the associated views.

The 3 main types of view you would be interested in would be a Detail, a Form and an Inline (Table).  I would name these views in a similar manner to how the system names system views.

You have 3 slices.  Parents, Teachers and Staff and these would all be slices of a Table you haven't mentioned.  But that Table would have had some system created views made at the time you added the table to your app.

When you add views to your app, you get the chance to specifiy which table the view is for.  You can also specifiy a slice of a table in here as well.  I would try first of all the create a new view of type Form on your Teachers slice.  Name the view Teachers_Form.  This will allow the system to automatically find and display that view whenever you click the Add button while displaying a view based on your Teachers slice.

Also add a View of type Detail for your Teachers slice and name it Teachers_Detail.  This will allow the system to automatically show you the correct detail view for your Teachers slice.

Finally, add a Table view for your Teachers slice and name it Teachers_Inline.   This will give you all the main viewtypes for that specific slice.  If you click a row on the inline view then the system will show you the correct detail view for that slice.

That is generally the way different views are constructed for slices.  You may or may not want to have all those views for all those slices though.

Generally, if a view does not exist for a specific table or slice, the system will construct a temporary view that is displayed at the time the view is needed.  If a viewtype of type TABLE does not exist for instance and the current view has an Inline list of records then Appsheet will construct a view called 'fast table' as a temporary view.  It is NOT possible to edit and make changes to temporary views like this.  However, you could create the view as described above and the next time the inline table was show, Appsheet would choose your 'Tablename_Inline' view name to display instead of 'fast table'.

Also, if a specific viewtype for your slice does not exist, but the viewtype exists for the base table then Appsheet will choose that view whenever it has to display that type of view to the user.

I hope this explanation has given you some ideas as to how to progress.

Thank you very much

Great answer Scott192. Congratulations

Top Labels in this Space