Pre-populate a form with Slice data

VBBA
New Member

Hi,

I have a table โ€œTechnologyโ€ and have created a slice โ€œDatastoreโ€ with a filter [Capability]=โ€œDatastoreโ€ on column โ€œTechnologyโ€. I then create a Detail view with data from the slice โ€œDatastoreโ€.

When adding a new record, the system brings out a form based on the sequence defined in the โ€œDatastoreโ€ slice. Is there a way to pre-populate the [Capability] column with the value โ€œDatastoreโ€, since this is the intension of the user to add a new row with the โ€œDatastoreโ€ capability?

Hope my question make sense.

Thanks.

0 2 202
  • UX
2 REPLIES 2

@VBBA

What I can think of is to display the Datastore in the Initial Value of the [Capability] column for the Datastore_Form View that will be generated.

For example, you can set the Initial Value as follows

IFS(CONTEXT(VIEW)="Datastore_Form", "Datastore")

Please refer to the following screenshot for the setting part

VBBA
New Member

Hi, Takuya_Miyai, thank you for your reply.
CONTEXT(VIEW) doesnโ€™t seem to return the name of the slice form as expected (return empty string). I tried context(table), that returns the table name.

I wonder whyโ€ฆ

Top Labels in this Space