Friday, April 12, 2013

How to add/remove the customized SmartList reports in Dynamics GP home page???

To add the custom SmartList to My Reports section:

1. Create a custom SmartList.

2. Click Administration from the Navigation Pane and select SmartList Favorites from the List Pane.

3. From the list of SmartList reports, check our customized SmartList and click Add to button under My   Reports section.




4. Enter a name to add the SmartList report to My Report section.




5. Now our customized report has been added to My Report Section in GP Home page.



To remove the custom SmartList from My Reports section:

1. Click Administration from the Navigation Pane and select SmartList Favorites from the List Pane.

2. From the list of SmartList reports, check our customized SmartList and click Remove from button under My Reports section.




3. Now our customized report has been removed from My Report Section in GP Home page.

Hope this helps!!!

MenuSuites in NAV


What is a MenuSuite ??
A MenuSuite is an object that contains menus which enable users to navigate and perform actions in the Microsoft Dynamics NAV Windows client.

MenuSuite display menus on the Departments page in the Microsoft Dynamics NAV Windows client. The MenuSuite that is provided in Microsoft Dynamics NAV is a generic MenuSuite that you can modify.
You can also create a new MenuSuite from the basic MenuSuite. Each menu in the basic MenuSuite represents a department such as Financial Management, Human Resources, and Manufacturing
Note: MenuSuite is available in NAV2013 only for Windows client and not for Web client and Share point client

Create or Modify a new/existing MenuSuite Object
1.       To create new MenuSuite objects click the MenuSuite button in the Object Designer window,
  • Select New to create a new MenuSuite.
  • Select Design to Edit the modify the MenuSuite that already exists
2.       Clicking New will open a dialog box that will ask you to specify which design level you want to create an object for.
  • If you have already created a MenuSuite object for all the levels you have permission to, a message appears informing you of this. Once you have made a selection, the Navigation Pane Designer opens.
  • The header section of the Navigation Plane Designer will display the MenuSuite object level that you are currently working on
3.       Clicking Design will open the Navigation Pane Designer with the chosen menu suite content displayed
  • During this you will have the option to Import/Export.
  • You also compile the MenuSuite objects (F11 or Tools → Compile). By performing this object references alone will be compiled.
4.       In Navigation Pane Designer, right-click a menu item to select a task from the shortcut menu.

5.       Right-click the navigation pane, and click Close Navigation Pane Designer when you are done.

Tuesday, April 9, 2013

Dynamic SL-2011 – Favorites Issue and the way to handle

Issue:


Dynamic SL-2011 FP1 is having plenty of features in it. We would like to share the specific feature about Add URL to favorites based on our last implementation experience. This feature is used to add external links/ web page URLs into SL. We have developed some custom BA (Business Analyzer) & SSRS for one of our client. We have successfully configured and hosted those custom reports in to SL Report server. 


As per our client needs, we have tried to add the SSRS report URLs in to SL – through Favorites menu based on the user’s role. By that time system has considered only 125 characters from our URL path. Finally we got an invalid report path error during report execution through Solomon Favorites menu because our URL paths were more than 125 characters.



Workaround:


We handled this issue in the following manner.

  •  Developed simple HTML files for each SL user’s role.
  • Include the hyperlink option to access the Custom & Standard SSRS report URL’s Path
  • Host the newly created HTML files in to Report Server and make those HTML URL paths less than 125 characters.


Hope this will help for those who configure/host the SSRS reports in to SL Report server. 





Monday, April 8, 2013

Set Multiple Value To Report Parameter When Running CRM Report Using Report Server URL

Set Multiple Value To Report Parameter When Running CRM Report Using Report Server URL

Often users wanted to run the MS CRM reports directly form the report server using the report URL.

The one way of approach to display the record in the URL, pass the parameter name and then pass the value, another record want to display again pass the parameter name and value.

To avoid the above approach for provided the parameter name (“more than once”).

As I identified my approach to resolve the parameter name passing more than a time and also URL length was compatible.


You will see the below query example for my approach


DECLARE @S nvarchar(max),@X xml
 SELECT @S = @ServiceId
SELECT @X = CONVERT(xml,'<root><s>' + REPLACE(@S,';','</s><s>') + '</s></root>')
SELECT T.c.value('.','varchar(max)') as ServiceValue into #temp FROM @X.nodes('/root/s') T(c)
 
SELECT 
*
 FROM
