Creating opening screen of available forms

I want to emulate Sample Custom App Launcher but instead of launching/opening other apps, I want to display the forms the logged on user can access. My users are all assigned certain ROLEs (PI_NO) which give them specific tasks they can do based on that role. Such as, data entry, review and approve requests of those under them and probably more.

In the Sample Custom App Launcher, the Launcher table has the URL to each app listed. I would like to call a LINKTOVIEW(โ€œFormBasedOnUsertableโ€)
Simply putting a specific LINKTOVIEW(โ€œS_ASIA_Curateโ€) did not work. There is not a data type for Form or Expression that I could find.

I tried multiple other ways and nothing worked. Any ideas of how to have a menu type opening form, with or without images? Simply as a way to navigate the app based on data in the User table?

Lucinda

Solved Solved
0 13 365
  • UX
1 ACCEPTED SOLUTION

Open that main viewโ€™s definition and choose App link with the option โ€œRow selectedโ€.

View solution in original post

13 REPLIES 13

Hi lucinda, please use #control=S_ASIA_Curate in your spreadsheet and it should work with the App column.

Thank you Aleksi.


I have to click on the little red symbol next to #CONTROL=JFAPI_DATA_ENTRY
to open the form. We are close. What am I missing?

Open that main viewโ€™s definition and choose App link with the option โ€œRow selectedโ€.

If I may trouble you again.

Previously I was using a form to have the user select their role (PI_NO) and then used an action to open the appropriate data entry form.

The action:
LINKTOFORM(
SWITCH( [PI_NO],
โ€œ2โ€ , โ€œJFAPI_Data_Entryโ€,
โ€œ3โ€ , โ€œJFCPI_Data_Entryโ€,
โ€œ4โ€ , โ€œJFPI_Data_Entryโ€,
โ€œ5โ€ , โ€œJFDPI_Data_Entryโ€,
โ€œ6โ€ , โ€œJFTPI_Data_Entryโ€,
โ€œ7โ€ , โ€œJFTPI_Data_Entryโ€,
โ€œEnter Requestโ€ ),
โ€œPI_NOโ€,[PI_NO])

That worked perfectly, but now I have a USERS table and want to get the PI_NO from it based on the USEREMAIL() of the logged in user.
The USERS table has USER_EMAIL and PI_NO as fields. How do I do the reference in the above expression to connect the logged in user and get the PI_NO?

Thanks again. I have a big learning curve, been out of doing any app/db design since my Microsoft Access days in the 80โ€™s.

Lucinda

Instead of writing like [PI_NO], you could use LOOKUP(USEREMAIL(),โ€œUsersโ€,โ€œEmailโ€,โ€œPI_NOโ€)

Thanks Alexsi. Iโ€™m not sure where to place the lookup expression.

This expression ran without errors but didnโ€™t give me the results based on the userโ€™s PI_NO.
LINKTOFORM(
SWITCH([PI_NO],
โ€œ2โ€ , โ€œJFAPI_Data_Entryโ€,
โ€œ3โ€ , โ€œJFCPI_Data_Entryโ€,
โ€œ4โ€ , โ€œJFPI_Data_Entryโ€,
โ€œ5โ€ , โ€œJFDPI_Data_Entryโ€,
โ€œ6โ€ , โ€œJFTPI_Data_Entryโ€,
โ€œ7โ€ , โ€œJFTPI_Data_Entryโ€,
โ€œEnter Requestโ€ ),
[PI_NO],(LOOKUP(USEREMAIL(),โ€œUsersโ€,โ€œUser_Emailโ€,โ€œPI_NOโ€)))

Obviously Im not understanding. Or maybe Iโ€™m just calling the action from the wrong place. I was calling it from a dummy form based on the user table so that seemed to be capturing the record I was on instead of the logged in user.

The following two had errors in the way they were formatted.

LINKTOFORM((LOOKUP(USEREMAIL(),โ€œUsersโ€,โ€œUser_Emailโ€,โ€œPI_NOโ€)
SWITCH([PI_NO],
โ€œ2โ€ , โ€œJFAPI_Data_Entryโ€,
โ€œ3โ€ , โ€œJFCPI_Data_Entryโ€,
โ€œ4โ€ , โ€œJFPI_Data_Entryโ€,
โ€œ5โ€ , โ€œJFDPI_Data_Entryโ€,
โ€œ6โ€ , โ€œJFTPI_Data_Entryโ€,
โ€œ7โ€ , โ€œJFTPI_Data_Entryโ€,
โ€œEnter Requestโ€ ),
โ€œPI_NOโ€,[PI_NO]))


LINKTOFORM(
SWITCH((LOOKUP(USEREMAIL(),โ€œUsersโ€,โ€œUser_Emailโ€,โ€œPI_NOโ€),
โ€œ2โ€ , โ€œJFAPI_Data_Entryโ€,
โ€œ3โ€ , โ€œJFCPI_Data_Entryโ€,
โ€œ4โ€ , โ€œJFPI_Data_Entryโ€,
โ€œ5โ€ , โ€œJFDPI_Data_Entryโ€,
โ€œ6โ€ , โ€œJFTPI_Data_Entryโ€,
โ€œ7โ€ , โ€œJFTPI_Data_Entryโ€,
โ€œEnter Requestโ€ ),
โ€œPI_NOโ€,[PI_NO]))

Hi Aleksi,
I am also facing a similar issue.
But, somehow, I couldn't find the option you have mentioned. Could you pls share a screenshot?
I have a Home view (Details view type) with Image, Title, Description & Link (Name of the View) & a virtual column > "#view=&[Link] with App as Data field to open 2 Forms.
Always ending up with a view similar to what Lucinda had.
I am having tough time to just show the icon with Title & Description as a clickable link to open respective views. Any help would be much appreciated.
Thanks.

Thank you so much.

Hi @Lucinda_Mason
The Oil rig Inspection forms sample apps have lots of forms. You may find some ideas in those.

Thanks Lynn. Iโ€™ll definitely have to study those. So much to learn. Thanks for pointing me.

Tryโ€ฆ

LINKTOFORM(
SWITCH(LOOKUP(USEREMAIL(),โ€œUsersโ€,โ€œUser_Emailโ€,โ€œPI_NOโ€),
โ€œ2โ€ , โ€œJFAPI_Data_Entryโ€,
โ€œ3โ€ , โ€œJFCPI_Data_Entryโ€,
โ€œ4โ€ , โ€œJFPI_Data_Entryโ€,
โ€œ5โ€ , โ€œJFDPI_Data_Entryโ€,
โ€œ6โ€ , โ€œJFTPI_Data_Entryโ€,
โ€œ7โ€ , โ€œJFTPI_Data_Entryโ€,
โ€œEnter Requestโ€ ),
โ€œPI_NOโ€,LOOKUP(USEREMAIL(),โ€œUsersโ€,โ€œUser_Emailโ€,โ€œPI_NOโ€))

THANK you so much Aleksi. That worked. I so appreciate your help.

Youโ€™re welcome

Top Labels in this Space