{"id":1774,"date":"2011-04-17T13:24:40","date_gmt":"2011-04-17T07:54:40","guid":{"rendered":"http:\/\/sendyoursmiles.com\/articles\/usage-of-flex"},"modified":"2014-12-05T08:22:18","modified_gmt":"2014-12-05T08:22:18","slug":"flex-in-concurrent-program-parameter","status":"publish","type":"post","link":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter","title":{"rendered":"Usage of $FLEX$ and $PROFILE$ In concurrent program parameters"},"content":{"rendered":"<p>This article illustrates the usage of $FLEX$ and $PROFILE$ with an example.<\/p>\n<p><strong>$FLEX$<\/strong> is a special bind variable that can be used to base a parameter value on the other parameters (dependent parameters)<\/p>\n<p><span style=\"text-decoration: underline;\">Syntax<\/span> &#8212;\u00a0\u00a0\u00a0\u00a0 :$FLEX$.Value_ Set_Name<\/p>\n<p>Value_Set_Name is the name of value set for a prior parameter in the same parameter window that you want your parameter to depend on.<\/p>\n<p>Some scenarios where $FLEX$ can be used:<\/p>\n<p><span style=\"text-decoration: underline;\">Example1<\/span>:<\/p>\n<p>Say you have a concurrent program with the below 2 parameters which are valuesets :<\/p>\n<p>Parameter1 is Deparment<\/p>\n<p>Parameter2 is Employee name<\/p>\n<p>Let&#8217;s say there are 100 deparments and each deparment has 200 employees. \u00a0Therefore we have 2000 employees altogether.<\/p>\n<p>If we \u00a0display all department names in the valueset of parameter1 and all employee names in parameter2 \u00a0value set \u00a0then it might kill lot of performance and also it will be hard for a user to select an employee from the list of 2000 entries.<\/p>\n<p>Better Solution is to let user select the department from the Department Valuset first. Based on the department selected, you can display only the employees in parameter2 that belong to the selected department in parameter1 valueset.<\/p>\n<p><span style=\"text-decoration: underline;\">Example2:<\/span><\/p>\n<p>Say you have a concurrent program with the below 2 parameters:<\/p>\n<p>parameter1: directory path<\/p>\n<p>parameter2: filename<\/p>\n<p>Parameter1 and parameter2 are dependent on each other. If the user doesn&#8217;t enter\u00a0 directory path, there is no point in enabling the parameter2\u00a0 i.e filename. In such a case, parameter should be disabled.This can be achieved using $FLEX$.<\/p>\n<p>Working Example of how to use $FLEX$:<\/p>\n<p>Let&#8217;s take the standard concurrent program \u00a0&#8220;AP Withholding Tax Extract&#8221; to explain how to use $FLEX$.<\/p>\n<p>This program has 7 parameters\u00a0 like &#8220;Date From&#8221;, &#8220;Date To&#8221;, &#8220;Supplier From&#8221;, &#8220;Supplier To&#8221; etc<\/p>\n<p>The requirement is to add an additional parameter called &#8220;File Name&#8221; \u00a0where the user will give a name to the flat file where the tax extract will be written to, as a parameter. Instead of typing in the name of the file everytime you run the program, the file name should \u00a0be defaulted with the value that the user provides for the parameter &#8220;Date From&#8221; plus \u00a0&#8220;.csv&#8221; which is the file extension. Let us now see how this can be achieved using $FLEX$.<\/p>\n<p>Navigation:\u00a0Application Developer responsibility &gt; Concurrent &gt; Program<\/p>\n<p>Query up the Concurrent<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041711_1324_UsageofFLEX1.jpg\" alt=\"\" \/><\/p>\n<p>Click &#8220;Parameters&#8221; Button<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041711_1324_UsageofFLEX2.jpg\" alt=\"\" \/><\/p>\n<p>Add the parameter &#8220;File<\/p>\n<ul>\n<li>Seq: 80 (Something that is not already assigned to other parameters. It&#8217;s always better to enter sequences in multiple of 5 or 10. So that you can insert any additional parameters if you want later in middle)<\/li>\n<li>Parameter: &#8216;File Name&#8217;<\/li>\n<li>Description: &#8216;File Name&#8217;<\/li>\n<li>Value set: &#8216;240 Characters&#8217;<\/li>\n<li>Prompt: File Name<\/li>\n<li>Default Type: \u00a0SQL Statement<\/li>\n<li>Default Value: Select :$FLEX$.FND_STANDARD_DATE||&#8217;.csv&#8217;\u00a0 from dual<\/li>\n<\/ul>\n<p>Here FND_STANDARD_DATE is the value set name of the parameter &#8220;Date From&#8221; as seen in the above screenshot.<\/p>\n<p>$FLEX$.FND_STANDARD_DATE gets the value that the user enters for the parameter &#8220;Date From&#8221;<\/p>\n<p>&#8220;select :$FLEX$.FND_STANDARD_DATE||&#8217;.csv&#8217;\u00a0 from dual&#8221; returns &#8220;Date From&#8221; parameter value appended with &#8216;.csv&#8217;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041711_1324_UsageofFLEX3.jpg\" alt=\"\" \/><\/p>\n<p>Save your work.<\/p>\n<p>Now go to the respective responsibility and run the concurrent program.<\/p>\n<p>When you enter the value of &#8220;Date From&#8221; and hit tab, File Name parameter will automatically be populated as shown in the below screenshot.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041711_1324_UsageofFLEX4.jpg\" alt=\"\" \/><\/p>\n<p>$PROFILES$: This will be used to get the Profile value in the Table Value set or from the front end.<\/p>\n<p>To get Profile values from backend we are using Fnd_Profile.Value or Fnd_Profile.get()<\/p>\n<p>Syntax : :$PROFILES$.Profile Name<\/p>\n<p>SELECT SEGMENT1<\/p>\n<p>FROM \u00a0 PO_HEADERS_ALL<\/p>\n<p>22USER\u00a0 : 204<\/p>\n<p>23USER\u00a0 : 887<\/p>\n<p>24USER\u00a0 : 911<\/p>\n<p>SELECT SEGMENT1<\/p>\n<p>FROM PO_HEADER_ALL<\/p>\n<p>WHERE ORG_ID = :$PROFILES$.ORG_ID<\/p>\n<p>Ex: Display the PO&#8217;s which are created by the current User<\/p>\n<p>If 22user ope the LOV it has to display the PO&#8217;s which are created by 22 user<\/p>\n<p>SELECT SEGMENT1<\/p>\n<p>FROM \u00a0 PO_HEADERS_ALL<\/p>\n<p>WHERE\u00a0 CREATED_BY = :$PROFILES$.USER_ID<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article illustrates the usage of $FLEX$ and $PROFILE$ with an example. $FLEX$ is a special bind variable that can be used to base a parameter value on the other parameters (dependent parameters) Syntax &#8212;\u00a0\u00a0\u00a0\u00a0 :$FLEX$.Value_ Set_Name Value_Set_Name is the name of value set for a prior parameter in the same parameter window that you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1774","post","type-post","status-publish","format-standard","hentry","category-sysadmin-and-aol"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>$flex$ in concurrent program parameter<\/title>\n<meta name=\"description\" content=\"In Oracle Apps, $FLEX$ is a special bind variable that can be used to base a parameter value on the other parameters (dependent parameters)\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prudhvi\" \/>\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\":\"Article\",\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#article\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter\"},\"author\":{\"name\":\"Prudhvi\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\"},\"headline\":\"Usage of $FLEX$ and $PROFILE$ In concurrent program parameters\",\"datePublished\":\"2011-04-17T07:54:40+00:00\",\"dateModified\":\"2014-12-05T08:22:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter\"},\"wordCount\":646,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#primaryimage\"},\"thumbnailUrl\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041711_1324_UsageofFLEX1.jpg\",\"articleSection\":[\"Sysadmin and AOL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter\",\"url\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter\",\"name\":\"$flex$ in concurrent program parameter\",\"isPartOf\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#primaryimage\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#primaryimage\"},\"thumbnailUrl\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041711_1324_UsageofFLEX1.jpg\",\"datePublished\":\"2011-04-17T07:54:40+00:00\",\"dateModified\":\"2014-12-05T08:22:18+00:00\",\"description\":\"In Oracle Apps, $FLEX$ is a special bind variable that can be used to base a parameter value on the other parameters (dependent parameters)\",\"breadcrumb\":{\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#primaryimage\",\"url\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041711_1324_UsageofFLEX1.jpg\",\"contentUrl\":\"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041711_1324_UsageofFLEX1.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/erpschools.com\/erps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Usage of $FLEX$ and $PROFILE$ In concurrent program parameters\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/erpschools.com\/erps\/#website\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"name\":\"erpSchools\",\"description\":\"Oracle Apps\",\"publisher\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/erpschools.com\/erps\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/erpschools.com\/erps\/#organization\",\"name\":\"erpSchools\",\"url\":\"https:\/\/erpschools.com\/erps\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"contentUrl\":\"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png\",\"width\":250,\"height\":60,\"caption\":\"erpSchools\"},\"image\":{\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"http:\/\/facebook.com\/erpschools\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512\",\"name\":\"Prudhvi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g\",\"caption\":\"Prudhvi\"},\"sameAs\":[\"http:\/\/www.erpschools.com\"],\"url\":\"https:\/\/erpschools.com\/erps\/author\/prudhvi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"$flex$ in concurrent program parameter","description":"In Oracle Apps, $FLEX$ is a special bind variable that can be used to base a parameter value on the other parameters (dependent parameters)","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:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter","twitter_misc":{"Written by":"Prudhvi","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#article","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter"},"author":{"name":"Prudhvi","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512"},"headline":"Usage of $FLEX$ and $PROFILE$ In concurrent program parameters","datePublished":"2011-04-17T07:54:40+00:00","dateModified":"2014-12-05T08:22:18+00:00","mainEntityOfPage":{"@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter"},"wordCount":646,"commentCount":1,"publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"image":{"@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#primaryimage"},"thumbnailUrl":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041711_1324_UsageofFLEX1.jpg","articleSection":["Sysadmin and AOL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#respond"]}]},{"@type":"WebPage","@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter","url":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter","name":"$flex$ in concurrent program parameter","isPartOf":{"@id":"https:\/\/erpschools.com\/erps\/#website"},"primaryImageOfPage":{"@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#primaryimage"},"image":{"@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#primaryimage"},"thumbnailUrl":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041711_1324_UsageofFLEX1.jpg","datePublished":"2011-04-17T07:54:40+00:00","dateModified":"2014-12-05T08:22:18+00:00","description":"In Oracle Apps, $FLEX$ is a special bind variable that can be used to base a parameter value on the other parameters (dependent parameters)","breadcrumb":{"@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#primaryimage","url":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041711_1324_UsageofFLEX1.jpg","contentUrl":"http:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/041711_1324_UsageofFLEX1.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/erpschools.com\/erps\/sysadmin-and-aol\/flex-in-concurrent-program-parameter#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/erpschools.com\/erps"},{"@type":"ListItem","position":2,"name":"Usage of $FLEX$ and $PROFILE$ In concurrent program parameters"}]},{"@type":"WebSite","@id":"https:\/\/erpschools.com\/erps\/#website","url":"https:\/\/erpschools.com\/erps\/","name":"erpSchools","description":"Oracle Apps","publisher":{"@id":"https:\/\/erpschools.com\/erps\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/erpschools.com\/erps\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/erpschools.com\/erps\/#organization","name":"erpSchools","url":"https:\/\/erpschools.com\/erps\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/","url":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","contentUrl":"https:\/\/erpschools.com\/erps\/wp-content\/uploads\/img\/erps_logo7.png","width":250,"height":60,"caption":"erpSchools"},"image":{"@id":"https:\/\/erpschools.com\/erps\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/facebook.com\/erpschools"]},{"@type":"Person","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/dbed9bb7fb66aa7a700fc565da024512","name":"Prudhvi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/erpschools.com\/erps\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/488cec3605845b95cb20e60c67a8f5c7e74b65a305525c8006315d524f120db9?s=96&d=blank&r=g","caption":"Prudhvi"},"sameAs":["http:\/\/www.erpschools.com"],"url":"https:\/\/erpschools.com\/erps\/author\/prudhvi"}]}},"_links":{"self":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/1774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/comments?post=1774"}],"version-history":[{"count":0,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/posts\/1774\/revisions"}],"wp:attachment":[{"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/media?parent=1774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/categories?post=1774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/erpschools.com\/erps\/wp-json\/wp\/v2\/tags?post=1774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}