I am trying to setup automation notifications on a custom DAC, not an exiting one.
I couldn't found any sources which explains step by step how to do that.
So I've a custom DAC EAAsset and custom graph AssetEntry. Exactly what is the correct way to make a standart notifications button visible? And then what steps are required to make it work?
There is a hidden property called NotifyIndicator, which once set to true on the top-level form will show the Notifications button in the top-right corner of the screen:
<asp:Content ID="cont2" ContentPlaceHolderID="phF" Runat="Server">
<px:PXFormView ID="form" runat="server" DataSourceID="ds" ... NotifyIndicator="True" >
<Template>
...
</Template>
</px:PXFormView>
</asp:Content>
Related
I'm trying to create a locked down stock item lookup with only a few fields that is ready-only, but I can't disable the Notes and File attachments. I've tried setting up a role with only view access to the stock items screen and locking down the individual objects on the screen and revoking all other screens, including the hidden screens.
I've also tried to create a generic inquiry with view only access but the initial file and note columns still appear and are not locked down.
Is there anyway to do this without creating a custom page? I am working on v5.3.
UPDATE 3/31: Based on my comment below, does overriding the CSS class for the toolbar create any major problems or concerns? I do understand this hides the customization and help button along with the Notes and Files.
<asp:Content ID="cont1" ContentPlaceHolderID="phDS" Runat="Server">
<style type="text/css">
.toolBarT { visibility: hidden; }
</style>
</asp:Content>
The same question has been asked and it sounds like the answer currently is No (there is no way to disable the edit of notes and files).
Duplicate:
Prevent update of note/files on disabled views
To hide this buttons you have to set properties 'FilesIndicator' and 'NotesIndicator' to False (properties belongs to Form control)
Follow up to helenira, here is a sample section (from Portal\Pages\SP\SP700000.aspx):
<px:PXGrid ID="gridInventoryItem" runat="server" DataSourceID="ds"
Width="100%" SkinID="Details" AdjustPageSize="Auto"
FilesIndicator="False" NoteIndicator="False" FastFilterID="edFindItem"
FastFilterFields="InventoryCD,Descr" SyncPosition="True">
I can't find the source code for the html used for the calendar table. I have the webpart, but not the html for the table. I need to strip the inline CSS and attributes.
Following is the markup for the event calendar (obviously this is what you see):
<%# Control Language="C#" AutoEventWireup="true"
Inherits="CMSWebParts_EventManager_EventCalendar" CodeFile="~/CMSWebParts/EventManager/EventCalendar.ascx.cs" %>
<div class="Calendar">
<cms:CMSCalendar ID="calItems" runat="server" EnableViewState="false" />
</div>
<div class="EventDetail">
<cms:CMSRepeater ID="repEvent" runat="server" Visible="false" StopProcessing="true" EnableViewState="false" />
</div>
So what you see on the live page is created by CMSCalendar control, which leaves in CMS.Controls library, which means you can't modify it unless you have full source code of Kentico.
I'd try to change the appearance of this control with CSS, if CSS doesn't work there is javascript/jQuery.
Have you looked into creating a skin? You can change the css classes used if needed.
Might help some
I created the following piece of code using Telerik:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="LinqDataSource1" AllowPaging="True" AutoGenerateColumns="False" Width="50%" AllowSorting="True">
<MasterTableView DataKeyNames="OrderID" DataSourceID="LinqDataSource1" PageSize="5">
<Columns>
<telerik:GridTemplateColumn DataField="Order" HeaderText="Order" UniqueName="Order">
<ItemTemplate>
<asp:Label runat="server" Text='<%#Eval("Order") %>'/>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
How I can declare the code that is within the "ItemTemplate" (the "Label") in the Page.Init?
I think you would need to use the grids ItemDataBound event rather than Page.Init, here is a code example from the telerik site showing how you might implement your logic http://www.telerik.com/help/aspnet-ajax/grid-conditional-image-display-in-grid-column.html
Creating Template Columns Programmatically
When creating template columns programmatically, the grid must be generated completely in the code-behind using the Page_Init event. Then, you must create the templates dynamically in the code-behind and assign them to the ItemTemplate and EditItemTemplate properties of the column. To create a template dynamically, you must define a custom class that implements the ITemplate interface. Then you can assign an instance of this class to the ItemTemplate or EditTemplateTemplate property of the GridTemplateColumn object.
From here
You might have problems with the above approach. If it doesn't work, try creating the whole column programmatically. This above link shows how to implement it.
I'm new to SharePoint and am looking to add some custom links or buttons to the ribbon (only want these to show on the ribbon when the advanced ribbon menu controls are not showing, if that makes sense). I'm on SharePoint Online (2010 edition, but will convert to 2013 shortly).
Here's a screenshot of where I'm looking to add links or buttons.
I think the code section in the v4.master that controls this area is this section but I'm having problems getting my links to show up in the correct area.
<div class="s4-trc-container-menu">
<div>
<wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false">
</wssuc:Welcome>
<wssuc:MUISelector ID="IdMuiSelector" runat="server"/>
</div>
</div>
Any suggestions? Much appreciated!
Assuming that you are using v4.master as your master page (default), there is a control with an ID of "RibbonTabRowRight" that surrounds the code snippet you have posted.
Any links and buttons that you want to add should go within this control, and before the Welcome Menu (the snippet you have posted). Whether you use a simple anchor tag or a more complex control depends on your requirements.
Example:
<SharePoint:SPRibbonPeripheralContent
runat="server"
Location="TabRowRight"
ID="RibbonTabRowRight"
CssClass="s4-trc-container s4-notdlg">
<SharePoint:DelegateControl runat="server" ID="GlobalDelegate0" ControlId="GlobalSiteLink0" />
<div class="s4-trc-container-menu">
<a href="EXAMPLE.ASPX" />MY EXAMPLE</a>
<div>
<wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false">
</wssuc:Welcome>
<wssuc:MUISelector ID="IdMuiSelector" runat="server"/>
</div>
</div>
<SharePoint:DelegateControl ControlId="GlobalSiteLink2" ID="GlobalDelegate2" Scope="Farm" runat="server" />
<span>
<span class="s4-devdashboard">
<Sharepoint:DeveloperDashboardLauncher
ID="DeveloperDashboardLauncher"
NavigateUrl="javascript:ToggleDeveloperDashboard()"
runat="server"
ImageUrl="/_layouts/images/fgimg.png"
Text="<%$Resources:wss,multipages_launchdevdashalt_text%>"
OffsetX=0
OffsetY=222
Height=16
Width=16 />
</span>
</span>
</SharePoint:SPRibbonPeripheralContent>
I have a requirement to display SharePoint fields as a footer on only certain pages, so this rules out a master page change, and I haven't had any success with plain-old HTML.
What I'm trying to display is the following code:
<SharePoint:DeveloperDashboard runat="server"/>
<div class="s4-notdlg" style="clear:both; background-color:orange; padding:10px">
<SharePoint:CreatedModifiedInfo ControlMode="Display" runat="server">
<CustomTemplate>
<br>Page Contact: <SharePoint:FormField FieldName="Page Contact" runat="server" ControlMode="Display" DisableInputFieldLabel="True" />
<br>Last modified on <SharePoint:FieldValue FieldName="Modified" runat="server" ControlMode="Display" DisableInputFieldLabel="True" />
by <SharePoint:FormField FieldName="Author" runat="server" ControlMode="Display" DisableInputFieldLabel="True" />
<br>Comments: <SharePoint:FormField FieldName="Check In Comment" runat="server" ControlMode="Display" DisableInputFieldLabel="True" />
</CustomTemplate>
</SharePoint:CreatedModifiedInfo>
</div>
When editing the page in Advanced Mode, no matter where I place the code, I break site definition. Is there a good place to insert this code in the page? Or does the Site Definition need to be changed.
Breaking the Site Definition may not be what you are thinking. It is just saying to you that the page is not one of the 'defaults' anymore, as a way to identify what have been customized on the site.
Every edit you make on those pages are like that, so it is OK to get that message. You may also "reset to site definition" when you want to, but this is not usually very stable on my experience.