One-way switch?
-
- Posts: 51
- Joined: Thu Aug 06, 2009 11:09 pm
- OLAP Product: TM1
- Version: 10.2.20100.123
- Excel Version: 365
- Location: Sydney
One-way switch?
Hi All,
wanting to implement a one-way switch in TM1 9.1 as follows;
1. User enters data into cube via workbook against a particular element.
2. User indicates completion.
3. Element needs to be locked until released by Manager.
This would be easy to do by TI (just have the TI lock the element) but needs to be done without running a TI.
Difficulty seems to be that anything done by a user to lock the element (attributes, rules etc.) can also be un-done by that user.
I realise this is a workflow type scenario but there must be some simple way to do this in native TM1, surely.
Any ideas?
thanks,
Gregory
wanting to implement a one-way switch in TM1 9.1 as follows;
1. User enters data into cube via workbook against a particular element.
2. User indicates completion.
3. Element needs to be locked until released by Manager.
This would be easy to do by TI (just have the TI lock the element) but needs to be done without running a TI.
Difficulty seems to be that anything done by a user to lock the element (attributes, rules etc.) can also be un-done by that user.
I realise this is a workflow type scenario but there must be some simple way to do this in native TM1, surely.
Any ideas?
thanks,
Gregory
-
- Site Admin
- Posts: 6645
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: One-way switch?
May I ask why? It's possible to allow users to run TI's, and since they run with Admin permissions it solves your main problem, which is:GPC wrote:Hi All,
wanting to implement a one-way switch in TM1 9.1 as follows;
1. User enters data into cube via workbook against a particular element.
2. User indicates completion.
3. Element needs to be locked until released by Manager.
This would be easy to do by TI (just have the TI lock the element) but needs to be done without running a TI.
The TI is therefore able to lock the element, but the user can't unlock it. The manager, being in a different security group, could run a different TI to unlock the element.GPC wrote: Difficulty seems to be that anything done by a user to lock the element (attributes, rules etc.) can also be un-done by that user.
I've never done this myself, but I can't see any reason why it shouldn't work. Off the top of my head I can't think of another solution since, as you've said, you need something that the user can't undo.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
- Eric
- MVP
- Posts: 373
- Joined: Wed May 14, 2008 1:21 pm
- OLAP Product: TM1
- Version: 9.4
- Excel Version: 2003
- Location: Chicago, IL USA
Re: One-way switch?
I recall doing something that accomplished what you want, but with a different approach
1) User enters info in cube under scenario "Pending Approval"
2) Manager reviews
3) Manager approves by running a TI that loads only that departments information into a "Approved" scenario
* Approved Scenario is only read for all users, but since TI runs as ADMIN it can write the data to the scenario
1) User enters info in cube under scenario "Pending Approval"
2) Manager reviews
3) Manager approves by running a TI that loads only that departments information into a "Approved" scenario
* Approved Scenario is only read for all users, but since TI runs as ADMIN it can write the data to the scenario
Regards,
Eric
Blog: http://tm1-tipz.blogspot.com
Articles: http://www.google.com/reader/shared/use ... /label/TM1
Production: 32 bit 9.0 SP2, Windows 2000 Advanced Server. Web: 32 bit 9.0 SP2, Windows 2000 Server. Excel 2003
Eric
Blog: http://tm1-tipz.blogspot.com
Articles: http://www.google.com/reader/shared/use ... /label/TM1
Production: 32 bit 9.0 SP2, Windows 2000 Advanced Server. Web: 32 bit 9.0 SP2, Windows 2000 Server. Excel 2003
-
- Site Admin
- Posts: 1458
- Joined: Wed May 28, 2008 9:09 am
Re: One-way switch?
I did this some time ago using rules (partly in security cubes). We were demoing TM1 Workflow which doesn't actually lock anything and I needed to show users could lock their own data. It was relatively fiddly.
- Martin Ryan
- Site Admin
- Posts: 1989
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: One-way switch?
Can do it with a cell security rule
['Input cell', 'Group'] = S:
if(db('SettingsCube', !InputCell, 'Complete')@='Yes', 'READ', 'WRITE');
So the user puts 'Yes' into your SettingsCube, which then means the cell security will fire and lock the cell.
Cheers,
Martin
['Input cell', 'Group'] = S:
if(db('SettingsCube', !InputCell, 'Complete')@='Yes', 'READ', 'WRITE');
So the user puts 'Yes' into your SettingsCube, which then means the cell security will fire and lock the cell.
Cheers,
Martin
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
Jodi Ryan Family Lawyer
-
- Site Admin
- Posts: 6645
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: One-way switch?
Neat, but wouldn't that still have the problem that Gregory mentioned of being undoable by the user via them clearing the Settings Cube value? Or am I missing something?Martin Ryan wrote:Can do it with a cell security rule
['Input cell', 'Group'] = S:
if(db('SettingsCube', !InputCell, 'Complete')@='Yes', 'READ', 'WRITE');
So the user puts 'Yes' into your SettingsCube, which then means the cell security will fire and lock the cell.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
- Steve Rowe
- Site Admin
- Posts: 2455
- Joined: Wed May 14, 2008 4:25 pm
- OLAP Product: TM1
- Version: TM1 v6,v7,v8,v9,v10,v11+PAW
- Excel Version: Nearly all of them
Re: One-way switch?
You can have the same security in the settings cube so that as soon as the flag is set by the user it becomes read only.
Technical Director
www.infocat.co.uk
www.infocat.co.uk
- Martin Ryan
- Site Admin
- Posts: 1989
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: One-way switch?
Steve beat me to it, but here it is anyway...
You could also have cell security on the SettingsCube
['SettingsFlag', 'Group'] = S: if(DB('SettingsFlag', !Area, 'Value') @<>'', 'READ', 'WRITE');
That way as soon as the user signs it off, they are unable to change their mind.
I currently use that method for one of my processes. A user signs if off, then they cannot write to the cell that they just wrote to in order to sign it off.
I was initially concerned it might cause a circular error somehow, but it didn't.
Martin
You could also have cell security on the SettingsCube
['SettingsFlag', 'Group'] = S: if(DB('SettingsFlag', !Area, 'Value') @<>'', 'READ', 'WRITE');
That way as soon as the user signs it off, they are unable to change their mind.
I currently use that method for one of my processes. A user signs if off, then they cannot write to the cell that they just wrote to in order to sign it off.
I was initially concerned it might cause a circular error somehow, but it didn't.
Martin
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
Jodi Ryan Family Lawyer
-
- Site Admin
- Posts: 6645
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: One-way switch?
The thought briefly flitted through my mind, but I dismissed it as a circular issue as well. But upon reflecting there's no reason why it should be since it's about security rather than values.Martin Ryan wrote:Steve beat me to it, but here it is anyway...
You could also have cell security on the SettingsCube
['SettingsFlag', 'Group'] = S: if(DB('SettingsFlag', !Area, 'Value') @<>'', 'READ', 'WRITE');
That way as soon as the user signs it off, they are unable to change their mind.
I currently use that method for one of my processes. A user signs if off, then they cannot write to the cell that they just wrote to in order to sign it off.
I was initially concerned it might cause a circular error somehow, but it didn't.
Doubly neat, then!
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- Posts: 51
- Joined: Thu Aug 06, 2009 11:09 pm
- OLAP Product: TM1
- Version: 10.2.20100.123
- Excel Version: 365
- Location: Sydney
Re: One-way switch?
Hi All,
thanks for the great idea, I haven't tried it but looks like it should work a treat. What I found when trying to do it with rules is that a security refresh seemed to be required which takes up to minute on our Prod server. I also managaed to crash the dev box a few times trying to get cell security rules working.
In the end, however, I went for the TI approach - the reason I didn't want to do it this way initially is that there are approx 30 companies to Lock & I didn't want to have that many TI's run. However, it is a nice simple solution.
Eric, this is a good idea and one which we quite often use.
Thanks again,
Gregory
thanks for the great idea, I haven't tried it but looks like it should work a treat. What I found when trying to do it with rules is that a security refresh seemed to be required which takes up to minute on our Prod server. I also managaed to crash the dev box a few times trying to get cell security rules working.
In the end, however, I went for the TI approach - the reason I didn't want to do it this way initially is that there are approx 30 companies to Lock & I didn't want to have that many TI's run. However, it is a nice simple solution.
Eric, this is a good idea and one which we quite often use.
Thanks again,
Gregory