The WebPart menu doesn't work in SharePoint 2010 - sharepoint

I created a WebPart,and it works in SharePoint 2007,I can edit or delete it.But the menu of this WebPart does't work in SharePoint 2010,when I click the menu,it shows nothing.I can't delete or edit it.
The error message is "The value of the property 'UpdateWebPartMenuFocus' is null or undefined, not a Function object",which points to:
UpdateWebPartMenuFocus(this, 'ms-wpselectlinkfocus', 'ms-WPEditTextVisible')
So I want to know the probable reasons for this problem,or any mistake I may have made with my codes.
Thanks!

The method UpdateWebPartMenuainFocus is defined in Core.js.
You need a reference to Core.js, either from your page or from a master page that your page uses.

Related

SharePoint List Add New Button Does Not Open "New Item Form"

I was trying to edit the New Item Form in SharePoint and something went wrong (i.e. I made a mistake). Now, when I click the New Item button, the form no longer opens. When I open the list in Infopath Designer (which I only just learned about while trying to fix this) I can see the form, so it's not lost. It's just that the link is broken. We are using the 365 Cloud version of SharePoint. Any ideas on how to fix this f_up? THANKS FOR ANY HELP YOU CAN GIVE!
Do other browsers have this problem?
Try switching the page to the default SharePoint form in the Form Settings.Then clear your browser cache and refresh the page to see if that works.
You can create a new list view that looks exactly like this one, set it as the default, and see if the new view has this problem.

List Search Box getting hidden in SharePoint 2013 List View WebPart

I am trying to add a list view webpart to my page in sharepoint 2013. I edited the webpart and checked 'Display Search Box' option in the miscellaneous section. But Once I finish editing and save the page, page refreshes and loads. But the search box is not coming at all.
I had a similar problem which occurred since I modified the styles inside the list view.
A few questions...
Have you modified the styles inside the view that webpart is using.
Is the list a new one or migrated?
Is this a Publishing site site or other?
You are using enterprise version or other?
Ensure you are using the Default style , any other style the search box does not appear

404 Item not found When Providing access to existing documents from an XPage View

I have been following the tutorial here for creating an XPage application. Unfortunately I am encountering an Error 404 HTTP Web Server: Item Not Found Exception when you try to follow a link to another document from the main view XPage. Everything else seems to function properly until that point.
It happens when you select "XPage associated with the documents form".
According to some googling I simply needed to rebuild my project but that didn't work. That was the only fix I was able to find.
The link for my xpage for my view is : http://localhost/ExpenseClaims.nsf/xclaimsview.xsp
The link to a xpage with the 404 error from my view is: http://localhost/ExpenseClaims.nsf/%24%24OpenDominoDocument.xsp?documentId=15DA9966C77908D385257C150070483D&action=openDocument
The problem has returned for my "claim" xpage that represents a form document named "claim". My response documents open as needed.
My associations are:
Views: Xpage:
Claims -> xclaimsView
Forms: Xpage:
claim -> claim
response -> response
Most likely the connection between your XPage and the form didn't work. Open the form, then in the properties pick the XPage you want to open. Save it and try again.
There's one special case when you have an XPage with the same name as the form, where that should happen automatically, but it is safer if you specify the property in the form (second tab on the property box)
The data connection from the xpage to the form seems to be breaking down that's a possible cause but not an acceptable answer. The reasons are everything from the project build being broken to the port that domino designer is using as default being occupied.
Cleaning then building the project may help (Project -> Clean) but in my case it didn't. Opening the Page by selecting it by name is helpful but not if you are opening two different pages from the same view(View Properties -> at run time open selected document). There was another suggestion that said to move the default domino test port(File -> Preferences -> Domino Designer) but that didn't work for me.
The final answer was to go to each form's properties box and link it to it's corresponding xpage (second tab form properties). (see answer marked as correct for a link to IBM with a better explanation)

Custom SharePoint SPUserField does not show up in InfoPath in Browser

I have create a custom field that inherits from SPFieldUser. Everything works fine on the site and the value displays fine in InfoPath as long as I am either in preview mode or select Edit In InfoPath. As soon as I view the form in the browser the field's value no longer displays. Has anyone seen anything like this before?
Thanks,
I might be wrong but that kinda makes sense to me, If editing a publishing page in SharePoint, the owner field for example is metadata on the page and can be filled in edit mode but when in display mode this metadata is not shown unless I explicitly show it. The fields shown in edit mode and display mode are different for pages and I am assuming the same for InfoPath forms.

TFS-2010 - Custom Work Item Control not showing up: "Form Rendering Failed: Object reference not set to an instance of an object."

I'm developing a custom control for Task/Bug Work Items so I can query for shelvesets related to the Work Item.
First off I tested a simple control with nothing but a listbox with an Item. When I preview the layout form in the Process Editor in VS2010, it shows up alright, but when I create a new Task, upon loading it shows a message instead of my control:
"Form Rendering Failed: Object reference not set to an instance of an object."
What I really like about these error messages is that they're always crystal clear... I'm clueless, what could be causing this behavior?
Thanks in advance!
Clark
~
Place the dll and .wicc of the custom control you created in:
C:\Users\All Users\Microsoft\Team Foundation\Work Item Tracking\Custom Controls\10.0
Make sure your .wicc file directs to your dll correctly.
Refresh the team project in the team explorer.
If your WIT control is functional it should work.
Good Luck!

Resources