{"id":353,"date":"2011-08-24T08:13:00","date_gmt":"2011-08-24T08:13:00","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagecrm\/?p=353"},"modified":"2011-08-24T08:13:00","modified_gmt":"2011-08-24T08:13:00","slug":"importance-of-prevurl-property-part-2","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/","title":{"rendered":"Importance of prevURL Property Part-2"},"content":{"rendered":"<p>In my previous post I had brief discussion on importance of prevURL property in the query string and explained how to use it with list asp page.<\/p>\n<p>http:\/\/sagecrmaddons.blogspot.com\/2010\/11\/importance-of-prevurl-property.html<\/p>\n<p>In this blog I will be exploring it in more detail and will give idea of how and where it should be used while dealing with custom ASP pages.<\/p>\n<p>In CRM user always jumps from standard screens to custom asp pages\/ .net dll pages and vice versa. When we redirect from custom ASP page to any standard screen and try to use standard Save or Cancel button we gets redirected to the corresponding standard screen (list\/screen) as per the standard instead of our custom asp page. We can handle this scenario by using prevURL attribute and its query string variables.<\/p>\n<p>Recently I had a look at the Sage CRM forum and there were queries were<\/p>\n<p>1.\tThere is a custom entity say Jobs with summary page designed in custom asp page.<br \/>\n<br \/>2.\tThe Jobs summary has a button say \u201cShow Document\u201d which shows the relevant standard library summary screen.<br \/>\n<br \/>3.\tNow redirecting from Job summary to library summary part was working fine. But whenever user clicks on the Save\/ Cancel button it gets to the standard library list (which is CRM standard behavior). It should be redirected to the Job summary.<\/p>\n<p>To handle this situation you need to play with previous URL and its \u201cJ\u201d and \u201cF\u201d parameters. The HREF property of button which forwards user to library screen should be configured properly. It should contain the prevURL variable in it consisting of J (jump) and F (from) parameters.<\/p>\n<p>The code which can control the above functionality is something like below:<\/p>\n<p>lcPreURL=eWare.URL(&#8220;Jobs\/JobsSummary.asp&#8221;)<br \/>\n<br \/>            lcPreURL=lcPreURL.split(&#8220;&#038;&#8221;);<br \/>\n<br \/>            lcPreURL=lcPreURL[0]+&#8221;%26Key0=58%26Key37=&#8221;+UseId+&#8221;%26Key50=648%26Key58=&#8221;+UseId+&#8221;%26J=Jobs\/JobsSummary.asp%26jobs_JobsID=&#8221;+UseId+&#8221;%26T=Jobs&#8221;<\/p>\n<p>            var strURL = new String(eWare.URL(341));<br \/>\n<br \/>            strURL=strURL.split(&#8220;&#038;&#8221;);<br \/>\n<br \/>            strURL=strURL[0]+&#8221;&#038;Act=341&#038;Mode=1&#038;CLk=T&#8221;<br \/>\n<br \/>            +&#8221;&#038;Key0=58&#8243;<br \/>\n<br \/>            +&#8221;&#038;Key5=&#8221; + eWare.GetContextInfo(&#8220;user&#8221;,&#8221;user_primarychannelid&#8221;)<br \/>\n<br \/>            +&#8221;&#038;Key15=&#8221;+ library.libr_libraryId +&#8221;&#038;Libr_LibraryId=&#8221;+ library.libr_libraryId<br \/>\n<br \/>             +&#8221;&#038;Key37=&#8221; + UseId<br \/>\n<br \/>             +&#8221;&#038;Key58=&#8221; + UseId + &#8220;&#038;jobs_JobsID=&#8221;+UseId<br \/>\n<br \/>            +&#8221;&#038;Key-1=58&#8243;<br \/>\n<br \/>            +&#8221;&#038;PrevCustomURL=&#8221;+lcPreURL<\/p>\n<p>             \/\/&#8217; Add Button<br \/>\n<br \/>            Container.AddButton(CRM.Button(&#8220;Show Document&#8221;,&#8221;edit.gif&#8221;,strURL, &#8220;Jobs&#8221;, &#8220;EDIT&#8221;));<\/p>\n<p>I checked this code with pages that are created using CRM entity wizard component. Here UseId is nothing but your custom entity id where as \u2018library\u2019 refers to the library record. Action 341 specifies the standard Library summary screen.<\/p>\n<p>I came across many queries where the users tend to have issues in navigating from custom screen to another. So I thought I will put down a small snippet of what you need to take care when you handle the navigation. I used the technical expertise of my team to write this topic so there are a lot of technical \u201cgongs\u201d and \u201ctongs\u201d in this blog so the technical guys may find themselves in a familiar territory. But if you tend to get lost in the later part of blog, just don\u2019t worry. Turn around and you will see me looking just as lost as you :).<\/p>\n<div>\n<br \/><marquee width=\"80%\"><b>If you find this content useful, please drop us an email at <a title=\"mailto:crm@greytrix.com\" href=\"mailto:crm@greytrix.com\">crm@greytrix.com<\/a>. <\/b><\/marquee><br \/>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In my previous post I had brief discussion on importance of prevURL property in the query string and explained how to use it with list asp page. http:\/\/sagecrmaddons.blogspot.com\/2010\/11\/importance-of-prevurl-property.html In this blog I will be exploring it in more detail and will give idea of how and where it should be used while dealing with custom\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[332],"tags":[1658,1798],"class_list":["post-353","post","type-post","status-publish","format-standard","hentry","category-sage-crm","tag-navigation","tag-prevurl"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Importance of prevURL Property Part-2 - Sage CRM \u2013 Tips, Tricks and Components<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Importance of prevURL Property Part-2 - Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"og:description\" content=\"In my previous post I had brief discussion on importance of prevURL property in the query string and explained how to use it with list asp page. http:\/\/sagecrmaddons.blogspot.com\/2010\/11\/importance-of-prevurl-property.html In this blog I will be exploring it in more detail and will give idea of how and where it should be used while dealing with custom\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage CRM \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2011-08-24T08:13:00+00:00\" \/>\n<meta name=\"author\" content=\"greysagecrm\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"greysagecrm\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/\",\"name\":\"Importance of prevURL Property Part-2 - Sage CRM \u2013 Tips, Tricks and Components\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\"},\"datePublished\":\"2011-08-24T08:13:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Importance of prevURL Property Part-2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/\",\"name\":\"Sage CRM \u2013 Tips, Tricks and Components\",\"description\":\"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f\",\"name\":\"greysagecrm\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g\",\"caption\":\"greysagecrm\"},\"url\":\"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Importance of prevURL Property Part-2 - Sage CRM \u2013 Tips, Tricks and Components","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/","og_locale":"en_US","og_type":"article","og_title":"Importance of prevURL Property Part-2 - Sage CRM \u2013 Tips, Tricks and Components","og_description":"In my previous post I had brief discussion on importance of prevURL property in the query string and explained how to use it with list asp page. http:\/\/sagecrmaddons.blogspot.com\/2010\/11\/importance-of-prevurl-property.html In this blog I will be exploring it in more detail and will give idea of how and where it should be used while dealing with custom\u2026 Read More &raquo;","og_url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/","og_site_name":"Sage CRM \u2013 Tips, Tricks and Components","article_published_time":"2011-08-24T08:13:00+00:00","author":"greysagecrm","twitter_card":"summary_large_image","twitter_misc":{"Written by":"greysagecrm","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/","name":"Importance of prevURL Property Part-2 - Sage CRM \u2013 Tips, Tricks and Components","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website"},"datePublished":"2011-08-24T08:13:00+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f"},"breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/2011\/08\/24\/importance-of-prevurl-property-part-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/"},{"@type":"ListItem","position":2,"name":"Importance of prevURL Property Part-2"}]},{"@type":"WebSite","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#website","url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/","name":"Sage CRM \u2013 Tips, Tricks and Components","description":"Explore the possibilities with Sage CRM insights through our comprehensive blogs. As a leading Sage partner, Greytrix helps businesses maximize their Sage CRM potential with its rich expertise and immense knowledge. Here, you will find blogs that feature expert advice, tips &amp; tricks, best practices, and comprehensive guides on customizing and configuring Sage CRM for your business. Stay informed with our regular updates and expert insights!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/e7ff1c8f4763b47730d6bc5e74d59c1f","name":"greysagecrm","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c3b4325cb326e36467f945b9b9adf2bb85e907fe092d42eb36b39743b492e626?s=96&d=mm&r=g","caption":"greysagecrm"},"url":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/author\/greysagecrm\/"}]}},"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/comments?post=353"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/posts\/353\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/media?parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/categories?post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagecrm\/wp-json\/wp\/v2\/tags?post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}