Created
June 5, 2018 14:22
-
-
Save cmcdevitt/05c5a0db8a5a95ec4380288bb1a5a7bc to your computer and use it in GitHub Desktop.
Record Producer that call's itself and returns its number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| current.u_ridac_type = "Issue"; | |
| current.u_product = "f46762b60fd61780b6422ca8b1050e79"; | |
| current.description = current.description + "\nLocation: " + producer.office_location; | |
| current.description = current.description + "\n\n************************************"; | |
| current.description = current.description + "\nPhone: " + producer.phone_issues_; | |
| current.description = current.description + "\nDesktop: " + producer.desktop_issues_; | |
| current.description = current.description + "\nPrinting : " + producer.printing_issues_; | |
| current.description = current.description + "\nInternet : " + producer.internet_issues_; | |
| current.description = current.description + "\nOne : " + producer.place_holder_one_; | |
| current.description = current.description + "\nTwo : " + producer.place_holder_two_; | |
| current.description = current.description + "\nThree : " + producer.place_holder_three_; | |
| current.description = current.description + "\nFour : " + producer.place_holder_four_; | |
| current.description = current.description + "\nFive : " + producer.place_holder_five_; | |
| current.description = current.description + "\nSix : " + producer.place_holder_six_; | |
| current.description = current.description + "\n************************************"; | |
| current.assignment_group = "cc9eb192370a1740c4606bc2b3990eb8"; | |
| //This works | |
| //producer.redirect = "catalog_home.do?sysparm_view=catalog_default"; | |
| //Redirct back to itself | |
| producer.redirect = "com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=327a10a30f52d780b6422ca8b1050e00"; | |
| /***DO NOT REMOVE OR MODIFY THIS SECTION!!! Automatically added by "Force population of record producer used" business rule. | |
| Forces population of this record producer sys_id into the target record for reporting purposes.***/ | |
| current.u_record_producer = "327a10a30f52d780b6422ca8b1050e00"; | |
| //Number does not exist until after the Recored Prodcuer is finished | |
| //So Create a "On After" Business Rule to get and display the number to the new form | |
| //When to run | |
| // When = after, Insert, Order 500 | |
| // Advanced | |
| // Optional Condition: Set condition to only execute under certain circumstances | |
| //Condition = current.u_product == gs.getProperty('glide.sc.request.tampaproduct.sysid') | |
| /* | |
| (function executeRule(current, previous /*null when async*/) { | |
| // Display RIDAC Number upon record insertion for Tampa Move | |
| gs.addInfoMessage("RIDAC: " + current.number); | |
| })(current, previous); | |
| */ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment