In this video I showed how to hide some columns in the form. I used SharePoint Designer for this actions:

1. Create a new custom form.

2. Create some rules.

3. Use function isHasRights().

You can see this video – http://mymoss-web.sharepoint.com/videos/Pages/Designer/HideColumns.aspx

I published web cast yesterday, when I created UI test for SharePoint Solutions.

You can see this

When I’m starting my Blend application, I get to error:

Faulting application name: Blend.exe, version: 4.0.20901.0, time stamp: 0x4c7e16c2
Faulting module name: clr.dll, version: 4.0.30319.17020, time stamp: 0x4e3b716d
Exception code: 0xc0000005
Fault offset: 0x00001825
Faulting process id: 0x149c
Faulting application start time: 0x01cc7957fc076135
Faulting application path: C:\Program Files\Microsoft Expression\Blend 4\Blend.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll

For resolution, you have to run this steps:

1. Run Command Run with Administrator permissions.

2. Go to directory – %windir%\Microsoft.NET\Framework\v4.0.30319

3. Run some commands for remove dll’s:

ngen uninstall "%ProgramFiles(x86)%\Microsoft Expression\Blend 4\

Microsoft.Expression.Framework.dll"
ngen uninstall "%ProgramFiles(x86)%\Microsoft Expression\Blend 4\

Microsoft.Expression.Blend.dll"
ngen uninstall "%ProgramFiles(x86)%\Microsoft Expression\Blend 4\

Microsoft.Expression.Project.dll"
ngen uninstall "%ProgramFiles(x86)%\Microsoft Expression\Blend 4\Microsoft.Expression.WindowsPhone.dll"

Original post this.

Today I uploaded a new web cast for Windows Phone and SharePoint 2010.

Agenda:

1. How to authorization on SharePoint 2010 
2. SharePoint API Auth
3. Using Auth classes and methods
4. Sample how to use FBA for authorization
5. How to get and set data

You can see video this- http://it-club.in.ua/sites/moss/Pages/VideoDeveloper.aspx#ID=14

Download source and presentation здесь

Hi all.

New site was started. It’s resource has more different information’s about SharePoint.

 

image

 

E. G.

1. Solutions

2. Books

3. Links

4. Best practices

5. Videos, casts

6. News and e.t.c.

Link for this site – http://it-club.in.ua/sites/moss

What do you do, if Change Event does not work when you viewed in browser?

You have to use PostBack properties in your controls.

e.g.

You have some method for Change Event at DropDown control:

public void test_Changed(object sender, XmlEventArgs e)
  {
       XPathNavigator root = MainDataSource.CreateNavigator();
       XPathNavigator test1 = root.SelectSingleNode
      ("/my:myFields/my:test1",  NamespaceManager);
       test1.SetValue("test1");
   }

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

Properties

Hi all. If you have problem with alerts after migrate SharePoint, you must open SQl content database and you must open  SchedSubscriptions  table. In this table you look all user alerts. But if you look SiteUrl column, you saw url old sharepoint server.

You must run this SQL script

UPDATE [dbo].[SchedSubscriptions]
SET [SiteUrl] = ‘New URL’

GO

String script = String.Format("window.frameElement.navigateParent(‘{0}’);",  

SPHttpUtility.EcmaScriptStringLiteralEncode(web.Url + "/" + newView.Url));

            Page.ClientScript.RegisterStartupScript(Page.GetType(), "redirectToPage", script, true);

   1:  $solutioname = "inergex.mycustomapplication.wsp"
   2:  [reflection.assembly]::Loadwithpartialname("microsoft.sharepoint")
   3:  $farm = [Microsoft.sharepoint.administration.spfarm]::Local
   4:  $solution = $farm.Solutions[$solutioname]
   5:  $file = $solution.SolutionFile
   6:  $file.SaveAs("c:\" + $solutioname)

Hi all. My store about how I can programmatically submit InfoPath forms in the SharePoint folder in library. So first you can get event Submit.

How I can do.

image

Second I create small code with class FileSubmitConnection.

The FileSubmitConnection class represents a data connection created in InfoPath using the Data Connection Wizard that specifies all the information necessary for submitting data to a Microsoft Windows SharePoint Services document library or other server that supports DAV connections.

The FileSubmitConnection object is accessible using the DataConnections property of the XmlForm class to return the connection from the DataConnectionCollection of the form template.

The FileSubmitConnection class provides the Filename property, which returns an XPathTypedValue object that evaluates to the file name that the current form will be given when the form is submitted by the FileSubmitConnection object. It also provides the FolderUrl property, which gets or sets the Uniform Resource Locator (URL) of folder to which the form will be submitted.

In addition to the default Execute method inherited from the DataConnection base class that performs a query operation using the values that were declaratively defined in InfoPath form template design mode, the FileSubmitConnection class also provides the FileSubmitConnection.Execute method, which allows you to specify a different source of data to submit.

My sample,

public void FormEvents_Submit(object sender, SubmitEventArgs e)
        {
            XPathNavigator root = MainDataSource.CreateNavigator();
            string url = root.SelectSingleNode("/my:моиПоля/my:GSKGroup/my:urlsite", NamespaceManager).Value;
            string directorat = root.SelectSingleNode("/my:моиПоля/my:Directorat", NamespaceManager).Value;
            string division = root.SelectSingleNode("/my:моиПоля/my:Division",

NamespaceManager).Value;
            SPSite oSiteCollection = new SPSite(url);
            SPWeb rootweb = oSiteCollection.RootWeb;
           

// Submit the form to SharePoint
            FileSubmitConnection fc = (FileSubmitConnection)this.DataConnections

["SharePoint Library Submit"];
            fc.FolderUrl = rootweb.Url + "/DocLib/" + directorat + "/" +

division.Replace("\"", " ");

            // Execute the submit connection
            try
            {
                fc.Execute();
                e.CancelableArgs.Cancel = false;
            }
            catch
            {
                e.CancelableArgs.Cancel = true;
            }

        }