SharePoint Ribbon custom button "enablescript"
Hi,
I want to set permission for all selected items in library.
I 've added custom button to ribbon.
My custom button{ find all selected items and redirect to "mypage.aspx?ids=12,25,45" } .
In them there is no problem....
But..
if curentuser does not have full control permissions then mybutton must be disable..
EnableScript not working:((
I 'have tried this and like this examples.
I inserted alert('') between rows..
and this row not working.
context.executeQueryAsync(Function.createDelegate(this, this.onSuccessMethod), Function.createDelegate(this, this.onFailureMethod))
http://social.technet.microsoft.com/Forums/sharepoint/en-US/f21ad6b1-445a-497d-a286-d3ba8c2928a6/how-to-get-the-current-user-permission-level-on-a-list-item-with-ecmascript
Hi,
This enablescript not working.
function ItemhasPermissions()
{ var buttonState= true;
var selectedItems = SP.ListOperation.Selection.getSelectedItems();
var count = CountDictionary(selectedItems);
if (count > 0)
var i;
for (i in selectedItems)
if( !selectedItems[i].get_effectiveBasePermissions().has(SP.PermissionKind.editListItems))
buttonState=false;
return buttonState;
Similar Messages
-
Add additional Javascript code on OOTB sharepoint ribbon button.
Hello,
We have SharePoint Ent and Project Server 2010 SP-2 environment.
So the requirement is like that we have 1 OOTB "Save" ribbon button for Project Server 2010 Project Detail Pages. Which actually Saves and Publishes the project updates into Project Server database.
Here I have to execute javascript code basically to refresh the page right after user click OOTB "Save" button and Projects gets saved into database.
But here I am not getting any pointer how to add this additional Javascript code into commandaction of existing OOTB "Save" ribbon button, so that my Project gets save and publish and also I'll be able to refresh the page right after the save and
publish.
Please help me let me know how can i hook into OOTB SharePoint ribbon button actions.
Thanks !!!
Sachin Vashishth MCTSHi,
It will not easy to add actions to an OOTB ribbon button, there is a workaround that we can replace it with a custom button.
Here is a documentation about Replacing a Button on the Server Ribbon:
http://msdn.microsoft.com/en-us/library/ff407619.aspx
Another two links about create a custom ribbon button for your reference:
http://msdn.microsoft.com/en-us/library/office/ff407458(v=office.14).aspx
http://sharepoint.stackexchange.com/questions/20646/attach-a-javascript-function-to-an-ootb-ribbon-button
Best regards
Patrick Liang
TechNet Community Support -
Adding custom button to Ribbon for custom list definition
I'm trying to add a custom button to the ribbon, specifically for a custom list definition. I have two custom list definitions, one for a document library (Type="11008") and one for a list (Type="10002").
I can use the following CustomAction to successfully add a button to the document library ribbon:
<CustomAction Id="MyCustomAction.DocLib"
RegistrationId="11008"
RegistrationType="List"
Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Library.Share.Controls._children">
<Button
Id="MyCustomAction.DocLib.Button"
Alt="Help"
Sequence="5"
Command="SayHi"
Image32by32Left="-64" Image32by32Top="-320" Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png"
Image16by16Left="-64" Image16by16Top="-176" Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png"
LabelText="Say Hi!"
TemplateAlias="o1"/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler Command="SayHi" CommandAction="javascript:alert('Hi!');"/>
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
If I try to do the same thing for my list, the button does not show up:
<CustomAction Id="MyCustomAction.List"
RegistrationId="10002"
RegistrationType="List"
Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.List.Share.Controls._children">
<Button
Id="MyCustomAction.List.Button"
Alt="Help"
Sequence="5"
Command="SayHi"
Image32by32Left="-64" Image32by32Top="-320" Image32by32="/_layouts/$Resources:core,Language;/images/formatmap32x32.png"
Image16by16Left="-64" Image16by16Top="-176" Image16by16="/_layouts/$Resources:core,Language;/images/formatmap16x16.png"
LabelText="Say Hi!"
TemplateAlias="o1"/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler Command="SayHi" CommandAction="javascript:alert('Hi!');"/>
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
What am I missing that is keeping me from getting this button to show up in my List ribbon?Well, I debated just deleting my question, but I'll leave it up in case someone else runs into this. My custom list definition for my list had <Toolbar Type="Freeform" />. I don't remember why I changed that, but once I changed
that back to <Toolbar Type="Standard"/> my custom buttons started showing up as expected.
The answer
here pointed me in the right direction. -
Hi all!
I have custom solution for sharepoint with application pages and ribbons.
So, I need to disable all ribbon buttons on all pages of my solution for a certain user groups.
I know how disable each ribbon button through EnableScript property. But is there the way to make it once for all?
Update - I didn't mean to hide button at all. I mean to make it gray - and unavailable to push.(as sharepoint
makes unavailable buttons when no permission to add,delete list items, only view)You should be able to use the information in this article to get you started.
http://www.endusersharepoint.com/2010/11/09/hiding-the-sharepoint-2010-ribbon-from-anonymous-users/
Create a JS file (HideScript.js) and paste the following code in it, which hides the ribbon for a certain page. Upload the JS file to some document library for e.g. "SiteAssets"
function HideRibbon() {
$("#s4-ribbonrow").hide();
var newHeight = $(document).height();
if ($.browser.msie) {newHeight = newHeight - 3; }
$("#s4-workspace").height(newHeight);
_spBodyOnLoadFunctionNames.push("HideRibbon");
Refer the JS in your page layout(for which you would like to hide ribbon) like this:
<asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server">
<asp:literal ID="Literal6" runat="server" Text="<script src='" />
<asp:literal ID="Literal7" runat="server" Text="<% $SPUrl:~site/SiteAssets/jquery-1.8.0.min.js %>" />
<asp:literal ID="Literal8" runat="server" Text="' type='text/javascript' ></script>" />
<asp:literal ID="Literal1" runat="server" Text="<script src='" />
<asp:literal ID="Literal2" runat="server" Text="<% $SPUrl:~site/SiteAssets/HideScript.js %>" />
<asp:literal ID="Literal3" runat="server" Text="' type='text/javascript' ></script>" />
</asp:ContentPlaceHolder>
Update: with CSS it's just
#s4-ribbonrow
display: none;
If this helped you resolve your issue, please mark it Answered -
[SharePoint Ribbon] Add SplitButton needs Command="InsertImage"!!
I am adding SplitButton to the Media Group in the Interst Tab. However, if i supply Command="InsertImage", then the SplitButton works just fine, if i remove it the SplitButton gets disabled! The problem is that i have a forced item in the menu called "From
SharePoint", although i have two buttons only in my SplitButton, but it appears 3.
Here is my code for the SplitButton:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="COB.SharePoint.Ribbon.NewGroupInExistingTab"
Location="CommandUI.Ribbon">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.EditingTools.CPInsert.Media.Controls._children">
<SplitButton
Id="Ribbon.EditingTools.CPInsert.Video"
Command="InsertImage"
CommandMenuOpen="InsertImageMenuOpen"
CommandMenuClose="InsertImageMenuClose"
Image16by16="/_layouts/images/lg_icwmd.gif"
Image32by32="/_layouts/images/lg_icwmd.gif"
LabelText="Metro Blogs Videos"
MenuAlt="Metro Blogs Videos"
Sequence="20"
TemplateAlias="o1"
ToolTipTitle="Metro Blogs Videos"
ToolTipDescription="Metro Blogs Videos">
<Menu Id="Ribbon.EditingTools.CPInsert.Media.Image.Menu">
<MenuSection
Id="Ribbon.EditingTools.CPInsert.Media.Image.Menu.Video"
DisplayMode="Menu"
Sequence="10">
<Controls Id="Ribbon.EditingTools.CPInsert.Media.Image.Menu.Image.Controls">
<Button
Id="Ribbon.EditingTools.CPInsert.Media.Image.Menu.Image.FromComputer"
Sequence="10"
Command="UploadVideoFromComputer"
LabelText="Insert ImageFrom Computer"
ToolTipTitle="Insert ImageFrom Computer"
ToolTipDescription="Insert ImageFrom Computer"/>
<Button
Id="Ribbon.EditingTools.CPInsert.Media.Image.Menu.Image.FromAddress"
Sequence="20"
Command="UploadVideoFromAddress"
LabelText="Insert Video From Address"
ToolTipTitle="Insert Video From Address"
ToolTipDescription="Insert Video From Address"/>
</Controls>
</MenuSection>
</Menu>
</SplitButton>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="UploadVideoFromComputer"
CommandAction="javascript:UploadVideoFromComputer();"/>
<CommandUIHandler
Command="UploadVideoFromAddress"
CommandAction="javascript:UploadVideoFromAddress();"/>
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
<CustomAction
Id="UploadVideo.Script"
Location="ScriptLink"
ScriptSrc ="/_layouts/1033/MicrosoftServices.Social.MetroBlogs/JavaScripts/RibbonCustomActions.js"/>
</Elements>hi wael
if you don't supply command, your button cannot be handled. you most take any command name and then define command handler for that command in CommandUIHandlers part of your customaction, or use standard commands like
InsertImage , that implemented in sharepoint.
sample
<SplitButton
Id="Ribbon.EditingTools.CPInsert.Video"
Command="testCommand"
CommandMenuOpen="InsertImageMenuOpen"
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="testCommand"
CommandAction="javascript:testCommandFunc();"/>
<CommandUIHandler
and then define testCommandFunc in a JavaScript file and attache that file to your page.
or use sharepoint ecma standard functions in custom action like this:
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="testCommand"
CommandAction="javascript:alert('Label handler');"/>
<CommandUIHandler -
Get the Version history of a sharepoint 2013 Custom List item
Hi All,
I am having doubt to retrieve the field version information with the comments.
For this field i am done like this
1.Creating a custom list
2.And enable versioning for the list
3.And add a field with field type 'Multiple Lines of Text' and in the Addition Column Settings section 'select yes radio button option in 'Append changes to the Existing text'.
4.If we done like this the changes to the list item are available outside of field control.
Can any one help me regarding this field to get the all the versions of list item along with modified data.hi Asatish,
Thanks for posting your issue, Kindly browse the below mentioned URLs to know about the fixes of this issue
http://berg-henry.blogspot.in/2010/11/custom-list-form-with-version-history.html
http://somnathmatere.blogspot.in/2013/10/sharepoint-2010-custom-display-form.html
http://blog.qumsieh.ca/2009/01/29/understanding-the-append-changes-to-existing-text-option/
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh -
Custom button, Outlook 2010
Just had Office 2010 installed on work computer (up from 2007).
I had used a custom toolbar in Outlook 2007 and had made my own "buttons" to do repeated tasks (most the buttons linked to other network locations). 2007 Outlook you could make a custom button, then right click on it and "Customize" and provide a hyperlink
(to web, or to files or to network locations etc).
That functionality seems to be gone in Outlook 2010...or am I missing it somewhere? I am in Outlook all day and loved being able to immediatly hit a button that would open a network location or an IE URL.
I have searched extensively online, but cant find any reference to this for Outlook 2010.
Thanks for any help.Can you/anyone provide the appropriate code to open a URL within the Outlook frame - not a separate browser window? I'd like to create a ribbon bar button which opens a URL within the Outlook frame.
Thanks,
Susan
Try this:
Sub OpenURLinOutlook()
Dim olNameSpace As Outlook.NameSpace
Dim olFolder As Outlook.Folder
Dim webFolder As Outlook.Folder
Set olNameSpace = Application.GetNamespace("MAPI")
Set olFolder = olNameSpace.GetDefaultFolder(olFolderInbox)
On Error Resume Next
Set webFolder = olFolder.Folders("OpenURLinOutlook")
On Error GoTo 0
If webFolder Is Nothing Then
Set webFolder = olFolder.Folders.Add("OpenURLinOutlook")
End If
webFolder.WebViewURL = "http://www.bing.com"
webFolder.WebViewOn = True
Set Application.ActiveExplorer.CurrentFolder = webFolder
Application.ActiveExplorer.CurrentFolder.Display
End Sub
Max Meng
TechNet Community Support -
Add on custom button to ALV toolbar in std tcode ME51N, ME52N and ME53N.
Hi All,
I have the requirement to add on the custom button to ALV toolbar in ITEM OVERVIEW for standard transaction ME51N, ME52N and ME53N. Does anyone know what enhancement point or user exit i should apply and how i can add on the custom button?
Thanks.There are no user exits or badi's for COOIS. You may have to make copy of the PPIO_ENTRY to ZPPIO_ENTRY including all the varians without changing their names like copy SAP&COOIS to SAP&COOIS. Create a T-Code ZCOOIS and replace COOIS in variant SAP&COOIS to ZCOOIS not in the name of the variant but in the field "Check Authorization for".
The PF-Status is found in the include LCOISOUTPUTF16 which is located in the function group COISOUTPUT you may have to copy that too. Finally you need to copy SAPLCOISOUTPUT with its GUI status GENERAL and add your custom button there. -
Custom button on ALV report for Tcode FL10G ?
Hi All,
I want to add custom button in the AVL report for FL10G transaction. And then need to implement logic for that button (calling BAPI to create shipment for the selected records).
For VL10G alv program GUI Status - STANDARD001 I think I can add button in this gui by using access key.
But how to implement logic for this custom button? Where I can put the code for this button logic?
Please let me know if any one has any ideas on this issue.
I appreciate your help and time on this.
Thanks.
MHi Murali,
The standard program it will not allow to copy the GUI Status. Because source and target program should not same.
It will definitely debug will work. Yo can create the GUI Status through SE41. In SE41 Just give Program name :SAPLV50R_VIEW click the button status. here you should not give any gui status. just blindy say create the then it will popup screen appears in the screen. Here you can mention your Z GUI Status. It is not required to create all the menus manually instead of the there is button which is located in the screen next to blue i button. here you can click and select the standard interface. You can get all the menus as similar to standard. Like that you should create Menu Bar, Application Toolbar and Function Keys Menus. Then you can add your custom button in the Application tool bar button.
When you execute the Transaction VL10G and check your cusom menu button will appears. Once you click custom button only exit will trigger. Find the below code for your reference.
CODE
loop at ct_postab assigning <fs>
where selkz = 'X'.
*To Fill the BAPI Header Parameters
str_ordhdr-ship_cond = w_sval-value.
*To Fill the BAPI HeaderX Parameters
str_ordhdrx-updateflag = 'U'.
str_ordhdrx-ship_cond = 'X'.
call function 'BAPI_SALESORDER_CHANGE'
exporting
salesdocument = <fs>-vbelv
order_header_in = str_ordhdr
order_header_inx = str_ordhdrx
tables
return = str_return.
endloop.
read table str_return into w_return index 1.
if sy-subrc eq 0.
if not w_return-type = 'S'.
message w_return-message type 'E'.
leave to current transaction.
endif.
endif.
*Do the BAPI Commit
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
endif.
endif.
endif.
Let me know if you have anything to discuss on the same. -
Adding Custom Breadcrumb for SharePoint 2013 Custom Master-Page With A Custom Separator.
Hi All,
I have successfully converted an HTML file to a SharePoint 2013 Custom Master-Page with relevant style sheets. But when I used within the SharePoint site I could not find the breadcrumb. So I want to know how to do that? For that breadcrumb I need a custom
separator like an arrow like in the below.
As you can see the separator is a custom built one. To have this custom separator in my HTML I have used the following code snippet.
<div class="breadcrumb-desktop">
<span class="breadcrumb-links"><a href="#">SharePoint Site Home</a></span>
<span class="breadcrumb-links"><a href="#">Sub Link 01</a></span> Active Page
</div>
The styles are as like in the below.
.breadcrumb-desktop {
width: 100%;
font-family: Arial;
padding: 23px 0 40px;
float: left;
font-size: 0.75em;
line-height: 1.25;
.breadcrumb-desktop > span.breadcrumb-links:after {
content: " \203A ";
white-space: pre;
I have tried the following code snippet within the SharePoint site as
<!--MS:<asp:sitemappath runat="server" sitemapproviders="SPSiteMapProvider,SPXmlContentMapProvider" rendercurrentnodeaslink="false" hideinteriorrootnodes="true">-->
<!--ME:</asp:sitemappath>-->
But it did not display as I wanted.
So how am I supposed to insert these to my Custom Master-Page's breadcrumb and style them? Please could someone help me to solve this?
Thanks and regards,
ChiranthakaHi Chiranthaka,
Please use the following code snippet in your html master page.
<div class="CustomBreadcrumbs">
You are here:
<!--SPM:<SharePoint:AjaxDelta id="DeltaPlaceHolderPageTitleInTitleArea" runat="server">-->
<!--SPM:<asp:ContentPlaceHolder id="PlaceHolderTitleBreadcrumb" runat="server">-->
<!--MS:<asp:sitemappath runat="server" sitemapproviders="SPSiteMapProvider,SPXmlContentMapProvider" rendercurrentnodeaslink="false" hideinteriorrootnodes="true">-->
<!--ME:</asp:sitemappath>-->
<!--SPM:</asp:ContentPlaceHolder>-->
<!--SPM:</SharePoint:AjaxDelta>-->
</div>
Here is a thread for your reference:
https://social.msdn.microsoft.com/Forums/office/en-US/daabd903-df98-41da-80d8-6a942d06980e/add-breadcrumb-to-custom-master-page-html-file?forum=sharepointcustomization
We can also customize a breadcrumb control, then add it in master page.
http://msreddysharepoint.blogspot.com/2013/01/custom-breadcrumb-navigation-in.html
Best Regards
Dennis Guo
TechNet Community Support -
How can I create a custom button for opening a form?
I have a parent form having child forms. In my main form I want to create custom buttons for opening child forms. I want to use master-detail form but there are more than one child forms, and in master-detail form I can only create one detail form. So I will create a form based on a table and in that form I will call the child forms by custom buttons. Can I do that?
Thanx,
Gulsah.This can be easily done. First open up two instances of your Portal. In one window, you will need to go into your component you wish to link FROM. In the other window you will need to go into your component you wish to link TO. In the component you wish to link TO there will be a moduleid. Note this somewhere. Then, you will see an area that says: "Call Interface: Show". Click on this. (In the window you are linking to.). In this window, you will see a bunch of stuff. At the bottom you will see a URL call. This is the call you need to use. At the top, it explains each piece of the URL call. Just subsitute YOUR appropriate information into the URL call. In the form you wish to link FROM, create a button. Once you create this button, it will appear at the bottom, click on it and you will see an area to insert a Javascript. Click the onClick and insert:
//this is the variable you want to pass from one form to the other
get_field_name = getField(this.form,'COLUMN_NAME_IN_DATABASE');
//this is so you can open the "child" form
window.open('/pls/cc_prod/DAD_NAME.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=MOD_ID_HERE&p_arg_names=_sessionid&p_arg_values=&p_arg_names=COLUMN_NAME_IN_DATABASE&p_arg values='+GETFIELD_NAME+'&p_arg_names=_COLUMN_NAME_IN_DATABASE_cond&p_arg_values=%3D');
In the fourth tab, where it says, "....before displaying form" insert the following: (This will tell the form how to handle the getField function.)
htp.p('<script language="JavaScript1.3">
< !--
function getField(form,fieldName)
var objName = "";
var tmp = "";
var dAction = "";
var sel_idx = 0;
var cnt = 0;
var instance = 0;
var slicedName;
var fillData = new Array();
for (var i = 0; i < form.length; i++)
slicedName = form.elements.name.split(".");
tmp = slicedName[2];
instance = parseInt(slicedName[3],10);
if (!tmp)
continue;
objName = tmp;
if (objName == fieldName)
return form.elements[i].value;
//-->
</script>');
I hope this helps.
null -
How can I open a URL from a Custom Button in a second help window?
I have a custom button, which currently opens a URL in a web
browser, using a redirect page. How can I change this so that it
opens in a second help window instead? If I understand some of the
posts I've read, it is possible by linking the button to a related
topics function but I've no idea how this is done.
As usual, your help is most appreciated. Thanks a lot.Hi, ecoulyn,
You need to make a topic file like the one below the target
of the Jump button.
The onLoad function on the Body start-tag causes the Related
Topics command to fire when the topic file is loaded in the topic
pane. When specifying the file name of the topic to display in the
secondary window, you must always prepend it with the name of your
.chm file, followed by "::/". Otherwise, an error message appears
when the Jump button is clicked.
Pete -
How to create a custom Button in a SNP planning book
Hi Experts,
I created my own Planning Book and Dataview in SNP with 3 Key Figures: KF1, KF2, KF3. Now I want to create one my own button with Macro so that when I press that button, the Macro will run to calculate: KF3 = KF1 + KF2.
I know that I can drag this Macro to one of default events like: Default, Level Change, Start. But actually, I want to create my own button so that I can handle the event as I want.
My question are:
1. How to create a custom button on the toolbar of SNP Planning book and writing macro for the button?
2. Please give me any document, material teaching about writing macro and relating to my above scenario.
Thanks very much!
Duyennx
Edited by: xuanduyen on Sep 6, 2011 9:20 AMHi,
Access the transaction "/n/sapapo/advm". In the list select your planning book/ data view and click 'Start Macro Builder' button.
In the Macro builder screen, drag and drop your macro from Macro depot to the work area.
Right click on your macro name and select 'properties'. In the pop up, next to the Assigned Push button field, there is a button 'Choose'. Click that. It will display all the available icons. In standard system, it displays more than 1000 icon. Choose any one icon which is suitable for your macro function. Close the pop up and save the macro. This will assign a push button to your macro.
In the Planning book tool bar, you can see the selected icon in the header tool bar. Just by clicking that icon, you can execute the macro interactively.
And I don't know whether we can include/design our own icon. But there are already 1000+ standard icons to choose.
Regards,
Manimaran M. -
How to add a custom button in WD screen to call a workflow in siebel?
Hi All,
We have a requirement to have a custom button at the summary screen(after the rule execution) "Create Opportunity", on clicking on it a new opportunity record should be created in Siebel. As we know the "Save" link calls "PolicyAutomationSaveSession" inbound web service method and saves the information in session table and we can modify the PreSession and PostSession workflows. But we are not sure how it calls the service method and where is the mapping defined.
Can you please help me on how to add a custom button and how to invoke a workflow in siebel side to implement this requirement?
Also is there any document which can help me to add a custom button in screen and to add the code behind the button?
Thanks in advance!!
Regards,
SubhradeepSubhradeep,
Closing a Web Determinations window is essentially the same as closing any HTML window. It involves javascript, which you would have to add to the Web Determinations templates.
Essentially the javascript command to close a window is {{window.close}} or {{top.close}}
For timing, you might be able to use the setTimeout function of Javascript (see: http://www.w3schools.com/jsref/met_win_settimeout.asp)
At the risk of exposing exactly how bad my javascript skills are, I have attached a super-simple html fragment, a page that closes itself after 3 seconds. It may help you get started in the right direction. In general closing a window is a fairly dubious activity and is often not permitted by certain browsers. This html page at least works in Internet Explorer.
<html>
<head>
<script language="JavaScript">
setTimeout(closeMe, 3000);
function closeMe() {
alert("This window will close");
top.close();
</script>
</head>
<body><B>This window will close in three seconds</B></body>
</html>
{code} -
Add a custom button on notification page and open a oaf page after button
Hi All,
My Requirement is add a custom button on notification page and after button click with take some parameter from notification page like supplier_id and org_id then open a new oaf page and show supplier credit and debit balance but problem is that button is only enable to a ap invoices notification not for other type of notification.
how to take approach/action i don't know.
it is possible through OAF personalization/customization or it is part of work flow customization.
Navigation path - payable->worklist->open notification and Type of notification also there
Type should be matched with AP_Invoices type notification then custom button enable.
Please Let me know is it possible or not. If possible how to achieve this. ...................................it's argent...plz help me
Edited by: 815572 on Nov 25, 2010 1:15 AMHi Irk,
My notification came in given below format (in table) but my custom button only enable for Contract Approval Type not for others..........i hv attach a button on notification page (subject-Contract 21969-R17......)
From Type Subject Sent
Taylor, Phillip Contract Approval Contract 21969 - R17-AUG-07 06:19:27 has been approved by Taylor, Phillip 22-Aug-2007
Taylor, Phillip OKS Contract Process Contract 21975 - R17-AUG-07 06:22:18 for AT&T Universal Card (52,500.00 USD) has been published online 19-Aug-2007
Taylor, Phillip OKS Contract Process Contract 21969 - R17-AUG-07 06:19:27 for AT&T Universal Card (15,000.00 USD) has been published online 19-Aug-2007
If I just put a button SHOW BALANCE just like notification button APPROVE, REJECT, REASSIGN but this button shows all types of notification and my req. is this button show only for Contract Approval type notification. how to handled this issuesss ?
if extend the co of notification page then how to handle TYPE value from worklist page ....please write proper code if u hv any idea...........
Thanks,
Maybe you are looking for
-
How do I share music between different accounts on a single Mac?
I've placed my iTunes folder in the shared users folder and then pointed all users to that folder... but none of the other users are able to see the music. How can I have all users on the same computer using the same iTunes music folder?
-
Yosemite, Security Settings Does Not Unlock
Hi, I am trying to change my security settings so unapproved software can be also installed. However, when I click on the lock, it does not unlock after I type in my credentials and I am an admin on my computer. Can anyone help with this? By the way,
-
SAP HA ASCS Instance service Shared Memory Problem
Hi Gurus, I have completed the setup of ASCS and ERS instance for SAP HA. The system was working fine, but yesterday when I was trying to start the ASCS instance, it shows following error in the dev_enqsrv log file. ShadowTable:attach: ShmCreate - p
-
What is it? and how can i fix it?
I add the songs onto my iphone but some songs show up in the dark color and the others show up and the names are faded and on the far left its like a sync thing next to the songs. what is it? and how can i fix it?
-
Flash player over https / mapped port
We are running a web app. This is to show a chart (flash chart) The app runs fine when using "ordinary" port 80. The chart does not show when using port 4443 (this is a mapped https port) Since nothing else seems to be different, it ought to be a htt