Remove from page:
<asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderNavSpacer" runat="server"></asp:Content>
Find the "PlaceHolderPageImage" and add image:
<asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server"><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></asp:Content>
2010年11月17日 星期三
2010年11月12日 星期五
Get Url for Current page
To Ensure the page is reachable. User:
SPUtility.GetPageUrlPath(HttpContext.Current));
SPUtility.GetPageUrlPath(HttpContext.Current));
2010年11月11日 星期四
Save Multiple Users into SharePoint List
SPFieldUserValueCollection pmCollection = new SPFieldUserValueCollection();
for...{
SPUser user= SPContext.Current.Site.RootWeb.AllUsers[your username];
SPFieldUserValue UserName = new SPFieldUserValue(web, user.ID, user.ID.ToString());
pmCollection.Add(UserName);
}
SPContext.Current.ListItem[your field name] = pmCollection;
// save item
SaveButton.SaveItem(SPContext.Current, false, string.Empty);
SPContext.Current.ListItem.Update();
for...{
SPUser user= SPContext.Current.Site.RootWeb.AllUsers[your username];
SPFieldUserValue UserName = new SPFieldUserValue(web, user.ID, user.ID.ToString());
pmCollection.Add(UserName);
}
SPContext.Current.ListItem[your field name] = pmCollection;
// save item
SaveButton.SaveItem(SPContext.Current, false, string.Empty);
SPContext.Current.ListItem.Update();
2010年11月8日 星期一
Create List Item Menu on Specific List
1. Goto "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES" and create a folder (Exampel: CustomListItemMenu )
2. Create “Feature.xml”
<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/"
Id="{C7B4AEEE-88D8-46eb-80AB-666228D19280}"
Scope="Web"
Title="Custom Action ***"
Version="1.0.0.0"
Description="Anything you can input">
<ElementManifests>
<ElementManifest Location="MenuItems.xml"/>
</ElementManifests>
</Feature>
3. Create “MenuItems.xml” which can be named anything else as long as you provide appropriate reference in “ElementManifest” section described above. Here is what we’ll have in our “MenuItems.xml”:
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="Name of the action"
RegistrationType="ContentType"
ShowInLists = "True"
RegistrationId="0x010060E9BA54FF561C4E8F05788698ABF445"
Location="EditControlBlock"
Sequence="101"
Title="Open as Word 2003***"
>
<UrlAction Url="~site/_layouts/CustomAction.aspx?ID={ItemId}& amp;List={ListId}"/>
</CustomAction>
</Elements>
NOTE:
You need to find out
RegistrationType="ContentType" RegistrationId="0x010060E9BA54FF561C4E8F05788698ABF445"
1. Go Setting => List Settings => Advanced Settings
2. Select the Yes radio button on the “Allow management of content types”
3. Click OK
4. On the Setting page. Find the Content Type section and click on "item" or your default content type"
5. Copy the “ctype” value in URL as your RegistrationId
6. Copy this value into the RegistrationId attribute
If you want to do list type. Setting is:
RegistrationType="List"
RegistrationId="100"
RegistrationId = templateID
Go here to find out.
4. The key item in the definition above is to set the “RegistrationId” to the “ListTemplate” value we have taken down earlier. This will ensure the context menu item will be attached only to the types we have specified.
stsadm -o deactivatefeature -name CustomListItemMenu -url http://site -force
stsadm -o uninstallfeature -name CustomListItemMenu -force
stsadm -o execadmsvcjobs
stsadm.exe -o installfeature -name CustomListItemMenu
stsadm.exe -o activatefeature -name CustomListItemMenu -url http://site -force
stsadm -o execadmsvcjobs
iisreset
2. Create “Feature.xml”
<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/"
Id="{C7B4AEEE-88D8-46eb-80AB-666228D19280}"
Scope="Web"
Title="Custom Action ***"
Version="1.0.0.0"
Description="Anything you can input">
<ElementManifests>
<ElementManifest Location="MenuItems.xml"/>
</ElementManifests>
</Feature>
3. Create “MenuItems.xml” which can be named anything else as long as you provide appropriate reference in “ElementManifest” section described above. Here is what we’ll have in our “MenuItems.xml”:
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="Name of the action"
RegistrationType="ContentType"
ShowInLists = "True"
RegistrationId="0x010060E9BA54FF561C4E8F05788698ABF445"
Location="EditControlBlock"
Sequence="101"
Title="Open as Word 2003***"
>
<UrlAction Url="~site/_layouts/CustomAction.aspx?ID={ItemId}& amp;List={ListId}"/>
</CustomAction>
</Elements>
NOTE:
You need to find out
RegistrationType="ContentType" RegistrationId="0x010060E9BA54FF561C4E8F05788698ABF445"
1. Go Setting => List Settings => Advanced Settings
2. Select the Yes radio button on the “Allow management of content types”
3. Click OK
4. On the Setting page. Find the Content Type section and click on "item" or your default content type"
5. Copy the “ctype” value in URL as your RegistrationId
6. Copy this value into the RegistrationId attribute
If you want to do list type. Setting is:
RegistrationType="List"
RegistrationId="100"
RegistrationId = templateID
Go here to find out.
4. The key item in the definition above is to set the “RegistrationId” to the “ListTemplate” value we have taken down earlier. This will ensure the context menu item will be attached only to the types we have specified.
stsadm -o deactivatefeature -name CustomListItemMenu -url http://site -force
stsadm -o uninstallfeature -name CustomListItemMenu -force
stsadm -o execadmsvcjobs
stsadm.exe -o installfeature -name CustomListItemMenu
stsadm.exe -o activatefeature -name CustomListItemMenu -url http://site -force
stsadm -o execadmsvcjobs
iisreset
2010年9月28日 星期二
64 bit: Cannot recycle connection pool
Error:
C:\WINDOWS\SysWOW64>iisapp.vbs /a "SharePoint - 80" /r
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Input Error: Can not find script file "C:\WINDOWS\system32\iisapp.vbs".
Solution:
I copied iisapp.vbs, cmdlib.wsc and iisschlp.wsc over from %WINDIR%\System32 to %WINDIR%\SysWOW64
I registered cmdlib.wsc and iisschlp.wsc using regsvr32 cmdlib.wsc and regsvr32 iisschlp.wsc respectively
C:\WINDOWS\SysWOW64>iisapp.vbs /a "SharePoint - 80" /r
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Input Error: Can not find script file "C:\WINDOWS\system32\iisapp.vbs".
Solution:
I copied iisapp.vbs, cmdlib.wsc and iisschlp.wsc over from %WINDIR%\System32 to %WINDIR%\SysWOW64
I registered cmdlib.wsc and iisschlp.wsc using regsvr32 cmdlib.wsc and regsvr32 iisschlp.wsc respectively
2010年8月30日 星期一
Error: Login/Logout not working on Basic Authentication.
Just to add some information for others reading this thread. I only got it working when i switched to a login/logout jspx page and not while using Basic authentication. The adfAuthentication servlet is not able to invalidate the browser session set with Basic authentication. If you follow the steps in chapter 28.5.3 of Fusion Developer’s Guide for Oracle Application Development you should be ok.
From: http://forums.oracle.com/forums/thread.jspa?threadID=835464
From: http://forums.oracle.com/forums/thread.jspa?threadID=835464
Error: Java code in jsp source files is not allowed in ojsp.next mode
One option is: disable ojsp mode.
1. go to Project Property
2. go to ADF View
3. Enable User Customizations
4. check on Across Sessions using MDS
1. go to Project Property
2. go to ADF View
3. Enable User Customizations
4. check on Across Sessions using MDS
2010年8月19日 星期四
Error: ORA-01005: null password given; logon denied
In your JDeveloper
Click onModule.xml
Click on Configurations
SelectModuleLocal
Click on the Edit button
Change the Connection Type to JDBC DataSource
Redeploy your application to the WLS
Click on
Click on Configurations
Select
Click on the Edit button
Change the Connection Type to JDBC DataSource
Redeploy your application to the WLS
2010年8月17日 星期二
Error: You need permission to perform this action
1. Click start windows button
2.click programs
3. click accessories
4. Right Click command prompt and slect run as Adminstrator
5. click continue
6. type in witth out quotes "net user administrator /active:yes
7. enter
8. restart computer
2.click programs
3. click accessories
4. Right Click command prompt and slect run as Adminstrator
5. click continue
6. type in witth out quotes "net user administrator /active:yes
7. enter
8. restart computer
2010年7月30日 星期五
Oracle SOA:Stop and start command
Middleware/user_projects/domains/soa_domain/bin/stopWebLogic.sh &
Middleware/user_projects/domains/soa_domain/bin/stopManagedWebLogic.sh soa_server1 &
Middleware/user_projects/domains/soa_domain/bin/stopManagedWebLogic.sh bam_server1 &
Middleware/user_projects/domains/soa_domain/bin/startWebLogic.sh &
Middleware/user_projects/domains/soa_domain/bin/startManagedWebLogic.sh soa_server1 &
Middleware/user_projects/domains/soa_domain/bin/startManagedWebLogic.sh bam_server1 &
Middleware/user_projects/domains/soa_domain/bin/stopManagedWebLogic.sh soa_server1 &
Middleware/user_projects/domains/soa_domain/bin/stopManagedWebLogic.sh bam_server1 &
Middleware/user_projects/domains/soa_domain/bin/startWebLogic.sh &
Middleware/user_projects/domains/soa_domain/bin/startManagedWebLogic.sh soa_server1 &
Middleware/user_projects/domains/soa_domain/bin/startManagedWebLogic.sh bam_server1 &
訂閱:
文章 (Atom)