tag:blogger.com,1999:blog-39787838839695542202024-03-14T04:50:06.957-07:00PeopleSoft by meFacundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-3978783883969554220.post-50846691497999432492019-02-26T18:57:00.000-08:002019-02-26T18:59:52.281-08:00ExcelToCi - Quick Guide<br />
<div class="MsoNormal">
<span style="font-family: inherit;">When opening PeopleSoft ExcelToCI tool we can see it is actually an Excel workbook containing 5 different spreadsheets.</span></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: inherit;">The first one, called "Coversheet", is only used as a summary or quick guide of the tool.</span></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUtJMBfBegRfaEIqEXvp3i4oBm69S5Z7Z96StE7KVGtiTbrqKBnAZMigHKwQ8stjwJkkT4JvicSzHdaJCxDpYcsBoPIYrY8RuklYtZ0nbZUwpe8zxTAse4OK18Ti3KOmSL1xil3D8Va4TA/s1600/01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: inherit;"><img border="0" data-original-height="546" data-original-width="943" height="369" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUtJMBfBegRfaEIqEXvp3i4oBm69S5Z7Z96StE7KVGtiTbrqKBnAZMigHKwQ8stjwJkkT4JvicSzHdaJCxDpYcsBoPIYrY8RuklYtZ0nbZUwpe8zxTAse4OK18Ti3KOmSL1xil3D8Va4TA/s640/01.jpg" width="640" /></span></a></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: inherit;">So, in order to start working with this PeopleSoft tool, we must go to the second sheet, called "Connect Information".</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPTQ4wFXCA5YvYh1tGlm6PNZqHS5hCoctZ8nUoh0lTNylE-sYMULE3xHUtNyDZpdh07C_omg4flQVSlOj8qexmrQywXqE1jPPRu_5kYvTb7owvA8b_haM59QFXUsWGIP5PubLt3ohXS3A9/s1600/02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: inherit;"><img border="0" data-original-height="74" data-original-width="639" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPTQ4wFXCA5YvYh1tGlm6PNZqHS5hCoctZ8nUoh0lTNylE-sYMULE3xHUtNyDZpdh07C_omg4flQVSlOj8qexmrQywXqE1jPPRu_5kYvTb7owvA8b_haM59QFXUsWGIP5PubLt3ohXS3A9/s1600/02.jpg" /></span></a></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><span lang="ES-AR" style="mso-fareast-language: ES-AR; mso-no-proof: yes;"><!--[if gte vml 1]><v:shape id="Imagen_x0020_2" o:spid="_x0000_i1063"
type="#_x0000_t75" style='width:544.5pt;height:63pt;visibility:visible;
mso-wrap-style:square'>
<v:imagedata src="file:///C:/Users/Acer/AppData/Local/Temp/msohtmlclip1/01/clip_image003.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span><span lang="ES-AR"><o:p></o:p></span></span></div>
<div class="MsoNormal">
<span lang="ES-AR"><span style="font-family: inherit;">In this sheet it is defined all the information we are going to use to connect our workbook with PeopleSoft.</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd2Cm8m11B05xP34sJpVqA5B3jg63eXK-BgDFrXf425JfLc_Bo9S7T1frwkf2dlQKg-c9XwUzS8DxcMCZK2UOhU3MlUot4y5n7ZrWpR8MwXY-Y3cWSx7JACythYBQG2DgdgXwcGfJCSzEn/s1600/03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: inherit;"><img border="0" data-original-height="269" data-original-width="379" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd2Cm8m11B05xP34sJpVqA5B3jg63eXK-BgDFrXf425JfLc_Bo9S7T1frwkf2dlQKg-c9XwUzS8DxcMCZK2UOhU3MlUot4y5n7ZrWpR8MwXY-Y3cWSx7JACythYBQG2DgdgXwcGfJCSzEn/s1600/03.jpg" /></span></a></div>
<br />
<span style="font-family: inherit;"><br /></span>
<br />
<div>
<span lang="ES-AR" style="font-size: 11pt; line-height: 115%;"><span style="font-family: "times" , "times new roman" , serif;">Most important ones are:</span></span></div>
<div>
<span lang="ES-AR" style="font-size: 11pt; line-height: 115%;"><span style="font-family: "times" , "times new roman" , serif;"><b>Connection Information: </b>You should be able to obtain this data from the PIA URL:</span></span></div>
<div>
<span lang="ES-AR" style="font-size: 11pt; line-height: 115%;"><span style="font-family: inherit;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvWdciJ_odPyFwknZGTjB1xoatp1Ok9Frc4RtEgAWfiVqTePIDkT7JYOA1_6UeDuQp1QjUrns56FGLXbwipZ6KRgnDj2LFpVrZ2ZbHgQkQOLONku26Hf9s9tqj1YlSryg-ipG7HGl_fZz-/s1600/04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><span style="font-family: inherit;"><img border="0" data-original-height="103" data-original-width="421" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvWdciJ_odPyFwknZGTjB1xoatp1Ok9Frc4RtEgAWfiVqTePIDkT7JYOA1_6UeDuQp1QjUrns56FGLXbwipZ6KRgnDj2LFpVrZ2ZbHgQkQOLONku26Hf9s9tqj1YlSryg-ipG7HGl_fZz-/s1600/04.jpg" /></span></a></div>
<div>
<span style="font-family: inherit;"><span lang="ES-AR" style="font-size: 11pt; line-height: 115%;"><br clear="all" style="mso-special-character: line-break; page-break-before: always;" />
</span>
</span><br />
<div class="MsoNormal">
<span style="font-family: "times" , "times new roman" , serif;"><br /></span></div>
<div class="MsoNormal">
<b><span lang="ES-AR"><span style="font-family: "times" , "times new roman" , serif;">Chunking
Factor: </span></span></b><span lang="ES-AR"><span style="font-family: "times" , "times new roman" , serif;">You can think it as the quantity of lines you want to work with at the same time when sending information to the database. In this case I've chosen 7, meaning the tool will process 7 rows at a time.</span><span style="font-family: inherit;"><o:p></o:p></span></span></div>
<div class="MsoNormal">
<span lang="ES-AR"><span style="font-family: inherit;"><br /></span></span></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><b style="mso-bidi-font-weight: normal;"><span lang="ES-AR">Error
Threshold: </span></b><span lang="ES-AR">Each line at the level 0 of the component implies an execution of the PeopleSoft Component Interface behind this tools. So, If I'm going to process several lines, I've several chances of making Component Interface get to an error.</span></span></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><span lang="ES-AR">With this variable I am able to set to the ExcelToCI tool an error range before aborting its flow. </span></span><span style="font-family: inherit;">If you want to be very strict you may set this variable to 0, so the first time the ExcelToCI gets an error it will stop processing the rest of the lines.</span></div>
<div class="MsoNormal">
<span style="font-family: inherit;">On the other side, if you are working with a simple Component Interface you might not give much importance to an error line, since each line is independent from the other ones and you want to process the most lines at a while. In this case you should set a high "Error Threshold" number.</span></div>
<div class="MsoNormal">
<span style="font-family: inherit;">Then, when the ExcelToCI flows is ended, you could take a look to the error lines and fixed them before processing them once again.</span></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="MsoNormal">
Once we have this information set, we must go to the "Template" sheet.</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR1T1x7PtDSNLdPig4c-a_3P0vKiDiGs8ETzyySbkWvL5p2IH6THxZJv-l20Mc6TEU20BLhbEoyfjtDJHupkDTz5KzT73eqauMAhIUYgr7nHaVa70Im812MP7JgFt-5V6ZEc0qfmR7Jc1f/s1600/05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="68" data-original-width="644" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgR1T1x7PtDSNLdPig4c-a_3P0vKiDiGs8ETzyySbkWvL5p2IH6THxZJv-l20Mc6TEU20BLhbEoyfjtDJHupkDTz5KzT73eqauMAhIUYgr7nHaVa70Im812MP7JgFt-5V6ZEc0qfmR7Jc1f/s1600/05.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
In this sheet we will start working with ExcelToCI "Add-Ins"</div>
<div class="MsoNormal">
The first one is "New Template". This add-in will let us generate a new tempalte based on a PeopleSoft Component Interface.</div>
<span style="font-family: inherit;">
</span><br />
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5BsKYql5aww3xLQKurIHK1h-UStRYcj9QXy23bwYJFM63KDGgoQpfQlKOZwLb3ZF3ROzxtlDmAiEdM5rm-aSyoxoy1mt3r9v6ZToEqndrji2iQCB2-e57JMF8YhzNeCeUkYfibpVqLnp6/s1600/06.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="164" data-original-width="806" height="130" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5BsKYql5aww3xLQKurIHK1h-UStRYcj9QXy23bwYJFM63KDGgoQpfQlKOZwLb3ZF3ROzxtlDmAiEdM5rm-aSyoxoy1mt3r9v6ZToEqndrji2iQCB2-e57JMF8YhzNeCeUkYfibpVqLnp6/s640/06.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
When clicking to that button, the following windows appears. There we have to enter our user and password to access PeopleSoft. Besides we have to add the name of the Component Interface we will be working with.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAX3tX5qBE01DwNj3rAeYPe8GE_dK7blvD5se5ndwPvx3C7mg4bP4WjzY9-hFZtiofqaeLebiDXYGjuFEmClaXpBalsN3oLUpMu2UwEFqdtcKzFkFw3SaYllYoVv3561poyraeHXVM5tJF/s1600/07.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="171" data-original-width="473" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAX3tX5qBE01DwNj3rAeYPe8GE_dK7blvD5se5ndwPvx3C7mg4bP4WjzY9-hFZtiofqaeLebiDXYGjuFEmClaXpBalsN3oLUpMu2UwEFqdtcKzFkFw3SaYllYoVv3561poyraeHXVM5tJF/s1600/07.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Once it is loaded, in the same sheet we can see all the Component Interface structure displayed as columns. It is also shown some specifications for each property.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
1) Which Component Interface Collection is the owner of the property.</div>
<div class="separator" style="clear: both; text-align: left;">
2) The name of the current property.</div>
<div class="separator" style="clear: both; text-align: left;">
3) Record Type: We should take this property as the "Buffer Level". In this case it will always be 0, since it is a very simple component.</div>
<div class="separator" style="clear: both; text-align: left;">
4) Field type, field length, Key or not, Required or not, sequence in the Component Interface</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
At the end, we could see (below highlighted in red) each column label and "a grey row" just below. This are the lines which we'll be working with.</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivgkvluLRflPdrvbdLz5NoaT3Tytmnwaklv44NMJsyDybTu9QuSDhI1cn-gGJqIJazUhTXeDDd-22M8hhplWWUekSXrrUbtiYeQBhsOoeVsyViYns41u35SVdQ1EjJfODL9boD4aot5p-o/s1600/08.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="234" data-original-width="791" height="189" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivgkvluLRflPdrvbdLz5NoaT3Tytmnwaklv44NMJsyDybTu9QuSDhI1cn-gGJqIJazUhTXeDDd-22M8hhplWWUekSXrrUbtiYeQBhsOoeVsyViYns41u35SVdQ1EjJfODL9boD4aot5p-o/s640/08.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<span style="font-family: inherit;"><span lang="ES-AR" style="font-size: 11pt; line-height: 115%;"><br clear="all" style="mso-special-character: line-break; page-break-before: always;" />
</span>
</span><br />
<div class="MsoNormal">
<span lang="ES-AR"><o:p><span style="font-family: inherit;"> Now, the rest of the "Add-ins" start to be useful.</span></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxPUhKELxNjEY-kXDYgH_FKQ9XpvzBPeRykEbyYIyCMF-tr4midYTrHa3YbTSPtWXiDDAwvrik3PDH2w-MxldCOYMpXpBfOhd4EnYPqjVKknFwC74JG2WGJAgiXhd87L-fQAsC6lnH6kD9/s1600/09.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="126" data-original-width="750" height="107" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxPUhKELxNjEY-kXDYgH_FKQ9XpvzBPeRykEbyYIyCMF-tr4midYTrHa3YbTSPtWXiDDAwvrik3PDH2w-MxldCOYMpXpBfOhd4EnYPqjVKknFwC74JG2WGJAgiXhd87L-fQAsC6lnH6kD9/s640/09.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="ES-AR"><span style="font-family: inherit;"><br /></span></span></div>
<div class="MsoNormal">
<span lang="ES-AR"><span style="font-family: inherit;">If we stay in one cell and click the </span></span><b style="font-family: inherit;">“Select Input Cell”</b><span style="font-family: inherit;"> option, the cell will be marked in a light orange </span>colour<span style="font-family: inherit;">. At this way, the ExcelToCI knows this column will be available for users to insert data in the final template.</span></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhREKj-hw8h25za0sH3g1-Po0Oh9IMVEKKMDxHXHYOR3JnawRlV_-0YQ-zn_462QpPi6VTBudyNl4JMrvDZlDSiXvbWM8f4RLjuCuWYqvH8x7MqgXtXlcVFEvkuApNIeUO95h3K2-C_WSFt/s1600/10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="405" data-original-width="759" height="341" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhREKj-hw8h25za0sH3g1-Po0Oh9IMVEKKMDxHXHYOR3JnawRlV_-0YQ-zn_462QpPi6VTBudyNl4JMrvDZlDSiXvbWM8f4RLjuCuWYqvH8x7MqgXtXlcVFEvkuApNIeUO95h3K2-C_WSFt/s640/10.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<span style="font-family: inherit;"><span lang="ES-AR" style="font-size: 11pt; line-height: 115%;"></span></span><br />
<div>
<span style="font-family: inherit;"><span lang="ES-AR" style="font-size: 11pt; line-height: 115%;"><span style="font-family: inherit;"><span lang="ES-AR" style="font-size: 11pt; line-height: 115%;"><br /></span></span></span></span></div>
<span style="font-family: inherit;"><span lang="ES-AR" style="font-size: 11pt; line-height: 115%;">
If we want to set more than one cell at a time, we'll be able to do this by selecting them and choosing </span></span><b style="font-family: inherit;">“Select
All Input Cells”</b><br />
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOtTEdjFG6H3RGPKlMX8TUXo8EmMvHVchJf3qDxoVR9hyphenhyphenrfQWjR3dPyrQmqOb6MpVn7CeRKato72gvF93Uh29RgrPFhR5ALdczW0a3H7ggtl6DHHnTMZNLVcarQVMCwa9JgglwAk4LYHMX/s1600/11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="395" data-original-width="593" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOtTEdjFG6H3RGPKlMX8TUXo8EmMvHVchJf3qDxoVR9hyphenhyphenrfQWjR3dPyrQmqOb6MpVn7CeRKato72gvF93Uh29RgrPFhR5ALdczW0a3H7ggtl6DHHnTMZNLVcarQVMCwa9JgglwAk4LYHMX/s1600/11.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Thus, the ExcelToCI tool will set all the cells as available for user inputs.</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8BGlLGQO-hOl6vp4G-WCqqiaZ6KGLbVnWiE0R5EjzI6V9xn0j3QtdE06bCwF0BwqShyphenhyphenWeE9y0UDhBzsWzSqpCsmuwZ5Wy0c9lmuoUbgyIjiRFXAx-TSqMEYwQPjAzu1qhKGjtcx4ZscP-/s1600/12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="227" data-original-width="546" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8BGlLGQO-hOl6vp4G-WCqqiaZ6KGLbVnWiE0R5EjzI6V9xn0j3QtdE06bCwF0BwqShyphenhyphenWeE9y0UDhBzsWzSqpCsmuwZ5Wy0c9lmuoUbgyIjiRFXAx-TSqMEYwQPjAzu1qhKGjtcx4ZscP-/s1600/12.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<span style="font-family: inherit;"><span lang="ES-AR" style="font-size: 11pt; line-height: 115%;">On the other side, if we are pretending to avoid users inserting any property, we could then hide that cell by selecting it and choosing the</span></span><span style="font-family: inherit;"> </span><b style="font-family: inherit;">“Do Not Include For Submission”</b><span style="font-family: inherit;"> option. This option will set the cell back to gray colour and hide it from user template.</span></div>
<div>
<span style="font-family: inherit;">For instance, in my example I'm not using the name column, so I'll hide it.</span></div>
<div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbrBwmopg0CsmgemqwVXKQEXY1cT6ueigVfzAxW0_QBo2kt8HHr5pVKr4drLyGowKU5I-0avye3ft-dWtQSdNzlPNGQHdaTp2qhmXTZVKfcl1c3n-brE4kk8EzH7dBsxPhazVj0HQXGC2F/s1600/13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="426" data-original-width="1161" height="234" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbrBwmopg0CsmgemqwVXKQEXY1cT6ueigVfzAxW0_QBo2kt8HHr5pVKr4drLyGowKU5I-0avye3ft-dWtQSdNzlPNGQHdaTp2qhmXTZVKfcl1c3n-brE4kk8EzH7dBsxPhazVj0HQXGC2F/s640/13.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Once we have our template set, we can go to the next step by clicking the <b style="font-family: inherit;">“New Data Input” </b><span style="font-family: inherit;">option.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR35wA2l_5ZQnW5jxpRdKiwEnDCaHbFfVAqyMt4tb7oRfo-noOqwgnh50WEzh88tXtSsk6e1O-4id3JQxyKbmPBgoHV3TbPcXaMMjx05YWeVKKewrZoYHwyEeKZYAovblH7dT4vT030XgJ/s1600/14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="442" data-original-width="819" height="345" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR35wA2l_5ZQnW5jxpRdKiwEnDCaHbFfVAqyMt4tb7oRfo-noOqwgnh50WEzh88tXtSsk6e1O-4id3JQxyKbmPBgoHV3TbPcXaMMjx05YWeVKKewrZoYHwyEeKZYAovblH7dT4vT030XgJ/s640/14.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
At this time we will sent to the <b>"Data Input" </b>sheet.</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdmEDmHKW5D7XFudAnLuGjNjfvhhu8unYmm_sytyxihv3HLpTbmXp9QxjunenAzz-LOeBzWFk0goFeMZBfeiFNDG6IxGVww9IWw_vq9X5MXzjrOVFRrSFH92mIfIdb30L1nc6EMWMmqtA7/s1600/15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="61" data-original-width="602" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdmEDmHKW5D7XFudAnLuGjNjfvhhu8unYmm_sytyxihv3HLpTbmXp9QxjunenAzz-LOeBzWFk0goFeMZBfeiFNDG6IxGVww9IWw_vq9X5MXzjrOVFRrSFH92mIfIdb30L1nc6EMWMmqtA7/s1600/15.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<span style="font-family: inherit;"><span lang="ES-AR" style="font-size: 11pt; line-height: 115%;"><br clear="all" style="mso-special-character: line-break; page-break-before: always;" />
</span>
</span><br />
<div class="MsoNormal">
In this sheet we are going to fill all the data we want to process. As you could see below, the "Name" column is not displayed at this time.</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7zYdS-Pe-lTL_7nrpGyIcVYpvNU9Pu4M9hzu5UZuKmHGyOFYaMdTD4TZS1StaRJp8UrTVBIg3dgxLjHjomNoA1idhs12jacLNVHLafXEQJjxp616g-Uwm2zD360a1Cr4GKUKZwXc9uDRv/s1600/16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="400" data-original-width="1042" height="245" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7zYdS-Pe-lTL_7nrpGyIcVYpvNU9Pu4M9hzu5UZuKmHGyOFYaMdTD4TZS1StaRJp8UrTVBIg3dgxLjHjomNoA1idhs12jacLNVHLafXEQJjxp616g-Uwm2zD360a1Cr4GKUKZwXc9uDRv/s640/16.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
I'll add some information (sorry for hiding some data, I've created this tutorial for some mates and I must hide it because of privacy purposes).</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj31y6bP5Y0XCSY6kLijYAJqMzK-pglDjlkRV6WLxTR1jG0q39DgcPPKHBMQ-OxGkYt769FLX97D_ntZE4EqywgDkGaWqe3tfa3Phmy0elxPct8mazhdksBTENiebma9nXj_NXDZIIEL0e6/s1600/17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="496" data-original-width="817" height="388" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj31y6bP5Y0XCSY6kLijYAJqMzK-pglDjlkRV6WLxTR1jG0q39DgcPPKHBMQ-OxGkYt769FLX97D_ntZE4EqywgDkGaWqe3tfa3Phmy0elxPct8mazhdksBTENiebma9nXj_NXDZIIEL0e6/s640/17.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
If you notice, rows at the first column are equals in every rows. </div>
<div class="MsoNormal">
If we are sure a column will allways have the same "fixed value" (for instance if we have a button in our PeopleSoft Component Interface and we want to click it by using PeopleCode) we can set this fixed value in the previous sheet, "Template".</div>
<div class="MsoNormal">
In this case I'll add a fixed value to the SETID column since I know all my vendors will belong to that one.</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEe7c67_v-nGvIbG4SulL7cW1pavH4x4h2ASbtvlsZvoDTxlf4IomQCsuMNW30JFfJqY8GzZlzdhYM1vQ5Pi3v9-P-W8wxbWtYMqQA_rzVXK1MffxfYkIG9Czt2ZOkIptGZnqo94Sq4Wk3/s1600/18.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="227" data-original-width="740" height="196" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEe7c67_v-nGvIbG4SulL7cW1pavH4x4h2ASbtvlsZvoDTxlf4IomQCsuMNW30JFfJqY8GzZlzdhYM1vQ5Pi3v9-P-W8wxbWtYMqQA_rzVXK1MffxfYkIG9Czt2ZOkIptGZnqo94Sq4Wk3/s640/18.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Now I can select that cell and choose the <b>"Deselect Input Cell"</b> option which let us indicate to the ExcelToCi tool we won't have this column visible in the <b>"Data Input" </b>section.</div>
<div class="MsoNormal">
In this case, the cell will be painted in a light blue colour, showing it is not able for users to input data but it will be taken into account when posting data to PeopleSoft.</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAxmMBexhPXtgsoh0Bb2n0fTJoZXSli00XOuKjJfPtr1_sQbU5sLY-Gl_4DYKUclpV_RUxT3fojNApWHIIUTgZWbqmVTLvvRTjoJeNeacHnnVCqhgZTmQT5PUHOHuoU7FpZGM3E2MnBuza/s1600/19.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="360" data-original-width="755" height="305" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAxmMBexhPXtgsoh0Bb2n0fTJoZXSli00XOuKjJfPtr1_sQbU5sLY-Gl_4DYKUclpV_RUxT3fojNApWHIIUTgZWbqmVTLvvRTjoJeNeacHnnVCqhgZTmQT5PUHOHuoU7FpZGM3E2MnBuza/s640/19.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<span style="font-family: inherit;"><span lang="ES-AR" style="font-size: 11pt; line-height: 115%;">Another way of making this configuration is by click the <b>"Include for Submission" </b>option.<br clear="all" style="mso-special-character: line-break; page-break-before: always;" />
</span>
</span><br />
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPNwdbBp2IYjuwjRsQD5fSsp6wKO8puv6HelWDwYtDPNpvjDAZn1G_eM_z2ScEzl109puavKkhIFBibv3r_q9PycT9xyWEMFxLXzCxSJ71ZbFOOV9y3lgLNRDittW4iVB6cvBljotKIetV/s1600/20.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="465" data-original-width="847" height="351" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPNwdbBp2IYjuwjRsQD5fSsp6wKO8puv6HelWDwYtDPNpvjDAZn1G_eM_z2ScEzl109puavKkhIFBibv3r_q9PycT9xyWEMFxLXzCxSJ71ZbFOOV9y3lgLNRDittW4iVB6cvBljotKIetV/s640/20.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
I'll set this change back, just to continue with our example.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB45eyjV3gLFYoYC_aGuVttCYAegzymkSseq73Kk5Apv_sRLph1SBYqNAmaFVnQ_VF0cARNxbJxNweGgjQ9aB7LsOv151glFk1B1qO8rvyIujWceS4PddFn9gF4UpQohRNYbsCIUINHAZZ/s1600/21.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="252" data-original-width="798" height="202" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjB45eyjV3gLFYoYC_aGuVttCYAegzymkSseq73Kk5Apv_sRLph1SBYqNAmaFVnQ_VF0cARNxbJxNweGgjQ9aB7LsOv151glFk1B1qO8rvyIujWceS4PddFn9gF4UpQohRNYbsCIUINHAZZ/s640/21.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Now I generate the "Data Input" once again.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggGXi0iyaNTcJ2r50PzjioOh-A4q04XdQv1PkvvpR1Q_lGrHUFh7nUh2kCPASNqYxgceR8DLmvEWYjnPZzxx4fiYBJzhds6tM0krRhFV1Hx9C3PzNplR0QDdfzb2g8-hrzGZpO-OAGLAa2/s1600/22.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="134" data-original-width="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggGXi0iyaNTcJ2r50PzjioOh-A4q04XdQv1PkvvpR1Q_lGrHUFh7nUh2kCPASNqYxgceR8DLmvEWYjnPZzxx4fiYBJzhds6tM0krRhFV1Hx9C3PzNplR0QDdfzb2g8-hrzGZpO-OAGLAa2/s1600/22.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<span style="font-family: inherit;"><span lang="ES-AR" style="font-size: 11pt; line-height: 115%;"><br clear="all" style="mso-special-character: line-break; page-break-before: always;" />
</span>
</span><br />
<div class="MsoNormal">
<span lang="ES-AR"><o:p><span style="font-family: inherit;">ExcelToCi alerts me previous data will be erased since the tempalte has changed:</span></o:p></span></div>
<div class="MsoNormal">
<span lang="ES-AR"><o:p><span style="font-family: inherit;"><br /></span></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2VhfnVEc7E9qThcWFijUg35aaDOotPTGNCcIuQPedngujSS2ag-f4XVU3zoKli9FWsENhem5U1z2zKg3UzvjD2_kFQWdvactHBk5guQNy-bXG4V___uMnA88l3CFFe79HZdYGCZr4aN4o/s1600/23.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="250" data-original-width="824" height="194" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2VhfnVEc7E9qThcWFijUg35aaDOotPTGNCcIuQPedngujSS2ag-f4XVU3zoKli9FWsENhem5U1z2zKg3UzvjD2_kFQWdvactHBk5guQNy-bXG4V___uMnA88l3CFFe79HZdYGCZr4aN4o/s640/23.jpg" width="640" /></a></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: inherit;">An the new Data Input is not showing the Setid column.</span></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju01W4dRfaW0LSL4vLEPgKYA3mQun85ZPrnWRZ77gce0he-8YOVtPW1c_S0Gvt3BmVbyhj_aJQJdRxeA5uEIbD8fyQBcUU-5rzpYbruEXkGE05Nmkj5uwQE9WTlPizs9lopXl4YI1FSNIw/s1600/24.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="344" data-original-width="865" height="254" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju01W4dRfaW0LSL4vLEPgKYA3mQun85ZPrnWRZ77gce0he-8YOVtPW1c_S0Gvt3BmVbyhj_aJQJdRxeA5uEIbD8fyQBcUU-5rzpYbruEXkGE05Nmkj5uwQE9WTlPizs9lopXl4YI1FSNIw/s640/24.jpg" width="640" /></a></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: inherit;">I'll set all the values, but in this case I'll add some errors in when adding mails.</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQWq-Bh5iIDGWF8ZJduESxIQOlr_fs75n3T0TGi2DheEM50UnlXC-TWvc1W2RtlFI9HVvtq0FQ32C1XwFjhH5llNiEeUpkOyRV9wyI6Id_lJ0vgs1wxaqEkTYp8sDtWIUXfI9vJ3UaJsX_/s1600/25.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="346" data-original-width="826" height="267" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQWq-Bh5iIDGWF8ZJduESxIQOlr_fs75n3T0TGi2DheEM50UnlXC-TWvc1W2RtlFI9HVvtq0FQ32C1XwFjhH5llNiEeUpkOyRV9wyI6Id_lJ0vgs1wxaqEkTYp8sDtWIUXfI9vJ3UaJsX_/s640/25.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<span style="font-family: inherit;"><span lang="ES-AR" style="font-size: 11pt; line-height: 115%;"><br clear="all" style="mso-special-character: line-break; page-break-before: always;" />
</span>
</span><br />
<div class="MsoNormal">
<span lang="ES-AR"><o:p><span style="font-family: inherit;"> With this information, I can go to the next step by clicking the <b>"Stage Data for Submision" </b>option.</span></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMMmmEhj6FGrCeKW2a0J2x0HaSOgsAbQYTqGhgXuMR5PQNR2oob3D4seCFM79Als_Anch268GDnoUrheohd5ARyPCOq-2KE-Dy2ptBeTTpTU-8qJ2xe-jp4KTGM-ICgxoDIf3DXA-hfhq-/s1600/26.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="112" data-original-width="406" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMMmmEhj6FGrCeKW2a0J2x0HaSOgsAbQYTqGhgXuMR5PQNR2oob3D4seCFM79Als_Anch268GDnoUrheohd5ARyPCOq-2KE-Dy2ptBeTTpTU-8qJ2xe-jp4KTGM-ICgxoDIf3DXA-hfhq-/s1600/26.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
This option will take all the information we've previously added and prepare it to be sent to the PeopleSoft Component Interface, leading us to the last sheet <b style="font-family: inherit;">“Staging & Submission”.</b></div>
<div class="MsoNormal">
<b style="font-family: inherit;"><br /></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixJEtWMyREPiNrC8VAufjnNO1Bl1-utdG51u2-cx2d2vMdYwRF_K0mWa0ZXdGLF-dKpmnnjbmd3XmiUE2Yo94cCfMcs8eKBjulsd9s91dvYyWqq9aFqwfGSEHuMNGlQC0pZamWpQ2LTVC5/s1600/27.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="68" data-original-width="590" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixJEtWMyREPiNrC8VAufjnNO1Bl1-utdG51u2-cx2d2vMdYwRF_K0mWa0ZXdGLF-dKpmnnjbmd3XmiUE2Yo94cCfMcs8eKBjulsd9s91dvYyWqq9aFqwfGSEHuMNGlQC0pZamWpQ2LTVC5/s1600/27.jpg" /></a></div>
<div class="MsoNormal">
<b style="font-family: inherit;"><br /></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="ES-AR"><o:p><span style="font-family: inherit;">In this sheet we are able to see a summary of all the steps we've been taking.</span></o:p></span></div>
<div class="MsoNormal">
<span lang="ES-AR"><o:p><span style="font-family: inherit;">You can see there are all different lines, containing "Level 0" records.</span></o:p></span></div>
<div class="MsoNormal">
<span lang="ES-AR"><o:p><span style="font-family: inherit;">Those lines are all related to a SETID we have set at the Template sheet and contains the information we have added at the "Data Input" page.</span></o:p></span></div>
<div class="MsoNormal">
<span lang="ES-AR"><o:p><span style="font-family: inherit;"><br /></span></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikpIT4cSR1VuOEs_C9wUXcbNcg-_vBo6UJZirYKOvdITHnTqNW7To_iBsaFZ4a_Joy0berkjlmt_dr2x-1UZu-IG02YFGHJwsel5-QGGUintOepRqaE53xauafcx06R-dTKso3ALPrPq8O/s1600/28.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="401" data-original-width="942" height="272" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikpIT4cSR1VuOEs_C9wUXcbNcg-_vBo6UJZirYKOvdITHnTqNW7To_iBsaFZ4a_Joy0berkjlmt_dr2x-1UZu-IG02YFGHJwsel5-QGGUintOepRqaE53xauafcx06R-dTKso3ALPrPq8O/s640/28.jpg" width="640" /></a></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: inherit;">Once we took a second look to confirm everything is properly filled, we choose the <b>"Submit Data" </b>option to send information to PeopleSoft.</span></div>
<div class="MsoNormal">
<span style="font-family: inherit;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO2zPvU30yXtAWx192MMjOJWB2xMpxC0gVuw9tBs0gnqBfhdjGyZGHxN6I8V5z_8YZPYcvFCGv6Rlw_uNitsKBokTWAv9BRe7apy4pg79pqNaxby0kGbN6xYp-Nph1eRGTOYoMfKPLPmtY/s1600/29.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="85" data-original-width="224" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO2zPvU30yXtAWx192MMjOJWB2xMpxC0gVuw9tBs0gnqBfhdjGyZGHxN6I8V5z_8YZPYcvFCGv6Rlw_uNitsKBokTWAv9BRe7apy4pg79pqNaxby0kGbN6xYp-Nph1eRGTOYoMfKPLPmtY/s1600/29.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="ES-AR"><o:p><span style="font-family: inherit;">We are once again asked for adding our connection information. </span></o:p></span></div>
<div class="MsoNormal">
<span lang="ES-AR"><o:p><span style="font-family: inherit;">In this case we are only asked for adding user and password, since the Component Interface was previously set, but ExcelToCI wants to confirm we have access to process information with the chosen Component Interface. </span></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvGz763lv2JJ9rajdy84LEulnFNym6I8VY_YjBI7ipAxlrOHUKNwBfSQoEg4OB-Q-meK4GLVgD3lhbzj5uOWH13uqgow-oAXJeyyzgMXyPZu62fqjyLITTFcZHThNseYs29o6owsISN6HE/s1600/30.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="176" data-original-width="463" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvGz763lv2JJ9rajdy84LEulnFNym6I8VY_YjBI7ipAxlrOHUKNwBfSQoEg4OB-Q-meK4GLVgD3lhbzj5uOWH13uqgow-oAXJeyyzgMXyPZu62fqjyLITTFcZHThNseYs29o6owsISN6HE/s1600/30.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
At this point, ExcelToCI starts processing all the information and, in case the "<span lang="ES-AR"><b>Error Threshold" </b>is exceeded the process will be stopped.</span></div>
<div class="MsoNormal">
On the other side, we can see lines that were properly processed are marked by a GREEN cell at the beggining of the row, where as the error ones are marked by a RED cell.</div>
<div class="MsoNormal">
We could finally see there are 2 lines having no marks. this is because those lines were not processed yet.</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikHMCn7XD2M-4LdmESiGqDi5cf_8fprwQtZZEuoUx9HQa0HTF8J8kN0D4Z-4IIS_7JXpLuS7m6S9_4TZTxJ604yXuDav6A5P1J6Gm66qPpVpfdwJ1P8mu2yvtCLwLDLM6AuKqDkcatFSET/s1600/31.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="281" data-original-width="858" height="209" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikHMCn7XD2M-4LdmESiGqDi5cf_8fprwQtZZEuoUx9HQa0HTF8J8kN0D4Z-4IIS_7JXpLuS7m6S9_4TZTxJ604yXuDav6A5P1J6Gm66qPpVpfdwJ1P8mu2yvtCLwLDLM6AuKqDkcatFSET/s640/31.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
This is the result of the configuration we've previously made.</div>
<div class="MsoNormal">
The ExcelToCI tool has taken the first 7 lines and worked with them as a single block.</div>
<div class="MsoNormal">
5 lines were properly processed where as 2 lines failed. Since the <span lang="ES-AR"><b>Error Threshold </b>was set to 1, then the ExcelToCI tool process has ceased.</span></div>
<div class="MsoNormal">
<span lang="ES-AR"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnp4O_GCy2wPJc9ikeRoXvxk0FTtWOFMzB6U01fQtxIxavdLVRdQwcwTQ_B6zJF3bU2ZXgyS6X2EL8fYHuNUA_xGMemLm3E1a3Z9YA1H2ILmoVIvFvaSgRvEIbF6-divde7CV31pBDepsz/s1600/03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="269" data-original-width="379" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnp4O_GCy2wPJc9ikeRoXvxk0FTtWOFMzB6U01fQtxIxavdLVRdQwcwTQ_B6zJF3bU2ZXgyS6X2EL8fYHuNUA_xGMemLm3E1a3Z9YA1H2ILmoVIvFvaSgRvEIbF6-divde7CV31pBDepsz/s1600/03.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
If we now take a look at the database, we will see new 5 lines were added to our table in peoplesoft as a result of the Component Interface process.</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKpjL_muXNt0qWxrkpn4oEBa0tPhJNjqJYfC1C1UGVBm1e2up0InuKZbtvgtUFrN9uN3Wbe6jiXD4hr8khZuv1J6UhvORgKeyoa8WoeHSV9AyzWrSoFkNO1hr08_9cMxtsHADiKxRzRPv3/s1600/33.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="332" data-original-width="781" height="272" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKpjL_muXNt0qWxrkpn4oEBa0tPhJNjqJYfC1C1UGVBm1e2up0InuKZbtvgtUFrN9uN3Wbe6jiXD4hr8khZuv1J6UhvORgKeyoa8WoeHSV9AyzWrSoFkNO1hr08_9cMxtsHADiKxRzRPv3/s640/33.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
On the other side, if we "hover" the mouse in a Error cell, a pop up message is shown detailing the error that was caused when processing that line.</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdasT5W0VVFA2MMDZmTaNjeHzZTZPnUWLCKeaQ2k3vaeq1rjkj5Bo8ie5r_vS8cvuePLDPEV9BPXl4aNdZQ4vkysGPNdRl-Lkvz5uA1l84UOEBQbHR89-t2YObCH_2mRPj1TJnGpKdmcyp/s1600/34.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="331" data-original-width="891" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdasT5W0VVFA2MMDZmTaNjeHzZTZPnUWLCKeaQ2k3vaeq1rjkj5Bo8ie5r_vS8cvuePLDPEV9BPXl4aNdZQ4vkysGPNdRl-Lkvz5uA1l84UOEBQbHR89-t2YObCH_2mRPj1TJnGpKdmcyp/s640/34.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<span style="font-family: inherit;"><span lang="ES-AR" style="font-size: 11pt; line-height: 115%;"><br clear="all" style="mso-special-character: line-break; page-break-before: always;" />
</span>
</span><br />
<div class="MsoNormal">
<span lang="ES-AR"><o:p><span style="font-family: inherit;">In order to fix those errors and continue processing the lines we have to choose the <b>"Post Results"</b> options. </span></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5DVj_KAo_4Qly-T38DAEpmoYx_lU-2k4KSk8SWRmkV-m2jv44iUSkf2LtUeDbgrh2wIep5dyLVvAKNtMuLp_9pP-yDTLLAsXKBd3TsUpQUrilkL19hsCXKCXMlpw28qr4HuWl9S8Q8eLm/s1600/35.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="72" data-original-width="679" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5DVj_KAo_4Qly-T38DAEpmoYx_lU-2k4KSk8SWRmkV-m2jv44iUSkf2LtUeDbgrh2wIep5dyLVvAKNtMuLp_9pP-yDTLLAsXKBd3TsUpQUrilkL19hsCXKCXMlpw28qr4HuWl9S8Q8eLm/s1600/35.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
At this time, the ExcelToCI tool will update the "Input Data" sheet with the execution results so we'll be allowed to change any data.</div>
<div class="MsoNormal">
Once we fix all the values we choose the "Stage Data For Submission" option once again.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz23_eRsb-tR1WROvvjTQdseYEbFEVZ0cpy7ut_W10PEaEEJA6K2e5MT1cYuLSSOkXNaLb104Z1itf_HLTAKNy_0tyQdXUHTrTeBbGDxHXCUDaTTzgoIJWT0AsnipWz0JQsJoUbj0bOLwb/s1600/36.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="512" data-original-width="534" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz23_eRsb-tR1WROvvjTQdseYEbFEVZ0cpy7ut_W10PEaEEJA6K2e5MT1cYuLSSOkXNaLb104Z1itf_HLTAKNy_0tyQdXUHTrTeBbGDxHXCUDaTTzgoIJWT0AsnipWz0JQsJoUbj0bOLwb/s1600/36.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
ExcelToCI tool will lead us once again to the last sheet. At this point, only pending lines are shown.</div>
<div class="MsoNormal">
Let's click once again in <b>"Submit Data" </b>option.</div>
<span style="font-family: inherit;"><span lang="ES-AR" style="font-size: 11pt; line-height: 115%;"><br clear="all" style="mso-special-character: line-break; page-break-before: always;" />
</span>
</span><br />
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: inherit;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEi66nh7PexdhsEjG2Q_ltDlXkWxrAguWEraPvg0it4RwDVisrArKIpYUmbGLPmc6RGYQNzLKB7naDuZAzZPwBw19mnKQR1WHzRb8DlyxDY6pQg2KR_0g-spijv4Et_KlxpKagoYMHxqfb/s1600/37.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="362" data-original-width="746" height="309" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEi66nh7PexdhsEjG2Q_ltDlXkWxrAguWEraPvg0it4RwDVisrArKIpYUmbGLPmc6RGYQNzLKB7naDuZAzZPwBw19mnKQR1WHzRb8DlyxDY6pQg2KR_0g-spijv4Et_KlxpKagoYMHxqfb/s640/37.jpg" width="640" /></a></span></div>
<br />
<div class="MsoNormal">
<span lang="ES-AR"><span style="font-family: inherit;"><br /></span></span></div>
<div class="MsoNormal">
<span lang="ES-AR"><span style="font-family: inherit;">I'm asked for credentials once again.</span></span></div>
<div class="MsoNormal">
<span lang="ES-AR"><span style="font-family: inherit;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdcjjesludBi_llo6cY2-hRxu-4nlcuDzQ9Tq5ALKYEeyZC3LDLCZ_HMspwo_xEV2bF2cDT1stcqmlPp-BgrruWd9Xctad3lAF7rVjKna14FqFlfPbGOCBz52QJ10jP7FFHdXq2g-smTbX/s1600/38.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="198" data-original-width="522" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdcjjesludBi_llo6cY2-hRxu-4nlcuDzQ9Tq5ALKYEeyZC3LDLCZ_HMspwo_xEV2bF2cDT1stcqmlPp-BgrruWd9Xctad3lAF7rVjKna14FqFlfPbGOCBz52QJ10jP7FFHdXq2g-smTbX/s1600/38.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
And now the rest of the rows are properly processed:</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLGxrTGroScI8VzVjpfwWtHToCF0aT3iVCh7JykqvMbDyhgvO-ZQLfen9TzhxKw7hEN6XJykxJri2T7Oj84ugI3AOQUa9U1p6Mk0G-JEN56Wy5dTFajOzCm9v7W4Hg39xY48lg3ony2SD/s1600/39.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="256" data-original-width="677" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCLGxrTGroScI8VzVjpfwWtHToCF0aT3iVCh7JykqvMbDyhgvO-ZQLfen9TzhxKw7hEN6XJykxJri2T7Oj84ugI3AOQUa9U1p6Mk0G-JEN56Wy5dTFajOzCm9v7W4Hg39xY48lg3ony2SD/s1600/39.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
If we now take a second look to the database, we can confirm all the lines are now inserted in our table.</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE1pb-4Y0g53xbVVEBDHav9-1R8M8F484SMOVH9TWcJMenEkDm7RjcejsxwZGphy66Yk_XZr0sl-YlJIPVWLK6LK9B-9CmMRWGNDtuCSm-TGbByDPRB5KBf_EYmgREB9FfrxNHmbD7D6gX/s1600/40.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="416" data-original-width="777" height="342" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE1pb-4Y0g53xbVVEBDHav9-1R8M8F484SMOVH9TWcJMenEkDm7RjcejsxwZGphy66Yk_XZr0sl-YlJIPVWLK6LK9B-9CmMRWGNDtuCSm-TGbByDPRB5KBf_EYmgREB9FfrxNHmbD7D6gX/s640/40.jpg" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="background-color: white; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">
<span style="font-size: 13.2px; line-height: 18.48px;">And that's all.</span></div>
<div style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px;">
<span style="font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div class="MsoNormal">
<span style="background-color: white; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;">I hope this blog could be so useful to you as it is to me.</span><br />
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;" />
<span style="background-color: white; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;">Regards.</span><br />
<span style="background-color: white; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;">Facundo Salerno.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
</div>
Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-83879231054512161202018-05-17T10:28:00.001-07:002018-05-17T10:28:08.840-07:00Leading Zeros when exporting Grid to Excel Working in a client an issue was reported when downloading a PeopleSoft grid to an Excel spreadsheet.<br />
<br />
There is a page where the following grid is shown.<br />
In the specific grid, the EMPLID field may have a 0 at the beginning.<br />
Then, a user tries to download this grid to Excel, by clicking the following button (notice private date was hidden just in case).<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_eMic_HA3ljaJ6AuQ_oF4ngjZrtU0Xpcre_B_wTLQ-LkYtdDAQ871QfHyL9d7lNv21DJ3bJHL6ZvlUKQP5XaDpblH2NqOnfkAXYHONmS0uH8Zte2RA2rBeSxoKQe8Prf1w2OENkTHm5or/s1600/01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="126" data-original-width="576" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_eMic_HA3ljaJ6AuQ_oF4ngjZrtU0Xpcre_B_wTLQ-LkYtdDAQ871QfHyL9d7lNv21DJ3bJHL6ZvlUKQP5XaDpblH2NqOnfkAXYHONmS0uH8Zte2RA2rBeSxoKQe8Prf1w2OENkTHm5or/s1600/01.jpg" /></a></div>
<br />
<br />
As a result, the Excel spreadsheet is built and shown as you could see below<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqDqSMQO9IO53GFoGAMeB81db90b8hLB8pBkverMlSjnQSsWtlcPs5_nWhZWCWWUX4MGkXX4Aq8-sDpy2MSJGtR1OWsmZTjJhJ7-f4A_6-IfSWnm_uf4Rz5xD_TWpwL-aIOuJSIp_CQr1f/s1600/02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="108" data-original-width="520" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqDqSMQO9IO53GFoGAMeB81db90b8hLB8pBkverMlSjnQSsWtlcPs5_nWhZWCWWUX4MGkXX4Aq8-sDpy2MSJGtR1OWsmZTjJhJ7-f4A_6-IfSWnm_uf4Rz5xD_TWpwL-aIOuJSIp_CQr1f/s1600/02.jpg" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
So this is the issue, the 0 character dissapeared although the EMPLID field is a Char field.<br />
<br />
In order to solve this issue we can change an Applicaiton Server configuration called <i style="font-weight: bold;">FormatIntsInCharFldsForDownloadToExcel</i><br />
<br />
<br />
When setting this value to 0, the Character columns are still treated like that even though they contain numbers.<br />
<br />
So I'm going to set this value to 0:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEa5jjhg8rKWjgEzDdGIwcDE8RxWfOLytozs60Fv35R6WBQ5dDpe3LUBjrdrv9c6QViWMi7doRZr9OQZlMe52bT7QRGCh9oWlZtn53QxHyCHuHu-Vpk1Fi-XOVTfCunuOnaIADt2OBbY10/s1600/03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="210" data-original-width="663" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEa5jjhg8rKWjgEzDdGIwcDE8RxWfOLytozs60Fv35R6WBQ5dDpe3LUBjrdrv9c6QViWMi7doRZr9OQZlMe52bT7QRGCh9oWlZtn53QxHyCHuHu-Vpk1Fi-XOVTfCunuOnaIADt2OBbY10/s1600/03.jpg" /></a></div>
<br />
<br />
After this step Application Server must be bounced, in order to take this change into account.<br />
<br />
Once it's up again, I enter the same page and download the same information:<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg143YeOHmFmjKPbJAqvf42pbx09FZ5sXjEgomjSeNIP4kmgOJUw-S8gApxJIz1bdiB4oNvKB7v3bhTc_mcJ6ahkCMk3nDLzITDVHIP2Q9OYrbneUnDoNAYLbMvGORo6XAyzkuNvF-MJbpd/s1600/04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="126" data-original-width="576" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg143YeOHmFmjKPbJAqvf42pbx09FZ5sXjEgomjSeNIP4kmgOJUw-S8gApxJIz1bdiB4oNvKB7v3bhTc_mcJ6ahkCMk3nDLzITDVHIP2Q9OYrbneUnDoNAYLbMvGORo6XAyzkuNvF-MJbpd/s1600/04.jpg" /></a></div>
<br />
<br />
Now the 0 appears at the EMPLID column.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnIx1hqgNguqSpuLC9y2f_VjfsNpHBMUeJSQjaAPKcdFYyI3W_S1Kgo4JVq1gaIPSnvNy-wGYN07muqb8ftTKhx7V_YpWKGO0F-YM8SpgeAEnN-ditRWJJ5jSzkl46HuulRpSg48qoPeT4/s1600/05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="101" data-original-width="505" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnIx1hqgNguqSpuLC9y2f_VjfsNpHBMUeJSQjaAPKcdFYyI3W_S1Kgo4JVq1gaIPSnvNy-wGYN07muqb8ftTKhx7V_YpWKGO0F-YM8SpgeAEnN-ditRWJJ5jSzkl46HuulRpSg48qoPeT4/s1600/05.jpg" /></a></div>
<br />
<br />
<br />
<div class="separator" style="clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">
<span style="font-size: 13.2px; line-height: 18.48px;">And that's all.</span></div>
<div style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px;">
<span style="font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13.2px; line-height: 18.48px;">I hope this blog could be so useful to you as it is to me.</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;" /><span style="font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Regards.</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px;" /><span style="font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Facundo Salerno.</span><br />
<br />
<br />
<br />
<br />
<br />Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com1tag:blogger.com,1999:blog-3978783883969554220.post-57228334361111872672016-05-31T05:38:00.001-07:002016-05-31T05:38:51.830-07:00Application Engine Trace Flags<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdHLKP7BYvrAh3EZxxjMAU2HvyRtc3J916y-J1Se-JV3b176_nha41mrXZUcX-XD0vJq7iTJhciKzmXcwiZltRvVABsfo5XRemgLso-G3lbqCvIaQNeYAwR62h-9KGLztoIaYqNTMNJiJJ/s1600/Trace+AE.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="423" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdHLKP7BYvrAh3EZxxjMAU2HvyRtc3J916y-J1Se-JV3b176_nha41mrXZUcX-XD0vJq7iTJhciKzmXcwiZltRvVABsfo5XRemgLso-G3lbqCvIaQNeYAwR62h-9KGLztoIaYqNTMNJiJJ/s640/Trace+AE.jpg" width="640" /></a></div>
<br />
Credits: Nicolás Alejandro Padín PaezFacundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-27589455611490899562016-04-10T11:46:00.001-07:002016-06-06T07:53:04.510-07:00Managing Query Security<br />
<span style="background-color: white;"><span style="color: #222222; font-family: "arial" , sans-serif;"><span style="font-size: 12.8px;">Have you ever tried to look for an existing Query but you aren't able to see it through the PIA?</span></span></span><br />
<span style="background-color: white;"><span style="color: #222222; font-family: "arial" , sans-serif;"><span style="font-size: 12.8px;"><br /></span></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRsQBojxnBpVdY1dek_2mpiTd9J_U9R1WAPrQQVSP2eIw3csHwnuc2u3KhHUEfPTUzdnwVVCFElyU7R_wtYkybGtKxYU2PO1ct-cbd0ioqzeojGC8lq4OotmKYeiDE_TTGpjypjX7dywza/s1600/01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRsQBojxnBpVdY1dek_2mpiTd9J_U9R1WAPrQQVSP2eIw3csHwnuc2u3KhHUEfPTUzdnwVVCFElyU7R_wtYkybGtKxYU2PO1ct-cbd0ioqzeojGC8lq4OotmKYeiDE_TTGpjypjX7dywza/s1600/01.jpg" /></a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
However, If you search it in the Database, it does exist and it's a Public Query ( there is no OPRID save in the record)</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<div style="font-size: 12.8px;">
<b>SELECT *</b></div>
<div style="font-size: 12.8px;">
<b>FROM PSQRYDEFN</b></div>
<div style="font-size: 12.8px;">
<b>WHERE QRYNAME IN ('SANI_USER_RPT_QRY');</b></div>
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizXp2CsuTN1SfFPfWh0MuqVqJGqp8B6n6MU6K_SejuHf-vFXy6pnvE6JhoSyBcHNye270_-3YDTN7-azy1fPjmrSWMD_UUBM-7f4hORseexXybDkui6PCd4tBLjpiE_lpFJpm2B6ESHTva/s1600/02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizXp2CsuTN1SfFPfWh0MuqVqJGqp8B6n6MU6K_SejuHf-vFXy6pnvE6JhoSyBcHNye270_-3YDTN7-azy1fPjmrSWMD_UUBM-7f4hORseexXybDkui6PCd4tBLjpiE_lpFJpm2B6ESHTva/s1600/02.jpg" /></a></div>
<div>
<br /></div>
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
The issue resides in the security that is applied to the Query Object. We have no access to any of the tables that are involved in the query, so we can't see it.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
Let's see which records are included in the Query:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<span style="font-size: 12.8px;"><b>SELECT DISTINCT RECNAME</b></span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<div style="font-size: 12.8px;">
<b>from PSQRYRECORD</b></div>
<div style="font-size: 12.8px;">
<b>WHERE QRYNAME IN ('SANI_USER_RPT_QRY');</b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghtxh6HTr9qg5XEo7TXE3x0xdqoXp2Ay7yTVGd67SKX6DN8SKPqv8r_dqMs0STqrz0xfNpE9MjDUIti3I6qcOhbiFukEPtE1gvXCAfeIU2vWcELOA2tFRoArstYrVVn9C-eXjxzMu2CYv6/s1600/03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghtxh6HTr9qg5XEo7TXE3x0xdqoXp2Ay7yTVGd67SKX6DN8SKPqv8r_dqMs0STqrz0xfNpE9MjDUIti3I6qcOhbiFukEPtE1gvXCAfeIU2vWcELOA2tFRoArstYrVVn9C-eXjxzMu2CYv6/s1600/03.jpg" /></a></div>
<div style="font-size: 12.8px;">
<br /></div>
<div style="font-size: 12.8px;">
<br /></div>
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
Based on this, we have 2 ways of solving granting users with access to the Query:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<b>First Option: </b></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
Let's see in which Access Groups are the tables saved:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<div style="font-size: 12.8px;">
<b>SELECT TREE_NAME, PARENT_NODE_NAME, TREE_NODE</b></div>
<div style="font-size: 12.8px;">
<b>FROM PSTREENODE</b></div>
<div style="font-size: 12.8px;">
<b>WHERE TREE_NODE_TYPE ='R' </b></div>
<div style="font-size: 12.8px;">
<b>AND TREE_NODE IN('PSOPRDEFN','PSROLEDEFN','PSROLEUSER','PSXLATITEM','SANI_EMPL_TBL','SANI_RPT_USER')</b></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiLUmuSDHd61ZH6DgHs_gsUX3F7GEea8gJRtAWOF6RF5lLSvzdqUukIOk_lD6P4czlqUZ7EHm_R836aSqXu0qpfBjQDcHR-svG-ftosAF0jI_BqVjplfDkDxS8orwVaEy_P1Xl1iYZ7_LP/s1600/04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiLUmuSDHd61ZH6DgHs_gsUX3F7GEea8gJRtAWOF6RF5lLSvzdqUukIOk_lD6P4czlqUZ7EHm_R836aSqXu0qpfBjQDcHR-svG-ftosAF0jI_BqVjplfDkDxS8orwVaEy_P1Xl1iYZ7_LP/s1600/04.jpg" /></a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<span style="font-size: 12.8px;">Now let's check which of them are not in any user Permission List, (in this case I am logged with user VP2 )</span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<span style="font-size: 12.8px;"></span><br />
<div style="font-size: 12.8px;">
<span style="font-size: 12.8px;"><b>SELECT TREE_NAME, PARENT_NODE_NAME, TREE_NODE</b></span></div>
<span style="font-size: 12.8px;">
</span>
<br />
<div style="font-size: 12.8px;">
<span style="font-size: 12.8px;"><b>FROM PSTREENODE</b></span></div>
<span style="font-size: 12.8px;">
</span>
<div style="font-size: 12.8px;">
<span style="font-size: 12.8px;"><b>WHERE TREE_NODE_TYPE ='R' </b></span></div>
<span style="font-size: 12.8px;">
<div style="font-size: 12.8px;">
<b>AND TREE_NODE IN('PSOPRDEFN','PSROLEDEFN','PSROLEUSER','PSXLATITEM','SANI_EMPL_TBL','SANI_RPT_USER')</b></div>
<div style="font-size: 12.8px;">
<b>AND (TREE_NAME, PARENT_NODE_NAME) NOT IN (SELECT TREE_NAME, PARENT_NODE_NAME</b></div>
<div style="font-size: 12.8px;">
<b> FROM PS_SCRTY_ACC_GRP </b></div>
<div style="font-size: 12.8px;">
<b> WHERE CLASSID IN( select B.CLASSID</b></div>
<div style="font-size: 12.8px;">
<b> from PSROLEUSER A, PSROLECLASS B</b></div>
<div style="font-size: 12.8px;">
<b> where A.ROLENAME = B.ROLENAME</b></div>
<div style="font-size: 12.8px;">
<b> and A.ROLEUSER= 'VP2'))</b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRAXMTD0TzHneh0mxRa6a9gcF43inyG4rfCPaBUwMRrLgkEBPNxWCR71O_r2OPtfkapuSsiRMkF7tsfkd3b4eE3LrpVDqVtK9TpyarMpWOiZRckD30k572YOUHrBHhZYWmn0qZeL8SV77N/s1600/05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="223" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRAXMTD0TzHneh0mxRa6a9gcF43inyG4rfCPaBUwMRrLgkEBPNxWCR71O_r2OPtfkapuSsiRMkF7tsfkd3b4eE3LrpVDqVtK9TpyarMpWOiZRckD30k572YOUHrBHhZYWmn0qZeL8SV77N/s640/05.jpg" width="640" /></a></div>
<div>
<span style="font-size: 12.8px;">So I should add this Access Group to any of the VP2 permission lists, so that this user can see the query. Let's add it to the ALLPAGES permission list:</span></div>
</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_u9spkGpNOTuG5hDr3iuszQmgQ2O-bfzLtEjDpzC0TvG_ZYqUwHTrNuEq182GXMG6WeAFChlSl0CguIJPR9u0UFNbfNRpg7mV7UfpBRseg8nTA0SMcz-4FAD77Aazmsfc-L5fseS4VijZ/s1600/06.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_u9spkGpNOTuG5hDr3iuszQmgQ2O-bfzLtEjDpzC0TvG_ZYqUwHTrNuEq182GXMG6WeAFChlSl0CguIJPR9u0UFNbfNRpg7mV7UfpBRseg8nTA0SMcz-4FAD77Aazmsfc-L5fseS4VijZ/s1600/06.jpg" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggCBpLN8yvni7MOn3smaIg_WprX7TzmknTFYBG3_l3ej-HsCdwL8TkJbKj2Cwe80urzKEJ7Vjd6IN-mGA6mz41r6Mn6A3dAX3HZl4Z180sSh2arMo1Ktkju1upUWwH8J8GHp-v4IPynICF/s1600/07.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggCBpLN8yvni7MOn3smaIg_WprX7TzmknTFYBG3_l3ej-HsCdwL8TkJbKj2Cwe80urzKEJ7Vjd6IN-mGA6mz41r6Mn6A3dAX3HZl4Z180sSh2arMo1Ktkju1upUWwH8J8GHp-v4IPynICF/s1600/07.jpg" /></a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
Save the Permission List, and that's it.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<b>Second Option: </b>Let's look for a Query Access Tree. It will depends on the tables that are being used in the Query. In this case I'll add it to the QUERY_TREE_PT, since the involved records are PeopleTools records.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgoh0aPMDCGbePyTRpuZxyY4OHNu8WB-u0HGLCV1oJLM7FzAzW0pj6_QuzgUV0Uf6Bn_X1guS05VM-WejTbBO00BVF4T_Reg1z8zSSZEjYQ8YdYoErK7DZlCuG-Q0AziaLf97lx4ZOd9mU/s1600/08.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="234" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgoh0aPMDCGbePyTRpuZxyY4OHNu8WB-u0HGLCV1oJLM7FzAzW0pj6_QuzgUV0Uf6Bn_X1guS05VM-WejTbBO00BVF4T_Reg1z8zSSZEjYQ8YdYoErK7DZlCuG-Q0AziaLf97lx4ZOd9mU/s640/08.jpg" width="640" /></a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<span style="font-size: 12.8px;">Once there, let's create a new Access Group:</span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrlypE3XfHyG9A7xCGT8ZofWMe2TDpBCBetOvbYTxrhu9QZQsqFz_XjTIloM6DtsRPQ1m_fXzwggNpmjgUzJXsLaff1BQQpgOQ9GSoe8ig61H4Ld_IV9RTkqvoNAFzYHYAVTlUXbLLUBv-/s1600/09.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrlypE3XfHyG9A7xCGT8ZofWMe2TDpBCBetOvbYTxrhu9QZQsqFz_XjTIloM6DtsRPQ1m_fXzwggNpmjgUzJXsLaff1BQQpgOQ9GSoe8ig61H4Ld_IV9RTkqvoNAFzYHYAVTlUXbLLUBv-/s1600/09.jpg" /></a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR9VSYy8yBmAEUr8amjibkkHxYby-el_3O_7xHC-V1mkRcvL24Mg0FBi1mdTZwhYUsXSvcDtj50cJVODjl1dvma1dyXheF0AEkXzKxw84AEgrkajP7Y9T0uhhl8dzYuhX0cWs3utHbxuJp/s1600/10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR9VSYy8yBmAEUr8amjibkkHxYby-el_3O_7xHC-V1mkRcvL24Mg0FBi1mdTZwhYUsXSvcDtj50cJVODjl1dvma1dyXheF0AEkXzKxw84AEgrkajP7Y9T0uhhl8dzYuhX0cWs3utHbxuJp/s1600/10.jpg" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGesKO294sPYgXHBbBH0TJXkxE1djcgbXmYX87-WY8lS6MpyG9Ejk7Ojq1562IgxgIaNWU-1GVppIIqd5ZJm3Kx2_g58HoTPlMwPtwkE12bHmOJ7QJHCq_Jw8oDYfNZ6ldwAQwNKIN_sN9/s1600/11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGesKO294sPYgXHBbBH0TJXkxE1djcgbXmYX87-WY8lS6MpyG9Ejk7Ojq1562IgxgIaNWU-1GVppIIqd5ZJm3Kx2_g58HoTPlMwPtwkE12bHmOJ7QJHCq_Jw8oDYfNZ6ldwAQwNKIN_sN9/s1600/11.jpg" /></a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
And now let's add all the involved tables to the Access Group:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXTnwIr71BZzSLyEm3TAjasNtXrZ5Inve1xfvV786miyEVzlj2WxvUjbH61c0V8Y8VLMBTjpUrIA1FsIx_R8lcgyJt8oD8hE32y-NUNNnPdOn9rg8heV0HgByP8F8ybtdQ0bunR0Byv5Hq/s1600/12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXTnwIr71BZzSLyEm3TAjasNtXrZ5Inve1xfvV786miyEVzlj2WxvUjbH61c0V8Y8VLMBTjpUrIA1FsIx_R8lcgyJt8oD8hE32y-NUNNnPdOn9rg8heV0HgByP8F8ybtdQ0bunR0Byv5Hq/s1600/12.jpg" /></a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<span style="font-size: 12.8px;">Save the Query Access Tree:</span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilCwHBgOR9gmcegiEgDECHktImmqAlRBGcyk6EhzhSYqmpzRZsgFnpGVi8NIdhgW_y1VYr3s5FvLUN9BPdOBo5ZZgVb-_Q4rR_1iU654ElS-SciGrxNPifVMopYfkxohV9a3bPmlo3p-Wy/s1600/13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilCwHBgOR9gmcegiEgDECHktImmqAlRBGcyk6EhzhSYqmpzRZsgFnpGVi8NIdhgW_y1VYr3s5FvLUN9BPdOBo5ZZgVb-_Q4rR_1iU654ElS-SciGrxNPifVMopYfkxohV9a3bPmlo3p-Wy/s1600/13.jpg" /></a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
Now I should add the access group to the ALLPAGES permission list:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEdRlPNS4ajnkd3JRLOsq1knF6ewQN7Y7t892PHFjBThRdM70_xf7jSYr71-2FgZSFeU6AC9Uvf35i6KgnoALjk7nGAAQdBZ4LpAKchErDxalw3IBG-yekRBNaaxnchpWC3SplVkQScJDd/s1600/14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEdRlPNS4ajnkd3JRLOsq1knF6ewQN7Y7t892PHFjBThRdM70_xf7jSYr71-2FgZSFeU6AC9Uvf35i6KgnoALjk7nGAAQdBZ4LpAKchErDxalw3IBG-yekRBNaaxnchpWC3SplVkQScJDd/s1600/14.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQqekD-w6HkolKgQOeH4iM5n_wU7m-y-weENY4-qCbiydGQTS_1HPyNAh45Dz17AceeqTBO6YRpJuQVie3ZJZ59oM4DDQAxyCqRb3XxJbz8VWY5hoLiTJ7DbX0xCeF6Vc9uyPkghmTTdTc/s1600/15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQqekD-w6HkolKgQOeH4iM5n_wU7m-y-weENY4-qCbiydGQTS_1HPyNAh45Dz17AceeqTBO6YRpJuQVie3ZJZ59oM4DDQAxyCqRb3XxJbz8VWY5hoLiTJ7DbX0xCeF6Vc9uyPkghmTTdTc/s1600/15.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
Save the changes, and that's it.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<span style="font-size: 12.8px;">No matter what option have you chosen, you should now have access to see the Query.</span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
I'll go and search once again, now the query is properly shown:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGDEjWcJpL5OmAGrAjp-jX5LSsqWDM7KBH0TfMFSTx16C4qdgUyrWujac7PN9F0Y6VoEuPfXvNFEFLwjaDN9XlpH86dWw90YczXLoIz7Cb_Dw3IQzM52EqoYZkYCLTDjpo9uLthzI7ZeAA/s1600/16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="353" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGDEjWcJpL5OmAGrAjp-jX5LSsqWDM7KBH0TfMFSTx16C4qdgUyrWujac7PN9F0Y6VoEuPfXvNFEFLwjaDN9XlpH86dWw90YczXLoIz7Cb_Dw3IQzM52EqoYZkYCLTDjpo9uLthzI7ZeAA/s640/16.jpg" width="640" /></a></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
<div style="background-color: white;">
<div class="separator" style="clear: both; color: black; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">
<span style="font-size: 13.2px; line-height: 18.48px;"><b>Just a Hint</b></span></div>
<div class="separator" style="clear: both; color: black; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">
<span style="font-size: 13.2px; line-height: 18.48px;">There is no need to add ALL the query tables to the Query Tree, but only those ones that User has no access through another Acess Group.</span></div>
<div class="separator" style="clear: both; color: black; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">
<span style="font-size: 13.2px; line-height: 18.48px;">Here you have a query that could help you checking which records are not able to be seen by the user:</span></div>
<div class="separator" style="clear: both;">
</div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b>SELECT Q.RECNAME</b></span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b>FROM PSQRYRECORD Q</b></span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b>WHERE Q.QRYNAME = 'SANI_INVOICE_HDR_QRY'</b></span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b>AND Q.RECNAME NOT IN (SELECT T.TREE_NODE</b></span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> FROM PSTREENODE T</b></span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> WHERE T.TREE_NODE_TYPE ='R' </b></span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> AND (T.TREE_NAME, T.PARENT_NODE_NAME) IN (SELECT AG.TREE_NAME, AG.ACCESS_GROUP</b></span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> FROM PS_SCRTY_ACC_GRP AG </b></span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> WHERE AG.CLASSID IN( SELECT B.CLASSID</b></span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> FROM PSROLEUSER A, PSROLECLASS B</b></span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> WHERE A.ROLENAME = B.ROLENAME</b></span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> AND A.ROLEUSER= 'ihernandezn')</b></span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> )</b></span></span></div>
<div class="separator" style="clear: both;">
<span style="font-family: arial, tahoma, helvetica, freesans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> )</b></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLCd3jbPKDtsJeylrbmpep2qvlBOyW0RYC8qwfZoXRxFZLHTldsQJeQsnxG42ykpiwh6LUXtXHi7BTgDm75m4507eYmYWkinldTwqvqFT9PI1Zrgbw3_JIFbNBZDpMgfuJb8dSzIZ72Yas/s1600/17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLCd3jbPKDtsJeylrbmpep2qvlBOyW0RYC8qwfZoXRxFZLHTldsQJeQsnxG42ykpiwh6LUXtXHi7BTgDm75m4507eYmYWkinldTwqvqFT9PI1Zrgbw3_JIFbNBZDpMgfuJb8dSzIZ72Yas/s640/17.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; color: black; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">
<br /></div>
<div class="separator" style="clear: both; color: black; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">
<span style="font-size: 13.2px; line-height: 18.48px;">In this case, it was only the SANI_RPT_USER which was hidden for VP2 user.</span></div>
<div class="separator" style="clear: both; color: black; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">
<span style="font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div class="separator" style="clear: both; color: black; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">
</div>
<div class="separator" style="clear: both; font-size: 13.2px; line-height: 18.48px;">
<span style="font-size: 13.2px; line-height: 18.48px;">And that's all.</span></div>
<div>
<span style="font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<span style="color: black; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;">I hope this blog could be so useful to you as it is to me.</span><br />
<br style="color: black; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;" />
<span style="color: black; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;">Regards.</span><br />
<span style="color: black; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;">Facundo Salerno.</span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8px;">
<br /></div>
Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-71792862851867578012015-12-27T10:30:00.001-08:002015-12-27T10:39:36.749-08:00Grouping Rows in OracleHi,<br />
<br />
How many times do you want to show some "properties" of a key value, and the result set means more than a single row?<br />
<br />
For instance, you have the following SQL Statement.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAycvw74Em6YNBBuXOkPzV-1vN46qHEdiPhmqTr8cW-2QYtBh-TBx5O7fO-epoHwK3UKnM2ZVZhpezps0AZE4WqNEv9jFKf4dNhaC2RybpuivYBihmfPx9k8I-IfbAMQQJ9utBH7OFNf4b/s1600/01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAycvw74Em6YNBBuXOkPzV-1vN46qHEdiPhmqTr8cW-2QYtBh-TBx5O7fO-epoHwK3UKnM2ZVZhpezps0AZE4WqNEv9jFKf4dNhaC2RybpuivYBihmfPx9k8I-IfbAMQQJ9utBH7OFNf4b/s1600/01.jpg" /></a></div>
<br />
In this case, there are 4 rows matching the statement.<br />
Oracle has introduced in the <span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Oracle 11g Release 2 </span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">the LISTAGG function which allows us to have the same result set but grouping it in a single row</span><br />
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Here you have how it works:</span><br />
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span>
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><br /></span></span>
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;">SELECT ROLEUSER, <b>LISTAGG</b>(ROLENAME, ' - ') </span></span><br />
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"> <b> WITHIN GROUP (ORDER BY ROLENAME) </b> AS ROLENAME</span></span><br />
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;">FROM PSROLEUSER</span></span><br />
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;">WHERE ROLEUSER = 'VP1' </span></span><br />
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;"></span></span><br />
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;">GROUP BY ROLEUSER</span></span><br />
<div>
<br /></div>
In the example, I am asking for all the ROLENAME values, that match to the GROUP BY clause. I am also ordering it by ROLENAME, and separating them with the " - " character.<br />
<br />
Here you have the results:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsMDT1APUOplHMpl8-N4iGcmc6yJ8RtUCcAxPj9OJpt0F2lImb98YMgcZojc810B084Sq9T678K1zm9h4OGxBDtByBVjebdiw2Dp6XR05rvHACnb5VcNnSbWMo2kgqBuF4taLO-JPOdtFl/s1600/02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsMDT1APUOplHMpl8-N4iGcmc6yJ8RtUCcAxPj9OJpt0F2lImb98YMgcZojc810B084Sq9T678K1zm9h4OGxBDtByBVjebdiw2Dp6XR05rvHACnb5VcNnSbWMo2kgqBuF4taLO-JPOdtFl/s1600/02.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b>But unfortunately, I also have bad news.</b></div>
<div class="separator" style="clear: both; text-align: left;">
<b>As I told you, this function only works from version Oracle 11g Release 2 onwards.</b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">If you are running older versions there is also a way of solving it, but it's not documented. So, if you have to use it, do it carefully.</span></div>
<br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;" />
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">SELECT ROLEUSER, <b>WM_CONCAT</b>(ROLENAME) AS ROLENAME</span><br />
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">FROM PSROLEUSER</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">WHERE ROLEUSER = 'VP1'</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">GROUP BY ROLEUSER</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><b>MySQL</b></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">In this language there is also a function that helps us with this item. In this case, it is called GROUP_CONCAT</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div class="separator" style="clear: both;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">SELECT ROLEUSER, <b>GROUP_CONCAT</b>(ROLENAME) AS ROLENAME</span></div>
<div class="separator" style="clear: both;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">FROM PSROLEUSER</span></div>
<div class="separator" style="clear: both;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">WHERE ROLEUSER = 'VP1'</span></div>
<div class="separator" style="clear: both;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">GROUP BY ROLEUSER</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><b>SQL SERVER</b></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;">I haven't seen a function in SQL Server similar to these ones.</span></span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"> I am afraid in this language we should solve it by using a recursive sub-Query in the SELECT statement, such as:</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div class="separator" style="clear: both;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;">SELECT A.ROLEUSER</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> , ( SELECT B.ROLENAME + ' - '</b></span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> FROM PSROLEUSER B</b></span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> WHERE B.ROLEUSER = A.ROLEUSER </b></span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><b> FOR XML PATH('') ) </b>AS ROLENAME</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;">FROM PSROLEUSER A</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;">WHERE A.ROLEUSER = 'VP1'</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;">GROUP BY A.ROLEUSER</span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXHqJDRLKpWChqMw3nq2H10Uvf15NLIuEw55-wqqF7X_spsCogYsBevosP84-QGdDRL2N4Z9JWFCipl0sVxZkkOHnUdXxzwSunm3DPYjPmxOv8dAg6Mppzzmw4TsZ5AspeT45ft0C2RMO9/s1600/03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXHqJDRLKpWChqMw3nq2H10Uvf15NLIuEw55-wqqF7X_spsCogYsBevosP84-QGdDRL2N4Z9JWFCipl0sVxZkkOHnUdXxzwSunm3DPYjPmxOv8dAg6Mppzzmw4TsZ5AspeT45ft0C2RMO9/s1600/03.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><br /></span></span></div>
<div class="separator" style="clear: both;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="font-size: 13.2px; line-height: 18.48px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">And that's all.</span></div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">I hope this blog could be so useful to you as it is to me.</span><br />
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;" />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Regards.</span><br />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Facundo Salerno.</span>Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-3323236455579684302015-09-11T12:53:00.003-07:002015-09-11T13:00:15.536-07:00Integration Broker - Synchronous Service.Hi!<br />
<br />
As you saw in my last post I have been talking about creating a new Asynchronous Service through the Integration Broker in PeopleSoft.<br />
<br />
Today let me show you an example of a Synchronous Service. Further more, I will create a non-rowset based message to be used as a response message, just to get a more detailed example.<br />
<br />
I am afraid some pictures are too wide so they are not being properly shown. If you click them you will see it at its real size.<br />
<br />
In the last Post I have created 3 new employees in my custom table.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFLGwz0FNbFGhRDmFfrW28i89YbM1vlUgm2YjddYitPX7ofsIpLcHaTV0e09tUQPukXFYo3c5cEMRVYDTl1cTBe9GvWmSAwY1CkVhRaMYpsKaGmSM03txWzCwHTmCUo__FiGeda9QHrXAX/s1600/01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFLGwz0FNbFGhRDmFfrW28i89YbM1vlUgm2YjddYitPX7ofsIpLcHaTV0e09tUQPukXFYo3c5cEMRVYDTl1cTBe9GvWmSAwY1CkVhRaMYpsKaGmSM03txWzCwHTmCUo__FiGeda9QHrXAX/s1600/01.jpg" /></a></div>
<br />
<br />
Let's think we now want to create a Service that will receive a Rowset based message.<br />
Using this message we will save the countries that were visited by any of our employees, validating both employee and country exist in the database.<br />
<br />
First of all let's create the new table VISITED_COUNTRY with 3 fields<br />
1) Employee that has travelled<br />
2) Country that was visited<br />
3) A description of the trip.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEIbrKWs0nSg9ZU3_nX3w_waqbPokH09PFs1zFWnlQyuHoFX_I4kHrhVehhZbTItEx0jdpXWWhLnj_7zYSmnJ3y56r4E7IPgTvgsr56lB57Yn90Gwc9dExYbJFa98M1xQ3Cb782NvHo4wT/s1600/02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEIbrKWs0nSg9ZU3_nX3w_waqbPokH09PFs1zFWnlQyuHoFX_I4kHrhVehhZbTItEx0jdpXWWhLnj_7zYSmnJ3y56r4E7IPgTvgsr56lB57Yn90Gwc9dExYbJFa98M1xQ3Cb782NvHo4wT/s1600/02.jpg" /></a></div>
<br />
<br />
I 'll create the Rowset-Based Message that will receive this information.<br />
As you see in the last post, we must go to: <span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Root > PeopleTools > Integration Broker > Integration Setup > Messages.</span><br />
there I will set some required info and Save. (if you have any doubts about this item just see my last Blog <a href="http://facusalerno.blogspot.com.ar/2015/08/integration-broker-asynchronous-service.html" target="_blank">here</a>.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdR4-cdpEz2tIFgj8312vUtQkQOKoLDUENJ8jcaf5TF0G2oRedtW1QPxgYF069c1tjWJODr2vDHk2wybFqUQIt7GkjoBpn07aKSEUYR6lGBcwCy2MY54vLOledGczfy-c7mgBvod-ONnvN/s1600/03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdR4-cdpEz2tIFgj8312vUtQkQOKoLDUENJ8jcaf5TF0G2oRedtW1QPxgYF069c1tjWJODr2vDHk2wybFqUQIt7GkjoBpn07aKSEUYR6lGBcwCy2MY54vLOledGczfy-c7mgBvod-ONnvN/s1600/03.jpg" /></a></div>
<br />
<br />
Now let's see the second tab "Schema". Here we can see the schema of the current message. Since it is a Rowset based message the schema is auto-generated, but we will need this information later, so let's save it in a new TXT file.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii1RVBMaEeRh-ZRrmXRfL-L2AbkyoTnCIjv8wRG6m7RjzSjANd1kCYXEG8joI4R9OweKIWPcoHX_oamIrWp12LSK7xOL4r8sZNF9dtPS8MkoukeNo2EvSLFWA5IERI3w6ybLiP1UvxeIrA/s1600/04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii1RVBMaEeRh-ZRrmXRfL-L2AbkyoTnCIjv8wRG6m7RjzSjANd1kCYXEG8joI4R9OweKIWPcoHX_oamIrWp12LSK7xOL4r8sZNF9dtPS8MkoukeNo2EvSLFWA5IERI3w6ybLiP1UvxeIrA/s1600/04.jpg" /></a></div>
<br />
<br />
The following step is creating the Response Message.<br />
As I told you before, it will be a NonRowset Message:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiuAoAVrJq5S0eaaSysCbQKKnqgBNP0Dr-TLbJzPkEdqKPSLlLgE6_ZUWSRVuO3oWndnNn7cswvTXN058zUBL_3o2y8-R0gfG1jXT1GbTqzus_q0iu54NkuBxxjh-rsENKEZhvb_wZS_Ph/s1600/05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiuAoAVrJq5S0eaaSysCbQKKnqgBNP0Dr-TLbJzPkEdqKPSLlLgE6_ZUWSRVuO3oWndnNn7cswvTXN058zUBL_3o2y8-R0gfG1jXT1GbTqzus_q0iu54NkuBxxjh-rsENKEZhvb_wZS_Ph/s1600/05.jpg" /></a></div>
<br />
<br />
As you can see the schema was not created in this case, since we are not using any record. So we will modify the saved schema and upload it to our new message:<br />
<br />
We are going to send an XML document as a response. The structure of our document will be, for isntance<br />
<br />
<FSAL_VISITED_COUNTRY_RESP><br />
<VISITED_COUNTRY_RESP><br />
<ERROR_FOUND></ERROR_FOUND><br />
<DESCR254></DESCR254><br />
</VISITED_COUNTRY_RESP><br />
</FSAL_VISITED_COUNTRY_RESP><br />
<br />
Let's see some important data in the message<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrTdiGMW0Hee-fOsyx4RxXF4C4_GDCDYhnWainEqBAw1XsI-pbIe1oNTrNvhnceQc-rZQQ_qr8BbtCsQ-XGg1MwY0HQcv1NUuKThHXivp2cvMiQCrXBad0Ux1W-d4qYeqzzUJzD7lXO2_3/s1600/06.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="403" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrTdiGMW0Hee-fOsyx4RxXF4C4_GDCDYhnWainEqBAw1XsI-pbIe1oNTrNvhnceQc-rZQQ_qr8BbtCsQ-XGg1MwY0HQcv1NUuKThHXivp2cvMiQCrXBad0Ux1W-d4qYeqzzUJzD7lXO2_3/s640/06.jpg" width="640" /></a></div>
<br />
<br />
As you can see we have the Message Name and Message Record. We must change this information by the new message information.<br />
<br />
In my case the new message name is "FSAL_VISITED_COUNTRY_RESP"<br />
The previous message name is "FSAL_VISITED_COUNTRY"<br />
and the previous record name is "VISITED_COUNTRY".<br />
<br />
Since we are going to send a XML document, we can create a new "header" Tag as "VISITED_COUNTRY_RESP".<br />
<br />
So we are going to replace<br />
Message: FSAL_VISITED_COUNTRY -> FSAL_VISITED_COUNTRY_RESP<br />
Record: VISITED_COUNTRY -> VISITED_COUNTRY_RESP<br />
<br />
As you noticed we are only adding a "_RESP" at the end. So let's replace VISITED_COUNTRY by VISITED_COUNTRY_RESP in all the document and we will have this step done.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUwGw5f-C886NO0uuca0QpqpQh5U9AiPQrm48jF2LyWZ4dLH6JAImrkRbTObbD8ovU0i0kfK4P-wh6SWXBxJJwiER-KqWHIPr6oXX9N45ppWtY-XS4wvZa8_vcoliIiaHKRWBspVuTKI47/s1600/07.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="264" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUwGw5f-C886NO0uuca0QpqpQh5U9AiPQrm48jF2LyWZ4dLH6JAImrkRbTObbD8ovU0i0kfK4P-wh6SWXBxJJwiER-KqWHIPr6oXX9N45ppWtY-XS4wvZa8_vcoliIiaHKRWBspVuTKI47/s640/07.jpg" width="640" /></a></div>
<br />
<br />
Now let's remove the PSCAMA Record information, since we are not going to use it in our message.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRwcDshZkEIOGwdyRaNSiuJkYmwCZkejNXr0znarTXNXT4vqE8TjJuZawmz0aCpyx1WRqHBeFqJioEFN-UB72srQ8dC3yNfktLQAse5eD0Z_lZ4SrgyjssEUcMhDkJXRdbIJWWE46Lh2UE/s1600/08.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="274" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRwcDshZkEIOGwdyRaNSiuJkYmwCZkejNXr0znarTXNXT4vqE8TjJuZawmz0aCpyx1WRqHBeFqJioEFN-UB72srQ8dC3yNfktLQAse5eD0Z_lZ4SrgyjssEUcMhDkJXRdbIJWWE46Lh2UE/s640/08.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpmKmY9ZVQ6QTKEzjxVz1AH23PX7R1fUqHMl4hbE5OreFp_-Z3dEQLic12hUfwmclOkYdGSRtCcZqUzOPF1PxJNX7okikRltkvO8rE9XE_t-mEWHra3OF0YZTWg9PWcEQxNxQzDQgTavX5/s1600/09.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="288" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpmKmY9ZVQ6QTKEzjxVz1AH23PX7R1fUqHMl4hbE5OreFp_-Z3dEQLic12hUfwmclOkYdGSRtCcZqUzOPF1PxJNX7okikRltkvO8rE9XE_t-mEWHra3OF0YZTWg9PWcEQxNxQzDQgTavX5/s640/09.jpg" width="640" /></a></div>
<br />
<br />
And later in the document:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWUzXlrKrlvbnvm_kSNAtLFQdZRiqWaJHjySo9Ku0-C-8P42pIA-3ddJwnCUBfYFx8MTXW8KVmI6S60o5SWIl9INVzcIpY2kvym632sbhMjtaJaBSnCmb760otxYrj475W1d2BJhEga9Mu/s1600/10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="270" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWUzXlrKrlvbnvm_kSNAtLFQdZRiqWaJHjySo9Ku0-C-8P42pIA-3ddJwnCUBfYFx8MTXW8KVmI6S60o5SWIl9INVzcIpY2kvym632sbhMjtaJaBSnCmb760otxYrj475W1d2BJhEga9Mu/s640/10.jpg" width="640" /></a></div>
<br />
<br />
So, we must change all the Field information of the PSCAMA fields<br />
For each field in the record we must remove the complexType "_TypeShape" and simpleType "_TypeDef" tags<br />
<br />
<<b>xsd:complexType </b>name="AUDIT_ACTN<b>_TypeShape</b>"><br />
<<b>xsd:simpleType </b>name="AUDIT_ACTN<b>_TypeDef</b>"><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-rj8NUmdASZ8q92OL9lxmN0lujWw0V223HsO4TD0lsQUv72f41eZZQGucia8AWK00McKtzRq2EIyKsi9lUpI6heL-xlYLG-giaow320kzGRm3WcX270e8JxTF1LFKuCSYRhiFhIwW-i-W/s1600/11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="332" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-rj8NUmdASZ8q92OL9lxmN0lujWw0V223HsO4TD0lsQUv72f41eZZQGucia8AWK00McKtzRq2EIyKsi9lUpI6heL-xlYLG-giaow320kzGRm3WcX270e8JxTF1LFKuCSYRhiFhIwW-i-W/s640/11.jpg" width="640" /></a></div>
<br />
<br />
Just to make the last step easier, in the original file we must remove from line 126 to line 257<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6SztMNg1C2fHEvU22cj-aOq2gzfHzBuetz7z_oLpJRja-JqNGeqDT2_8EtijbI-jvY5we47Iepf-s8FcFgAFvSrVuj2eIV80HcflQhJnFJcgXma5wBt491T_jZ2o6_TGJ5EG3BZOMnTla/s1600/12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="404" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6SztMNg1C2fHEvU22cj-aOq2gzfHzBuetz7z_oLpJRja-JqNGeqDT2_8EtijbI-jvY5we47Iepf-s8FcFgAFvSrVuj2eIV80HcflQhJnFJcgXma5wBt491T_jZ2o6_TGJ5EG3BZOMnTla/s640/12.jpg" width="640" /></a></div>
<br />
<br />
So we have now removed all the PSCAMA information. Modify the record structure to adapt to our XML structure that was previously shown:<br />
<br />
<b><span style="color: #6aa84f;"><FSAL_VISITED_COUNTRY_RESP></span></b><br />
<b><span style="color: #6aa84f;"> <VISITED_COUNTRY_RESP></span></b><br />
<ERROR_FOUND></ERROR_FOUND><br />
<REASON></REASON><br />
<span style="color: #6aa84f;"><b> </VISITED_COUNTRY_RESP></b></span><br />
<span style="color: #6aa84f;"><b></FSAL_VISITED_COUNTRY_RESP></b></span><br />
<br />
We have already modified green lines. So let's work with the record fields:<br />
<br />
As we have previously done we will replace the EMPLID string by ERROR_FOUND in all the document:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj87-sZfC8pdfVzfXbVYmdhfvHAtmQQbju_-xdFDLwI9JET2WuCrLlTYgyb9gg_t1ovAgeSczQq-U8Yn7RvmSwwtA3k-GMcCVHI2TMr7_HauY7CqfLB1m-WeaoOrYPVxBPrqKhxvk48Mwc5/s1600/13.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="274" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj87-sZfC8pdfVzfXbVYmdhfvHAtmQQbju_-xdFDLwI9JET2WuCrLlTYgyb9gg_t1ovAgeSczQq-U8Yn7RvmSwwtA3k-GMcCVHI2TMr7_HauY7CqfLB1m-WeaoOrYPVxBPrqKhxvk48Mwc5/s640/13.jpg" width="640" /></a></div>
<br />
<br />
And where the field is set we must change the original information by our new settings:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW_4_PUrN1ND5fah0DI80Vbth0LDP3CTQMMZsBKhtmivnH5Odwr-d1UKtERZ_yTwyNvv33MZ9dIz231BUmvhPJbB-RpjmFJWmPABnYAiwk0xrH1o07BZqCSMiKjDFSYFSrOFYYAZSI91C0/s1600/14.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="110" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW_4_PUrN1ND5fah0DI80Vbth0LDP3CTQMMZsBKhtmivnH5Odwr-d1UKtERZ_yTwyNvv33MZ9dIz231BUmvhPJbB-RpjmFJWmPABnYAiwk0xrH1o07BZqCSMiKjDFSYFSrOFYYAZSI91C0/s640/14.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_-3tXub1_wzeUYPC4DsalRDJ1uvoxwQ2sLliIRPZw5AKo01YqhKSuGIHIAj-fnFigQnlo5m4BGRVRDeduurPmIatlcdzGvwZ4-hxqE4B7zjludXvCisZn043v5SpzUMnWWo7b6kExXyDR/s1600/15.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="106" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_-3tXub1_wzeUYPC4DsalRDJ1uvoxwQ2sLliIRPZw5AKo01YqhKSuGIHIAj-fnFigQnlo5m4BGRVRDeduurPmIatlcdzGvwZ4-hxqE4B7zjludXvCisZn043v5SpzUMnWWo7b6kExXyDR/s640/15.jpg" width="640" /></a></div>
<br />
<br />
Since we are not using the country field, let's remove the following tags<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiD9LE5oTojp1D620qbHOnHn2_F5D74-JMrWg3qDxGsMAy60-uhQ0mpjuSY8J8Rs7GVRRWs2LGOIwbZRlxhKaTF46wWHd-3HnweZjFhDmC-dKDEZHIlmybiKsDbJkOZt0R4yqVng73hFmXn/s1600/16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="282" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiD9LE5oTojp1D620qbHOnHn2_F5D74-JMrWg3qDxGsMAy60-uhQ0mpjuSY8J8Rs7GVRRWs2LGOIwbZRlxhKaTF46wWHd-3HnweZjFhDmC-dKDEZHIlmybiKsDbJkOZt0R4yqVng73hFmXn/s640/16.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7-fHtJOcT1opGq_1I5-15RQY5oQOHyJxxgldgwQQF-oMv87g8wu9Uu3J2cP__Azf-wIWS1-wOQPan9WqgFflqs1_t2tlToTNgq58HNKY-IqpM_gtxodnF1njJjLfKeuW0I58YXvaKxdik/s1600/17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="109" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7-fHtJOcT1opGq_1I5-15RQY5oQOHyJxxgldgwQQF-oMv87g8wu9Uu3J2cP__Azf-wIWS1-wOQPan9WqgFflqs1_t2tlToTNgq58HNKY-IqpM_gtxodnF1njJjLfKeuW0I58YXvaKxdik/s640/17.jpg" width="640" /></a></div>
<br />
<br />
And change the DESCR254 field by the REASON tag<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU5lVFz-FwaYgTYnibAaMGY5UrQK4nhtKbc3JUmHLRvyt-XM9dKKmIOmN4QXdAdylDEqPsgu_UFnhFZrqsxrkd5p2Bke5nrpy8vQxIWLM5IV4bKwY4lG8nXTSRxWYIxu34WPqntBbtfsIO/s1600/18.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU5lVFz-FwaYgTYnibAaMGY5UrQK4nhtKbc3JUmHLRvyt-XM9dKKmIOmN4QXdAdylDEqPsgu_UFnhFZrqsxrkd5p2Bke5nrpy8vQxIWLM5IV4bKwY4lG8nXTSRxWYIxu34WPqntBbtfsIO/s640/18.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7CqdYU_cnPfZnD7YgccBcQ1AUyEQ6vIYjQjultcy7Pubkl0IfJi3Qz-t29zWSVN8oCxsb9WzlyMp-JJoemAlHEq0axCw6r-8OmfofZRobdi0V7PiUJDZlGkem65C6tZkSaCsGCZHQymRk/s1600/19.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="141" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7CqdYU_cnPfZnD7YgccBcQ1AUyEQ6vIYjQjultcy7Pubkl0IfJi3Qz-t29zWSVN8oCxsb9WzlyMp-JJoemAlHEq0axCw6r-8OmfofZRobdi0V7PiUJDZlGkem65C6tZkSaCsGCZHQymRk/s640/19.jpg" width="640" /></a></div>
<br />
<br />
The last step is changing the original schema xmlns information by our schema info:<br />
So we must replace line two information:<br />
<span style="color: #cc0000;"><b><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> </b></span><br />
<span style="color: #cc0000;"><b>by our schema information:</b></span><br />
<b><span style="color: #38761d;"><xsd:schema xmlns:xsd="http://xmlns.oracle.com/Enterprise/Tools/schemas/FSAL_VISITED_COUNTRY_RESP.version_1"></span> </b><br />
<br />
So the final content of our schema file is:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyeyhNsCu8tZ5QMFQug3zqg0Tjf8csc_rNcJdcG1AN-qYNVWaj56O0y9MmUxepSK_Cj_aZ5kkJFKHLLyB4H7xFYSahrggyVlYrnGs3Akr7kYhHlbiwJwwvKLknzZotMdhiqq8yrLIgXLng/s1600/20.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="356" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyeyhNsCu8tZ5QMFQug3zqg0Tjf8csc_rNcJdcG1AN-qYNVWaj56O0y9MmUxepSK_Cj_aZ5kkJFKHLLyB4H7xFYSahrggyVlYrnGs3Akr7kYhHlbiwJwwvKLknzZotMdhiqq8yrLIgXLng/s640/20.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCXjX20aeIWLZL_0Qv0Hdf-_7DkAKRiJptzA3egiujBYHhtmXOw1cN3OVp5DXkU8cLN8Yt2B-11bAmu2JpabfkkUowRscAxmK8itMT0BBQEsSRaKPoV85IWx8W-UqoaNYtABlv-UpJ4u8_/s1600/21.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="314" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCXjX20aeIWLZL_0Qv0Hdf-_7DkAKRiJptzA3egiujBYHhtmXOw1cN3OVp5DXkU8cLN8Yt2B-11bAmu2JpabfkkUowRscAxmK8itMT0BBQEsSRaKPoV85IWx8W-UqoaNYtABlv-UpJ4u8_/s640/21.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEtgAJlFw8L-GIOZGveBJdU6pOqJOczPEsVnVFjq7fbwCdtlnEf6rL_QiVHIrhyphenhyphen_wLHi3KvRo2jPTrgcQZO-KNg6cLFiumSQVgcVy12o7-CKM0epmCntOkZyyEfEyAZs5sytDq8w0PvhH8/s1600/22.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="304" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEtgAJlFw8L-GIOZGveBJdU6pOqJOczPEsVnVFjq7fbwCdtlnEf6rL_QiVHIrhyphenhyphen_wLHi3KvRo2jPTrgcQZO-KNg6cLFiumSQVgcVy12o7-CKM0epmCntOkZyyEfEyAZs5sytDq8w0PvhH8/s640/22.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIlF-UXTe9ATRc5SoMNYNlDuNHvMU23adR6lJSiWfSW96ugvhBc34udzE2GiSYL4RKz8XeMSGZRndSXVqzt3k0DlRBqdl4u8vPWWhakvyaBSEtYKYOpubvuL6aUtifF3MerscitHchgzbw/s1600/23.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="125" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIlF-UXTe9ATRc5SoMNYNlDuNHvMU23adR6lJSiWfSW96ugvhBc34udzE2GiSYL4RKz8XeMSGZRndSXVqzt3k0DlRBqdl4u8vPWWhakvyaBSEtYKYOpubvuL6aUtifF3MerscitHchgzbw/s640/23.jpg" width="640" /></a></div>
<br />
<br />
Now let's return to the Messages Page, and go to the Schemas tab. There you have to click the "Add Schema" button.<br />
We can upload the file or write it in the text area. Once we save the schema is properly uploaded.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg067KlMxlbRZ2GIk9NYuInRso4SjmHbuHhSPd6FFvuIEq6sY5BK6Nq9RdHb08FzNPxuFUUd4ZMiwhfHf9o4JCcqOk0u_EgLuKktLV4n6YhB-L62nA4PqBAlsXzdwaguPBqiyH1LHH0nnw2/s1600/24.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg067KlMxlbRZ2GIk9NYuInRso4SjmHbuHhSPd6FFvuIEq6sY5BK6Nq9RdHb08FzNPxuFUUd4ZMiwhfHf9o4JCcqOk0u_EgLuKktLV4n6YhB-L62nA4PqBAlsXzdwaguPBqiyH1LHH0nnw2/s1600/24.jpg" /></a></div>
<br />
<br />
Go to <span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Root > PeopleTools > Integration Broker > Integration Setup > Services.</span><br />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">We will create the new </span>FSAL_VISITED_COUNTRY and save. Then add a new Service Operation called FSAL_VISITED_COUNTRY. This Service Operation will be SYNCRHONOUS.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx2kfMjlU5OfnZ0waEoI8GSYoHPZE-wj3fwlrYLkv13I29_fRuZjwgo0zRS262VXZ4bcUe2A-pJ7ZfxHuXMBOdSEbApgpPhA68aSs_W_hNj-ozGqTIZxnAVDYVoFleT7UULP87jsp1t88Y/s1600/25.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx2kfMjlU5OfnZ0waEoI8GSYoHPZE-wj3fwlrYLkv13I29_fRuZjwgo0zRS262VXZ4bcUe2A-pJ7ZfxHuXMBOdSEbApgpPhA68aSs_W_hNj-ozGqTIZxnAVDYVoFleT7UULP87jsp1t88Y/s1600/25.jpg" /></a></div>
<br />
<br />
In the Service Operation we must add a description.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP3BvNcjqQPytqNvUTXCHYb8Xg84d0oNmrDUtNzxlN5Z_u_gZYuMCveFXSQyYTW4x7ApTDcmFXVaOEuX2mxdkxs0Yabj3J5b8ssXzwHwDh1HZcz080COtXcES4HVpZ3QmV8ERWIe7GxLIY/s1600/26.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP3BvNcjqQPytqNvUTXCHYb8Xg84d0oNmrDUtNzxlN5Z_u_gZYuMCveFXSQyYTW4x7ApTDcmFXVaOEuX2mxdkxs0Yabj3J5b8ssXzwHwDh1HZcz080COtXcES4HVpZ3QmV8ERWIe7GxLIY/s1600/26.jpg" /></a></div>
<br />
<br />
And we also must create routings and set the Request and Response Messages<br />
Request will be FSAL_VISITED_COUNTRY.version_1<br />
Response will be FSAL_VISITED_COUNTRY_RESP.version_1<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8qGq8gFBtEuwX0Ge_-Ds4vd-6XCFMcOoCn-uSq8le-A4yQbB93jeJ2a-FxcmmqdgVdWYA3BvRgYDHnDHOINjRArvBzgyl_dTE6qNJm8jqCO53Q4AAKizLoVCKTvJyi0lGd0rpoytdr_us/s1600/27.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8qGq8gFBtEuwX0Ge_-Ds4vd-6XCFMcOoCn-uSq8le-A4yQbB93jeJ2a-FxcmmqdgVdWYA3BvRgYDHnDHOINjRArvBzgyl_dTE6qNJm8jqCO53Q4AAKizLoVCKTvJyi0lGd0rpoytdr_us/s1600/27.jpg" /></a></div>
<br />
<br />
If we go to the second tab "Handlers" we should set the handler that will process this service operation, but we have to develop it first.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaSbc2zzaMzs6j068D5ZP2edEFmF-ILd9qeuGuebEg7nqxDfQvgpi380AAtZvhRo7b7MuQgmZWT8AAD4c4_I_STAm72LjRctw8ji_27-UV9wuYCOV-Rg2tHZurQ5VRg3F87F9GzIZ8XELT/s1600/28.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaSbc2zzaMzs6j068D5ZP2edEFmF-ILd9qeuGuebEg7nqxDfQvgpi380AAtZvhRo7b7MuQgmZWT8AAD4c4_I_STAm72LjRctw8ji_27-UV9wuYCOV-Rg2tHZurQ5VRg3F87F9GzIZ8XELT/s1600/28.jpg" /></a></div>
<br />
<br />
<div>
Let's go to the Application Designer and create a new Application Class "FSAL_VISITED_COUNTRY_Handler". I will add it to my previously created Package.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiRTCY8BUOeAany_USMp6B5agEI-W4N10QQ_o3Ot7LueA6hBNw8a2lRGXAVrbBMnwcLMaR9FdYwo6fdzvGQbqb8K6uRYiDSffZmnyeQruSVTwOUmAKGb88-U3oSwWssUGLTMzkODFoPjPx/s1600/29.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiRTCY8BUOeAany_USMp6B5agEI-W4N10QQ_o3Ot7LueA6hBNw8a2lRGXAVrbBMnwcLMaR9FdYwo6fdzvGQbqb8K6uRYiDSffZmnyeQruSVTwOUmAKGb88-U3oSwWssUGLTMzkODFoPjPx/s1600/29.jpg" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
In this case our class must implement the "PS_PT:Integration:IRequestHandler" class, so don't forget importing it.</div>
<div>
<br /></div>
<div>
How is it developed? Here you have a quick example </div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIfHsxx7qIOB_OK1iIf7E7UIpd1oA7rxsEpu7s9E1IQZcxjuAUNezb_m-KHpnOZJonSygjlnJHmy-U4HJwXhOelHOmUdhbAHE87sxRAat_BkSkQbry3FkXieMDD0fhoV25ZfKSDlRBEdFq/s1600/30.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="349" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIfHsxx7qIOB_OK1iIf7E7UIpd1oA7rxsEpu7s9E1IQZcxjuAUNezb_m-KHpnOZJonSygjlnJHmy-U4HJwXhOelHOmUdhbAHE87sxRAat_BkSkQbry3FkXieMDD0fhoV25ZfKSDlRBEdFq/s640/30.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq0GvXOrPb6yqPweV07wPVsIJcHrJ8GvGZRwgHtpJOe6oRHEVB1u1Vh3OfS5joBsJmCGDVKvyDMEpQ8IjjNaBcGluBgtlK4pS7EjMGuuYdXgKKCKGmU2lc9HABAMthDNZaUxQ1uXV1Apqb/s1600/31.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="264" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq0GvXOrPb6yqPweV07wPVsIJcHrJ8GvGZRwgHtpJOe6oRHEVB1u1Vh3OfS5joBsJmCGDVKvyDMEpQ8IjjNaBcGluBgtlK4pS7EjMGuuYdXgKKCKGmU2lc9HABAMthDNZaUxQ1uXV1Apqb/s640/31.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg-cPg5JMlClpvxpPsboltRwNfoUxUuKQWum3Quty6K-nU556fyXq56vE6DPaT3c0DuRrCgKkdF77ViAbhqmq4BZe83lFJbnjyWgejEjy4woShzUf9-nC2QFk4zCurf5CUYAqcQPfb2Ehz/s1600/32.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="389" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgg-cPg5JMlClpvxpPsboltRwNfoUxUuKQWum3Quty6K-nU556fyXq56vE6DPaT3c0DuRrCgKkdF77ViAbhqmq4BZe83lFJbnjyWgejEjy4woShzUf9-nC2QFk4zCurf5CUYAqcQPfb2Ehz/s640/32.jpg" width="640" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Once we finish the development we will continue with the service operation settings.</div>
<div>
Lets go to <span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Root > PeopleTools > Integration Broker > Integration Setup > Service Operations.</span></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Search the </span>FSAL_VISITED_COUNTRY Service Operation and go to the Handler Tab.</div>
<div>
<br /></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">In this case the handler name is not important since it will be after replaced by the system.</span><br />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">I have set it up as "On Request" since it will work when the system "is requested" for information from our service</span><br />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">In the Implementation Field I have chosen "Application Class" since I will insert the new information through the Application Class I have created.</span></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJkow7QM7clQ5krWktJOt06EYOmTwP9If0uNJDt-6THPMeOuL-Qk3bIrQUmn8n4P8eP71NzPW2wb2WZv48Flf3skrloR7wv1ZmQWJ2a6G_6n1EM8Ir4XSelmsB9omcrVGoLKTwqDz0eFjx/s1600/33.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJkow7QM7clQ5krWktJOt06EYOmTwP9If0uNJDt-6THPMeOuL-Qk3bIrQUmn8n4P8eP71NzPW2wb2WZv48Flf3skrloR7wv1ZmQWJ2a6G_6n1EM8Ir4XSelmsB9omcrVGoLKTwqDz0eFjx/s1600/33.jpg" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Let's go to the "details" link. In this page we will add the Application Class details, such as the root to the get it and the method that will be executed when a new message comes.</span></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">You will notice the only option to choose is our new class, in spite of having the </span><span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">FSAL_NEW_EMPL_Handler that we created in my previous Post. </span></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">The reason is quite simple, since it is a Synchronous Service it will only shows the classes that implement the </span>"PS_PT:Integration:IRequestHandler" class<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;">.</span></span></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFK2j-Qtkz_pfu-R_uCPMHfFknbJmptDcnzrlhNkgnHyGWVLnyAstjGd2noK8h0Mqrguv63hvOZddDDTeDRJVfZ1nF2b4WDxC9Sq9qGUF1J5a8GxoANWNYI8BwmRPVAhuzjSsQb2fiihQR/s1600/34.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFK2j-Qtkz_pfu-R_uCPMHfFknbJmptDcnzrlhNkgnHyGWVLnyAstjGd2noK8h0Mqrguv63hvOZddDDTeDRJVfZ1nF2b4WDxC9Sq9qGUF1J5a8GxoANWNYI8BwmRPVAhuzjSsQb2fiihQR/s1600/34.jpg" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;">So our configuration will be set as it follows:</span></span></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBsVA5rEJ9Jbr4J2hkjJHUTqSmXjZRcI0YEPtHmWMeU3kFkfTjaFT7eoFHRxLEwAlVYFR_itMx74it2b76wlK98atHd8lbn2iVkGo8W92RzQCOLCuGFJ2pC72rJw85YaJyxYYIIwHyV_TQ/s1600/35.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBsVA5rEJ9Jbr4J2hkjJHUTqSmXjZRcI0YEPtHmWMeU3kFkfTjaFT7eoFHRxLEwAlVYFR_itMx74it2b76wlK98atHd8lbn2iVkGo8W92RzQCOLCuGFJ2pC72rJw85YaJyxYYIIwHyV_TQ/s1600/35.jpg" /></a></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;"><br /></span></span></div>
<div>
<br /></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;"><br /></span></span></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;">We save the Service Operation and our developing work finishes here.</span></span></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;">Let's test our development</span></span></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;"><br /></span></span></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Go to Root > PeopleTools > Integration Broker > Service Utilities > Handler Tester and choose the previously created Service Operation and add the handler:</span></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Let's insert an invalid employee and country (we are testing all the possible scenarios ). </span></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWuE3_G1uC8H9hzZoRXFPmv0NIIZNv0ff4RGI1UN46806sKXaXLUeH4L_Zq3pRhn8ks64lmZhxBB1Pg60eI_-OLcRbsQFFSlB00Wd9YmI4soMTsu83yWjqXeisr97MJyOUPSQtP3MIx8tm/s1600/36.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="522" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWuE3_G1uC8H9hzZoRXFPmv0NIIZNv0ff4RGI1UN46806sKXaXLUeH4L_Zq3pRhn8ks64lmZhxBB1Pg60eI_-OLcRbsQFFSlB00Wd9YmI4soMTsu83yWjqXeisr97MJyOUPSQtP3MIx8tm/s640/36.jpg" width="640" /></a></div>
<div>
<br /></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">When we "Execute the Event" the response is shown in the same page:</span></div>
<div>
<b> <ERROR_FOUND>YES</ERROR_FOUND> <br /> <REASON>Employee
does not exist</REASON> </b></div>
<div>
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWRfHCPAlPCxEa9lBVqYYQVJfXsZCIM6ix-J9JN7ppsAnaC6k5HfeqEOBKuNIpd27CsAlXxDA7exAphFJ1RXaUcANGl88I-Cm-mjlcE_XvScfV5ZkB1oALWen80oO0qu_2koXmY9vZx2A0/s1600/37.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="552" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWRfHCPAlPCxEa9lBVqYYQVJfXsZCIM6ix-J9JN7ppsAnaC6k5HfeqEOBKuNIpd27CsAlXxDA7exAphFJ1RXaUcANGl88I-Cm-mjlcE_XvScfV5ZkB1oALWen80oO0qu_2koXmY9vZx2A0/s640/37.jpg" width="640" /></a></div>
<div>
<b><br /></b></div>
<div>
<br /></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;">Now let's change to employee 0000000001 (Facundo Salerno). As you could see now the reason has changed because the country was also invalid.</span></span></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcmkP6ZK6PaKfsyt6uNvyXfdP1rZAirxaaYvHUeWXKEW18ECVEt0oXOClcnTLsUQpNsM_cOpqSeJg7TNju_PD-L15Q8l41s5PTQvlwmUwU2_z75fUdW6rgVZvXcR1s4oyWHV2Zsz3VEUhK/s1600/38.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="554" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcmkP6ZK6PaKfsyt6uNvyXfdP1rZAirxaaYvHUeWXKEW18ECVEt0oXOClcnTLsUQpNsM_cOpqSeJg7TNju_PD-L15Q8l41s5PTQvlwmUwU2_z75fUdW6rgVZvXcR1s4oyWHV2Zsz3VEUhK/s640/38.jpg" width="640" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;">We finally add a valid country such as ARG (Argentina) and the insert is finally done.</span></span></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsag-IKT0Zl20u_55zCPFH6vqP1b4L4Usf87F6TMdKMmUBtubiVuYDnN_WdvJvWHYPXZ63NEcAVqMjGM-EUMEcg4cfZBsUsqpd6YFGI77aBzsfDabaYbbJhHCKPLmnJCM7hYKSKFL_Edj-/s1600/39.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="252" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsag-IKT0Zl20u_55zCPFH6vqP1b4L4Usf87F6TMdKMmUBtubiVuYDnN_WdvJvWHYPXZ63NEcAVqMjGM-EUMEcg4cfZBsUsqpd6YFGI77aBzsfDabaYbbJhHCKPLmnJCM7hYKSKFL_Edj-/s640/39.jpg" width="640" /></a></div>
<div>
<br /></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;"><br /></span></span></div>
<div>
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;"><span style="background-color: white; font-size: 13.2px; line-height: 18.48px;">If we check at the database, we could see the information was properly added. </span></span></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOYCRvvaNm3ZfGPLio_OC79S3pZy5XFMSuhJRwvetP-mCgL2pNwt7i0c0nfAwYXXEKQ6ILq7ZvHAuSbFnR8yR7Dr-ehEhMgnXZ_czG1Fv7vP32xgn7_Bx-oLqAMq4pslnj4cvLoM_iBPjJ/s1600/40.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOYCRvvaNm3ZfGPLio_OC79S3pZy5XFMSuhJRwvetP-mCgL2pNwt7i0c0nfAwYXXEKQ6ILq7ZvHAuSbFnR8yR7Dr-ehEhMgnXZ_czG1Fv7vP32xgn7_Bx-oLqAMq4pslnj4cvLoM_iBPjJ/s1600/40.jpg" /></a></div>
<div>
<br /></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Let's Test the Service Operation: </span></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">First of all grant access to the Service:</span></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKARnlAupeSowjNnmBAVgqTe1QFB8p4rWmZfcno0yTyD9mn7-4UOw-V3UiuJuGyapwnYQZtoN1CcmAkGNblUc7TLwjs7Np_tb_fFnIRccodamXregjNG3CLyCS1VsZq48Kd-Bzr9umEuW0/s1600/41.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKARnlAupeSowjNnmBAVgqTe1QFB8p4rWmZfcno0yTyD9mn7-4UOw-V3UiuJuGyapwnYQZtoN1CcmAkGNblUc7TLwjs7Np_tb_fFnIRccodamXregjNG3CLyCS1VsZq48Kd-Bzr9umEuW0/s1600/41.jpg" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Go to Root > PeopleTools > Integration Broker > Service Utilities > Service Operation Tester.</span></div>
<div>
Search our service operation:</div>
<div>
<br /></div>
<div>
When working with Synchronous Services there are no Queues involved since the other system is waiting for our response.</div>
<div>
We will add a new valid transaction values and "invoke the operation". </div>
<div>
As you could see, the Service Operation was properly executed and the results are shown.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFP63DaO_pW1Jv63hHKSWz4-w4Qxz35X78DRx3aN9OFrgKwzBpGED7imHDkiJkkVWxj06oulT3UVS9Y1KyX1VupVzjqS5wkFjuMZ8_0ShSfbuOJ9NQI-gfIqnVfhOtD06o1jHdKhaqsgnI/s1600/42.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="522" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFP63DaO_pW1Jv63hHKSWz4-w4Qxz35X78DRx3aN9OFrgKwzBpGED7imHDkiJkkVWxj06oulT3UVS9Y1KyX1VupVzjqS5wkFjuMZ8_0ShSfbuOJ9NQI-gfIqnVfhOtD06o1jHdKhaqsgnI/s640/42.jpg" width="640" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
And the new row was added to the database.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOsPSwIw3kB06Zi6JYYffg1zvD3nK9j3qPJ88o8EhBqraulrhoDt3ibxihfkdatD7WhCut5wFVg0kfpDr5IBhPZnsDk5MBksRahVJ2QZo-HFVZd-QzTBeQE5hHJnpt_pt7-OKE6a6iHCDq/s1600/43.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOsPSwIw3kB06Zi6JYYffg1zvD3nK9j3qPJ88o8EhBqraulrhoDt3ibxihfkdatD7WhCut5wFVg0kfpDr5IBhPZnsDk5MBksRahVJ2QZo-HFVZd-QzTBeQE5hHJnpt_pt7-OKE6a6iHCDq/s1600/43.jpg" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
We could also create a WSDL Service, but there is no need to explain it again since I have done it <a href="http://facusalerno.blogspot.com.ar/2015/08/integration-broker-asynchronous-service.html" target="_blank">in this post</a>.</div>
<div>
<br /></div>
<div>
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">I hope this blog could be so useful to you as it is to me.</span><br />
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;" />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Regards.</span><br />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">Facundo Salerno.</span></div>
Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-72951901060713839672015-08-25T13:07:00.001-07:002015-09-11T13:00:01.197-07:00Integration Broker - Asynchronous Service.<br />
Hi all,<br />
<br />
Today I want to talk about Integration Broker.<br />
For instance, let's think we want to create a Asynchronous Service that will receive new employees to be saved in our database.<br />
<br />
<br />
1) Create the table where we want to save new employees.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjODkeXK3mEg4CLRh8r3W9JDcHlsahoSSVUhqjZG6uNI4WizWpSevFau22ZygahaC3p6vi5f_dsmtx36BeMU090h5Sus03GUdKHP3hzNUo996Gl4zQ_EUCJAlJJ5iXJGpIcqaeeGYk8lzjT/s1600/01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="244" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjODkeXK3mEg4CLRh8r3W9JDcHlsahoSSVUhqjZG6uNI4WizWpSevFau22ZygahaC3p6vi5f_dsmtx36BeMU090h5Sus03GUdKHP3hzNUo996Gl4zQ_EUCJAlJJ5iXJGpIcqaeeGYk8lzjT/s640/01.jpg" width="640" /></a></div>
<br />
<br />
2) Create a new Message through which we will receive new information.<br />
We must go to: Root > PeopleTools > Integration Broker > Integration Setup > Messages.<br />
There we must add a new value:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAwuMUmt7EbjDC4swYpcDjGbybpXrDajoV6jVjae7b2FbQx1nts_MUVmUJzFEd9ppaTgZh1xgIISwyJWO1oYpAi1iLQ53O1UxQRlKcj71LmpLNkkTzFE83ULhO5kgpDWIK71GiwiUrT3Op/s1600/02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="224" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAwuMUmt7EbjDC4swYpcDjGbybpXrDajoV6jVjae7b2FbQx1nts_MUVmUJzFEd9ppaTgZh1xgIISwyJWO1oYpAi1iLQ53O1UxQRlKcj71LmpLNkkTzFE83ULhO5kgpDWIK71GiwiUrT3Op/s640/02.jpg" width="640" /></a></div>
<br />
<br />
3) It will be set a Rowset type since we will receive a rowset-based XML File. We mill also add a version to the message, since we could update it later.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIfpBtA13o71QblDOfMBoON129FRXPuz0Z5sSQwZsPQoakne_7UVhxlYab5ZXgM6z8z1fRuf9UquUfy_jIDuBgvHYT2NmuN5_0S35C9wBlNJCE1FfzyCE56h_4z5srbYpbHAPstl1i_XJ0/s1600/03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="243" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIfpBtA13o71QblDOfMBoON129FRXPuz0Z5sSQwZsPQoakne_7UVhxlYab5ZXgM6z8z1fRuf9UquUfy_jIDuBgvHYT2NmuN5_0S35C9wBlNJCE1FfzyCE56h_4z5srbYpbHAPstl1i_XJ0/s640/03.jpg" width="640" /></a></div>
<br />
<br />
4) Once we have created it we can add a description and start developing the structure.<br />
We will add a new record to the Root of the message. It is done by clicking the next link.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNAgN-cw56mAVJpRhdZYmOpd_V1zJLvBLaC9wPucLhlkvwsPbyGQrQ4K4I4gcrNdttXkwc99B7PykpXBYZLeZRu7BFIo1AJFaf95EMhmFGAtbuGE8lC0msVGgd3B3Mn8XmQCl3xuD5lhA5/s1600/04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="338" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNAgN-cw56mAVJpRhdZYmOpd_V1zJLvBLaC9wPucLhlkvwsPbyGQrQ4K4I4gcrNdttXkwc99B7PykpXBYZLeZRu7BFIo1AJFaf95EMhmFGAtbuGE8lC0msVGgd3B3Mn8XmQCl3xuD5lhA5/s640/04.jpg" width="640" /></a></div>
<br />
<br />
5) I will chose the FSAL_NEW_EMPL. The added record will appear at the bottom of the page.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBPyyVMm-kuzseImqFiM5mOIZ1ZlBCYih_flK-V3wUkBRpalsF1Pk020cEs9vR1Re1KwYWYnxIjYLAuJwvIuDH6itr8TDLs5XC2kKj5J9nNeVd_djR3FmofpgWrhYMMSyYT9TcTRGGF8qN/s1600/05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="210" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBPyyVMm-kuzseImqFiM5mOIZ1ZlBCYih_flK-V3wUkBRpalsF1Pk020cEs9vR1Re1KwYWYnxIjYLAuJwvIuDH6itr8TDLs5XC2kKj5J9nNeVd_djR3FmofpgWrhYMMSyYT9TcTRGGF8qN/s640/05.jpg" width="640" /></a></div>
<br />
<br />
6) If we want to add child rowsets to this record we can do it by clicking the record. the following screen appears:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge3tTA1Cl9SXPvRLXkVxXeVlzQckzDARPtA4HT0cJlAGqA1uc8XeczDlBft7aU5OFsHNEsqjc5RF9O9lC-_N8DiZvM3_VWR8JcI5kLBckjMId-_ag1Q1wpdIo-blT6zAc8B7yXepKzaQix/s1600/06.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="276" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge3tTA1Cl9SXPvRLXkVxXeVlzQckzDARPtA4HT0cJlAGqA1uc8XeczDlBft7aU5OFsHNEsqjc5RF9O9lC-_N8DiZvM3_VWR8JcI5kLBckjMId-_ag1Q1wpdIo-blT6zAc8B7yXepKzaQix/s640/06.jpg" width="640" /></a></div>
<br />
<br />
We can also uncheck any field if we don't want it to be part of the message.<br />
<br />
7) The next step is creating a Queue. We need a Queue since our system will be receiving new service operations and processing them as soon as possible.<br />
Let's create it in: Root > PeopleTools > Integration Broker > Integration Setup > Queues.<br />
We only need to add a name and a description to have it created.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgZZ4rXxdvjA8rVRkxR_tFiWoLcZxFbrqRP_uYDjTG_gSJ_AIXDniFf45Lw76Wmt25FwueWmT_N0sU3DTJ8a7rN2P1AwI7CwzvjPDA_PpKpNy1bS8KpT79e4rKf0IfU7-Jhu3hafqsVmZU/s1600/07.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgZZ4rXxdvjA8rVRkxR_tFiWoLcZxFbrqRP_uYDjTG_gSJ_AIXDniFf45Lw76Wmt25FwueWmT_N0sU3DTJ8a7rN2P1AwI7CwzvjPDA_PpKpNy1bS8KpT79e4rKf0IfU7-Jhu3hafqsVmZU/s640/07.jpg" width="640" /></a></div>
<br />
<br />
8) We are now able to create a new Service..<br />
Root > PeopleTools > Integration Broker > Integration Setup > Services.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzKiuYKmWCS7BY08nVXcFlmPQt-Ch56W_Q7rPXpbxrMMkKaM2O6DozRqJGn_1pakh91LMG8Oc34COuT5G2wmwU62AtEnm-F2GHl9YiejyjK5MHgxgohRb8iklzjZPHTt4l8GCOL3lXY-07/s1600/08.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="314" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzKiuYKmWCS7BY08nVXcFlmPQt-Ch56W_Q7rPXpbxrMMkKaM2O6DozRqJGn_1pakh91LMG8Oc34COuT5G2wmwU62AtEnm-F2GHl9YiejyjK5MHgxgohRb8iklzjZPHTt4l8GCOL3lXY-07/s640/08.jpg" width="640" /></a></div>
<br />
<br />
Once we have it created, we can add a NEW Operation Service at the bottom area.<br />
We must choose "Asynchronous - One Way" type since we are going to receive and process information, but there is no answer.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2YJnakhkqvvabA4DJkt4abU6s3c3EC7t6ErlXqItfLN9zoTMT9KmeN15yJY76BXHYn01AOQJsRNTp_xUTD498U1eEjexghThZb26hssgngBJ70v78EvUmgnjgduU3ehM3yjjLjF9yEuJk/s1600/09.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="138" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2YJnakhkqvvabA4DJkt4abU6s3c3EC7t6ErlXqItfLN9zoTMT9KmeN15yJY76BXHYn01AOQJsRNTp_xUTD498U1eEjexghThZb26hssgngBJ70v78EvUmgnjgduU3ehM3yjjLjF9yEuJk/s640/09.jpg" width="640" /></a></div>
<br />
<br />
<br />
As you could see in the following pic. this action can also be done by going to Root > PeopleTools > Integration Broker > Integration Setup > Service Operations.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqFxoCElJ2hRRTslKA4rXQYnYxGEC7RVyaz9MfJ6XHEiONSeVk0AM5f0iZsaTSQEyTNSwCD6fmXW21WV-ZPNUidGMM2Db-oSkHziG53vBelJc-LKpmdmDy4cXaRZ1rq8hqRRszlXzJmqAj/s1600/10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="259" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqFxoCElJ2hRRTslKA4rXQYnYxGEC7RVyaz9MfJ6XHEiONSeVk0AM5f0iZsaTSQEyTNSwCD6fmXW21WV-ZPNUidGMM2Db-oSkHziG53vBelJc-LKpmdmDy4cXaRZ1rq8hqRRszlXzJmqAj/s640/10.jpg" width="640" /></a></div>
<br />
<br />
Every Asyncronous - Service Operation needs some special steps.<br />
<br />
As you could see in the following picture we don't have a "Any-To-Local" Routing yet.<br />
As we will need it to receive service operations we will create it by checking the "Generate Any-To-Local" option.<br />
We also need to add the message version and queue that will process the incoming messages.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh21TKl7iZojTlSR79UYE7t1jV0mHyiZQUDCJNy-89YraWo9cMWCJfYba-TD_23nHHo1K7H8yl_q5J-UrmDng8Q4KcWtX0rKix4MVkslAziYJ161Eiqot-VlM3OQarf0pNCUgjyc1uYh-lh/s1600/11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="388" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh21TKl7iZojTlSR79UYE7t1jV0mHyiZQUDCJNy-89YraWo9cMWCJfYba-TD_23nHHo1K7H8yl_q5J-UrmDng8Q4KcWtX0rKix4MVkslAziYJ161Eiqot-VlM3OQarf0pNCUgjyc1uYh-lh/s640/11.jpg" width="640" /></a></div>
<br />
<br />
If we go to the third page in the component we now can see the Routing was created. Besides we can see it is an INBOUND Routing, and it is now Active.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLg1UOElDXW7GoytHAiA2osI0fV9zOCpsRucaAyPi4pIr74b1Z8LoOrr-Mh3WfiUSpHwrmDvHgqE3DZEO__hdI76NQRtDSyESI10GwVNxaY0uLT2JGvcjyE2wFE0k04StNmSO5QI2ZkoSv/s1600/12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="202" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLg1UOElDXW7GoytHAiA2osI0fV9zOCpsRucaAyPi4pIr74b1Z8LoOrr-Mh3WfiUSpHwrmDvHgqE3DZEO__hdI76NQRtDSyESI10GwVNxaY0uLT2JGvcjyE2wFE0k04StNmSO5QI2ZkoSv/s640/12.jpg" width="640" /></a></div>
<br />
<br />
Before talking about the "Handlers" page you must pause this configuration and decide how to "handle" the incoming values.<br />
In this case I will process it with an Application Class. So let's create it in the Application Designer:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIXH-VBGnySFHL7Jbh65ucbektO1ZioykqLuyUr7LYY9f5YItUL8AGlf50lJrUqyPLIJJDOSsTTbVJzbxq3rkFXPOKZdxgBU_iE9fFl0JuHIKozsMDW4lAVeXsO3Kydi9BhtUWs6uP2zHm/s1600/13.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="250" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIXH-VBGnySFHL7Jbh65ucbektO1ZioykqLuyUr7LYY9f5YItUL8AGlf50lJrUqyPLIJJDOSsTTbVJzbxq3rkFXPOKZdxgBU_iE9fFl0JuHIKozsMDW4lAVeXsO3Kydi9BhtUWs6uP2zHm/s640/13.jpg" width="640" /></a></div>
<br />
<br />
Take into consideration our new Class must implement the PS_PT:Integration:INotificationHandler class.<br />
As I am going to execute a method when the system notifies the message I will create a new method called "OnNotify", that will receive the Message to be processed.<br />
So the structure of our new class will be something like the following image.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMgIOd_NYlrMfZrKmAOb4kazAHT8mZktKjMPqpEus07CvKlRWxPZiuQAdg36P8X56OZiIzgMZNcvOD_X5MeBWkzLkZTXfWVV0-X4WFJNukLNxo11fpI__MC_s_WkF5B_GgBJaRMqQDzwny/s1600/14.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="274" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMgIOd_NYlrMfZrKmAOb4kazAHT8mZktKjMPqpEus07CvKlRWxPZiuQAdg36P8X56OZiIzgMZNcvOD_X5MeBWkzLkZTXfWVV0-X4WFJNukLNxo11fpI__MC_s_WkF5B_GgBJaRMqQDzwny/s640/14.jpg" width="640" /></a></div>
<br />
<br />
The "OnNotify" method is the final step of the process. So here you must add all the PeopleCode logic you will need to process your information.<br />
In this example, logic will be very simple:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpI5Ssy6hYb1GK2JBG43joZfAN_LCLq9ZQpWxQ4Icl_te5XOJOqQn03bNJN3sGiHOxHInO6xt3_NB7psDz550gyKbdS5ZBL3riQ-Tge8FAUoV9fqS8J_pUj6iw4nhBzwO-IIj15giOUc7H/s1600/15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="424" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpI5Ssy6hYb1GK2JBG43joZfAN_LCLq9ZQpWxQ4Icl_te5XOJOqQn03bNJN3sGiHOxHInO6xt3_NB7psDz550gyKbdS5ZBL3riQ-Tge8FAUoV9fqS8J_pUj6iw4nhBzwO-IIj15giOUc7H/s640/15.jpg" width="640" /></a></div>
<br />
<br />
Now let's go back to the Service Operation. As I told you before, we must complete the "Handlers" page.<br />
<br />
In this case we will use a new handler that I have called "MyHandler".<br />
I have set it up as "On Notify" since it will work when the system "is notified" that new information has come.<br />
In the Implementation Field I have chosen "Application Class" since I will insert the new information through an Application Class as we have seen before.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK4SiCwnFF9NE0Rkgd-TIWyAfVjWTuEQMsM2_cafND_0SVAUsO9uBpskf1f0oj8SaR_XKtwglTCCHU9n_KkWGX9IUIg-I-9ohABmehJjFI1iP5PPB5zp8pLB6tM4bBjkaYE2TaFYCAwPf-/s1600/16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="220" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK4SiCwnFF9NE0Rkgd-TIWyAfVjWTuEQMsM2_cafND_0SVAUsO9uBpskf1f0oj8SaR_XKtwglTCCHU9n_KkWGX9IUIg-I-9ohABmehJjFI1iP5PPB5zp8pLB6tM4bBjkaYE2TaFYCAwPf-/s640/16.jpg" width="640" /></a></div>
<br />
Let's go to the "details" link. In this page we will add the Application Class details, such as the root to the get it and the method that will be executed when a new message comes.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjadEaG8cPnm-7ZiJEJzMgATVSL3KtlaX_yVWfJr9KejE5HT2-4bIv6L_92sX032yw9mv9AInMmCsEqd8Qv2AZSdzQ94DbflHdi5GnDI8C2C-EBTxOs1yf-FhbYqw-_QvwHYAe1HpzL04yn/s1600/17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="430" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjadEaG8cPnm-7ZiJEJzMgATVSL3KtlaX_yVWfJr9KejE5HT2-4bIv6L_92sX032yw9mv9AInMmCsEqd8Qv2AZSdzQ94DbflHdi5GnDI8C2C-EBTxOs1yf-FhbYqw-_QvwHYAe1HpzL04yn/s640/17.jpg" width="640" /></a></div>
<br />
<br />
Now we can properly save the Service Operation.<br />
Most of the configuration is done at this step.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihghsqn6wFwNn5FBqIX0CzL_NEIPhGR1Vbq2pUwb4mTzRSGUa-f87EqX6EvOlVnSn__D6L4OZuytalozUiHU6o77DHv8GfBR9wTFkkefjfR32ygXkyfwsEv1pW5BuMegfn_xu5GPrO4Py4/s1600/18.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="278" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihghsqn6wFwNn5FBqIX0CzL_NEIPhGR1Vbq2pUwb4mTzRSGUa-f87EqX6EvOlVnSn__D6L4OZuytalozUiHU6o77DHv8GfBR9wTFkkefjfR32ygXkyfwsEv1pW5BuMegfn_xu5GPrO4Py4/s640/18.jpg" width="640" /></a></div>
<br />
<br />
Let's start testing our Handler:<br />
Go to Root > PeopleTools > Integration Broker > Service Utilities > Handler Tester and choose the previously created Service Operation<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9Z20LGHcS9Njrq7VEgyVjhIk7KZO5a81KDfNyFgZqxI2bVMTkpKLLSWh5IVJ1Z-AMdUNyaNHtJ_GvmJFCdgWiVS-N52fZEQJhi3pVoYhvaGzI0grWBG0fUo63yqFNVgqXSnpQZ0108fn4/s1600/19.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="260" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9Z20LGHcS9Njrq7VEgyVjhIk7KZO5a81KDfNyFgZqxI2bVMTkpKLLSWh5IVJ1Z-AMdUNyaNHtJ_GvmJFCdgWiVS-N52fZEQJhi3pVoYhvaGzI0grWBG0fUo63yqFNVgqXSnpQZ0108fn4/s640/19.jpg" width="640" /></a></div>
<br />
<br />
In this page we must select our Handler type and Name. And we can create a testing incoming message by filling the structure at the bottom area. If you have a real incoming XML File, you could add it by clicking the "Provide XML" button.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOzjnpGjnBVhDFw95VkNknw0cuu_1_SU3fBjuH5EB-M2o1aU69Oy8AN_K2_qFiIhMD30wQRAI0wpdwiAo7WMiLLPMTy8EZC7JPSDiWMroDP1IhzQiYHCZmic80dxfvGY5qw0Ldi-TRbzXX/s1600/20.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="560" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOzjnpGjnBVhDFw95VkNknw0cuu_1_SU3fBjuH5EB-M2o1aU69Oy8AN_K2_qFiIhMD30wQRAI0wpdwiAo7WMiLLPMTy8EZC7JPSDiWMroDP1IhzQiYHCZmic80dxfvGY5qw0Ldi-TRbzXX/s640/20.jpg" width="640" /></a></div>
<br />
<br />
Once we have it filled we can execute the event by clicking the Button.<br />
At this point if we have any error it will be displayed next to the message structure.<br />
In this case everything has worked as expected so the "Done" message appeared.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2I9cylnhIsTEB8dgU-BNVivczy3oV5S1FVzf-j15tZk7yrlDVK5r435HFnXBLdKe-FzkZkQPSRG5QB53eb-UKCE0_sIhInmrh_v92dhoe_2RF_ShZT2uMRdMHMxc4vKeLCSfC49ekNVCI/s1600/21.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="490" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2I9cylnhIsTEB8dgU-BNVivczy3oV5S1FVzf-j15tZk7yrlDVK5r435HFnXBLdKe-FzkZkQPSRG5QB53eb-UKCE0_sIhInmrh_v92dhoe_2RF_ShZT2uMRdMHMxc4vKeLCSfC49ekNVCI/s640/21.jpg" width="640" /></a></div>
<br />
<br />
If we check at the database, the new row was inserted.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgskPH8CZd1hDOxTzAJe4-V3NmB9nQShk1QoKcnEEHaLvdcGBRd0UDUR5cEwhJkOD9vz85ZoaphtGSK-ofuCwfWZlZB5OyMMRaI5Q8P60YKGyaXLGJAKkmozA4wcpm688vCwc3_icnwqPoR/s1600/22.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="310" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgskPH8CZd1hDOxTzAJe4-V3NmB9nQShk1QoKcnEEHaLvdcGBRd0UDUR5cEwhJkOD9vz85ZoaphtGSK-ofuCwfWZlZB5OyMMRaI5Q8P60YKGyaXLGJAKkmozA4wcpm688vCwc3_icnwqPoR/s640/22.jpg" width="640" /></a></div>
<br />
<br />
We can also test the Complete Service Operation:<br />
Go to Root > PeopleTools > Integration Broker > Service Utilities > Service Operation Tester.<br />
Choose the previously created Service Operation<br />
As you noticed, this page looks like the "Handler Tester" one, and it works in a similar way.<br />
We will fill a new Employee data and clik in the "Invoke Operation" button<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnoaUhg50IqkLecnst40k_vK8oXZ-e8lZ7ch_dX108t-7GlBwUMwR667MtmupZGPZtyqqS56_1ZPcH3UHPclOfvsMyPaw2MWreELFXwygSs_kkkwt6zpSD1AQs8MIYGxhTKT_RgT4vihDe/s1600/23.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="462" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnoaUhg50IqkLecnst40k_vK8oXZ-e8lZ7ch_dX108t-7GlBwUMwR667MtmupZGPZtyqqS56_1ZPcH3UHPclOfvsMyPaw2MWreELFXwygSs_kkkwt6zpSD1AQs8MIYGxhTKT_RgT4vihDe/s640/23.jpg" width="640" /></a></div>
<br />
<br />
If everything has worked as expected you will receive a transaction ID. This is because Operation was published in our system.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3vudlNtb0VVqkrD5wAabIC8hvBCujdY8D5Pwozmnf8hBP-QNdmYtZNKA2Dre7ScuUiUP0cv12r0FFIC8fXmQ8eQmV_XaH3SFvuljHfbSCluMpHxbTs2G_NxOX7-C9tgBSr_bTfER55ipE/s1600/24.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="446" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3vudlNtb0VVqkrD5wAabIC8hvBCujdY8D5Pwozmnf8hBP-QNdmYtZNKA2Dre7ScuUiUP0cv12r0FFIC8fXmQ8eQmV_XaH3SFvuljHfbSCluMpHxbTs2G_NxOX7-C9tgBSr_bTfER55ipE/s640/24.jpg" width="640" /></a></div>
<br />
<br />
Now we could check the incoming message status in the following path:<br />
Root > PeopleTools > Integration Broker > Service Operations Monitor > Monitoring > Asynchronous Services.<br />
Here you will see our Queue appears:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSAP4f9sVSxfdsZaJ3iyWmlzf-DTBnn1xWLd-9eyjisCZojV1sWLrXgO5xZ4NB6TShvhXfPUUAxRg2sBvizpxB1qjqyr1ws8r-o-qP4ElawwSKqaSlFp3UDnSvtDda2OJr9dOA4ZiTxAIa/s1600/25.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="316" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSAP4f9sVSxfdsZaJ3iyWmlzf-DTBnn1xWLd-9eyjisCZojV1sWLrXgO5xZ4NB6TShvhXfPUUAxRg2sBvizpxB1qjqyr1ws8r-o-qP4ElawwSKqaSlFp3UDnSvtDda2OJr9dOA4ZiTxAIa/s640/25.jpg" width="640" /></a></div>
<br />
<br />
If we click the number link in the "Done" column we will able to see all the Done transactions in this queue.<br />
Once we are inside this link we can click the "Details" and take a look to our service operation:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisTQdncQ5z_0ORYMMW-r_s6jhVJNUSQnM0zexu33iNCFr_npofjSGb3siit_4brPGGdz-mohF2cM5ptfMnKcpP2iBoPqQM5FVvaWlBVnPWT_RfT7Q0wmaShYbICUf2isvwUI6YvHF1ZK8r/s1600/26.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="257" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisTQdncQ5z_0ORYMMW-r_s6jhVJNUSQnM0zexu33iNCFr_npofjSGb3siit_4brPGGdz-mohF2cM5ptfMnKcpP2iBoPqQM5FVvaWlBVnPWT_RfT7Q0wmaShYbICUf2isvwUI6YvHF1ZK8r/s640/26.jpg" width="640" /></a></div>
<br />
<br />
Here you will notice we have no access on this Service Operation.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnlX6M0jVAcA3tCA-dlxt4-gCCSc_wApa-uzAvL_wfHPn2NC-Jwi7u57NO1FNZNJi-KtEeVKniUq5pyAOSgS0ktzakfq0FrxOorOTW6yJw3U3Ffb0bqdkOMoagU3bq55C1QUz9wWqXqTlK/s1600/27.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="249" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnlX6M0jVAcA3tCA-dlxt4-gCCSc_wApa-uzAvL_wfHPn2NC-Jwi7u57NO1FNZNJi-KtEeVKniUq5pyAOSgS0ktzakfq0FrxOorOTW6yJw3U3Ffb0bqdkOMoagU3bq55C1QUz9wWqXqTlK/s640/27.jpg" width="640" /></a></div>
<br />
<br />
We must set it up in a Permission List, at the "Web Services" page.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjucLWAh0RdXw4MLKW7igDQPs2ZkAGVeTsrudx2nF-O8_vi3p6DYR0l58a3R1NPZn3RnAhTNeY6OIMCP-_szSlhq1e-3IOjVy_9sX9Uvo1mqxJUXxsKf2iktzepGndg23IcmeXWvB634SOQ/s1600/28.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjucLWAh0RdXw4MLKW7igDQPs2ZkAGVeTsrudx2nF-O8_vi3p6DYR0l58a3R1NPZn3RnAhTNeY6OIMCP-_szSlhq1e-3IOjVy_9sX9Uvo1mqxJUXxsKf2iktzepGndg23IcmeXWvB634SOQ/s1600/28.jpg" /></a></div>
<br />
<br />
<br />
If we go back to the details page, now we can check the XML file. On the other side, if the service operation fails, you will be able to check the reasons in this page.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQeQO2ZA43pzVCGHOS5rW5nX9YOWKHQwue6VgFda59FClrG3XXQ4OO5DGnqRQwfg3h2GUK7qbbrlA0UTdQSBZahOhVFZs8DCx4275rBFnUI4rgWvpYsQxIG_JPqVzGr-DgBTRGb8KS0MBU/s1600/29.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="286" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQeQO2ZA43pzVCGHOS5rW5nX9YOWKHQwue6VgFda59FClrG3XXQ4OO5DGnqRQwfg3h2GUK7qbbrlA0UTdQSBZahOhVFZs8DCx4275rBFnUI4rgWvpYsQxIG_JPqVzGr-DgBTRGb8KS0MBU/s640/29.jpg" width="640" /></a></div>
<br />
<br />
And the new employee was properly inserted.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeW1aR9UelUJ8VBn7NDr3mGdthO2HLpR9yaIP2YQjMt199v0XjC4iYL_i4nsdHNwzXEJ3fWaYe5YDbT9S_L3axBSdciEipfRv2NaDyO3VeOZeG-MTu8D2r-4vNePt0OKPHuTOXYKfDE-xF/s1600/30.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeW1aR9UelUJ8VBn7NDr3mGdthO2HLpR9yaIP2YQjMt199v0XjC4iYL_i4nsdHNwzXEJ3fWaYe5YDbT9S_L3axBSdciEipfRv2NaDyO3VeOZeG-MTu8D2r-4vNePt0OKPHuTOXYKfDE-xF/s1600/30.jpg" /></a></div>
<br />
<br />
If we want to create a WSDL Service we must go to<br />
Root > PeopleTools > Integration Broker > Web Services > Provide Web Service.<br />
In this page we must search our service:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhelZk6JFW6-JEwX3Wi0mBTiKkwwvBzQuj9RF0bkx1tA0b4lAag5Ko0HmrllQNgEEDpgWwdc36j7NydAEJQGNJICpsWLhPh9MIShnjbtCCPM8HX1CZr3gcnZ0IY_ZJ1RZrMfH7RV1FmlBhj/s1600/31.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhelZk6JFW6-JEwX3Wi0mBTiKkwwvBzQuj9RF0bkx1tA0b4lAag5Ko0HmrllQNgEEDpgWwdc36j7NydAEJQGNJICpsWLhPh9MIShnjbtCCPM8HX1CZr3gcnZ0IY_ZJ1RZrMfH7RV1FmlBhj/s1600/31.jpg" /></a></div>
<br />
<br />
Then choose the Service Operation<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeMZljtvRrzLB4pZIgGTBUujnQNuEIiV1rYAP4PT9vX71yQE2jB6-Pg9gyIDeOzl0zLvxk4bBhTviMpnG_dOUG0DLFIuV4OSUZmrAePYNkoH48roeJkRorY0aTsRpsSWzPjTUHR4Upauzj/s1600/32.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="290" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeMZljtvRrzLB4pZIgGTBUujnQNuEIiV1rYAP4PT9vX71yQE2jB6-Pg9gyIDeOzl0zLvxk4bBhTviMpnG_dOUG0DLFIuV4OSUZmrAePYNkoH48roeJkRorY0aTsRpsSWzPjTUHR4Upauzj/s640/32.jpg" width="640" /></a></div>
<br />
<br />
If we want to check the WSDL we could do it in the next step<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWbJpyQi0cxwQKLdWOVjTzg89GC8aCHKUPBiN5l2_9e7PnmnQZRN2hTDsVuDMgnTXW1_2Q-bj8guCd4JkM0Ui6USyFVPR7Hs4DhggC1XkYZdSVRb9oLFN6Pp-XY-lhg2LQIa5_7fJzDoXS/s1600/33.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="264" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWbJpyQi0cxwQKLdWOVjTzg89GC8aCHKUPBiN5l2_9e7PnmnQZRN2hTDsVuDMgnTXW1_2Q-bj8guCd4JkM0Ui6USyFVPR7Hs4DhggC1XkYZdSVRb9oLFN6Pp-XY-lhg2LQIa5_7fJzDoXS/s640/33.jpg" width="640" /></a></div>
<br />
<br />
The last step is choosing the WSDL Repository option.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjz_8sTcIFrUWHlA8CKgZ88TCGKY1mK1xtHFGdSWG2ahCL8-1K-8jaHykj7UyXvJdCeO28jJxVdzoq7nTpVYy3vCiF3UnOHWq55Gd6fk7UcnWY0gEgGXtgN1uJ5Nxcr6V6uLCGncOnB5Nu/s1600/34.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjz_8sTcIFrUWHlA8CKgZ88TCGKY1mK1xtHFGdSWG2ahCL8-1K-8jaHykj7UyXvJdCeO28jJxVdzoq7nTpVYy3vCiF3UnOHWq55Gd6fk7UcnWY0gEgGXtgN1uJ5Nxcr6V6uLCGncOnB5Nu/s1600/34.jpg" /></a></div>
<br />
<br />
Now the WSDL Service was created and we can use it with the following link.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhygZKq1xNjdZUkOucTQBLT8TZHU2PURtsFdf-yVF09jAbyNu6dRu4arkj2x8kKO2xAy2eshhoGlpYS-MjkEM9oHJJY7C0jhuy8XJRz9Fx47paSrCOMXK5x5Cv0Cl51mZBnHul47dGP_0km/s1600/35.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhygZKq1xNjdZUkOucTQBLT8TZHU2PURtsFdf-yVF09jAbyNu6dRu4arkj2x8kKO2xAy2eshhoGlpYS-MjkEM9oHJJY7C0jhuy8XJRz9Fx47paSrCOMXK5x5Cv0Cl51mZBnHul47dGP_0km/s1600/35.jpg" /></a></div>
<br />
<br />
We can test it with teh SoapUI software.<br />
We create a new Project in this application and add the WSDL link.<br />
Then we add a new Employee information and click the "Play" button<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTCzbcbk4alFflirjLZA0ELLOErGKyrMCLLTZ7WCpNpOdrIINMeOXJHXuBXuqlexRdsmzkwS_vTzpduUVj3XjtiZl04EhZzCd_1ddVLo1gHVKOaZ5zPgh0NRsfihalbl2MLS9xv4fuy64x/s1600/36.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="290" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTCzbcbk4alFflirjLZA0ELLOErGKyrMCLLTZ7WCpNpOdrIINMeOXJHXuBXuqlexRdsmzkwS_vTzpduUVj3XjtiZl04EhZzCd_1ddVLo1gHVKOaZ5zPgh0NRsfihalbl2MLS9xv4fuy64x/s640/36.jpg" width="640" /></a></div>
<br />
<br />
Since this service does not send back any information we only see the confirmation info.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvwN8lBI4wZd6Ajd_vYz-Lj8uBBwIaPHDXXyMnHWTEq8Qav38zGH5nEzf_g1-gHj4qlIXbf17oVPNYknwl2l0IcgGlkJOqbR0GNZ634rRjAO3fK1PUxaNT659pSeOEPBlf89LsDN8aDiWy/s1600/37.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvwN8lBI4wZd6Ajd_vYz-Lj8uBBwIaPHDXXyMnHWTEq8Qav38zGH5nEzf_g1-gHj4qlIXbf17oVPNYknwl2l0IcgGlkJOqbR0GNZ634rRjAO3fK1PUxaNT659pSeOEPBlf89LsDN8aDiWy/s1600/37.jpg" /></a></div>
<br />
<br />
If we check the database, the third Employee was added.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqfyuKL5daHLB4mSSL1a34vL1Vojpd813Lw4ryOnX8Kf80NkUcvP6SXt5wtcn68kPiN_9k-_1YQyH51PKe9iiwwkpk0A8WQ9h_ZyXyIRo-KpQPhVI_6RFwFVUd9oFNdMXH8_zpJJ5XvKLY/s1600/38.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqfyuKL5daHLB4mSSL1a34vL1Vojpd813Lw4ryOnX8Kf80NkUcvP6SXt5wtcn68kPiN_9k-_1YQyH51PKe9iiwwkpk0A8WQ9h_ZyXyIRo-KpQPhVI_6RFwFVUd9oFNdMXH8_zpJJ5XvKLY/s1600/38.jpg" /></a></div>
<br />
And that's all.<br />
I hope this blog could be so useful to you as it is to me.<br />
<br />
Regards.<br />
Facundo Salerno.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-28516627461204182682015-03-29T13:26:00.001-07:002015-03-29T13:26:26.516-07:00IN - Dynamic ReplenishHi again!<br />
<br />
In my last blog I've shown you how Static Replenishment process works.<br />
<br />
Today, let's talk about calculating the Reorder Quantity in a dynamic way.<br />
<br />
As I always do, let's see it with a quick example.<br />
<br />
1) First of all we have to create a new Replenishment Class.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidilA8uWrawsUY8sr5Ww3srOYytdUsY3lspt7MN5YIeU3rDZsLx9GrDkvRu30KaPzI-8bZad4xKgtmE7OpFqh9Mw0nf_3iyyjeiQH9GC9J2kJ9Zsx3HXvVoEHBHpPFtFl1tMRoo29YBfRG/s1600/010.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidilA8uWrawsUY8sr5Ww3srOYytdUsY3lspt7MN5YIeU3rDZsLx9GrDkvRu30KaPzI-8bZad4xKgtmE7OpFqh9Mw0nf_3iyyjeiQH9GC9J2kJ9Zsx3HXvVoEHBHpPFtFl1tMRoo29YBfRG/s1600/010.jpg" height="368" width="640" /></a></div>
<br />
<br />
2) In order to set a dynamic Replenishment Calculation we must set the Item attributes.<br />
For instance, let's take the ST8000 item in the US008 business unit.<br />
<br />
If we check the inventory status of this item, we'll see there are 1284 units available and 204 units reserved. So, we really have 1080 units available.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2OL-0In9y4J6DVRggfO4B_Wx3gXlxNMileGXDgka0AaF6g6z5TwIefpSko930PRvN5598uKhDyVpJvmvHCZyxDjLKNOmaBx-luqxJZN6hnKmLxmmItRcSkPs5xRYOfBfKVVMMtniMINlD/s1600/020.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2OL-0In9y4J6DVRggfO4B_Wx3gXlxNMileGXDgka0AaF6g6z5TwIefpSko930PRvN5598uKhDyVpJvmvHCZyxDjLKNOmaBx-luqxJZN6hnKmLxmmItRcSkPs5xRYOfBfKVVMMtniMINlD/s1600/020.jpg" height="242" width="640" /></a></div>
<br />
<br />
3) Let's go to Root > Inventory > Replenish Inventory > Setup Item Replenishment<br />
It is in this step where the set-up information must be different from the <a href="http://facusalerno.blogspot.com.ar/2015/03/in-static-replenish.html" target="_blank">Static Replenishment</a>.<br />
<br />
We should set some additional values:<br />
Reorder Quantity Option: Min/Max<br />
Replenish Class: DYNA (the one we had created)<br />
Replenish Calc Period: 30 days. (meaning how often we will execute the replenishment process.)<br />
Replenish Lead (Days): 5 days (it could be understood as a deadline)<br />
Reorder Point: 4000.<br />
Safety Stock: 50 (the minimum quantity we want to have in stock)<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiljubDrcP-tg1nrhASzotwXtT5vTrhujaQBcbmhAVC3bHaOgRSltsWz2DQAhFq2hQelw182RyOLSfMNTHl0vamGKNhOl0SyyjCDCgu5VrEDH5ObbN0Y4mrGKNxR-WaWR0eSQCuzHqA-VqF/s1600/030.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiljubDrcP-tg1nrhASzotwXtT5vTrhujaQBcbmhAVC3bHaOgRSltsWz2DQAhFq2hQelw182RyOLSfMNTHl0vamGKNhOl0SyyjCDCgu5VrEDH5ObbN0Y4mrGKNxR-WaWR0eSQCuzHqA-VqF/s1600/030.jpg" height="290" width="640" /></a></div>
<br />
<br />
4) Having this configuration set up let's run the calculation process, chossing BU = US008 and replenish class = DYNA. The request option must be "Maximum Stock Qty" since that's the option we chose in the ST8000 item.<br />
<br />
Root > Inventory > Replenish Inventory > Calc Replenishment Parameters<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGUQM_0Dw6Bi6vS0Y9alOyPPc4RdIIb5ci8Ujx6Jcwgl8SeMFfe0rd0krz1ThCD9CCFfvTG3r0qBpatUWT87MihufJ98hdFYmQwTjvnFoYdTRaKmaCeaTwIf_-hLK4ONm2RKLGSoI_MSlH/s1600/040.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGUQM_0Dw6Bi6vS0Y9alOyPPc4RdIIb5ci8Ujx6Jcwgl8SeMFfe0rd0krz1ThCD9CCFfvTG3r0qBpatUWT87MihufJ98hdFYmQwTjvnFoYdTRaKmaCeaTwIf_-hLK4ONm2RKLGSoI_MSlH/s1600/040.jpg" height="292" width="640" /></a></div>
<br />
<br />
In this case the "Calc Replenishment Parameters" will work by the following way:<br />
<div class="MsoNormal">
<span lang="ES"><br />
a) Looks for the item Total Demand in the last "Replenish Calc Period" days</span><br />
<span lang="ES"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXZdB94koFmdH5sNEwGSCSNvOpGt7k4AE8Nq2_7GGGicLmyZyBJGr6MCJ0nwOmR0O4EwqM0Orrt5GIm4awa_Wvklp_SD3L0RdN9B20M-Op5ER2_hqwYFzEItl675pUrM4szsG1lKvvaqYn/s1600/050.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXZdB94koFmdH5sNEwGSCSNvOpGt7k4AE8Nq2_7GGGicLmyZyBJGr6MCJ0nwOmR0O4EwqM0Orrt5GIm4awa_Wvklp_SD3L0RdN9B20M-Op5ER2_hqwYFzEItl675pUrM4szsG1lKvvaqYn/s1600/050.jpg" height="177" width="400" /></a></div>
<br />
<span lang="ES"><br /></span>
<span lang="ES"><br /></span></div>
<div class="MsoNormal">
<span lang="ES">b) Calculates the Average Demand -> "Total Demand" / "Replenish Calc Period" days</span><br />
<span lang="ES">In this case it will be 4020/30 =<b> 134</b></span><br />
c) Calculates the maximum quantity as "Average Daily Demand" * ("Replenish Calc Period" + "Replenish Lead" ) + Safety Stock.<br />
So, in this case it will be : 134 * (30 + 5 ) + 50 = <b>4740</b>.<br />
Let's check it.<br />
<br /></div>
<div class="MsoNormal">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj98xdO3-UdbMGgSVw1ZqofSsNQ5TYtEp0HDnB2VaIU9SEmg_gzpd9ms_HcgTOhJ_xDavoUtjptVX1HlNIe3OeXIbp_2NdMbrD-VX1yKIELBMc8sgYCxY2xQgTw_dDNWcAmV78ckvG9-iBl/s1600/060.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj98xdO3-UdbMGgSVw1ZqofSsNQ5TYtEp0HDnB2VaIU9SEmg_gzpd9ms_HcgTOhJ_xDavoUtjptVX1HlNIe3OeXIbp_2NdMbrD-VX1yKIELBMc8sgYCxY2xQgTw_dDNWcAmV78ckvG9-iBl/s1600/060.jpg" height="254" width="640" /></a></div>
<br />
<br />
When we then run the "Create Replenishment Process" we will take this quantity into consideration.<br />
<br />
5) Let's run de Create Replenishment Process chossing BU = US008 and replenish class = DYNA.<br />
<br />
Root > Inventory > Replenish Inventory > Create Replenishment Request<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqHm7OTw1Y4_omqtOq_ooUlNGmZ6YUUV1MNl4QuFjxd4TzJJ1qe5ZPPtbbuIBXI0BeroMoeZtFcQcRUH4iaE3SIGmJXg-sFFRZADr5aG9bi_nxH9jmXN2Vul-o94JUPxKsxUeQJ6oYDeX3/s1600/070.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqHm7OTw1Y4_omqtOq_ooUlNGmZ6YUUV1MNl4QuFjxd4TzJJ1qe5ZPPtbbuIBXI0BeroMoeZtFcQcRUH4iaE3SIGmJXg-sFFRZADr5aG9bi_nxH9jmXN2Vul-o94JUPxKsxUeQJ6oYDeX3/s1600/070.jpg" height="258" width="640" /></a></div>
<br />
<br />
6) We now go to the "Manage Replenishment Request" page and we could see recently created Replenishment ID.<br />
As we could see in the following screen the item is shown with 3907 units to be bought.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRRv-XwhdmMXQ1F8T2aTrXGyzm-DJ5-5g9_q6TR4ywv5pZP2XySu3yP6OylwNQdZ2jdkeRzgDVnpPl3mo8KSDBTvk3GFMseuTZ8D8USENx1wqYPUdAO-YB9Xetfm82ThNLL9wa6_rZu-6O/s1600/080.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRRv-XwhdmMXQ1F8T2aTrXGyzm-DJ5-5g9_q6TR4ywv5pZP2XySu3yP6OylwNQdZ2jdkeRzgDVnpPl3mo8KSDBTvk3GFMseuTZ8D8USENx1wqYPUdAO-YB9Xetfm82ThNLL9wa6_rZu-6O/s1600/080.jpg" height="250" width="640" /></a></div>
<br />
<br />
So, How is this number calculated? Here you have a basic explanation:<br />
<br />
a) Searchs how many items were bought. ( 0 in this case)<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQYZ3W4CBormnRXcx9VS4xqg70KmwRD82eo6iHSf2urfQgWVQSA8NVfkYaRsH_UG6JBrE95-CPPDTA9tMF5G1ZIxxm-s9TVMaU_C4bMTf31zQpPn8tNayawk0OWmgk_y2O4Vh42Z5_HuS2/s1600/090.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQYZ3W4CBormnRXcx9VS4xqg70KmwRD82eo6iHSf2urfQgWVQSA8NVfkYaRsH_UG6JBrE95-CPPDTA9tMF5G1ZIxxm-s9TVMaU_C4bMTf31zQpPn8tNayawk0OWmgk_y2O4Vh42Z5_HuS2/s1600/090.jpg" height="312" width="640" /></a></div>
<br />
b) Searchs how many items were properly moved to inventory ( 0 in this case)<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYknMYWSyb5df7jIx8HpPLIFHBk1PuN92OJAa3cPLuzeaBWjsN5EMAW82X1ah2Ke4ZdR69-R1zDBwGN77aCAHyRcP2ilH9XGhr_v8ugk8DqRZaJkgGeCe9LkmsWhEr4Z6mbwO5ouzGn7Cd/s1600/100.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYknMYWSyb5df7jIx8HpPLIFHBk1PuN92OJAa3cPLuzeaBWjsN5EMAW82X1ah2Ke4ZdR69-R1zDBwGN77aCAHyRcP2ilH9XGhr_v8ugk8DqRZaJkgGeCe9LkmsWhEr4Z6mbwO5ouzGn7Cd/s1600/100.jpg" /></a></div>
<br />
<br />
c) Searchs how many items were not moved to inventory yet ( 0 in this case)<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-RAY5RUeXT9iQUHH-pqcWAwBhn5Ei5HMIf6N__hbBw0QFcpXaZJzaCCGkk3Z_IZJPZTbSD7TDdH1MmsyDgdI2nfQLm51Fbqg8CPF9QCKi35CxNyQkjfxoL49U82oHIgubOHpKFCBNgCLc/s1600/110.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-RAY5RUeXT9iQUHH-pqcWAwBhn5Ei5HMIf6N__hbBw0QFcpXaZJzaCCGkk3Z_IZJPZTbSD7TDdH1MmsyDgdI2nfQLm51Fbqg8CPF9QCKi35CxNyQkjfxoL49U82oHIgubOHpKFCBNgCLc/s1600/110.jpg" height="341" width="640" /></a></div>
<br />
<br />
<br />
d) Searchs how many items were used to create new productions.<br />
For instance, the ST8000 item is used when producing the PRD00126 item.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8cGhykT3QQARoCZDuSW7xTQNmBkj-0eD2uiVsYenahjqPTMmTWxQt6b3Jz_dpy5YMWe3bmN3PS5FxDHbk1QLrlXQH27rRJXTroFB-EEvOoAn32i_cTliBKpVl7glk-7_8Az9QNiFQuNgS/s1600/120.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8cGhykT3QQARoCZDuSW7xTQNmBkj-0eD2uiVsYenahjqPTMmTWxQt6b3Jz_dpy5YMWe3bmN3PS5FxDHbk1QLrlXQH27rRJXTroFB-EEvOoAn32i_cTliBKpVl7glk-7_8Az9QNiFQuNgS/s1600/120.jpg" height="248" width="640" /></a></div>
<br />
<br />
In this case we have 247 units that are used when producing<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8tkfy-M0oOe7H9HiNa_3W54iduhzYXXlIhdeXMNHV334dpE-EpA8JycrCkEW_lLelIE-zo_9iXzmJY9CMAVLOUJRmMktESZjnpazed5k1hwjhJDvCdSYgkGKJjTzsKRGzzp9-TImzYLkO/s1600/130.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8tkfy-M0oOe7H9HiNa_3W54iduhzYXXlIhdeXMNHV334dpE-EpA8JycrCkEW_lLelIE-zo_9iXzmJY9CMAVLOUJRmMktESZjnpazed5k1hwjhJDvCdSYgkGKJjTzsKRGzzp9-TImzYLkO/s1600/130.jpg" height="246" width="400" /></a></div>
<br />
<br />
As a summary we early saw there were 1080 units available and we only have 247 in production process.<br />
So, we actually have 833 units available for this item.<br />
We need 4740 as a maximum quantity, so we need to buy <b>3907 </b>units of this item, which matches the result of the Create Replenishment Process.<br />
<br />
Once we have the Replenish ID, the PO process continues as explained in the <a href="http://facusalerno.blogspot.com.ar/2015/03/in-static-replenish.html" target="_blank">Static Replenishment</a>..<br />
<br />
I hope this blog could be so useful to you as it is to me.<br />
<br />
Regards.<br />
Facundo Salerno.<br />
<br /></div>
Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-17221766656120287672015-03-15T16:19:00.002-07:002015-03-29T13:17:48.270-07:00IN - Static ReplenishHi All,<br />
<br />
I'm afraid of boring you with so many technical things, so let's have a functional tutorial today.<br />
<br />
Working in BNB I have learnt about Inventory Process.<br />
<br />
One of the main process I have seen is the Replenishment Process.<br />
<br />
There are different ways of items replenishment. Here you will find a quick explanation about the static one.<br />
<br />
1) First of all we have to create a new Replenishment Class.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIciOYAyDneIf3zwGEVbmZjm2_ii4HPhL5ktrfBwfBessANsqGIvd_kJkRSsWNB1zJspyHcyCkMlzkQZjNq5Fz_Uae2uP46vUBC4y18JqDjZvXO8x4un8GfIfjH0S5vT1HnYRVbZ1U8ulw/s1600/Reple+01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIciOYAyDneIf3zwGEVbmZjm2_ii4HPhL5ktrfBwfBessANsqGIvd_kJkRSsWNB1zJspyHcyCkMlzkQZjNq5Fz_Uae2uP46vUBC4y18JqDjZvXO8x4un8GfIfjH0S5vT1HnYRVbZ1U8ulw/s1600/Reple+01.jpg" height="329" width="640" /></a></div>
<br />
<br />
2) In order to set a static Replenishment we must set the Item attributes.<br />
For instance, let's take the USA-01 item in the US0003 business unit.<br />
<br />
If we check the inventory status of this item, we'll see there are 3000 units available.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGsg5PzrUCLCCgXqAjLz-JsloqVBp2-zTixt6KNIMEllknXIDInUKwM8oTJg2-8Wg727J1jvi8YeHuUHyhLnCmgvQE7Y38AgTqgcz-c6cL-nm4-jBvukmUBkEHghOiWkT6PefCGdAvsq15/s1600/Reple+02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGsg5PzrUCLCCgXqAjLz-JsloqVBp2-zTixt6KNIMEllknXIDInUKwM8oTJg2-8Wg727J1jvi8YeHuUHyhLnCmgvQE7Y38AgTqgcz-c6cL-nm4-jBvukmUBkEHghOiWkT6PefCGdAvsq15/s1600/Reple+02.jpg" height="277" width="640" /></a></div>
<br />
<br />
Let's go to Root > Inventory > Replenish Inventory > Setup Item Replenishment<br />
<br />
We should set some additional values:<br />
Reorder Quantity Option: Static Reorder QTY<br />
Replenish Class: STAT (the one we had created)<br />
Reorder Point: 3001. (meaning when we have less than 3001 units of the item it will be included in the replenishment process)<br />
Reorder Quantity: 4000 (how many units of the item should be ordered). This quantity can't be lower than the Reorder Point.<br />
Why? Think you have 0 items in your inventory and you set the reorder quantity to 1000.<br />
Once the Replenishment Process is executed, you buy the 1000 units, but this item is still below the reorder point that is 3001. So the system won't let you be at this situation.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk50o57JaQrmC7PaNfhKbjUG6a_TdaH2HfqmTd1Jcr46EPD7RO9bBlpmK2wuwgO4EapQ01aiYIiPNAknd7oTvrTF17bziH7v2_cx0MQejZQQxNlSFw77kwX6kFbnFYm9MpqP5vQc30Fe0M/s1600/ASDF.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk50o57JaQrmC7PaNfhKbjUG6a_TdaH2HfqmTd1Jcr46EPD7RO9bBlpmK2wuwgO4EapQ01aiYIiPNAknd7oTvrTF17bziH7v2_cx0MQejZQQxNlSFw77kwX6kFbnFYm9MpqP5vQc30Fe0M/s1600/ASDF.jpg" height="248" width="640" /></a></div>
<br />
<br />
3) Now we must set the business unit replenish options: Let's go to Root > Inventory > Replenish Inventory > Setup Replenishment<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCtxLQUiq0mMKFOznJaljS5jBw_g8eUNOnKa7w0h4gHef_xF3Fu4njD0K9FIMrgz6c1dGnBQExQun8sSstCSvfitkhkqD6_1VWodhC3Fx7VALwy1pfJFELVT8xvaVktOAY6GsYZqEY7b5K/s1600/REPLE06.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCtxLQUiq0mMKFOznJaljS5jBw_g8eUNOnKa7w0h4gHef_xF3Fu4njD0K9FIMrgz6c1dGnBQExQun8sSstCSvfitkhkqD6_1VWodhC3Fx7VALwy1pfJFELVT8xvaVktOAY6GsYZqEY7b5K/s1600/REPLE06.jpg" height="314" width="640" /></a></div>
<br />
<br />
4) Having this configuration set up let's run the replenishment process, chossing BU = US003 and replenish class = STAT.<br />
<br />
Root > Inventory > Replenish Inventory > Create Replenishment Request<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg86eOdBAzYrrihptdSLwuOlZIRoPQFUm_3LmXRgEM3RKRC9NT23so9TpoHTUWRcYCcRm-mSAQxTZiWD-teXnhxzErn5cHG3k5irGag3WSe1uN5NvlankPvOrQqFjbuCqIxuTeWducKQffQ/s1600/reple+04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg86eOdBAzYrrihptdSLwuOlZIRoPQFUm_3LmXRgEM3RKRC9NT23so9TpoHTUWRcYCcRm-mSAQxTZiWD-teXnhxzErn5cHG3k5irGag3WSe1uN5NvlankPvOrQqFjbuCqIxuTeWducKQffQ/s1600/reple+04.jpg" height="329" width="640" /></a></div>
<br />
<br />
5) Let's check process status in the Process Monitor Page<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdCrAzFLve2XTigMN4CIZaQedDQqLrRUm_vLROejtIumATTq2kqmYlj9730oSiWlIgpFfFjq2lfdJWGKFtqVz0uAvHZrMfJkoTFNpJ1KaP1X7XqZdYDZXRC-uR_XMAqN_G81SX9bi0yEu9/s1600/REPLE05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdCrAzFLve2XTigMN4CIZaQedDQqLrRUm_vLROejtIumATTq2kqmYlj9730oSiWlIgpFfFjq2lfdJWGKFtqVz0uAvHZrMfJkoTFNpJ1KaP1X7XqZdYDZXRC-uR_XMAqN_G81SX9bi0yEu9/s1600/REPLE05.jpg" height="184" width="640" /></a></div>
<br />
<br />
6) We now go to the "Manage Replenishment Request" page and we could see recently created Replenishment ID.<br />
As we could see in the following screen the item is shown with 4000 units to be bought.<br />
If we need to change the quantity we'll be able to do it in this page.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX1ggjLFLhDSRz9nt3yNq3ba_A4vK4JC1Xm5xvHmoIFJabKxAzWV6s9ddqGq8NYhCBeyLb7WNuwNYvOx_5vgFwaF2sNY5gFx5iKe9mxkqT90GWIklfUTZw52uwUS5PX0uLxIW4JC-G69YK/s1600/reple07.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjX1ggjLFLhDSRz9nt3yNq3ba_A4vK4JC1Xm5xvHmoIFJabKxAzWV6s9ddqGq8NYhCBeyLb7WNuwNYvOx_5vgFwaF2sNY5gFx5iKe9mxkqT90GWIklfUTZw52uwUS5PX0uLxIW4JC-G69YK/s1600/reple07.jpg" height="279" width="640" /></a></div>
<br />
<br />
<br />
7) We are now able to execute the Requisition Loader, choosing the Replenish ID we have previously created.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaBYNG9W_Vi7Eax6Afge0saYoGHXmc_5VYZs8YFJfWuVJHy0Y5tLVz5yCxMGTr0aJiffzA-Icwghb0cd-zbBS-vQnwkCWnfHjBEgZlxH8AiY6sl2zSX7gWYv442sbTGcOHlYtv4X96IDKo/s1600/reple08.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaBYNG9W_Vi7Eax6Afge0saYoGHXmc_5VYZs8YFJfWuVJHy0Y5tLVz5yCxMGTr0aJiffzA-Icwghb0cd-zbBS-vQnwkCWnfHjBEgZlxH8AiY6sl2zSX7gWYv442sbTGcOHlYtv4X96IDKo/s1600/reple08.jpg" height="351" width="640" /></a></div>
<br />
<br />
<br />
8) If we check the process monitor, we could see the ID of the requisition that was created<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR1sXEeA9RufQ-_jkApfVlY26D8LY_mL2baSVSpwyEYfkrLLW6YrEU0BoLILf9D2FTdU0gp4m_qkExQ7Lpp6K0z_dU7gcCQ-p2fr_BkZTEV0xnoi6JUeB9bBNzy3DZKwP1_Bp8kAMtfZgU/s1600/reple09.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjR1sXEeA9RufQ-_jkApfVlY26D8LY_mL2baSVSpwyEYfkrLLW6YrEU0BoLILf9D2FTdU0gp4m_qkExQ7Lpp6K0z_dU7gcCQ-p2fr_BkZTEV0xnoi6JUeB9bBNzy3DZKwP1_Bp8kAMtfZgU/s1600/reple09.jpg" height="385" width="640" /></a></div>
<br />
<br />
9) And, as the final step, we check the requisition was properly created.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJVN9rcNx8r1rnr8VP_0zdIChccQ2nNMJFQdz-0Z-0UxfA-0gfjF88apI-MXBU6RNEmLlIVMCI0xRMZopuaynd7zZK_UrM2Xs1V-mFv2FiWuVzJKTAPcfxAasc2BISuP91a8E3NLmGKCng/s1600/reple10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJVN9rcNx8r1rnr8VP_0zdIChccQ2nNMJFQdz-0Z-0UxfA-0gfjF88apI-MXBU6RNEmLlIVMCI0xRMZopuaynd7zZK_UrM2Xs1V-mFv2FiWuVzJKTAPcfxAasc2BISuP91a8E3NLmGKCng/s1600/reple10.jpg" height="263" width="640" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><br /></span></div>
<div>
<div>
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;">I hope this blog could be so useful to you as it is to me.</span><br />
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;"><br /></span></div>
<div>
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;">Regards.</span><br />
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;">Facundo Salerno.</span></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<br />
<br />
<br />
<br />
<br />Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-74628192469081833562015-03-07T11:53:00.004-08:002015-03-28T14:24:55.456-07:00Sending Mails through PeopleSoft -> Bye SendMail()<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
Hi!</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
Since T<span style="font-size: 12.8000001907349px;">ools 8.52 SendMail() has been deprecated. It was replaced by a more powerful application class </span><span style="font-size: 12.8000001907349px;"><b>PT_MCF_MAIL:MCFOutboundEmail </b></span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
As I have not seen it used frequently I decided to write this post, both for having it always in mind and for letting anyone know about it.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
Here you have a practical way of using it.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="font-size: 12.8000001907349px;">1) We import the Application Class</span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="font-size: 12.8000001907349px;"><span style="color: blue;">import </span><span style="color: #222222;">PT_MCF_MAIL:MCFOutboundEmail ;</span></span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
2) We instantiate an object of this class</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="color: #222222;"> </span><span style="color: blue;">Local </span><span style="color: #222222;">PT_MCF_MAIL:MCFOutboundEmail &eMail = </span><span style="color: blue;">create </span><span style="color: #222222;">PT_MCF_MAIL:MCFOutboundEmail()</span><wbr></wbr><span style="color: #222222;">;</span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
3) We fill all the mail sections in the following way.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="color: #222222;"> &eMail.From = "</span><a href="mailto:mailFrom@servidor.com" target="_blank"><span style="color: red;">mailFrom@server.com</span></a><span style="color: #222222;">" ;</span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="font-size: 12.8000001907349px;"> &eMail.Recipients = "</span><a href="mailto:destino1@servidor.com" style="color: #1155cc; font-size: 12.8000001907349px;" target="_blank">target1@server.com</a><span style="font-size: 12.8000001907349px;"> </span><span style="font-size: 12.8000001907349px;">;</span><a href="mailto:destino1@servidor.com" style="color: #1155cc; font-size: 12.8000001907349px;" target="_blank">target2@server</a><a href="mailto:destino2@servidor.com" style="color: #1155cc; font-size: 12.8000001907349px;" target="_blank">.com</a><span style="font-size: 12.8000001907349px;"> </span><span style="font-size: 12.8000001907349px;">;</span><a href="mailto:destino1@servidor.com" style="color: #1155cc; font-size: 12.8000001907349px;" target="_blank">target3@server</a><a href="mailto:destino3@servidor.com" style="color: #1155cc; font-size: 12.8000001907349px;" target="_blank">.com</a><span style="font-size: 12.8000001907349px;">" ;</span></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="font-size: 12.8000001907349px;"><span style="color: #222222;"> &eMail.Subject = "</span><span style="color: red;">This is the subject of the mail</span><span style="color: #222222;">";</span></span></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="font-size: 12.8000001907349px;"><span style="color: #222222;"> &eMail.Text = "</span><span style="color: red;">This is the content of the mail</span><span style="color: #222222;">";</span></span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
4) In case we need to attach any file, we have the <span class="keyword langref_kwd" id="AddAttachment-071309__pt00688b5" style="color: #880000; font-family: 'Courier New', Courier; font-size: 10pt; font-style: inherit; font-weight: bold; white-space: pre-wrap;">AddAttachment </span><span style="font-size: 12.8000001907349px;">method</span><span style="font-size: 12.8000001907349px;"> </span></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<pre class="pre synblock" id="AddAttachment-071309__pt00688b4" style="color: #880000; font-family: 'Courier New', Courier; font-size: 10pt; margin-bottom: 7.2pt; margin-top: 7.2pt; max-width: 90%; padding-left: 10px; white-space: pre-wrap;"><span style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; white-space: normal;">And an easy way of using it coudl be:</span></pre>
<pre class="pre synblock" id="AddAttachment-071309__pt00688b4" style="font-family: 'Courier New', Courier; font-size: 10pt; margin-bottom: 7.2pt; margin-top: 7.2pt; max-width: 90%; padding-left: 10px; white-space: pre-wrap;"><span style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"> &eMail.AddAttachment( &AttachmentPath+ &AttachmentNameWithExtension , </span><span style="color: blue; font-family: arial, sans-serif; font-size: 12.8000001907349px;">%FilePath_Absolute | %FilePath_Relative</span><span style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">, &</span><span style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">AttachmentNameWithExtension</span><span style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">, </span><wbr style="font-family: arial, sans-serif; font-size: 12.8000001907349px;"></wbr><span style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">"</span><span style="color: red; font-family: arial, sans-serif; font-size: 12.8000001907349px;">Attachment Description"</span><span style="font-family: arial, sans-serif; font-size: 12.8000001907349px;"> ,<span style="color: red;"> ""</span>, </span><span style="color: red; font-family: arial, sans-serif; font-size: 12.8000001907349px;">""</span><span style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">);</span></pre>
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
5) As Send method has a return value, we have 2 possibly ways of sending the mail.</div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<ul>
<li><span style="font-size: 12.8000001907349px;"><span style="color: blue;">If </span></span><span style="color: #222222; font-size: 12.8000001907349px;">&eMail.Send() = </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif; font-size: 12px;">%ObEmail_Delivered </span><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><span style="color: blue;">then</span></span></li>
<li><span style="font-size: 12.8000001907349px;"><span style="color: blue;">Local integer</span><span style="color: #222222;"> &i_ret = &eMail.Send();</span></span></li>
</ul>
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
If method returns a "1" value, everything works as expected. Otherwise, we should check it!</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<div class="body pstopicbody" id="pt0068a41" style="color: black; font-family: 'Times New Roman'; font-size: medium; margin: 0px 10px 0px 0px; width: 1032.421875px;">
<div class="section" id="Send-071302__pt0068a59">
<div class="tablenoborder">
<table class="table" id="Send-071302__pt0068a5c" style="border-collapse: collapse; border: 1px solid rgb(209, 209, 209); margin-bottom: 20px; margin-left: 10px; margin-top: 20px; max-width: 100%;" summary="Status of the e-mail sent "><thead align="left" class="thead">
<tr class="row" id="Send-071302__pt0068a63" style="background-color: #ecf1f4; border-collapse: collapse; border: 1px solid rgb(209, 209, 209);"><th class="entry" id="d2426979e1132" scope="col" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a65" style="color: #343434; font-family: Arial, Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
Numeric Value</div>
</th><th class="entry" id="d2426979e1138" scope="col" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a67" style="color: #343434; font-family: Arial, Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
Constant Value</div>
</th><th class="entry" id="d2426979e1144" scope="col" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a69" style="color: #343434; font-family: Arial, Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
Description</div>
</th></tr>
</thead><tbody class="tbody">
<tr class="row" id="Send-071302__pt0068a6b" style="border-collapse: collapse; border: 1px solid rgb(209, 209, 209);"><td class="entry" headers="d2426979e1132 " scope="row" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a6d" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
0</div>
</td><td class="entry" headers="d2426979e1138 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a6f" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
%ObEmail_ FailedBeforeSending</div>
</td><td class="entry" headers="d2426979e1144 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a71" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
Email failed before being sent.</div>
</td></tr>
<tr class="row" id="Send-071302__pt0068a72" style="border-collapse: collapse; border: 1px solid rgb(209, 209, 209);"><td class="entry" headers="d2426979e1132 " scope="row" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a74" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
1</div>
</td><td class="entry" headers="d2426979e1138 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a76" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
%ObEmail_Delivered</div>
</td><td class="entry" headers="d2426979e1144 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a78" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
Email was delivered.</div>
</td></tr>
<tr class="row" id="Send-071302__pt0068a79" style="border-collapse: collapse; border: 1px solid rgb(209, 209, 209);"><td class="entry" headers="d2426979e1132 " scope="row" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a7b" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
2</div>
</td><td class="entry" headers="d2426979e1138 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a7d" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
%ObEmail_NotDelivered</div>
</td><td class="entry" headers="d2426979e1144 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a7f" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
Email delivery not attempted.</div>
</td></tr>
<tr class="row" id="Send-071302__pt0068a80" style="border-collapse: collapse; border: 1px solid rgb(209, 209, 209);"><td class="entry" headers="d2426979e1132 " scope="row" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a82" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
3</div>
</td><td class="entry" headers="d2426979e1138 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a84" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
%ObEmail_PartiallyDelivered</div>
</td><td class="entry" headers="d2426979e1144 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a86" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
Email has only been partially delivered. Only some<br />
of the addresses in the list of addresses were delivered to.</div>
</td></tr>
<tr class="row" id="Send-071302__pt0068a87" style="border-collapse: collapse; border: 1px solid rgb(209, 209, 209);"><td class="entry" headers="d2426979e1132 " scope="row" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a89" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
-1</div>
</td><td class="entry" headers="d2426979e1138 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a8b" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
%ObEmail_ SentButResultUnknown</div>
</td><td class="entry" headers="d2426979e1144 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a8d" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
Email was sent but whether it was successful or not is not known.</div>
</td></tr>
</tbody></table>
</div>
</div>
</div>
<div class="related-links" style="color: black; font-family: 'Times New Roman'; font-size: medium;">
<div class="relinfo" style="margin-left: 0px; margin-top: 15px;">
<strong style="color: #ab5b1a; display: block; font-family: Arial, Helvetica, sans-serif; font-size: 10pt; margin-bottom: 7.2pt; margin-left: 10px; margin-top: 7.2pt;"><br /></strong></div>
</div>
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<div style="font-size: 12.8000001907349px;">
For further details, we can just check PeopleBooks at the following link:</div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium;">
<span style="color: blue; font-family: arial, sans-serif;"><span style="font-size: 12.8000001907349px;">http://docs.oracle.com/cd/E41633_01/pt853pbh1/eng/pt/tpcr/task_MCFOutboundEmailClass-f451c6.html</span></span></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;"><br /></span></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;">I hope this blog could be so useful to you as it is to me.</span><br />
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;"><br /></span></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium;">
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;">Regards.</span><br />
<span style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;">Facundo Salerno.</span></div>
</div>
Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com5tag:blogger.com,1999:blog-3978783883969554220.post-4737605808678064042015-03-07T11:28:00.003-08:002015-03-07T11:28:24.638-08:00Mandar mails desde PeopleSoft -> Chau SendMail()<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
Hola!</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
A partir de las tools 8.52 la función SendMail() ha sido considerada obsoleta, y fue reemplazada por una herramienta mas potente: La clase <span style="font-size: 12.8000001907349px;"><b>PT_MCF_MAIL:MCFOutboundEmail </b></span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
Como todavía no la encuentro muy utilizada decidí hacer este post, tanto para tenerlo siempre presente, como para cualquier curioso que todavía no la conozca.</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
Acá va una forma rápida de usarla:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
1) Importamos la clase:</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="font-size: 12.8000001907349px;"><span style="color: blue;">import </span><span style="color: #222222;">PT_MCF_MAIL:MCFOutboundEmail ;</span></span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
2) Instanciamos un objeto de la misma</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="color: #222222;"> </span><span style="color: blue;">Local </span><span style="color: #222222;">PT_MCF_MAIL:MCFOutboundEmail &eMail = </span><span style="color: blue;">create </span><span style="color: #222222;">PT_MCF_MAIL:MCFOutboundEmail()</span><wbr></wbr><span style="color: #222222;">;</span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
3) Agregamos los datos necesarios de la siguiente manera</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
&eMail.From = "<a href="mailto:mailFrom@servidor.com" style="color: #1155cc;" target="_blank">miCorreo@servidor.com</a>" ;</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="font-size: 12.8000001907349px;"> &eMail.Recipients = "</span><a href="mailto:destino1@servidor.com" style="color: #1155cc; font-size: 12.8000001907349px;" target="_blank">destino1@servidor.com</a><span style="font-size: 12.8000001907349px;"> </span><span style="font-size: 12.8000001907349px;">;</span><a href="mailto:destino2@servidor.com" style="color: #1155cc; font-size: 12.8000001907349px;" target="_blank">destino2@servidor.com</a><span style="font-size: 12.8000001907349px;"> </span><span style="font-size: 12.8000001907349px;">;</span><a href="mailto:destino3@servidor.com" style="color: #1155cc; font-size: 12.8000001907349px;" target="_blank">destino3@servidor.com</a><span style="font-size: 12.8000001907349px;">" ;</span></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="font-size: 12.8000001907349px;"><span style="color: #222222;"> &eMail.Subject = </span><span style="color: red;">"Este es el asunto del mail"</span><span style="color: #222222;">;</span></span></div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="font-size: 12.8000001907349px;"><span style="color: #222222;"> &eMail.Text = </span><span style="color: red;">"Este sería el texto del cuerpo del mail"</span><span style="color: #222222;">;</span></span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
4) Si precisamos agregar adjuntos, tenemos el método <span class="keyword langref_kwd" id="AddAttachment-071309__pt00688b5" style="color: #880000; font-family: 'Courier New', Courier; font-size: 10pt; font-style: inherit; font-weight: bold; white-space: pre-wrap;">AddAttachment</span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<pre class="pre synblock" id="AddAttachment-071309__pt00688b4" style="color: #880000; font-family: 'Courier New', Courier; font-size: 10pt; margin-bottom: 7.2pt; margin-top: 7.2pt; max-width: 90%; padding-left: 10px; white-space: pre-wrap;"><span style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; white-space: normal;">Y una breve forma de usarlo sería</span></pre>
</div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="color: #222222;"> &eMail.AddAttachment( &rutaAdjunto + &<wbr></wbr>nombreAdjuntoConExtension , </span><span style="color: blue;">%FilePath_Absolute | %FilePath_Relative</span><span style="color: #222222;">, &n</span><span style="color: #222222;">ombreAdjuntoConExtension,</span><span style="color: red;"> <wbr></wbr>"Descripción del Adjunto" </span>,<span style="color: red;"> ""</span>,<span style="color: red;"> ""</span><span style="color: #222222;">);</span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
5) Enviamos el mail, como nos devuelve un valor de retorno tenemos dos formas de hacerlo.</div>
<div style="background-color: white; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<ul>
<li><span style="font-size: 12.8000001907349px;"><span style="color: blue;">If </span></span><span style="color: #222222; font-size: 12.8000001907349px;">&eMail.Send() = </span><span style="color: blue; font-family: Arial, Helvetica, sans-serif; font-size: 12px;">%ObEmail_Delivered </span><span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px;"><span style="color: blue;">then</span></span></li>
<li><span style="font-size: 12.8000001907349px;"><span style="color: blue;">Local integer</span><span style="color: #222222;"> &i_ret = &eMail.Send();</span></span></li>
</ul>
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
Si el retorno del método es 1, salió todo bárbaro... sino... a revisar!</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<br /></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<table class="table" id="Send-071302__pt0068a5c" style="border-collapse: collapse; border: 1px solid rgb(209, 209, 209); color: black; font-family: 'Times New Roman'; margin-bottom: 20px; margin-left: 10px; margin-top: 20px; max-width: 100%;" summary="Status of the e-mail sent "><thead align="left" class="thead">
<tr class="row" id="Send-071302__pt0068a63" style="background-color: #ecf1f4; border-collapse: collapse; border: 1px solid rgb(209, 209, 209);"><th class="entry" id="d2426979e1132" scope="col" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a65" style="color: #343434; font-family: Arial, Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
Número</div>
</th><th class="entry" id="d2426979e1138" scope="col" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a67" style="color: #343434; font-family: Arial, Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
Constante de Retorno</div>
</th><th class="entry" id="d2426979e1144" scope="col" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a69" style="color: #343434; font-family: Arial, Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
Descripción</div>
</th></tr>
</thead><tbody class="tbody">
<tr class="row" id="Send-071302__pt0068a6b" style="border-collapse: collapse; border: 1px solid rgb(209, 209, 209);"><td class="entry" headers="d2426979e1132 " scope="row" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a6d" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
0</div>
</td><td class="entry" headers="d2426979e1138 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a6f" style="font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
<span style="color: blue;">%ObEmail_ FailedBeforeSending</span></div>
</td><td class="entry" headers="d2426979e1144 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a71" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
El correo falló antes de ser enviado</div>
</td></tr>
<tr class="row" id="Send-071302__pt0068a72" style="border-collapse: collapse; border: 1px solid rgb(209, 209, 209);"><td class="entry" headers="d2426979e1132 " scope="row" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a74" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
1</div>
</td><td class="entry" headers="d2426979e1138 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a76" style="font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
<span style="color: blue;">%ObEmail_Delivered</span></div>
</td><td class="entry" headers="d2426979e1144 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a78" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
El correo se envió correctamente</div>
</td></tr>
<tr class="row" id="Send-071302__pt0068a79" style="border-collapse: collapse; border: 1px solid rgb(209, 209, 209);"><td class="entry" headers="d2426979e1132 " scope="row" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a7b" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
2</div>
</td><td class="entry" headers="d2426979e1138 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a7d" style="font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
<span style="color: blue;">%ObEmail_NotDelivered</span></div>
</td><td class="entry" headers="d2426979e1144 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a7f" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
No se pudo entregar el correo.</div>
</td></tr>
<tr class="row" id="Send-071302__pt0068a80" style="border-collapse: collapse; border: 1px solid rgb(209, 209, 209);"><td class="entry" headers="d2426979e1132 " scope="row" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a82" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
3</div>
</td><td class="entry" headers="d2426979e1138 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a84" style="font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
<span style="color: blue;">%ObEmail_PartiallyDelivered</span></div>
</td><td class="entry" headers="d2426979e1144 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a86" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
El correo se entregó pero no a TODOS los destinatarios.</div>
</td></tr>
<tr class="row" id="Send-071302__pt0068a87" style="border-collapse: collapse; border: 1px solid rgb(209, 209, 209);"><td class="entry" headers="d2426979e1132 " scope="row" style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a89" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
-1</div>
</td><td class="entry" headers="d2426979e1138 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a8b" style="font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
<span style="color: blue;">%ObEmail_ SentButResultUnknown</span></div>
</td><td class="entry" headers="d2426979e1144 " style="padding: 4px; vertical-align: top;" valign="top"><div class="p" id="Send-071302__pt0068a8d" style="color: #343434; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; margin: 3px; padding: 1px; word-wrap: break-word;">
Se envió el correo, pero se desconoce si fue entregado.</div>
</td></tr>
</tbody></table>
</div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
Para mas detalles de la clase, pueden simplemente ver los books relacionados al tema en el siguiente link:</div>
<div style="background-color: white;">
<span style="color: blue; font-family: arial, sans-serif;"><span style="font-size: 12.8000001907349px;">http://docs.oracle.com/cd/E41633_01/pt853pbh1/eng/pt/tpcr/task_MCFOutboundEmailClass-f451c6.html</span></span></div>
<div style="background-color: white;">
<span style="color: #222222; font-family: arial, sans-serif;"><span style="font-size: 12.8000001907349px;"><br /></span></span></div>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;">
<span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;">Espero que este simple Paso a Paso les resulte tan útil como a mí.</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;" /><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;" /><span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;">Saludos.</span><br style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;" /><span style="font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.1999998092651px; line-height: 18.4799995422363px;">Facundo Salerno.</span></div>
Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-47393531971336506092015-01-17T13:00:00.003-08:002015-03-07T11:54:24.100-08:00Using JavaScript to print a PeopleSoft PageWhen working with Peoplesoft more than once we need/want to print the page we are working with.<br />
<br />
Unfortunately, until a few time ago, I only knew one way to do that: printing the page throug the web Browser option.<br />
But this method adds the navigation bar and menu to the printing page. I think these things are, at least, unnecesary.<br />
<br />
With some simple steps we will see a new way of printing the page content, and avoid showing those unwanted sectors.<br />
<br />
Let's have a practical example:<br />
<br />
1) We have the Purchase Order page we have seen in the previous blog.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUGUgpvSxceEvSiwXWHFh_Wxe8mFlC7s8vNI0LICBvgSer6H1D64gjU8HluVBEafLZ2Mq6RT2c37GiBJd7MG9RSVA1rsq3E3C3kjLLIRdidZjQeJNArKiePMAi42Gekp7g864Y8IaN58nw/s1600/01.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUGUgpvSxceEvSiwXWHFh_Wxe8mFlC7s8vNI0LICBvgSer6H1D64gjU8HluVBEafLZ2Mq6RT2c37GiBJd7MG9RSVA1rsq3E3C3kjLLIRdidZjQeJNArKiePMAi42Gekp7g864Y8IaN58nw/s1600/01.jpg" height="162" width="400" /></a></div>
<br />
<br />
2) We will add an HTML area, based on a LONG type field.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1aC3pDChVXLyBBV-5TGzOM_z6kEMiNmYhdrQed-CK1hCMjg7JdMgZ-fp4SRoO9W_cRcXoyqYFhyELwFzSf2cPLjLIOwmQKyGFHOsxL9PBBMzValCZ-uMiiQWXHX6O4E4e1eLVKCgpLEnz/s1600/02.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1aC3pDChVXLyBBV-5TGzOM_z6kEMiNmYhdrQed-CK1hCMjg7JdMgZ-fp4SRoO9W_cRcXoyqYFhyELwFzSf2cPLjLIOwmQKyGFHOsxL9PBBMzValCZ-uMiiQWXHX6O4E4e1eLVKCgpLEnz/s1600/02.jpg" height="225" width="320" /></a></div>
<br />
<br />
3) We also add a push button to print the page. In this case, we will change some usual options.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpUFvXU5qR7X5KXrViMSr_oGojxMRkgaI7U1MmSk-1_riI0NWW9FcuupaihyphenhyphenvQ8lV8lh-6j8u6_GgDKCnzxrXiAwhqjJDqJozrdiF56dP9ZnjK14usxfL87HhfK-q9MOSR2bLvpiiUhH61/s1600/03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpUFvXU5qR7X5KXrViMSr_oGojxMRkgaI7U1MmSk-1_riI0NWW9FcuupaihyphenhyphenvQ8lV8lh-6j8u6_GgDKCnzxrXiAwhqjJDqJozrdiF56dP9ZnjK14usxfL87HhfK-q9MOSR2bLvpiiUhH61/s1600/03.jpg" height="180" width="400" /></a></div>
<br />
<br />
This field must have a minimum of 25 characters, since we need to populate it with a string. I have chosen the DESCR field, in stead of a PRINT button field.<br />
<br />
The target must be an External Link since we won't execute a FieldChange event. We are going to run a script in an external page.<br />
<br />
The external link must be set as Dynamic, since we are generating it through PeopleCode.<br />
<br />
We also set a Page Field Name property, in case we want to manipulat it through the HTML code.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLcqY1OGCY0yIdBOwvv-9hTyOYZg7OCu1sgOcgYfZdiFslTAHvy7FoUsRMziXefN2hHQUivf7Cf2iD9bh51RpL3dygUQFkd5JUyJ7gULVWbKY1kYAVnuP0Np_TtNXvXyyr_OZg8TSxfXmy/s1600/04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLcqY1OGCY0yIdBOwvv-9hTyOYZg7OCu1sgOcgYfZdiFslTAHvy7FoUsRMziXefN2hHQUivf7Cf2iD9bh51RpL3dygUQFkd5JUyJ7gULVWbKY1kYAVnuP0Np_TtNXvXyyr_OZg8TSxfXmy/s1600/04.jpg" height="212" width="320" /></a></div>
<br />
<br />
Just to let the page having sense, we change the field label.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKt3hhzJyH766OfasYDnbmNVzsdLN5BmH8CJdTDwFyTyeUWC8vAZsTCnMFGWp8S9yur9VkXFvA1wGM_qhU3kfj3Y9ZJy47nNVFnLsh2pZIrm6FEkfeIOqT5DWJ9BjLUjUcGm88K5UK-WBR/s1600/05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKt3hhzJyH766OfasYDnbmNVzsdLN5BmH8CJdTDwFyTyeUWC8vAZsTCnMFGWp8S9yur9VkXFvA1wGM_qhU3kfj3Y9ZJy47nNVFnLsh2pZIrm6FEkfeIOqT5DWJ9BjLUjUcGm88K5UK-WBR/s1600/05.jpg" height="320" width="279" /></a></div>
<br />
<br />
4) Here we have the final page in the Designer.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgidAi4D8Cup4rtZf1tK0EaV0UYMVANdI4vNKvsUXIptgdnEfkX0hkA_V7MVwH7T3GxtZwJwwf9YGag9QjaoaQkEGYJDq53P6cBlxbc3wQLAjWMCd3_9pYWb7toEGJ5GpzpELHZv9zJyj0R/s1600/06.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgidAi4D8Cup4rtZf1tK0EaV0UYMVANdI4vNKvsUXIptgdnEfkX0hkA_V7MVwH7T3GxtZwJwwf9YGag9QjaoaQkEGYJDq53P6cBlxbc3wQLAjWMCd3_9pYWb7toEGJ5GpzpELHZv9zJyj0R/s1600/06.jpg" height="275" width="400" /></a></div>
<br />
<br />
5) Set up the fields by PeopleCode.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkCpaGdDqrtD2FarcZyhSLQzQMvNPFtOuZAkJHYQCC4qLeYJU-gcGWPGspB1Ct5O3mC_1UJNRrGdRjWRZhhDG_9yorO6XVzhOI90g_zMphFdPOcOAGzTTuFkFIRvE0aycbsEl3kgHowVli/s1600/07.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkCpaGdDqrtD2FarcZyhSLQzQMvNPFtOuZAkJHYQCC4qLeYJU-gcGWPGspB1Ct5O3mC_1UJNRrGdRjWRZhhDG_9yorO6XVzhOI90g_zMphFdPOcOAGzTTuFkFIRvE0aycbsEl3kgHowVli/s1600/07.jpg" height="196" width="640" /></a></div>
<br />
<br />
In the RowInit Event we set the HTMLAREA field as well as the DESCR field.<br />
<br />
The script we must set in the button to be run is "javascript:window.print();"<br />
<br />
On the other side, I will explain HTLMAREA value step by step.<br />
<br />
a) <style type=""text/css""><br />
b) @media print {<br />
c) #PAGEBAR, .PSHEADERTOOLBARFRAME {<br />
d) display: none }<br />
e) }<br />
f) </style><br />
<br />
a) Open a style tag, specifying CSS language will be used.<br />
b) Specify this style will only be used when Printing the document.<br />
c) Choose those HTML elements in the document that will be set up with the properties. In this case #PAGEBAR and .PSHEADERTOOLBARFRAME are the navigation bar and page header used by PeopleSoft pages.<br />
d) Set display property to none, meanning these properties won't be shown in the printing document.<br />
e) Close the "@media" key.<br />
f) Close the "style" tag.<br />
<br />
6) We navigate to the page in PeopleSoft.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrDovp5oymzarPjja3Drq31LcSwF53e85wzfA8GRTpeLw05U9ybWyL-wKKHoLTR7QXRrQRzAP8JfqbkpVVjo_dl5CNu7NnKYAuesBjG3MW2cFJ1CndvjacrJJX0OyHmb2JPz-Wcc86hV27/s1600/08.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrDovp5oymzarPjja3Drq31LcSwF53e85wzfA8GRTpeLw05U9ybWyL-wKKHoLTR7QXRrQRzAP8JfqbkpVVjo_dl5CNu7NnKYAuesBjG3MW2cFJ1CndvjacrJJX0OyHmb2JPz-Wcc86hV27/s1600/08.jpg" height="236" width="400" /></a></div>
<br />
<br />
7) When clicking the print button, the event is executed<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6bVHlNIX5QGWKtiCWt_ubL1sekmcldhvnCsMetATFv7lPpzP-XdaptpYN96xKNGxjkfNo-R_wl8hk4cvOmZ-ABa6I5R96cFf0wOBxCuN6mC94sXveftAB0FqbKPR_DoAU_1ZGgRulxo53/s1600/09.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6bVHlNIX5QGWKtiCWt_ubL1sekmcldhvnCsMetATFv7lPpzP-XdaptpYN96xKNGxjkfNo-R_wl8hk4cvOmZ-ABa6I5R96cFf0wOBxCuN6mC94sXveftAB0FqbKPR_DoAU_1ZGgRulxo53/s1600/09.jpg" height="320" width="313" /></a></div>
<br />
<br />
8) The printed page will be shown as follows:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFf3XS6qT60uANsesj1XtST_uD43lreSXt8qIRGPci1UC4sgERwZkV3o86Xf638SmlrPVg5pHFAarAWQaF0p03_QlNtUOTQK0kmsIpWhMEq5QV9eBFZfb0v4wPbMUpDTKr2ap7XCe6zL1t/s1600/10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFf3XS6qT60uANsesj1XtST_uD43lreSXt8qIRGPci1UC4sgERwZkV3o86Xf638SmlrPVg5pHFAarAWQaF0p03_QlNtUOTQK0kmsIpWhMEq5QV9eBFZfb0v4wPbMUpDTKr2ap7XCe6zL1t/s1600/10.jpg" height="153" width="320" /></a></div>
<br />
<br />
9) In addition to this step by step, we could also hide the "Print" button when printing the page, adding the #PRINT ID to the CSS script, in the RowInit event.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAtpOA5yBqu1U0YvKnCPlc_XFASzIS8eGqGplgwrN4mNOVZYgz8BmCRBUWjpZFVKoXnwfuSRNy277KIPMviGZnoIeurx99kCWvgkXRfpoaRzovqotX7JIoBiCb7oC59vdk8K-x_exmehZG/s1600/11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAtpOA5yBqu1U0YvKnCPlc_XFASzIS8eGqGplgwrN4mNOVZYgz8BmCRBUWjpZFVKoXnwfuSRNy277KIPMviGZnoIeurx99kCWvgkXRfpoaRzovqotX7JIoBiCb7oC59vdk8K-x_exmehZG/s1600/11.jpg" height="129" width="640" /></a></div>
<br />
<br />
If we print it once again, the Print button is not shown anymore.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLsboCXB09-mQ4lPR9RihpIl5OsGxd5VwFuqoSJlp9jxhCpMSMEK4_AlBy-HJ7nuZQqoLT40QY6ljrP_lz2bl3cccVHeoYhZw6BNvJIesn64oXF-7J_vP4DbXdZuJjeGKRmM8LXWwUpOB2/s1600/12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLsboCXB09-mQ4lPR9RihpIl5OsGxd5VwFuqoSJlp9jxhCpMSMEK4_AlBy-HJ7nuZQqoLT40QY6ljrP_lz2bl3cccVHeoYhZw6BNvJIesn64oXF-7J_vP4DbXdZuJjeGKRmM8LXWwUpOB2/s1600/12.jpg" height="228" width="400" /></a></div>
<br />
<br />
I hope this blog could be so useful to you as it is to me.<br />
Regards.<br />
Facundo Salerno.<br />
<div>
<br /></div>
Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-11693610398562273202015-01-17T11:36:00.000-08:002015-03-07T11:54:40.898-08:00Usar JavaScript para imprimir una página <br />
A la hora de usar PeopleSoft mas de una vez necesitamos/queremos imprimir la página en la que estamos trabajando.<br />
<br />
Lamentablemente, a la hora de hacerlo, la única forma conocida por mi (hasta hace poco tiempo) es imprimir la página desde el navegador.<br />
Pero a la hora de hacerlo nos incluye en la impresión el menú lateral y/o superior.<br />
Esto puede ser molesto, o al menos innecesario.<br />
<br />
Con unos simples pasos, veremos la forma de imprimir el contenido de una página, sin mostrar esos sectores indeseados.<br />
<br />
Veamos un ejemplo práctico:<br />
<br />
1) Tenemos la página de pedidos que hemos usado en el ejemplo anterior:<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitwY26nH89TWyxWH-mSlaf0RdlB-u3HWTowR_8RjZNT13tsy096DtGdfJGCkkm3Hy0s92XXj2ddI6FR1JdagHI3LaGzdRvTyetV5nDhmRABj3158MSv4LjVTOA_szhiMFb1MmnsQNOMMxc/s1600/Pagina+Inicial.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitwY26nH89TWyxWH-mSlaf0RdlB-u3HWTowR_8RjZNT13tsy096DtGdfJGCkkm3Hy0s92XXj2ddI6FR1JdagHI3LaGzdRvTyetV5nDhmRABj3158MSv4LjVTOA_szhiMFb1MmnsQNOMMxc/s1600/Pagina+Inicial.jpg" height="177" width="400" /></a><br />
<br />
2) Vamos a agregar un área HTML, asignándole un campo LONG<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWtu8NUbQo7xgBKtODZo_XVTPE5C9WeUtsq8xXB3h7l6SUDIDhNitrhrqj1UrgOd_WsuVQ-Ge_1WcG_jikJ16qN2TvVdQo80H2jNyLG6gFJQYIgpJdSFBF4qjLikquha0LtXL6b69hsN-o/s1600/04+HTML.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWtu8NUbQo7xgBKtODZo_XVTPE5C9WeUtsq8xXB3h7l6SUDIDhNitrhrqj1UrgOd_WsuVQ-Ge_1WcG_jikJ16qN2TvVdQo80H2jNyLG6gFJQYIgpJdSFBF4qjLikquha0LtXL6b69hsN-o/s1600/04+HTML.jpg" height="225" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
3) Agregamos un botón para imprimir la página con ciertas especificaciones distintas a las usuales:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieaF-8EpnEUi_oCqNCmQtwL37xJQsQoDQgw3gOyrqQbSu9H4eYLKsA_WJlT12-TYmcux_Ef_q8rTOdj4YIVW0My_kU1WLo5Ezz3KT_bxEWChQOnIzEXPCV4HGmvM1zfRAr-tGL-7U8qT4v/s1600/02+Boton.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieaF-8EpnEUi_oCqNCmQtwL37xJQsQoDQgw3gOyrqQbSu9H4eYLKsA_WJlT12-TYmcux_Ef_q8rTOdj4YIVW0My_kU1WLo5Ezz3KT_bxEWChQOnIzEXPCV4HGmvM1zfRAr-tGL-7U8qT4v/s1600/02+Boton.jpg" height="180" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
El campo tiene que tener un mínimo de 25 caracteres de largo, por lo cual uso el campo DESCR, en lugar de un campo de botón común.</div>
<div class="separator" style="clear: both; text-align: left;">
El destino va a ser un link Externo, porque no se trata de un evento FieldChange, sino que queremos ejecutar un script en una página ventana a la nuestra.</div>
<div class="separator" style="clear: both; text-align: left;">
El link va a ser dinámico, ya que lo generaremos por PCode.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Además, le damosun nombre a nivel de página al campo, por si queremos encontrarlo" y utilizarlo desde el HTML.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjObgxf0InspxcMNXPPtaoj9GI0w2YAFLykhCD0eIiUZ7_d8-CYU2MKqHN6zFsasSm4UN2omVKofx3ZvQNGZItRlZA04mvLCw-AsxK43MPTyKrYBssslbtGdiLlSI5e1-hm33Y_-X3_XFRs/s1600/03+Bt%C3%B3n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjObgxf0InspxcMNXPPtaoj9GI0w2YAFLykhCD0eIiUZ7_d8-CYU2MKqHN6zFsasSm4UN2omVKofx3ZvQNGZItRlZA04mvLCw-AsxK43MPTyKrYBssslbtGdiLlSI5e1-hm33Y_-X3_XFRs/s1600/03+Bt%C3%B3n.jpg" height="220" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Para darle sentido a la página le cambiamos la etiqueta al campo.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGb5rV616olJ57mvaZU1S1rGaBPDCjQ-H-1F-rHizm7jhX7bQM0sC9V-3TRzpWZolDt9q5bz3eN1RVvlW9-lZfH4f5X6Co76GdzsWhfJf3tZT_qi4WlSwuJv6RyYrCn_wikXKlKfzRD4xS/s1600/03+Bot%C3%B3n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGb5rV616olJ57mvaZU1S1rGaBPDCjQ-H-1F-rHizm7jhX7bQM0sC9V-3TRzpWZolDt9q5bz3eN1RVvlW9-lZfH4f5X6Co76GdzsWhfJf3tZT_qi4WlSwuJv6RyYrCn_wikXKlKfzRD4xS/s1600/03+Bot%C3%B3n.jpg" height="320" width="277" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
4) La página nos quedaría de la siguiente forma:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgglBakMWnQRrthHQrcXWgB_dnhoQ0RlFzgAzAly37qJ9cD5eT056Psvotf0tEH3qV_GVoLgjSED5YnyJMoqnJ-FdS2FGIv7jrE26BWVuspxPUwaE4UK261DIhWDmkE-uZgJXvsKyMsj5os/s1600/05+P%C3%A1gina+Final.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgglBakMWnQRrthHQrcXWgB_dnhoQ0RlFzgAzAly37qJ9cD5eT056Psvotf0tEH3qV_GVoLgjSED5YnyJMoqnJ-FdS2FGIv7jrE26BWVuspxPUwaE4UK261DIhWDmkE-uZgJXvsKyMsj5os/s1600/05+P%C3%A1gina+Final.jpg" height="291" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
5) Cargamos el script en el campo HTMLAREA:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-BmiwLa7hMKG4lBVyzp38LoEaOBhwhM3g4nNPd_1T8AC9A0VZKfxtl2P-ATDQh673glJajtJNlaJOBmHinr1JS2ZW25p7YHjG-E4eMG7KLRijEbiFWwzSP1PRUfCVhbjcR8p_9lvjAt_o/s1600/06+Rowinit.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-BmiwLa7hMKG4lBVyzp38LoEaOBhwhM3g4nNPd_1T8AC9A0VZKfxtl2P-ATDQh673glJajtJNlaJOBmHinr1JS2ZW25p7YHjG-E4eMG7KLRijEbiFWwzSP1PRUfCVhbjcR8p_9lvjAt_o/s1600/06+Rowinit.jpg" height="195" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
En este evento cargamos tanto el valor del HTMLAREA, como el valor del botón.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
El botón lleva el script a ejecutar: javascript:window.print();</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
En cambio, el contenido del HTML será entonces línea por línea: </div>
<div class="separator" style="clear: both; text-align: left;">
a) <style type=""text/css""> </div>
<div class="separator" style="clear: both; text-align: left;">
b) @media print { </div>
<div class="separator" style="clear: both; text-align: left;">
c) #PAGEBAR, .PSHEADERTOOLBARFRAME { </div>
<div class="separator" style="clear: both; text-align: left;">
d) display: none }</div>
<div class="separator" style="clear: both; text-align: left;">
e) }</div>
<div class="separator" style="clear: both; text-align: left;">
f) </style></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
a) Abro el tag de estilos, indicando que usaré CSS<br />
b) Especifico para que tipo de salida es el estilo, aclarando que es solo a la hora de imprimir.<br />
c) Elijo que elementos del HTML usarán la propiedad siguiente, en este caso #PAGEBAR y .PSHEADERTOOLBARFRAME son la barra de navegación y el encabezado propio de las páginas de PeopleSoft.<br />
d) le pido que la propiedad display tenga un estado "none", es decir, no se mostrarán y cierro la llave de la propiedad<br />
e) cierro la llave del tipo de salida.<br />
f) cierro el tag de estilo.<br />
<br />
<br />
6) Entramos a la página desde el sistema:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizLxHNCdzuKAQ-CZICr3xjMRqyC8kC5U24_kBJquerROpwROEGgl757C0x7YZlulSSBR4wqWnw0MZBtE5YbBWkq2BK4sQtsGs_9CPQzlAlRa55XKmt3HYbBFoDtbgxOoWDiVh1d1VkJI1D/s1600/07+Pagina+Sistema.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizLxHNCdzuKAQ-CZICr3xjMRqyC8kC5U24_kBJquerROpwROEGgl757C0x7YZlulSSBR4wqWnw0MZBtE5YbBWkq2BK4sQtsGs_9CPQzlAlRa55XKmt3HYbBFoDtbgxOoWDiVh1d1VkJI1D/s1600/07+Pagina+Sistema.jpg" height="203" width="400" /></a></div>
<br />
7) Al darle clic al botón, se ejecuta el evento ingresado:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVdah3wDE9tfG_ei0k2-ZvJjXv9KnBFEYmrLjAHPJuG-egoa8vju7juAod5C5PT7zn8J_RWRGoFdKXNs5DyUdshbZoUgen9dmEhFzBkR-MSO5Rtk43MVB73ZFfbmIU-9-6pXQIF-gliBPv/s1600/09+Boton.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVdah3wDE9tfG_ei0k2-ZvJjXv9KnBFEYmrLjAHPJuG-egoa8vju7juAod5C5PT7zn8J_RWRGoFdKXNs5DyUdshbZoUgen9dmEhFzBkR-MSO5Rtk43MVB73ZFfbmIU-9-6pXQIF-gliBPv/s1600/09+Boton.jpg" height="320" width="292" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
8) Y la impresión resultante, queda de la siguiente manera:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC7s2CaKrETjePf1rl6-WBozCnZukDpzXUzD3HJxJ-vHggXYYwQDEOZFF0lU8MWxU6t4lHzvGx9Hemr2hhLTidOMAy1JOhz-6wpOeRR_Ctli62omEuqt-9XFKRhNEM2OBcWSpET-IOsKXw/s1600/10+impresion.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC7s2CaKrETjePf1rl6-WBozCnZukDpzXUzD3HJxJ-vHggXYYwQDEOZFF0lU8MWxU6t4lHzvGx9Hemr2hhLTidOMAy1JOhz-6wpOeRR_Ctli62omEuqt-9XFKRhNEM2OBcWSpET-IOsKXw/s1600/10+impresion.jpg" height="172" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
9) Por último, podríamos también ocultar el botón "Imprimir" agregándolo a las propiedades del CSS.<br />
Para hacerlo entonces, basta agregar la propiedad en el RowInit:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEb7ZzSjqmTAXj9qs5m0MUUgexBbpa-ppSmqIDOxSbHRuc0im8NAmXi-TIQVEiNTBm_L5MoXuTX_euFscduIVYADjKq-wAjN2hSnk6U1sYDGw8huyXOhGIXK_M8sOaDyxaxU4kgcPF4yN6/s1600/11+Rowinit2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEb7ZzSjqmTAXj9qs5m0MUUgexBbpa-ppSmqIDOxSbHRuc0im8NAmXi-TIQVEiNTBm_L5MoXuTX_euFscduIVYADjKq-wAjN2hSnk6U1sYDGw8huyXOhGIXK_M8sOaDyxaxU4kgcPF4yN6/s1600/11+Rowinit2.jpg" height="153" width="640" /></a></div>
<br />
Le anteponemos el # porque así es como se indica el ID del Campo en el CSS.<br />
<br />
Si ahora volvemos a imprimir, el campo ya no aparece en la impresión.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHs-q6aB4vRq44d6YBKnFAj29h8py4OFUP-yHLmD-lXGiq6-xBd_OdYvPb1vXCen3RZSI-WTLxSUkU_As_0shw-py6RnjF-A-FSCbuyaR5ZkV_T2UQv0FiKKdIT0jadXUSO7Y9neYF29ly/s1600/12+Impresion+2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHs-q6aB4vRq44d6YBKnFAj29h8py4OFUP-yHLmD-lXGiq6-xBd_OdYvPb1vXCen3RZSI-WTLxSUkU_As_0shw-py6RnjF-A-FSCbuyaR5ZkV_T2UQv0FiKKdIT0jadXUSO7Y9neYF29ly/s1600/12+Impresion+2.jpg" height="167" width="400" /></a></div>
<br />
<br />
Espero que este simple Paso a Paso les resulte tan útil como a mí.<br />
<br />
Saludos.<br />
Facundo Salerno.<br />
<br />
<br />Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-80015577936125639272015-01-04T09:27:00.002-08:002015-03-07T11:55:17.430-08:00Add a JAVA applet in a PeopleSoft Page<br />
A JAVA applet is a set of related classes and compiled into a ".jar" file. This file is able to be run through an HTML object.<br />
<br />
In PeopleSoft we cun add these programs in our pages through some easy steps.<br />
<br />
Let's see an example:<br />
For instance, we have a page where we can see a purchase order's lines. We want to show a calculator in case any user wants to make some calculations based on the numbers in the page.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAy6coCFlfdETpCsWmAT4xhIfYxvr5qbF2DZyv9g7SqODn0byV7wmoXzPgInplOAgGO16lXV2HS0d2exLcsVBV0QjaP9gjd0L4jNLUsw0BZDeN7UMrvhVdo7IJ6p-3Hq_kW9ywX9v8XwaO/s1600/calc.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAy6coCFlfdETpCsWmAT4xhIfYxvr5qbF2DZyv9g7SqODn0byV7wmoXzPgInplOAgGO16lXV2HS0d2exLcsVBV0QjaP9gjd0L4jNLUsw0BZDeN7UMrvhVdo7IJ6p-3Hq_kW9ywX9v8XwaO/s1600/calc.jpg" /></a></div>
<br />
1) Place the ".jar" applet file in a public folder of the Web Server. We need this folder to be public since users must have access to the file.<br />
For instance, we can place the file in the folder were the "Signon.html" file is placed.<br />
Generally the path is:<br />
//server/PS_HOME/WEBSERVER/BASE/application/peoplesoft/PORTAL/portalName<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggZM3JTLgTlgXzeC2vKepURxPHsncPRaOAVoYp8r9aFizUxUn4Mf-TXwsgrXj1xdM10GtGf1_argXuMQRhLRXplR1Y_KF6unMYwGJav8_A05Fr66_UjNBljJvhV2PXGmtJ2siWjKIUQQCR/s1600/webserver.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggZM3JTLgTlgXzeC2vKepURxPHsncPRaOAVoYp8r9aFizUxUn4Mf-TXwsgrXj1xdM10GtGf1_argXuMQRhLRXplR1Y_KF6unMYwGJav8_A05Fr66_UjNBljJvhV2PXGmtJ2siWjKIUQQCR/s1600/webserver.jpg" /></a></div>
<br />
<br />
2) Add a HTMLAREA field in the page where we want to show the Embedded Calculator.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGFNH6T0JR8AbdlWR-e4j4TBqWwhyphenhyphenQnrmcK2frCvNuRI7YDxU3ZnsHx8Ftxsl6LHxJQQbE7mRWc9HFKMXjxDWYWorXNffMNKK0cGNxE0R4hZg5ClIzh3u5j8wDDauHDHCQKu8ry-Yt5jNh/s1600/pagina+Designer.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGFNH6T0JR8AbdlWR-e4j4TBqWwhyphenhyphenQnrmcK2frCvNuRI7YDxU3ZnsHx8Ftxsl6LHxJQQbE7mRWc9HFKMXjxDWYWorXNffMNKK0cGNxE0R4hZg5ClIzh3u5j8wDDauHDHCQKu8ry-Yt5jNh/s1600/pagina+Designer.jpg" height="356" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYl-xTMBVwkP5lgOB1BxYlYe7cSKCC_I3_PtQLV9W3k_GMH-tsGrSDPBEA6QIX6-M9phMbZNwgBtpIGUlfr7qGYTWCckc7nL-RhqiOICKQ1wlHC6_EigbEIVpjKbg5TlGA9uWkVYSafFVo/s1600/pagina+Designer+2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYl-xTMBVwkP5lgOB1BxYlYe7cSKCC_I3_PtQLV9W3k_GMH-tsGrSDPBEA6QIX6-M9phMbZNwgBtpIGUlfr7qGYTWCckc7nL-RhqiOICKQ1wlHC6_EigbEIVpjKbg5TlGA9uWkVYSafFVo/s1600/pagina+Designer+2.jpg" height="320" width="285" /></a></div>
<br />
<br />
3) Create an HTML object. It will be used to populate the area in the page.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5a9-jqLzE1wmrzux3wR7_wwtVwMl-lBOvO6JGHuKgiu6wLSOgiRq80FT_G1KNMzMStV0C9Wp1ESj4W7_WaawPbu-JZL97uM_PK8uToWYa-E3i8unvPbprRG96lDClBv9-Y92YR64FtQzB/s1600/html2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5a9-jqLzE1wmrzux3wR7_wwtVwMl-lBOvO6JGHuKgiu6wLSOgiRq80FT_G1KNMzMStV0C9Wp1ESj4W7_WaawPbu-JZL97uM_PK8uToWYa-E3i8unvPbprRG96lDClBv9-Y92YR64FtQzB/s1600/html2.jpg" /></a></div>
<br />
<br />
We are interested on the following parameters of this file:<br />
NAME:Applet's name.<br />
CODE: Path and name of the applet's main class.<br />
ARCHIVE: Name and extension of the JAR file we left in the WebServer.<br />
WIDTH: of the applet (pixels)<br />
HEIGHT: of the applet (pixels)<br />
CODEBASE: Here we should detail the path where the file is placed. Since we left it in the same folder as the singon.html file we only need to set the dot character "." as a parameter. With this reference we tell the system the file is in the same path.<br />
<br />
Then we use the "document.write()" method to write the applet in the HMTL.<br />
<br />
Note: Line breaks were only added to be shown in the explanation of the parameters. In the HTML object the applet must be written in the same line, so the final quote is recognized and the string is closed.<br />
<br />
<br />
4) Populate the HTMLAREA field in the Activate event of the Page.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRTR7evVbPldrWrto1ZPOQhgd38gCOIVBfkt60D5wGx2JObXutL509gIHALMsI94YIZfMSvhyphenhyphenlnuvVNC5LwS8Ty9ztylCYtZjckB5mBdQRUllTrGRpU14zvndt9e6q3p81fh1_XL2AfBhs/s1600/Activate.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRTR7evVbPldrWrto1ZPOQhgd38gCOIVBfkt60D5wGx2JObXutL509gIHALMsI94YIZfMSvhyphenhyphenlnuvVNC5LwS8Ty9ztylCYtZjckB5mBdQRUllTrGRpU14zvndt9e6q3p81fh1_XL2AfBhs/s1600/Activate.jpg" /></a></div>
<br />
<br />
5) Finally, the result is as follows:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDsAkLiVEvlN2pFErQ1VwauuP6BEGwMmhzjIpYjqtfjivoDwx3afJz3yNfF4GDBU4J34b1e-g47as-G_aJfkOJndsdypXXZSfhSm6po8zR79A1y14o1lb9BTP4vumi0WtxQT9w2nYD61cq/s1600/Final.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDsAkLiVEvlN2pFErQ1VwauuP6BEGwMmhzjIpYjqtfjivoDwx3afJz3yNfF4GDBU4J34b1e-g47as-G_aJfkOJndsdypXXZSfhSm6po8zR79A1y14o1lb9BTP4vumi0WtxQT9w2nYD61cq/s1600/Final.jpg" height="418" width="640" /></a></div>
<br />
<br />
I hope this blog could be so useful to you as it is to me.<br />
Regards.<br />
Facundo Salerno.Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-22919670302797692192015-01-04T08:48:00.002-08:002015-03-07T11:55:27.929-08:00Agregar un applet de JAVA en una página PeopleSoft<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Un applet de JAVA es un conjunto de clases relacionadas y compiladas en un archivo con extensión ".jar" que se puede ejecutar desde un HTML. </div>
<div class="MsoNormal">
En PeopleSoft podemos usar estos programas desde nuestras páginas, mediante unos simples pasos.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Vamos a verlo en un Ejemplo Práctico. </div>
<div class="MsoNormal">
Por ejemplo, tenemos una página donde se muestran las líneas de un pedido, y queremos insertar una calculadora para que el usuario pueda hacer cuentas en base a los números en pantalla.<br />
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0um9JeZYmvN0lEuhbMuMy53hO8WysxfUoFin5BzGC638IBDahRRnvudqALlzzTyPsRXaoyRzhYwk2wawYcW_W7oFo-vIa-kB5GoG1-tp_znuVS5dOCxCzuRC-PL-0SmE0YhC9meXO8-TX/s1600/calc.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0um9JeZYmvN0lEuhbMuMy53hO8WysxfUoFin5BzGC638IBDahRRnvudqALlzzTyPsRXaoyRzhYwk2wawYcW_W7oFo-vIa-kB5GoG1-tp_znuVS5dOCxCzuRC-PL-0SmE0YhC9meXO8-TX/s1600/calc.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Los pasos serían:</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
1) Ubicar el archivo .jar del applet en una carpeta del servidor Web que tenga acceso público. Esto es porque los distintos navegadores de los usuarios van a tener que poder acceder a dicho archivo.</div>
<div class="MsoNormal">
Por ejemplo podemos dejarlos en el directorio del WebServer donde se encuentra el archivo signon.html </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Generalmente la ruta es: //servidor/PS_HOME/WEBSERVER/BASE/application/peoplesoft/PORTAL/nombrePortal</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Ejemplo:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-TAQvsRSF4axBelmIRo57Mil6UR7ggvOQ9TTgUwqcrq0-m3noSK9tmeiVOloUxRBSWQa8zmw4aMS5IL_79FaexdRJQoh9Zud-RlMiXXSdRPzUW4_xz0R9nDG51ikogW8o2aZctECN_0IB/s1600/webserver.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-TAQvsRSF4axBelmIRo57Mil6UR7ggvOQ9TTgUwqcrq0-m3noSK9tmeiVOloUxRBSWQa8zmw4aMS5IL_79FaexdRJQoh9Zud-RlMiXXSdRPzUW4_xz0R9nDG51ikogW8o2aZctECN_0IB/s1600/webserver.jpg" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
2) Agregar un área HTML en la página donde queremos visualizar el applet.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvKPRGXEDZq8gP1X3gTCEWMygtA0Kl3T0MRVVtJFnbjXm_pMmnGtJjZ2JJSGxS9poOtSkSkNSr3aOBa4U4x4aQQJJXW7WwyuTMnPaCbVyZeazj3QsslxJT_S9y2Ln0Y4Kr-HozaxGtORen/s1600/pagina+Designer.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvKPRGXEDZq8gP1X3gTCEWMygtA0Kl3T0MRVVtJFnbjXm_pMmnGtJjZ2JJSGxS9poOtSkSkNSr3aOBa4U4x4aQQJJXW7WwyuTMnPaCbVyZeazj3QsslxJT_S9y2Ln0Y4Kr-HozaxGtORen/s1600/pagina+Designer.jpg" height="276" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYl-xTMBVwkP5lgOB1BxYlYe7cSKCC_I3_PtQLV9W3k_GMH-tsGrSDPBEA6QIX6-M9phMbZNwgBtpIGUlfr7qGYTWCckc7nL-RhqiOICKQ1wlHC6_EigbEIVpjKbg5TlGA9uWkVYSafFVo/s1600/pagina+Designer+2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYl-xTMBVwkP5lgOB1BxYlYe7cSKCC_I3_PtQLV9W3k_GMH-tsGrSDPBEA6QIX6-M9phMbZNwgBtpIGUlfr7qGYTWCckc7nL-RhqiOICKQ1wlHC6_EigbEIVpjKbg5TlGA9uWkVYSafFVo/s1600/pagina+Designer+2.jpg" height="320" width="285" /></a></div>
<br />
<br />
3) Crear un objeto HTML, que será el que se mostrará en la página.</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="MsoNormal">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5a9-jqLzE1wmrzux3wR7_wwtVwMl-lBOvO6JGHuKgiu6wLSOgiRq80FT_G1KNMzMStV0C9Wp1ESj4W7_WaawPbu-JZL97uM_PK8uToWYa-E3i8unvPbprRG96lDClBv9-Y92YR64FtQzB/s1600/html2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5a9-jqLzE1wmrzux3wR7_wwtVwMl-lBOvO6JGHuKgiu6wLSOgiRq80FT_G1KNMzMStV0C9Wp1ESj4W7_WaawPbu-JZL97uM_PK8uToWYa-E3i8unvPbprRG96lDClBv9-Y92YR64FtQzB/s1600/html2.jpg" /></a></div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
De este archivo nos interesan los siguientes parámetros:</div>
<div class="separator" style="clear: both; text-align: left;">
NAME: Nombre para el Applet.</div>
<div class="separator" style="clear: both; text-align: left;">
CODE: Dirección donde está la clase principal del applet.</div>
<div class="separator" style="clear: both; text-align: left;">
ARCHIVE: Es el archivo JAR que dejamos en el servidor.</div>
<div class="separator" style="clear: both; text-align: left;">
WIDTH: Ancho del applet (en pixeles).</div>
<div class="separator" style="clear: both; text-align: left;">
HEIGHT: Alto del applet (en pixeles).</div>
<div class="separator" style="clear: both; text-align: left;">
CODEBASE: Aquí debe ir la ruta donde debe buscar el archivo. Como la dejamos en la misma carpeta del signon.html, basta con pasarle un caracter punto "." como parámetro, haciendo referencia a que el archivo JAR está en la misma dirección.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Con el método "document.write()" escribiremos en el HTML el applet.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
NOTA: Los saltos de línea fueron agregados para la explicación, pero en el objeto HTML el applet debe ir todo en la misma línea, para que reconozca la comilla simple al final de la línea y cierre el "string".</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
4) En el evento Activate de la página populamos el campo HTMLAREA con nuestro script.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRTR7evVbPldrWrto1ZPOQhgd38gCOIVBfkt60D5wGx2JObXutL509gIHALMsI94YIZfMSvhyphenhyphenlnuvVNC5LwS8Ty9ztylCYtZjckB5mBdQRUllTrGRpU14zvndt9e6q3p81fh1_XL2AfBhs/s1600/Activate.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRTR7evVbPldrWrto1ZPOQhgd38gCOIVBfkt60D5wGx2JObXutL509gIHALMsI94YIZfMSvhyphenhyphenlnuvVNC5LwS8Ty9ztylCYtZjckB5mBdQRUllTrGRpU14zvndt9e6q3p81fh1_XL2AfBhs/s1600/Activate.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
5) Finalmente, al entrar a nuestra página, el resultado será el siguiente:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivFOj8kRMvGmN5yxfdYxCdkO434dYYmiX8A3kJY5uzcllysdlBveBqdYjsh7bKLErbsf5MzX9yN2FKwDUNninjqguq5a7TBoF5z4k-cXxvkH5fqYxCojmlgyaC_RCCwLnbilUkBdWrnsXg/s1600/Pagina+Final.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivFOj8kRMvGmN5yxfdYxCdkO434dYYmiX8A3kJY5uzcllysdlBveBqdYjsh7bKLErbsf5MzX9yN2FKwDUNninjqguq5a7TBoF5z4k-cXxvkH5fqYxCojmlgyaC_RCCwLnbilUkBdWrnsXg/s1600/Pagina+Final.jpg" height="416" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span lang="EN-US" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 9pt;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.4799995422363px;"></span><span lang="EN-US" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 9pt;"><span style="font-family: Arial, Helvetica, sans-serif;">Espero que este simple paso a paso les resulte útil como a mí.</span></span></div>
<span lang="EN-US" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 9pt;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span><span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.4799995422363px;"></span><span lang="EN-US" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 9pt;"><span style="font-family: Arial, Helvetica, sans-serif;">Saludos.</span></span><br />
<span style="background-color: white; color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 18.4799995422363px;"><span style="font-size: 12px;">Facundo Salerno.</span></span><br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal">
<br /></div>
Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-29506882555665690972014-12-27T09:09:00.001-08:002015-03-07T11:55:58.815-08:00Query by Content ReferenceIn Peoplesoft you are able to create a Content Reference to be used by a Query Object.<br />
With some easy steps users can run the Query through any path in the system.<br />
<br />
The first step must be creating the Query object. Here I have an example:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4bT_l2ZRL96y6cxZwEk9jlEIuu_st2KN0MgICKya6uEV_vLkKdYEU-QXueiNBNYQ1C05S4DlLovUCLe2g04uVkoOnu7TTOWl-AVO9T_UZT8gThGdQSctw9_cF1hTL6THv8h-UwnSSNrd3/s1600/query.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4bT_l2ZRL96y6cxZwEk9jlEIuu_st2KN0MgICKya6uEV_vLkKdYEU-QXueiNBNYQ1C05S4DlLovUCLe2g04uVkoOnu7TTOWl-AVO9T_UZT8gThGdQSctw9_cF1hTL6THv8h-UwnSSNrd3/s1600/query.jpg" height="230" width="400" /></a></div>
<br />
<br style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2000007629395px;" />
<br />
Once we have created the Query, we must go to PeopleTools -> Portal -> Structure and Content.<br />
We will create a new Content Reference where we want to place the Query.<br />
<br />
Take into account we must change some values in this page, as you could see in the following screen.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBYqSWHHgWpM_TeBhPAoBItVU6ztaN5ozWDZ-4ObaUB5BgjNBkV3wAYic0Lva_hC5hqTsTGwxqZidR6i_H6_h1iBUzkndL3ZJJUxwSSbAB1NErX4LHMi9deyGyluhd8FPhhYg1akAkyaTa/s1600/CR2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBYqSWHHgWpM_TeBhPAoBItVU6ztaN5ozWDZ-4ObaUB5BgjNBkV3wAYic0Lva_hC5hqTsTGwxqZidR6i_H6_h1iBUzkndL3ZJJUxwSSbAB1NErX4LHMi9deyGyluhd8FPhhYg1akAkyaTa/s1600/CR2.jpg" height="419" width="640" /></a></div>
<br />
<br />
<br />
So, in the "URL Type" field we must set "Peoplesoft Generic URL".<br />
Besides, in the "Portal URL" field we must add the text: "q/?ICAction=ICQryNameURL=PUBLIC." followed by the Query Name.<br />
<br />
And that's it. We can now execute the Query in the desired path:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSrVN5KHFBztshtUSoL6S_yyrAMRbqdHAMYxrBBPE7Ktu6kFncxzKXjDVV49OHP0Bee9_JN-jyhyGVkC3bVkYjHO7CjR4jUJI4CdR0yL0GxCSTAxoj9FM_cdUeXC7vgWOVqmI_ESekvsdx/s1600/query2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSrVN5KHFBztshtUSoL6S_yyrAMRbqdHAMYxrBBPE7Ktu6kFncxzKXjDVV49OHP0Bee9_JN-jyhyGVkC3bVkYjHO7CjR4jUJI4CdR0yL0GxCSTAxoj9FM_cdUeXC7vgWOVqmI_ESekvsdx/s1600/query2.jpg" height="290" width="640" /></a></div>
<br />
<div class="separator" style="background-color: #141414; clear: both; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2000007629395px; text-align: center;">
</div>
<span lang="EN-US" style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 9pt;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span><span style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18.2000007629395px;"></span>I hope this blog could be so useful to you as it is to me.<br />
<br />
Regards.<br />
Facundo Salerno.Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-4840499983975726222014-12-27T08:51:00.001-08:002015-03-07T11:56:15.811-08:00Referencia de Contenido para un Query<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuDSsnLK4bGb2naNlnw8XblIR1R_m6_JtptWK9OL0WxX0ClMddj1c3R2LdkS216YV0D3Z5jPoYOniWMJA8Kcsxd0fRJkGwk_Y5kpElW0N3Kid2Y6MHYNWYP8xNY7zoGE_iaPfQxnH4iNc-/s1600/Query.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuDSsnLK4bGb2naNlnw8XblIR1R_m6_JtptWK9OL0WxX0ClMddj1c3R2LdkS216YV0D3Z5jPoYOniWMJA8Kcsxd0fRJkGwk_Y5kpElW0N3Kid2Y6MHYNWYP8xNY7zoGE_iaPfQxnH4iNc-/s1600/Query.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuDSsnLK4bGb2naNlnw8XblIR1R_m6_JtptWK9OL0WxX0ClMddj1c3R2LdkS216YV0D3Z5jPoYOniWMJA8Kcsxd0fRJkGwk_Y5kpElW0N3Kid2Y6MHYNWYP8xNY7zoGE_iaPfQxnH4iNc-/s1600/Query.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuDSsnLK4bGb2naNlnw8XblIR1R_m6_JtptWK9OL0WxX0ClMddj1c3R2LdkS216YV0D3Z5jPoYOniWMJA8Kcsxd0fRJkGwk_Y5kpElW0N3Kid2Y6MHYNWYP8xNY7zoGE_iaPfQxnH4iNc-/s1600/Query.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuDSsnLK4bGb2naNlnw8XblIR1R_m6_JtptWK9OL0WxX0ClMddj1c3R2LdkS216YV0D3Z5jPoYOniWMJA8Kcsxd0fRJkGwk_Y5kpElW0N3Kid2Y6MHYNWYP8xNY7zoGE_iaPfQxnH4iNc-/s1600/Query.jpg" height="205" width="400" /></a></div>
<br />
En Peoplesoft se puede crear una referencia de Contenido para un objeto Query, y así ejecutarlo desde una ruta específica dentro del Sistema.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Para eso, primero debemos guarda la Query a mostrar. Por ejemplo:<br />
<br />
Una vez que tenemos la consulta creada, vamos a PeopleTools -> Portal -> Estructura y Contenido y creamos una referencia donde queremos que se muestre nuestra Consulta.<br />
<br />
A diferencia de cualquier referencia de contenido, vamos a tener que cambiar dos valores de la tabla, que se ven en la siguiente imagen:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqRr36S4OCVCFAuNU3XMQi4-RirDiBsbqmVjKQaueCsPIAaRx7YyQkP5wh9tXZRtxfX3aQAc6kGuYvaXMWdk-dMK2GRIZPg0eO3HZY8WxI385lIKPUfe3pbmVpAy9si_v9S51fhsidE4kx/s1600/CR.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqRr36S4OCVCFAuNU3XMQi4-RirDiBsbqmVjKQaueCsPIAaRx7YyQkP5wh9tXZRtxfX3aQAc6kGuYvaXMWdk-dMK2GRIZPg0eO3HZY8WxI385lIKPUfe3pbmVpAy9si_v9S51fhsidE4kx/s1600/CR.jpg" height="368" width="640" /></a></div>
<br />
Entonces, en el campo "Tipo URL" debemos ingresar "Genérico PeopleSoft".<br />
Además, en el campo "URL Portal" debemos ingresar el texto "<span lang="EN-US" style="font-size: 9pt;"><span style="font-family: Arial, Helvetica, sans-serif;">q/?ICAction=ICQryNameURL=PUBLIC." acompañado del nombre de la consulta.</span></span><br />
<span lang="EN-US" style="font-size: 9pt;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span>
<span lang="EN-US" style="font-size: 9pt;"><span style="font-family: Arial, Helvetica, sans-serif;">Eso es todo, ya podremos acceder a la consulta,desde la ruta deseada:</span></span><br />
<span lang="EN-US" style="font-size: 9pt;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdsmcU8Cqa8Eu477VwH__ZADvbN0twMKd4Y8xyGID0kNs81GynNnzgigpqbzuAEDlSvYkBjXpfXZL1cRkfMWv83rRRpKficRCNjw_AxhADGRnZJyYLJluA29h_hM9rXC2QmrWd9jU_yH4h/s1600/resuiltado.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdsmcU8Cqa8Eu477VwH__ZADvbN0twMKd4Y8xyGID0kNs81GynNnzgigpqbzuAEDlSvYkBjXpfXZL1cRkfMWv83rRRpKficRCNjw_AxhADGRnZJyYLJluA29h_hM9rXC2QmrWd9jU_yH4h/s1600/resuiltado.jpg" height="160" width="640" /></a></div>
<span lang="EN-US" style="font-size: 9pt;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span>
<span lang="EN-US" style="font-size: 9pt;"><span style="font-family: Arial, Helvetica, sans-serif;">Espero que este simple paso a paso les restulte útil como a mí.</span></span><br />
<span lang="EN-US" style="font-size: 9pt;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span>
<span lang="EN-US" style="font-size: 9pt;"><span style="font-family: Arial, Helvetica, sans-serif;">Saludos.</span></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 12px;">Facundo Salerno.</span></span><br />
<div class="MsoNormal">
<span lang="EN-US" style="font-size: 9.0pt; mso-ansi-language: EN-US;"><o:p></o:p></span></div>
Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-68686936292352639612014-12-23T17:20:00.002-08:002014-12-23T17:23:43.134-08:00Welcome!<h3>
<br /></h3>
<div>
<h3 class="post-title entry-title" itemprop="name" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-stretch: normal; font-weight: normal; margin: 0px; position: relative;">
Hi everybody there!</h3>
<div class="post-header" style="color: #999999; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 1.6; margin: 0px 0px 1.5em;">
<div class="post-header-line-1">
</div>
</div>
<div class="post-body entry-content" id="post-body-3910922438216516520" itemprop="description articleBody" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 1.4; position: relative; width: 578px;">
I have been working with Peoplesoft since 2008. Nowadays I'm working in <a href="http://www.bnetbuilders.com/" rel="nofollow" style="line-height: 1.4;" target="_blank">BNB</a><span style="line-height: 1.4;">.</span></div>
<div class="post-body entry-content" id="post-body-3910922438216516520" itemprop="description articleBody" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 1.4; position: relative; width: 578px;">
<br /></div>
<div class="post-body entry-content" id="post-body-3910922438216516520" itemprop="description articleBody" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 1.4; position: relative; width: 578px;">
I am expecting not only to share my personal experiences with this ERP but also saving any importante information that could be useful later!<br />
<br /></div>
<div class="post-body entry-content" id="post-body-3910922438216516520" itemprop="description articleBody" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 1.4; position: relative; width: 578px;">
Many thanks for visiting my space!<br />
<br />
Facundo</div>
</div>
Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0tag:blogger.com,1999:blog-3978783883969554220.post-79690584273309621432014-12-23T17:15:00.000-08:002014-12-23T17:15:47.008-08:00Bienvenidos!<br />
<h3 class="post-title entry-title" itemprop="name" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-stretch: normal; font-weight: normal; margin: 0px; position: relative;">
Hola a todos!</h3>
<div class="post-header" style="color: #999999; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 1.6; margin: 0px 0px 1.5em;">
<div class="post-header-line-1">
</div>
</div>
<div class="post-body entry-content" id="post-body-3910922438216516520" itemprop="description articleBody" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 1.4; position: relative; width: 578px;">
He trabajado con Peoplesoft desde el 2008. En la actualidad trabajo en <a href="http://www.bnetbuilders.com/" rel="nofollow" style="line-height: 1.4;" target="_blank">BNB</a><span style="line-height: 1.4;">.</span></div>
<div class="post-body entry-content" id="post-body-3910922438216516520" itemprop="description articleBody" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 1.4; position: relative; width: 578px;">
<br /></div>
<div class="post-body entry-content" id="post-body-3910922438216516520" itemprop="description articleBody" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 1.4; position: relative; width: 578px;">
Mi nuevo objetivo es compartir mis experiencias personales con este ERP, y además ir guardando toda esa información importante, que puede ser útil en algún futuro!</div>
<div class="post-body entry-content" id="post-body-3910922438216516520" itemprop="description articleBody" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 1.4; position: relative; width: 578px;">
<br /></div>
<div class="post-body entry-content" id="post-body-3910922438216516520" itemprop="description articleBody" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 1.4; position: relative; width: 578px;">
Muchas gracias por visitar mi espacio.<br />
<br />
Facundo</div>
Facundo Salernohttp://www.blogger.com/profile/05064397526481740923noreply@blogger.com0