![]() | ![]() |
|
01-24-2012 11:11 AM
The Web Client Configuration Guide document tells you how to customise almost any part of the web interface.
Section 1.29 explains how to add custom buttons to the toolbar. I can't work out from the instructions where you tell the system what to do when the button is pressed. I want to launch an admin form.
Can anyone help please?
01-25-2012 08:46 AM
Has anybody needed to do this?
01-27-2012 03:49 AM
Any assistance with this would be much appreciated.
01-27-2012 12:13 PM - last edited on 01-27-2012 12:45 PM
Hi Rich,
For your scenario, it sounds like all you are trying to do is launch a URL. I would refer to the Web Client configuration guide Section 4 (BPM URLs) to get the syntax of the Admin form URL you are trying to open.
Then in the Default.aspx page add the following under the definition of the telerick:RadToolBar around line 60:
<telerik:RadToolBarButton href="http://www.google.com" SkinID="MyPage" CheckOnClick="true" Group="NavItems" Text="My Page" ToolTip="My Page" />
(replace google's URL with the URL of your Admin form)
You're creating a new RadToolBarButton but there is no definition for the SkinID yet so you'll get an error if you just run it.
Now go to the Web\app_themes\Default\Default.skin file and find the corresponding skin definition for all those buttons around line 14 and add the following:
<telerik:RadToolBarButton skinid="MyPage" imageurl="Images/ListButtons/reports_off.png" HoveredImageUrl="Images/ListButtons/reports_on.png
After saving both files (Default.aspx and Default.skin) your button should now be clickable with 2 states. When you click it, google should open in a new window. You can change the images for the button states or add javascript to your liking.
*Edit * I just looked and it is not opening in a new window but you can play around with the link to get it to open in a different window.. ie target="_blank".
01-30-2012 05:32 AM - last edited on 01-30-2012 05:34 AM
Thanks for the reply, I tried to launch a new window using your suggested solution but couldn't get it to open in a new window.
Instead I've used this which seems to work:-
<telerik:RadToolBarButton NavigateUrl="http://<Server Name>/Metastorm/eForm.aspx?Map=eService_Desk&Clien
Text="Log New Call" ToolTip="Log New Call" />
But when the new window opens I get a message in the background :- "Nullable object must have a value."
Do you have any idea how I can avoid this?
Kind Regards
Rich
01-30-2012 12:42 PM - last edited on 01-30-2012 12:56 PM
Can you try it while leaving <CommandName="MyPage"> off?
Edited * Okay I just tested this and what you want to do is set CheckOnClick="false" and leave off the CommandName="MyPage" entirely... ie:
<telerik:RadToolBarButton NavigateUrl="http://<Server Name>/Metastorm/eForm.aspx?Map=eService_Desk&Clien
03-22-2012 04:10 AM
Hello
I want to fallow Metastorm BPM 9.1 SR1 WebClient Configuration Guide, and I Want to have embedded my external URL inside List interface on Content Viewer.
In default.aspx I have:
<telerik:RadToolBarButton SkinID="MyPage" CheckOnClick="true" Group="NavItems"
CommandName="MyPage" Text="GoogleInside" ToolTip="GoogleInside" />
In default.skin I have:
<telerik:RadToolBarButton skinid="MyPage" imageurl="Images/ListButtons/gl_on.png" HoveredImageUrl="Images/ListButtons/gl_on.png" CheckedImageUrl="Images/ListButtons/gl_on.png" ImagePosition="AboveText" runat="server" />
In default.aspx.cs I have:
// Put here logic for any custom content.
if (!(currentControl is ContentViewer))
{
ContentViewer myViewer = new ContentViewer();
myViewer = new ContentViewer() { Location = "http://www.google.com" };
myViewer.Enabled = true;
newControl = myViewer;
newControl.ID = newControl.GetType().Name + "_" + checkedGroupButton.CommandArgument;
MyNewControlPlaceHolder.Controls.Add(newControl);
}
break;
But I have the same message about nullabe object.
How can I do this without need of opening conent in new window?
03-22-2012 05:33 AM
I found problem.
Everything works fine if we will try-catch the line above:
ListType = listType.Value;
but this looks like it is not used at all
so comment this also works fine ![]()
![]() |
![]() |
![]() |
|
|
![]() |
![]() |
![]() |
















