Monday, March 26, 2012

Part 2: Open popup pages in new tabs in CCA R2 for CRM 2011

Refer Part 1 Open popup pages in new tabs in CCA R2 for CRM 2011 before creating applications

1. Create a new uii hosted web application as following picture

2. Set the url and Enable the manage popup option.
3. Copy the following xml and paste in automation xml space.
<DataDrivenAdapterBindingsCollection>
  <DataDrivenAdapterBindings prefix="web">
    <Type>Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.WebDataDrivenAdapter, Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter</Type>
    <Controls />
  </DataDrivenAdapterBindings>
 <DataDrivenAdapterBindings prefix="win">
    <Type>Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.WinDataDrivenAdapter, Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter</Type>
    <Controls>
      <AccControl name="OKButton" type="push button">
        <Path>
          <FindWindow>
            <RelaxThreadIdRestriction />
            <RelaxProcessIdRestriction />
            <Desktop />
            <Find>
              <Class>#32770</Class>
              <Caption>Message from webpage</Caption>
            </Find>
            <Find>
              <Class>Button</Class>
              <Caption>OK</Caption>
            </Find>
          </FindWindow>
        </Path>
      </AccControl>
    </Controls>
  </DataDrivenAdapterBindings>
</DataDrivenAdapterBindingsCollection>

4. Click save.
 5.Click Uii Actons ->default and Enter workflow assembly type and Click  save&Close.
6.Click “AddNewUIIAction” in the ribbon and create as follows

7.Now Create and UII hosted dynamic web application named “WebPopup” as follows and
8. Set the url to “about:blank “ and set automation xml as follows
<DataDrivenAdapterBindingsCollection>
  <DataDrivenAdapterBindings>
    <Controls />
    <Type>Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter.WebDataDrivenAdapter, Microsoft.Uii.HostedApplicationToolkit.DataDrivenAdapter</Type>
  </DataDrivenAdapterBindings>
</DataDrivenAdapterBindingsCollection>



Now open cca as admin and make sure that popup blocker is off in internet explorer
Now Lanuch the cca and test the application.it will open the popup in new tab successfully.

1 comment:

  1. While creating UII Hosted application record of name "WebApplication", is there any way to create Automation XAML?

    ReplyDelete