Hi,
I use build 2226 and wanted to hide a reference on the form if other attribute is defined to 'No'.
I used READ PROTECT, bt it doesn't work.
Attached is the CRM sample app.
How to reproduce the problem:
1. Login as admin
2. Go to Customers Query
3. Edit a customer-> Go to "Communication" tab in the form
4. Check/uncheck the "Communication Show" checkbox
It doesn't work.
Thx,
BUG or Limitation- READ PROTECT not hiding Reference
BUG or Limitation- READ PROTECT not hiding Reference
- Attachments
-
- READ_PROTECT_reference_not_working_01.bsv.zip
- (232.6 KiB) Downloaded 642 times
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
Re: BUG or Limitation- READ PROTECT not hiding Reference
I had used this feature in V7 and used to work.
But I did not use a checkbox to turn on/off. It might be a problem with Checkbox event handler in Aware and nor READ PROTECT.
But I did not use a checkbox to turn on/off. It might be a problem with Checkbox event handler in Aware and nor READ PROTECT.
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: BUG or Limitation- READ PROTECT not hiding Reference
This has always been a limitation - reference grids cannot be shown/hidden dynamically. Change the checkbox to save the form when it is ticked/unticked, rather than making the rule dynamic.
Aware IM Support Team
-
- Posts: 2401
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Re: BUG or Limitation- READ PROTECT not hiding Reference
I have just bumped into this and for some reason cannot get any Reference attribute control to hide either dynamically or statically.
I have the Drop Down that sets the condition to Save when changed but no luck
One of the controls is a Swap Select and can not make it hide under any circumstances.
Any ideas?
I have the Drop Down that sets the condition to Save when changed but no luck
One of the controls is a Swap Select and can not make it hide under any circumstances.
Any ideas?
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
-
- Posts: 2401
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Re: BUG or Limitation- READ PROTECT not hiding Reference
Ok.... Some interesting discoveries.....
If I have this....
If RemunerationTemplateComponent.ComponentType<>'A + B' OR
RemunerationTemplateComponent.ComponentType<>'A - B'
RemunerationTemplateComponent.ComponentType<>'A X B' OR
RemunerationTemplateComponent.ComponentType='A / B' OR Then
READ PROTECT RemunerationTemplateComponent.OperandA FROM ALL EXCEPT System
READ PROTECT RemunerationTemplateComponent.OperandB FROM ALL EXCEPT System
It does not work.
However, if I switch it around to test when equality exists rather than when it doesn't, like below.... It works.
If RemunerationTemplateComponent.ComponentType='COUNT' OR
RemunerationTemplateComponent.ComponentType='SUM' OR
RemunerationTemplateComponent.ComponentType='VALUE' OR
RemunerationTemplateComponent.ComponentType='COMMENT' OR
RemunerationTemplateComponent.ComponentType='PERCENTAGE' Then
READ PROTECT RemunerationTemplateComponent.OperandA FROM ALL EXCEPT System
READ PROTECT RemunerationTemplateComponent.OperandB FROM ALL EXCEPT System
Also, if I use a Multi-Select Drop Down rather than a Swap Select, then the READ PROTECT Rule works.
If I have this....
If RemunerationTemplateComponent.ComponentType<>'A + B' OR
RemunerationTemplateComponent.ComponentType<>'A - B'
RemunerationTemplateComponent.ComponentType<>'A X B' OR
RemunerationTemplateComponent.ComponentType='A / B' OR Then
READ PROTECT RemunerationTemplateComponent.OperandA FROM ALL EXCEPT System
READ PROTECT RemunerationTemplateComponent.OperandB FROM ALL EXCEPT System
It does not work.
However, if I switch it around to test when equality exists rather than when it doesn't, like below.... It works.
If RemunerationTemplateComponent.ComponentType='COUNT' OR
RemunerationTemplateComponent.ComponentType='SUM' OR
RemunerationTemplateComponent.ComponentType='VALUE' OR
RemunerationTemplateComponent.ComponentType='COMMENT' OR
RemunerationTemplateComponent.ComponentType='PERCENTAGE' Then
READ PROTECT RemunerationTemplateComponent.OperandA FROM ALL EXCEPT System
READ PROTECT RemunerationTemplateComponent.OperandB FROM ALL EXCEPT System
Also, if I use a Multi-Select Drop Down rather than a Swap Select, then the READ PROTECT Rule works.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Re: BUG or Limitation- READ PROTECT not hiding Reference
When hiding references using READ PROTECT, a good work- around is to place the reference in a separator and then use the Applicability option on the separator running off a dynamic recalc rule to do the hiding. That's off course if the need to hide is purely layout as opposed to a secure hide. I have a number of these working on a dynamic rule and it runs very smoothly
Also, if you do it this way you may want to hide the border of the separator (making it invisible) using a css class in the advanced script (render section). This way the separator is there but invisible when open or closed
Also, if you do it this way you may want to hide the border of the separator (making it invisible) using a css class in the advanced script (render section). This way the separator is there but invisible when open or closed
Re: BUG or Limitation- READ PROTECT not hiding Reference
This was my problem using separator which was causing gaps in the UI.ACDC wrote: Also, if you do it this way you may want to hide the border of the separator (making it invisible) using a css class in the advanced script (render section). This way the separator is there but invisible when open or closed
Re: BUG or Limitation- READ PROTECT not hiding Reference
You can get rid of the gaps with a custom CSS class in the form advanced script, I can dig it up for you if u are interestedThis was my problem using separator which was causing gaps in the UI.
Re: BUG or Limitation- READ PROTECT not hiding Reference
Well, if it's not too much trouble.ACDC wrote:You can get rid of the gaps with a custom CSS class in the form advanced script, I can dig it up for you if u are interestedThis was my problem using separator which was causing gaps in the UI.
-
- Posts: 2401
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Re: BUG or Limitation- READ PROTECT not hiding Reference
Yes, that would be very interesting to see.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Re: BUG or Limitation- READ PROTECT not hiding Reference
... here's hoping we soon get that new feature to just set DISPLAY=FALSE for any attribute/field.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL
-
- Posts: 2401
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Re: BUG or Limitation- READ PROTECT not hiding Reference
Nice spot Jaymer.
Sometimes cannot see the wood for the trees. I feel like such a Dill.
For those wondering.....
Jaymer just reminded me that for the above inequality test I should have been using ANDs rather than ORs.
Doh! Face Slap!
Thanx Man.
Sometimes cannot see the wood for the trees. I feel like such a Dill.
For those wondering.....
Jaymer just reminded me that for the above inequality test I should have been using ANDs rather than ORs.
Doh! Face Slap!
Thanx Man.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Re: BUG or Limitation- READ PROTECT not hiding Reference
I added the code to customise a separator here in the tips ad tricks section
http://www.awareim.com/forum/viewtopic.php?f=4&t=9323
http://www.awareim.com/forum/viewtopic.php?f=4&t=9323