AEM/CQ5 : Hide node from the sidekick menu - aem

I have a template node that I want to be active (cannot delete it), I just don't want it to be displayed in the siteadmin left menu.
I've tried sling:hideChildren; sling:hideProperties="jcr:title", not helping.
So here is the CRX view
And this is what I want to hide in siteadmin#
Any ideas?

It's pretty easy - just add property hidden with boolean value true for jcr:content node of page - and it will be hidden in both tree and grid.

Related

Attaching an ActiveX TreeView Control into a tabbed Access form

I have a tabbed form in Access and on one tab, I'd like to create an ActiveX TreeView object. When I go to build this object and drag it to the tab, it attaches itself to the general form instead of the tab. This puts the control over top of all the tabs instead of the tab I want it in.
How do I attach the ActiveX control to the tab and not the entire form?
I've done a number of different "moves" to try and get it to attach and I've looked through the options to see if there is an easy way to attach it but nothing actually defines how the control is attached unlike a normal Access form control that is contained in the tab.
I would like to keep the extra forms to a minimum and maintain a single, tabbed form with separate controls on each tab.
Answer:
Make sure to select the tab first and then create the TreeView control. TreeView controls cannot be attached to a tab page by drag/drop.
If done correctly, the control will be placed on the tab page just under the tab name within the borders of the tab page. A quick test by selecting other tabs can be done to check that it attached to the right tab and only that tab.

C++ Builder 6 Different Popup menu on Items and Subitems of a TreeView and No Popup on empty area

I want to have different popup menu on Items and SubItems and NO Popup menu on empty area of a TTreeView is that possible ?
I want something like the pictures bellow
There are two ways you can do that.
Create 2 separate TPopupMenu objects with the desired menu items, do not assign either one of them to the TreeView's PopupMenu property, and then use the TreeView's OnContextMenu event to call the Popup() method of whichever TPopupMenu you need based on which node the user is clicking on.
Create 1 TPopupMenu object and put both menu items in it, and assign it to the TreeView's PopupMenu property, then use the TPopupMenu.OnPopup event to show/hide the menu items based on which node the user is clicking on.
In either case, you can use the TTreeView.GetNodeAt() method to determine which node is located at the coordinates of a mouse click, if any.

Switching between forms in Subform panel in Microsoft access

I am new in Microsoft Access. What i want is to switch between forms in subform panel depending upon the user selects from drop down list. Attach file contains what i want
I google alot but didnt find any help. Thank you for your help.
Here is screen shot. but I am confused in finding control of subform.
Forms("frmMain").Form.subFormControl.SourceObject = "SubForm_2_A"
..should be all you need.
subFormControl is the name of the subform-container-control that contains Subform2.
frmMain is the name of the parent form, not labelled in your picture (actually, you might not have to put subform1 in a subform really, its content could be on the parent form).
EDIT:
The red frame marks a subform. Click on -1- to make sure the main form has the focus. Then click once on -2- and the control is selected, and its properties show up in the properties box on the right.
Note that you find the "source object" in the data page and the name of the control in the "other" page. Access makes the name (of the control) the same as the form, which is really not such a bright idea and rather confusing.

jsTree + jsTreeGrid -> render icons for newly created node

I successfully implements jsTree + jsTreeGrid in admin panel for
managing categories for products.
The only one problem is, that when i create new node via right mouse button context menu, the newly
created row does not contain columns with icons set in jsTreeGrid panel. The icons
are ID based (linked to other pages), therefore while rendering icons code have to know ID of newly created node.
Please note: After page refresh icons for new node are visible. Of course.
Any help is really appreciated.
What about programmatically refreshing the jsTree after adding new node? Search for refresh in doc for core

MVC Checkbox 'disable' true issue

I have two controls ControlEdit and ControlView with some inputs and checkbox and two views ReadOnly and Edit, I was using MvcContribn checkbox helper to make checkbox disable I did set attribute disable to true on defaultView(here I am loading ControlView) by default user chant make any changes on that view, then if user click change button he comes to edit view (ControlEdit) and here everything enabled.
For some reason every time on EditView check box became unchecked. I was trying to use default check box html helper - the same story.
On edit view it is always becoming unchecked. When I remove disable true attribute on ViewControl then it is became working and in that case check box does not loosing his state on EdivVew.
Then I was using jQuery to set checkbox disable, didn't help. I did look different browsers the same story everywhere. I am getting correct behavior only when i does not setting disable to true on ReadOnly view.
May be somebody come across that. Need help.
-FIXED-
Finally I fixed that,
I wrapped checkbox in to div and make checkbox disable inside div like this
$('#DivWrapper :input').attr("disabled", true)