sharepoint 2010 infopath custom code button hidden - visual-studio-2010

I've been giving a really fun task at work,
I need to create a SharePoint app or some sort of list on sharepoint, where someone can nominee people from the company to win some sort of recognition then this will go out to a group of people that will approve if they "deserve the recognition".
this project was being work by a guy that left the company last Friday so basically I have a week to do something about it and I don't really know a lot about SharePoint.
I've done my research, and at first I went straight to the technical point of view where I would just basically code a connection to database, design the interface etc... but sharepoint has a really friendly user interface, uh, so friendly that sometimes I feel like I'm not capable of controlling it.
I was assigned a "technical" resource, this person supports SharePoint in the company however she doesn't have experience of creating custom applications or what else.
she teach me how to create a list and editing a form, adding columns to it. A easy way of doing it btw, the fields were connected to the internal database in the company so basically I didn't have to do anything technical at that point.
but then it came the complications/limitations for example I wasn't able to auto-fill information let's say if I would search the name of a person I would want to fill his last name, phone number organization automatically, I would also like to nominee more than 1 people for a single project.
I found out that you're able to open the form in InfoPath so I did it and then I was looking for developer tap option but it just disappear every time I open up the form.
I was also expecting for a tree view or a binding view of the internal database where some controls were connected but I wasn't able to find anything.
I can only use the SharePoint that's already up on the intranet of the company, I don't have access to databases, therefore I can't connect to them "directly" let's say from VStudio to map data back and forth.
I understand this may not be a very technical question this more of an advice to a fellow developer I develop generally for android.
is there a way of just going around this issue?
thanks and I appreciate whoever reads this.
David,

I don't think someone is ever going to have an issue like this, but I came to the conclusion that you need access to the sharepoint server and use VS inside the server in order to code the custom list and form, having the capability to connect to internal databases.

Please ask one question per post!
I've done my research, and at first I went straight to the technical
point of view where I would just basically code a connection to
database, design the interface etc...
For this, you do not need to use Sharepoint! Use MS SQL Server
she teach me how to create a list
If you have chosen to usу Sharepoint lists then they use нтвук the MS SQL Server for storing them...
I found out that you're able to open the form in InfoPath so I did it
and then I was looking for developer tap option but it just disappear
every time I open up the form.
Please check the answer to question "Custom Code is disabled on my form/(it is a workflow form of a sp list workflow process)/ any workaround?". That is, code behind is not available in Infopath for Sharepoint List Form, it is by design.

Related

Creating a clickable grid scheduling-like tool thing for D365 MDA on CDS

I'd love to be able to create an interactive something like the picture below to include in an app - rows represent partners that we'd work with, and columns represent how many widgets they are assigned to build per month (those numbers come from the partner based on their resources, availability, etc.) The goal is to track how many of the expected widgets were created, how many were started and cancelled, etc. according to how mnay "slots" were allocated. Clicking on a "box" would cycle through the colors to indicate the status of that widget. All data would be stored in the underlying CDS entities.
This UI is familiar to my team, which is currently based in Excel, but want to transfer into a custom widget I can surface in our Model-driven App in CDS.
Any suggestions on a web UI framework/approach/etc. to help me get started? I don't want to recreate something that already exists somewhere, or start building from scratch something that there is a cool (yet unknown to me) UI framework that would make this easier than starting from complete scratch.
PowerApps component framework is the way to go. Typescript is the language to be developed on and Dynamics context awareness is main plus for this PCF control.
As far as I know, there is no control available for this. Check here
PCF builder is a good place to start the development.

Microsoft Dynamics CRM 365: Millions of Contacts being generated for no apparent reason

