How to add new button on Add content box in DVT
Hello All,
Currently we are using Dynamic Visitor Tool in weblogic portal 10.3.2 and want to add one new button e.g. "Favorite Portlets" along with portlet list when user clicks on Add Content menu option. Could any one explain what is the exact procedure to do it what are places/files we need to modify.
Thanks in advance.
Alka
Hi,
You will have to use the mixin mechanism provided in dvt. Here are the mixin classes you will need to add and methods to override within them.
Original class - com.bea.wlp.dvt.uikit.wlp.menus.MenuBuilder
Mixin class - com.bea.wlp.dvt.uikit.wlp.menus.MenuBuilderMixin
Your mixin class will look like -
wlp_dvt_dojo.setObject("com.bea.wlp.dvt.uikit.wlp.menus.MenuBuilderMixin", {
buildNavigableMenu: function(scope, allowRemovePlaceables)
var menuWidget = null;
var menuWidgets = scope.getDescendants();
for(var widgetIndex=0;widgetIndex < menuWidgets.length;widgetIndex++)
var tempMenuWidget = menuWidgets[widgetIndex];
if(tempMenuWidget instanceof dijit.Menu)
menuWidget = tempMenuWidget;
break;
if(menuWidget)
try
if(wlp_dvt_WlpResourceDelegateInstance().isResourceUpdateable(scope.model.id))
//Change Appearance menu item
menuItemArgs = {label:scope.messages.changeAppearance,
iconClass:"com_bea_wlp_dvt_uikit_menu_icon_laf",
onClick:dojo.hitch(null, scope._onChangeAppearance, scope)};
mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
menuWidget.addChild(mi);
//Change Layout menu item
menuItemArgs = {label:scope.messages.changeLayout,
iconClass:"com_bea_wlp_dvt_uikit_menu_icon_layout",
onClick:dojo.hitch(null, scope._onChangeLayout, scope)};
mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
menuWidget.addChild(mi);
//Add Books menu item
menuItemArgs = {label:scope.messages.addBook,
iconClass:"com_bea_wlp_dvt_uikit_menu_icon_book",
onClick:dojo.hitch(null, scope._onAddBooks, scope)};
mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
menuWidget.addChild(mi);
//Add a menu separator
menuWidget.addChild(new dijit.MenuSeparator());
//Add Content menu item
var menuItemArgs = {label:scope.messages.addContent,
iconClass:"com_bea_wlp_dvt_uikit_menu_icon_portlet",
onClick:dojo.hitch(null, scope._onAddPortlets, scope)};
var mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
menuWidget.addChild(mi);
//Set As Default menu item
menuItemArgs = {label:scope.messages.setDefault,
iconClass:"com_bea_wlp_dvt_uikit_menu_icon_setAsDefault",
onClick:dojo.hitch(null, scope._onSetAsDefault, scope)};
mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
menuWidget.addChild(mi);
if(allowRemovePlaceables && wlp_dvt_WlpResourceDelegateInstance().isResourceRemoveable(scope.model.id))
if(wlp_dvt_WlpResourceDelegateInstance().isResourceUpdateable(scope.model.id))
//Add a menu separator, but only if we have something to separate it from
menuWidget.addChild(new dijit.MenuSeparator());
//Remove Book menu item
var menuItemArgs = {label:scope.messages.remove,
iconClass:"com_bea_wlp_dvt_uikit_menu_icon_delete",
onClick:dojo.hitch(null, scope._onRemove, scope)};
var mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
menuWidget.addChild(mi);
//If no menu items were added to the main menu, don't render it
if(menuWidget.getChildren().length < 1)
scope.destroy();
catch(e)
//handle no DISC or no authentication.
In the abve code, follow the pattern to add a new menuitem in the place where you need it to show up. The method that gets called when the menuitem is clicked will go in the following mixin class -
wlp_dvt_dojo.setObject("com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuMixin", {
// add the method that gets called when your new menuitem is clicked
Note I haven't run the code above so please check for syntactical correctness before you run it. Also note that, unfortunately, the granularity of the buildNavigableMenu method above is very coarse in that you cannot add new menuitems as small snippets all by themselves. So you will have to include the base menu building code along with your new menu item building code snippet.
Thanks
Similar Messages
-
How to add content source in office 365 ?
How to add content source in office 365 , where I can add find Manage Content Sources page to click on New Content Source LInk
You can't. Only sources available is what is already set up...which is SharePoint/OneDrive4B and Exchange via eDiscovery.
Thanks,
Mikael Svenson - Search Enthusiast
SharePoint MVP/MCPD/P-TSP - If you find an answer useful, please up-vote it.
http://techmikael.blogspot.com/
Author of
SharePoint Search Queries Explained and
Working with FAST Search Server 2010 for SharePoint -
How to add check box in SAP B1 grid controls..
hi all,
Anyone know how to add check box in SAP grid control?
It will be great if you could show me some sample code.
thanks.
regards,
sohchHi Sohch,
1. First of all you should define the Column in a matrix as it_CHECK_BOX. Like
oColumns = oMatrix.Columns
oColumn = oColumns.Add("chk_YesNo", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
oColumn.TitleObject.Caption = "YesNo"
oColumn.Width = 60
oColumn.Editable = True
2. Bind it with a DBDataSource as defined
oColumn = oColumns.Item("chk_YesNo")
oColumn.DataBind.Bind("UDTable", "U_YesNo")
3. Make Sure that the value that is being put into the Database is either 'Y' or 'N'.
Hope this Helps
Rizwan Hafeez
Team Lead
SAP Addon Development Section
Abacus Consulting - Pakistan -
How to add contents of an arrayList to a JList
Hi,
I am trying to figure out how to add the contents of an arraylist to a Jlist.
Basically I have 3 classes which are as follow:
1. AuctionItems(String name, int bid) which represents an item in auction
2. AuctionItemsFactory which creates AuctionItems and adds them to an arraylist called stock
3. AuctionBidsGui1 which is the interface where the user can see the items in the auction and select them from a JList.
But I dont know how to read the contents of the stock(arraylist) into the JList which is in AuctionBidsGui1. Below are the 3 classes mentioned above
public class AuctionItems {
String name;
int bid;
public AuctionItems(){
name = null;
bid = 0;
public AuctionItems(String name, int bid){
this.name = name;
this.bid = bid;
public String getName(){
return name;
public int getBid() {
return bid;
public class AuctionItemsFactory {
private ArrayList<AuctionItems> stock;
int size;
public AuctionItemsFactory() {
stock = new ArrayList<AuctionItems>();
public void addItems(AuctionItems item) {
stock.add(item);
//removes last element of the arrayList
public void removeItems() {
int n = stock.size() - 1;
stock.remove(n);
public void printNumOfItems() {
int n = stock.size();
System.out.println(n);
public int numberOfItems(){
return stock.size();
public void printItems(){
for (AuctionItems item : stock) System.out.println(item);
and this one is a small part of the AuctionBidsGui1 class which represents the JList where the list of the items will go.
public void addItemListWidgets() {
itemsList = new JList();
itemsList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
itemsList.setLayoutOrientation(JList.VERTICAL);
itemsList.setVisibleRowCount(10);
itemsList.setSelectedIndex(0);
JScrollPane itemsListScroller = new JScrollPane(itemsList); // put the list in the scroller
itemsListScroller.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
itemsListScroller.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
itemsListPanel.add(itemsListScroller);
}I know that I have to use the toArray() but i dont know what type of method to use for this because i will need to implement a method in my AuctionItemsFactory class which will copy the contents of the arraylist into an array so then i can call this methos from my AuctionBidGui1 class.
I would appreciate if you could give me a bit more hints. -
How to Add Content Editor WebPart in PageLayout
Hi
I have copied the Content Editor webpart snippet and pasted it in my Page layout.
But nothing is showing in page edit mode.
Can anyone tell me how to add this if the following is not correct?
<div style="width:100%">
<div data-name="WebPartZone">
<!--CS: Start Content Editor Snippet--><!--SPM:<%@Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint,
Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>--><!--MS:<WebPartPages:ContentEditorWebPart xmlns:WebPartPages="namespace" runat="server" webpart="true">--><!--PS: Start of READ-ONLY
PREVIEW (do not modify)--><div class="ms-webpart-chrome ms-webpart-chrome-fullWidth "><div class="ms-webpart-chrome-title" id="WebPart_ChromeTitle"><span title="$Resources:core,ContentEditorWebPartTitle;
- $Resources:core,ContentEditorWebPartDescription;" id="WebPartTitle" class="js-webpart-titleCell"><h2 style="text-align:justify;" class="ms-webpart-titleText"><nobr><span>$Resources:core,ContentEditorWebPartTitle;</span><span
id="WebPartCaption"></span></nobr></h2></span></div><div WebPartID="00000000-0000-0000-0000-000000000000" HasPers="true" id="WebPart" width="100%" class="ms-WPBody ms-WPBorder
noindex ms-wpContentDivSpace " OnlyForMePart="true" allowDelete="false" style=""><div class="ms-rtestate-field"></div><div class="ms-clear"></div></div></div><!--PE:
End of READ-ONLY PREVIEW--><!--MS:<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">--><!--MS:<Title>--><!--SPM:$Resources:core,ContentEditorWebPartTitle;--><!--ME:</Title>--><!--MS:<Description>--><!--SPM:$Resources:core,ContentEditorWebPartDescription;--><!--ME:</Description>--><!--MS:<PartImageLarge>--><!--SPM:/_layouts/15/images/mscontl.gif--><!--ME:</PartImageLarge>--><!--MS:<ID>--><!--SPM:g_4998626c_cd3f_4f31_962c_51e943923c4f--><!--ME:</ID>--><!--ME:</WebPart>--><!--ME:</WebPartPages:ContentEditorWebPart>--><!--CE:
End Content Editor Snippet-->
</div>
</div>
S H A J A NHi ,
For adding the Content Editor Web Part to a SharePoint Layout , you can add the code between the <Zonetemplate> tags:
<!-- CEWP -->
<WebPartPages:ContentEditorWebPart ID="ContentEditorWebPart1" runat="server" __MarkupType="xmlmarkup" WebPart="true" __WebPartId="{F40E10C3-ED3A-473D-8538-996344EE795C}" >
<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
<Title>Content Editor Web Part</Title>
<FrameType>TitleBarOnly</FrameType>
<Description>Use for formatted text, tables, and images.</Description>
<IsIncluded>true</IsIncluded>
<PartOrder>2</PartOrder>
<FrameState>Normal</FrameState>
<Height />
<Width />
<AllowRemove>true</AllowRemove>
<AllowZoneChange>true</AllowZoneChange>
<AllowMinimize>true</AllowMinimize>
<AllowConnect>true</AllowConnect>
<AllowEdit>true</AllowEdit>
<AllowHide>true</AllowHide>
<IsVisible>true</IsVisible>
<DetailLink />
<HelpLink />
<HelpMode>Modeless</HelpMode>
<Dir>Default</Dir>
<PartImageSmall />
<MissingAssembly>Cannot import this Web Part.</MissingAssembly>
<PartImageLarge>/_layouts/images/mscontl.gif</PartImageLarge>
<IsIncludedFilter />
<ExportControlledProperties>true</ExportControlledProperties>
<ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID>
<ID>g_f40e10c3_ed3a_473d_8538_996344ee795c</ID>
<ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
<Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDATA[Edit this text.]]></Content>
<PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
</WebPart>
</WebPartPages:ContentEditorWebPart>
For more information, you can refer to the thread:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/1ba645f2-2481-4560-a4c3-3be9f9e878bc/adding-the-content-editor-web-part-to-a-sharepoint-layout-aspx-page?forum=sharepointcustomizationlegacy
http://hiren-j-patel.blogspot.com/2012/07/hello-all-today-we-will-add-content.html
Best Regards,
Eric
Eric Tao
TechNet Community Support -
How to add contents of hashset to file?
guys, i need to write hashset data to file..
here is my code:
HashSet<String> hs = new HashSet<String>();
File outfile3= new File("C:\\test.txt");
FileWriter of3 = (new FileWriter(outfile3));
Iterator it = hs.iterator();
while (it.hasNext()) {
String t = it.next(); <=error
of3.write(t);
error : Type mismatch: cannot convert from Object to String
help me out guys..
thanx in advance..add contents of hashset to file
... write hashset data to file
... new FileWriter(outfile3)Is it write or append? If append: I think FileWriter accepts an optional boolean append parameter.
of3.write(t);Try this:
of3.write(String.valueOf(t));... and BTW "wrapping" your FileWriter in a BufferedWriter improves throughput.
Cheers. Keith. -
How to add Content workflow to Webcenter spaces/ custom application
I would like to add Content work-flows ( Add - review - publish of content) to Webcenter spaces.so that users of Spaces/ application can work with add- publish-review cycle. I want to know if any thing like portlet or something available that can be added.
I have a webcenter 11g associated with OCS 10.1.3. Does the suites Content Portlet Suite/Content Integration Suite contain these workflows? Please help me in this regard thanks.
Thanks,
indra.Yes. it is the same way. once the Portletsuite is integrated you can create a workflow in Oracle conent server using Workflow Manager Applet. Extenal Identity store needs to be configured.
But I have some problem with webcenter spaces users on external Ldap server. In contribution checkout step ,I am not getting the checkout link. i am getting exception like "not suffient privilage".
But the workflow seems to work fine in idc application.
Unable to get schema fields. User 'auser' does not have sufficient privileges
* !csUserEventMessage,auser,CIS!$!csSchErrorGettingFields!csUserInsufficientAccess,auser
intradoc.common.ServiceException: !csSchErrorGettingFields!csUserInsufficientAccess,auser
at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor*
I created Users in webspaces using Own Registration feature. User gets created on Ldap server. And I am able to log on to the content server. If anybody happend to know more on this ,please reply.
Edited by: indra_owc on Dec 21, 2009 7:03 PM -
How to add check boxes on plant data /storage tab of MM01/02/03 transaction
Hello experts,
I want to add check boxes on plant data /storage tab of MM01/02/03 transaction.
How can we achieve this?
Thanks for your help in advance!Hi Shriram Nimbolkar ,
Go to tranx code : MM01 /MM02 / MM03
1 ) System-->Status , here copy the program
2) Go to abap editor ,specify the program name and copy the package
3) Go to CMOD or SMOD
CMOD>Utilites-> SAP Enanchements, Here specify the package and execute it..
4) Displays multiple exists,
check the suitable exists and insert the code in particular screen...
Reg
Siva Prasad -
How can a new button Event open sales order
CRM WEB UI issue.
On assignment Block there is a New button , on New button Event i have to open sales order .
Please help me.
Thanks in advance .
Kumar6Hi Kumar,
Whenever you got any requirement then find out on Web UI how they have done it. As now you want to show sales order then first find out Component name for Sales order.
So Go to transaction u2018CRM_UIu2019. Chose u2018SalesProu2019 as a Role. In Navigation Bar click on u2018Sales Cycleu2019 and in Second level link there is u2018Sales Orderu2019. Click on it. Check it is a screen you want on your button click.
If yes then you need to find its Technical Data (details). So click inside Work Area and press u2018F2u2019 key.
Then you will get UI component name, View name , Context name, Role key, etc. So you have to pick that UI Component name and give it in Transaction Code u2018CMP_WD_BSPWBu2019.
Now Go To u2018Run Time Repositoryu2019 , In Component Interface They have created u2018Component Interfaceu2019 that you need to call in your Button click event. If you donu2019t know use of u2018Component Interfaceu2019 then first read it else its good for you.
Well next time when you will write any Question, In Subject write it in One line so that all can see in list and answer you quickly.
Thanks,
Durgesh Pagar. -
How to add List Box in Dialog Screen
Hi All,
I need to add list box in Dialog screen.
In Dialog screen I have 2 radio buttons "Yes" and 'NO'.
If user selects radio button YES, then under Yes I need to display values in list box and these values should be retrieved from one table.
If user selects Radio button NO then under NO I need to display values in list box.
Please give the solution for above requirement.
Thanks
VijayVijay Reddy ,
To get Drop Drown Box on screen .
Follow these steps.
1.Go to T.Code SE51 and Select Laypout for the Screen.
2.Double click on the field for which u want Dropdown box.
3.Then U will see Name ,Text ,DROPDOWN.Click on that and select List Box or ListBox with key . Better to to select first one.
4.Save and Activate ur screen .
5.Enter the following piece of code in the PBO of the screen.(Change for ur
requirement).
The following logic needs to be written under PBO of the screen logic.
TYPE-POOLS :vrm.
DATA:
i_natio TYPE vrm_values, "-->Table that is passed through FM vrm_set_values
w_natio LIKE LINE OF i_natio.
DATA:
BEGIN OF i_t005t OCCURS 0,
land1 TYPE t005t-land1,
natio TYPE t005t-natio,
END OF i_t005t.
IF i_t005t[] IS INITIAL.
SELECT land1 natio
FROM t005t
INTO TABLE i_t005t
WHERE spras = sy-langu.
IF sy-subrc = 0.
LOOP AT i_t005t .
w_natio-key = i_t005t-land1.
w_natio-text = i_t005t-natio.
APPEND w_natio TO i_natio.
CLEAR w_natio.
ENDLOOP.
ENDIF.
ENDIF.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'I_IT0002-NATIO' "-->Field for which dropdown is needed.
values = i_natio
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
6.Observe the above code and change as for ur requirement.
I hope that it helps you .
Regards,
Venkat.O -
How to add check box in table control?
Dear frnds,
In our requirement i am used tablec ontrol for dialog programming, but i am confused about addition of check box as fields in table control.
Any help are welcome from your side.Hi,
Chk this demo program: DEMO_DYNPRO_TABCONT_LOOP_AT
& RSDEMO02.
Another way:
Go to the edit mode of the screen select the table control column you want to make it as check box and follow the menu EDIT->CONVERT->check box.
(make sure that column definition in itab/ddtab is of size 1 char)
Also chek out this link:
Add Check box in Table control
Hope these help you.
Regards,
Anjali -
How to Add content like on ie8 mymsn? The fox new groups and sports group from fox
On mymsn in ie8 I can have different sites such as fox news grettawire fox golf news, NFL news, NASCAR news, PC mag and many others. I would like to try firefox but do not know how to customize it.
Hi,
SEM-BCS or BI-BPC NW 7.0N is meant for similar kind of requirements. You'll probably need to get a functional guy involved for mapping the GL accounts from the new company to your existing one and have journal entries for inter-company transactions. After doing the same you can then consolidate both the data and have a common output.
search about BPC or BCS and you'll find out more. If you still need to do it in existing BI setup then get someone from FI and set the mappings of GL Accounts from both set the business rules and create a new cube to load the consolidated data.
Hope this helps
Regards
Raj -
Need Help, Don't Know How To Add Content
www.collegiateboard.com/main.html
I want to add text or an image below the sidebar1 (below, Click the Demo link if you want to mess around before posting)
Is there a way to add text there but I want it to be kept white. Meaning I don't want to extend the grey box lower. I want the grey box to stop there and add new text in the white area below it.
I would appreciate it if anyone can help me.This forum is for questions regarding HTML5 (a new web specification).
For general HTML or CSS layout questions, please visit the Dreamweaver General Discussion forum (see link below).
http://forums.adobe.com/thread/793650?tstart=0
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
How to add contents to Tab in TabStrip
Hi All,
My requirement is to display a screen/view as a content to a TAB when user selects any tab in the Tab Strip. I have developed screens for each tab seperately.
Can any one tell me how to achieve this in web dynpro.
Many Thanks.
Regs/Venkathi
>First insert tabstrip ui
>Right click tab strip ui and select insert Tab
>Expand the Tab and select the Tabs_content and right click the tab content and select insert child and select the ViewContainerUIElement
>In the Web dynpro Explorer View,expand the Project structure and select the Windows in the components.In the windows select ur window and expand it.
where u can see the view container you have inserted in the tab
>select the view containeruielement and right click it and select the Embed view and select the view which you want to embed
hope this helps,
Regards,
Arun -
How to add click box/button to QUIZ slides??
We have a basic quiz for our online course. At the top of the
quiz we have a navigation bar with next, back, main menu, help, etc
which we use a click box to make link.
However, when we're on a quiz slide the click box and button
option are grayed out. You can't access them at all. How can we fix
this?? We HAVE to have the top navigation be functional as it is
for the rest of the slides. Help!I'm having the same general problem you are.
I got this response a few days ago:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=464&threadid=1374767
Its a little different question but I think the answer can be
applied to both: Its not in the program to allow users to fully
customize question slides. Unfortunate, but a reality I guess.
-mphair
Maybe you are looking for
-
Networking the mini with a Media center PC
I have my Mini networked with a PC with Windows media center. I have not been apple to see recorded TV from the PC to the mini. Any ideas? Mac Mini Duo Mac OS X (10.4.6) networked wit PC
-
Problem in opening the package indesign
Hi guys, need help one of my client having problems in opening the indd package I have sent to them via ftp, the files are compressed in a zip file. Then I try to download the zip package, it opens and works well. I'm using CS3 windows base by the wa
-
11g SOA Composite Rules Error - Rule session pool object does not exist
Hi all, I'm hoping someone has experienced this and found a way through it. We're looking at exposing Oracle Rules DecisionFunctions via the automagically created web services in JDeveloper. We've tried several Rules examples, including the OrderAppr
-
Photoshop CC Signin and License Required
I have been using and paying for PS CC for more than 8 months - last payment was late August. When I sign in, it asks me to sign in. When I pretend it is not my Adobe ID and sign in again, it says that I need a license number. When I log into my a
-
I "inherited" the management of an OS X server (10.4.4), that runs AFP, Mail services and DHCP. The first thing I want to do, is migrate the users from the local directory (/Netinfo/DefaultLocalNode) to the LDAP (about 5 users). I have never done thi