TableName(CRM Entity Name)
WHERE
FieldName(FilteredField) IN 
(SELECT 
* 
FROM 
#temp )
Drop Table #temp
 
In this approach declared two variables, convert this format into xml and assign the values to temporary table (“#temp”).
The Semicolon represent more than one value to be passed and add the conjunction after each parameter value. If the user has to change any expressions like (“; | , etc.,”) based on the needs.
Finally, filtered more than one parameter value using temporary table and then drop the table (Avoid the memory leakage).

 
Example Query:-


DECLARE @S nvarchar(max),@X xml
SELECT @S = @ServiceId
SELECT @X = CONVERT(xml,'<root><s>' + REPLACE(@S,';','</s><s>') + '</s></root>')
SELECT T.c.value('.','varchar(max)') as ServiceValue into #temp FROM @X.nodes('/root/s') T(c)
SELECT
                FTO.name AS OpportunityName,
                FTO.opportunityid AS OpportunityId
FROM
FilteredOpportunity as FTO
 
WHERE
FTO.opportunityid IN
(SELECT
 * 
FROM
 #temp)
Drop Table #temp
 
In this example, I have using opportunity entity, retrieve two fields,display the record based on parameter supplied(OpportunityId) and also using the parameter name has ServiceId.

Query Output:-















Example Query URL:-

http://ServerName/ReportServer/Pages/ReportViewer.aspx?%2fBaker_MSCRM%2fOpportunity+Report&rs:Command=Render&OpportunityId=1670A42C-F487-E211-9D33-005056A1000A|9158CE77-5969-E211-B847-005056A1000A

ServerName - CRM Server Name
OpportunityId - Parameter Name
1670A42C-F487-E211-9D33-005056A1000A - Guid (Id) of an Opportunity
|  - Special Character after each parameter value

Hope this was helpfull!
Thanks!

Wednesday, April 3, 2013

Switching off "Microsoft Dynamics CRM has encountered an error" Webpage Dialog.


Most often we get "Microsoft Dynamics CRM has encountered an error" for various reason as shown below.


If you receive a lot of errors like this while using Dynamics CRM 2011, you may already know that you can change your personal options to automatically send these error reports to Microsoft, or to never send this. This will mean those errors will not pop up on your screen anymore as they will automatically be handled. Most of the time however, we have several users who are all going to experience this same issue, and so we don’t want to have to go through each users login to change their personal options! Fortunately, there is a way to globally define this setting. This means you can decide to send or not send errors to Microsoft for all users, so that this type of error message doesn’t bother another user ever again!

To define this global setting, navigate to Settings, Administration, and then click on Privacy Preferences.
 
A dialog box will appear to specify your organizations privacy settings. Click on the ‘Error Reporting’ tab, and then select to specify the error notification preferences for all users.

You can then choose whether to automatically send or not send error reports. The recommended setting here is to automatically send errors, so that Microsoft can fix these in future rollups.



Once you click ok, the changes will be applied. If you (or any other users) try and set their personal options now, the ‘Privacy’ tab will be removed, as it is now managed at the organization level. If any of those errors ever occur again in the future for any users, they will not be annoyed by a pop up message.

Hope this would be useful!!

Tuesday, April 2, 2013

Development Enhancements in NAV 2013


In one of our earlier blog we took a closer look of the User Productivity enhancements in NAV 2013. This time we now take a look into the advantages that a developer has with the latest release of NAV

Keys Functionality:
                This functionality will enable us to view the Keys that are available in a particular table. Events where we use SETCURRENTKEY() function the user can just hit the F5 button in the C/AL editor to open the C/AL Symbol.

In earlier versions we had no such functionality. During that time when a user needs to set the Key, he has to manually look for the corresponding table in the table designer, search and then set it.

With the latest version we now can easily get all the keys from the C/AL Symbol. This will surely make the developer feel more comfortable and in coding fast.

Page Preview:
                This is one of the most important functionality that I personally feel has been introduced with the new version.  After designing the page, users will now have the option of previewing the page in the development Environment itself.

 
In versions before this users have to design the screen, save and then run to view the page in RTC, so there is no way the user can view a page during design mode itself. With the latest version users have the advantage of getting a view of how the screen will appear during design state itself.

XmlPort is Runnable in development Environment:
                This is a another new feature that has been introducted with the latest version that I believe is going to save precious time. While Running an XML Port this feature will ask the user with an Option to Import or Export.


 
In earlier versions, we need to use separate objects to write codes to perform export/import. With this version the functionality is inbuilt and is cool to work with

 Thanks

 

Monday, April 1, 2013

Creating custom Quick Queries in Dynamics SL 2011

Prerequisites:

Give below are the 2 steps (a & b) to create the custom SQL view and integrate it with Dynamics SL database

a.  Create a custom SQL View
        (Whatever information we need from the database using SQL joins, tables etc.,)

b.  Update the Database Views through the SL Database Maintenance


     
        (Note: Start->Control Panel->Administrative Tools->Microsoft Dynamics SL Database Maintenance)


Steps to Create Custom Quick queries:

Step 1: Open SL Application
Step 2: Click Administration
Step 3: Under  Maintenance, Click Quick Query Viewer  

(Note: Quick Query Viewer Screen appears on clicking the Quick Query Viewer)


Step 4: Click New.
  • Select SQL View screen appears.
  • A list will shows up with list of SQL Views.
  • Select the SQLview that we’ve created.



Step 5: Click OK
  • The SQL view loads and result set will appear on the Screen.
  • Apply additional filters with the help of filter options, if required.
Step 6 : Click Save
  • Save Base Query View appears.



SQL View Name:
    It automatically displays the view name.

Base Query view name:
    User to specify the name that  should be unique.

Description:
    Specify the description that you want to appear in the Quick Query Viewer

Related Business Module:                                                          
     It specifies the module that you want to associate the Quick Query View.

Menu Item:
     Check Menu Item, if you want to include the base query view into the menu System.

Screen Number:
      The screen number will be generated based on the view name but the user can change.
           (Note: This screen number is used to specify the user credentials in Access Rights Maintenance)

Company Filter :
      Select one of the following values:
  •  None
  •  Current
  •  All
Company Column:
      Specify the name of the CompanyID only if you select the current or All in Company Filler.

 Drill Down Programs:
      It allows opening the SL application Screen from the base Query view result set to view / Update
      relevant records. 

      Click  the Expand button and  select the Screen number from the list.


 (Note: It allows only maximum of 5 Screens)


Parameters:  
  • Enter the parameters to access the drill down screen.
  • Click Close
     (Note: It allows only 3 parameters per screen)

SDK:
  • Check SDK check box in the  grid. (mandatory step for Drilldown screen)
  • Click OK
  • Close the screen.

Step 7: Add the Base Query view into the Menu Maintenance.
Step 8: Specify the access rights for the View, who need to  access  view , insert, delete  and update operation. So that we can set the view as accessible by a user , a group or all users.
Hope this helps!