I wonder if the community out there can help with this.
We are using Microsoft Dynamics 365 v8.2.2.112, on-premises (not cloud).
The problem is this: millions – yes, literally millions – of Contacts are being created for no apparent reason.
Our users access CRM via an intranet page, but also using the CRM Outlook Plugin.
Since upgrading to v8.2 in January, something in CRM is creating millions of CRM Contacts.
The same Contact is being repeatedly re-created hundreds and thousands of times for the same user. And this happens for multiple Contacts and for multiple users. The end result is that millions of Contacts are being generated. The contact gets created every 5 minutes (approx).
You can easily see the Contacts being created. If you run an “Advanced Search” on Contact order by “created_on” descending order, you can see the same new Contact being generated every five minutes or so, and whose details exactly match the one created 5 minutes ago.
We’ve got about 20 users who seem to be particularly prolific Contact creators. Possibly because of the nature of their role, they add lots (ie dozens) of Contacts to Outlook (but they definitely don’t add hundreds of thousands of the same person!)
I'm absolutely baffled as to why this should happen.
The prevailing view at my company is that CRM Outlook synchronisation is to blame. We use the Outlook plugin widely. We use version 8.2.3.8 of the Outlook CRM plugin. When users sync their Outlook Contacts, maybe it doesn't recognise that the Contact is already in CRM, so regenerates it? We think it's a bug of that nature.
We can’t turn off Outlook synchronisation, because users require it in order to do their jobs. They need to be able to sync Activities, Emails, Contacts and so on.
We've checked all our custom code (C# plugins) to ensure that no Contacts are being create anywhere. We've especially checked the "on create" of Contacts to ensure it’s not creating an additional Contact. No code generates Contacts.
I understand that I am able to turn off users' Outlook Synchronisation filters. But I don’t want to do so as they do need to be able to sync with Outlook. It’s one of the reasons we use Dynamics CRM.
Does anybody know what’s causing this? Has anybody come across this before? What’s the solution to stop this happening? I'm after a root-cause if possible!
Just wanted to keep this post up to date, for the benefit of any other poor souls who encounter this ghastly problem.
We were in touch with Microsoft who have been very helpful (although weren’t able to provide a “silver bullet” solution). The case is ongoing.
The first suggestion was that the problem was down to a customisation, integration or homemade plugin that had got itself into an endless loop, creating CRM Contacts ad infinitum. After searching absolutely every line of code and custom logic, I was able to confirm that the problem is not down to any of our customisations.
What we then did was to examine the Contacts being created on mass. We identified one Contact that was being generated over and over again. We checked its owner, let’s call this owner “John Smith”, and found that John Smith was the one creating this contact over and over. So we checked John Smith’s “Appointments, Contacts, and Tasks” syncing. We did this by “Settings -> Email Configuration -> Mailboxes”, then searched for John Smith’s mailbox. From John Smith’s mailbox, under the “Synchronization Method”, we set “Appointments, Contacts, and Tasks” from “Server-Side Synchronization” to “None”.
After doing this, the mass Contact generation immediately stopped. I’m not suggestion this is the solution to the problem (because we need to use syncing), but I am suggesting that this proves that the problem is down to a CRM bug in synchronisation (and not caused one of our customisations).
So if you’re getting this issue, and you want to rule out your customisations, I would follow these steps (above) to prove that it’s not your code that is responsible. If you turn off syncing for a user, and it stops generating millions of the same contacts owned by that user, I’d say you’ve got the same bug as me.
I think this bug is described in 2 possible places:
“Duplicate contacts are created if the rebuild of ID mapping fails after a test and enable.”: https://support.microsoft.com/en-in/help/4046463/service-update-9-for-microsoft-dynamics-365-8-2-1
OR
“Contact synchronization that uses server-side synchronization causes infinite updates.”: https://support.microsoft.com/en-us/help/3203310/update-0-1-for-microsoft-dynamics-crm-2016-service-pack-1
The suggestion is that we’re getting this problem because we’ve not installed cumulative updates before installing a major version. I can’t agree that we were meant to. We installed the latest version as directed on-line. Obviously we can’t now install the updates which allegedly fix this bug, because we’re on a later version. We went from CRM 8.1.1.1005 to 8.2.2.0112 by skipping 2 cumulative versions (i.e. 8.2.0.0749 and 8.2.1.0176). It is alleged that these skipped versions had a bug fix for this issue in it (see link above), and by not installing them, this issue happened. I can’t really agree that it says anywhere to do this (install cumulative updates before installing a major version). Anyway, that’s the suggested cause of the issue.
Anyway, we’re still busy with the Microsoft guys. I’ll get back to you when there’s a definite course of action we can take. So it’s still work in progress.
We’re planning on deleting the millions of instances of that Contact from the user’s Outlook, then deleting the millions of that Contact from CRM (which has taken a week in a bulk delete), then we’re going to turn on “platform traces” (requiring a registry change), then we’re going to reactivate syncing, and gather the logs, and send them to Microsoft.
I’ll be back when there’s a definite solution.
Updated with a definite solution:
For the sake of completeness and in order to help anybody else who experiences this...
This nightmare was resolved by installing CRM patch v8.2.13.21. [NB We had been on v8.2.2.112] As soon as the patch was installed, the system ceased generated all these Contacts. They stopped being generated to the second!
We're still cleaning up the mess of the unwanted 20 million Contacts which shouldn't be there. But at least the issue is fixed.
I think the lesson is to keep your CRM system up to date in terms of patching!
I faced similar issue in OnLine when we enabled outlook synchronization for Dynamics.
Even we had contacts been created randomly. If you look in advanced find for contacts Created randomly it should be created by System user.
There is user setting in CRM as below and I think in your case Automatically create records in Microsoft Dynamics 365 is set to YES
You will have to change this to No.
For other users you can use XRMToolBox plugin called User Setting Utility and there in you can see every user's personal setting as below
with the same XRM Tool Plugin you can bulk edit user personal setting as well

