Ignition Perspective Deploy

Hello!

I have a partially finished Perspective project and I would like to show it to the users.
I added them on the users on the gateway with their username and password.
image

What should I send them for them to see the project?
Should I send them the ip of the project when I launch it?

You can copy the link from gateway Home | View Projects | right-click on project.

1 Like

Ok, then I send this link to the users and they will see the Ignition Login Screen?

Try it in Incognito mode on your browser. It should work.

1 Like

I copied the link in another browser Incognito window. It loads directly the project without login window.

Should I do something for the login window to appear?

It sounds like you haven't restricted the project properly.
Check Project Properties | Perspective | Permissions.

1 Like

Ok, great! now the login window appear.

now i will start configuring the user permission logic with something like:

app.misc.userName = system.security.getUsername()
oUser = system.user.getUser(app.misc.strUserSource, app.misc.userName)
app.misc.userRoles = oUser.getRoles()

I guess when all is set up I just need to send the link to the Users so they can use the project.

Thanks Transistor.-

Why script? You should be able to do it on the view.
Project Browser | select view | right-click | Configure View Permissions...

1 Like

In the view I got table data filtered by zone with checkboxes,

the permision logic is for some people can see all the zones 0,1,2,3,4,5,6 , some people just one and some people some.

the checkboxes work the way you taught me on custom.zonaFilters with Expression Structure

	selected_levels = []

	if value['listZona_1']:
	    selected_levels.append('01')
	if value['listZona_2']:
	    selected_levels.append('02')
	if value['listZona_3']:
	    selected_levels.append('03')
	if value['listZona_4']:
	    selected_levels.append('04')
	if value['listZona_5']:
	    selected_levels.append('05')
	if value['listZona_6']:
	    selected_levels.append('06')
	

	zona_filter_str = ','.join(selected_levels)
	
	
	return zona_filter_str if selected_levels else None

I guess I have to put some logic to diable the checkboxes the user can´t check for filtering.

I got some feedback about how to do it on:

in the gateway user configuration I already got a note with the zones that user have access to

the zonaFilters is a parameter on the query of places used to filter the main query

1 Like