Contains tips for configurators working with Aware IM
#41936 by ACDC
Tue Dec 20, 2016 8:16 am
Sometimes you may want to include a background in your separator or make the borders invisible . I use this often when using applicability rules to hide attributes as opposed to READ PROTECT - I place the attributes inside a separator and then make the separator invisible, but still there - it's much faster and more efficient - also run the applicability rule as dynamic on the form using a yes/no attribute based rule on the object

If you wish to do this , place the following code in the render script section of the advanced button on the form and then add the custom settings to your custom MyClass css file

Advanced Button (Render Script section):
---------------------------------------------------------------
var field = parser.getField ("Address1");
var id = field.getId ();

var separator = $("#" + id).closest ("fieldset");
separator.addClass ("MyClass");
------------------------------------------------------------
(The above var field needs to know at least one attribute name placed inside the separator to be customised, I am using "Address1" in this example))
#43751 by PointsWell
Thu Jun 22, 2017 8:07 am
Hi - have taken the plunge to try and control separators and
Code: Select all! important

in my CSS is essential!

Also - I need to use this for a separator that has a referenced grid within it, the getField method doesn't work because a grid is obviously not a field. How would I use the equivalent to identify the grid within the separator (fieldSet)?

I've been trawling the Kendo docs and it's given me a sore head but no clues.

Thanks
#43757 by tford
Thu Jun 22, 2017 1:39 pm
Mark,

Have loaded this up credited to ACDC and added a couple of screenshots and a sample BSV and CSS to https://awareimdevelopers.com


for some reason I can't find it on AwareIM Developers. Can you post the specific link?
#45205 by eagles9999
Thu Oct 12, 2017 11:20 pm
They were on the old site....

Try this...

http://awareimdevelopers.com/2017/07/23/taking-control-of-a-form-separator-contributed-by-acdc/

However, I have just realised that there is a problem with the site. Will fix shortly.
#45311 by ACDC
Thu Oct 19, 2017 10:32 am
Also - I need to use this for a separator that has a referenced grid within it, the getField method doesn't work because a grid is obviously not a field. How would I use the equivalent to identify the grid within the separator (fieldSet)?


In this case, I place a shortcut in the separator area and then disable label so you cannot see the attribute on the form. The invisible attribute serves the purpose of identifying the separator
#46718 by Jaymer
Wed Mar 28, 2018 1:49 pm
ACDC
I WANT TO SAY THANKS for this.
Brilliant.

Until you're deep in the bowels of look and feel, you won't realize the LACK of ability to style this particular item.
I desperately needed to remove a lot of wasted space to tighten up the display and this fit the bill. Bravo!
#46721 by Jaymer
Fri Mar 30, 2018 2:11 pm
ACDC wrote:
Also - I need to use this for a separator that has a referenced grid within it, the getField method doesn't work because a grid is obviously not a field. How would I use the equivalent to identify the grid within the separator (fieldSet)?


In this case, I place a shortcut in the separator area and then disable label so you cannot see the attribute on the form. The invisible attribute serves the purpose of identifying the separator


Again, Brilliant. I also needed this.
But I don't understand how you make the shortcut invisible. Yes, I turned off the label.
#46786 by ACDC
Wed Apr 11, 2018 3:50 pm
But I don't understand how you make the shortcut invisible. Yes, I turned off the label


apologies for the late reply on this, but when you insert a shortcut attribute on a form there is no text box present, it shows the content only. So if you turn off the label and make sure the content of the shortcut attribute is undefined, it will then appear invisible. Alternatively setting the shortcut style, text and background using the presentation option could also make it invisible

Who is online

Users browsing this forum: No registered users and 2 guests