An Outlook Tasks ToDo list in PowerApps (or something else)

I want to somehow create a To Do list in PowerApps, that connects to Outlook Tasks. It is avaliable as a
data source in PowerApps, so should be possible.
I want it to be shareable. The new Microsoft To-Do app is not, so can't use that. At least not yet.
EDIT 2018-05-15: Rather go directly to the answer given here, than read the rest, if you want to make a shareable To Do list that integrates with Outlook Tasks!
There is already a To Do list template in PowerApps, but it is built on Wunderlist and I do not want this (because I can't
see how Wunderlist can connect to Outlook Tasks). Good thing is Wunderlist is shareable, though.
Nevertheless, I am trying to start with the Wunderlist template, and replace all Wunderlist calls with appropriate Outlook Tasks calls; e.g.
UpdateContext({MyList:Wunderlist.RetrieveLists()});;
with something like:
UpdateContext({MyList:OutlookTasks.GetAllTasks(...
Anyone gone through this is welcome to give a hint. I have scanned through the Internet for any instructions, or a book, but as always
I find nothing. But I know this is all so new yet.
Or else, is there another way to go?
I finally found a way to accomplish this. But no, the PowerApp way is not the easiest way to go (at least yet). I edited the title.
Better to use Planner and Outlook Tasks, and create a group in Microsoft Teams.
In Teams, you can easily add Planner to the tabs, and it at once gives you a To Do option. You can select exactly those people should see the list
(member of the team: all of them , some, or only yourself). It works well on the mobile, too.
At the time of this writing, an integration Planner - Outlook Tasks is not yet implemented
by Microsoft, so for now we can follow Avem Evolution's excellent videos (using Flow):
https://www.youtube.com/watch?v=FytBrdPHH-A
Matt Soseman's article is very useful too:
https://blogs.technet.microsoft.com/skypehybridguy/2017/08/30/microsoft-teams-using-planner-to-stay-organized/

Which MS technologies would be suited for a data intensive application?

I'm a junior VB.net developer with little application design knowledge. I've been reading a lot of material online regarding different design patterns, frameworks, and methodologies. It's become a bit confusing for me.
Right now I'm trying to decide on what language would be best suited to convert an existing VB6 application (with SQL server backend.) I need to update the UI and add more user functionality and reporting capabilities. Initially I was thinking of using WPF and attempting the MVVM model for this big project. Reports would be generated from SSRS.
A peer suggested using ASP.net and I don't have enough experience to determine what would be better. The senior programmers here are stuck on using VB6 and don't have any input on what to use. They are encouraging me to use the latest technologies.
This application would be for ~20 users in a central location. Ideally I would stick to a Microsoft .net language. Current interface is similar to a datagrid table where the user would click in to see the detail of each record. They would need to have multiple records open at any given time.
I look forward to all the advice I can get.
EDIT 2010/04/22 2:47 PM EST
What is your audience? Internal clients within an intranet
How complex are the interactions you expect to implement? not very... displaying data from SQL server to UI. Allow user updates to said data. Typically just one user modifying a record.
Do you require near real-time data updates? no
How often do you expect to update the application after the first release? twice/year
Do you expect a well-defined set of client platforms? Yes, windows xp environment, potentially upgrading to Win7. Currently in IE.6 moving to IE7 or 8 within a couple of months.
Do users need access from anywhere? No, just from their PC.
What would be wrong about building a simple ASP.Net application in VB.Net using Gridviews for allowing the data access and manipulation? Seems like a simple ADO.Net trial application if you aren't familiar with it in the beginning you will be by the end. CRUD applications are pretty common so it shouldn't be too hard to build it and then refine it as more requirements become apparent.
Sounds like you need to use a web-based solution--this eliminates alot of your potential distribution woes with multiple users. You could use silverlight, but if you are locked into SSRS, this might not be the way to go.

How to design a good about box?

There is not official standard dealing with the layout of about boxes, which display the credits of a computer software and other information.
What should a good about box contain? And... is it okay to put an easter egg in?
(source: seasip.info)
I generally prefer to make tabbed "About" boxes. The first tab usually displays information about the application (name, version, copyright, etc.). The other tab is usually a log of changes with the most recent changes at the top.
Legal will want their copyright and stuff, marketing will want their branding (even though the user has already bought the product), the dev team will want their names up there in liquid crystal, but what do users need?
App name and version number. Users may need this to troubleshoot problems, perhaps while in contact with tech support or when using a knowledge base. Use a version number system such that this is all the user needs to specify their build. Version number is also needed for the users to know if they can upgrade.
A brief statement of what the app does (e.g., “Photograph and picture organizer.”). Users often end up with software for which they can’t guess the purpose. “About” is a logical place to tell the user what the app is about.
Put the above in conspicuous text at the top of About. Have a single OK button. Everything else that may be required by others in your company really isn’t of any interest to the user and can all be in “fine print.”
You could also include the web site or email for tech support if you can rely on that being stable for years, but usually users have this before going to the About box.
Easter eggs are fine if you think it’s appropriate to have a little fun in your app and your users lean towards the geeky side of things. Just make sure it isn’t something that will alarm a low-end user (or a future high-end developer; see: http://blogs.msdn.com/jensenh/archive/2005/10/20/483041.aspx).
Looking at a few examples of About boxes:
Name of the software
Name of the publisher/author
Copyright and licensing information
Version information
A nice logo
These days, it probably wouldn't hurt to have a way to directly go to the website for the software in the About box itself.
Microsoft's Windows Vista User Experience Guidelines tend to have useful information on designing good user interfaces. I wasn't able to find information specific to About boxes, but the section for Dialog Boxes may be somewhat relevant.
A team in my workplace actually has made the coolest About box ever:
Every time you open it, it displays a different simple game, with pictures of the dev. team (memory games, tic-tac-toe, sudoku, etc)
As for the About page content, that is the best place to have the version / release information so you can offer easy support.
I am using mine as the abstract description and a link to the legal pages and a credits page. If you have a website, its URL should be there as well -- might as well make that click-able into your own web-view browser to your big "Company About" page on your web server (don't launch a real browser, or the user just left your application).
Make it enjoyable to read but be concise. Avoid any scrolling or paging -- except to a completely different set of informational screens.
Also, let it be obvious and easy to dismiss.
By-the-way, if you add an easter egg to an app that is submitted to Apple Store, you have to disclose the sequence for Apple to 'test'; they promise to keep the sequence confidential. If they discover it later, which will make it back to them through forums, etc., then they will automatically pull it from the store.
I tend to add program name, version, company copyright, contact information, license information. I also add various variables for problem resolving. Winows version, servicepack, dll version if i use critical dll's etc. A large application icon. Sometimes I add an easter egg or some keycombo that launch parts of the program meant for debug and support purposes.

Resources