﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » BO's and Stored Procedures</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 07 Apr 2026 08:33:18 GMT</lastBuildDate><ttl>20</ttl><item><title>BO's and Stored Procedures</title><link>http://forum.strataframe.net/FindPost22621.aspx</link><description>I have a Stored Proc that combines 2 Tables into one table (Like a Name Table and a Score Table) related by a NamePK to get a table that contains the names and respective scores. How do I attach this stored proc to a BO?&lt;P&gt;I have tried searching the forum and I can fill a BO if it is just a single table with a stored proc but with multiple tables I am not sure how to do that so the BO will know the structure of the resulting table? &lt;/P&gt;&lt;P&gt;TIA.</description><pubDate>Sat, 04 Apr 2009 06:45:43 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: BO's and Stored Procedures</title><link>http://forum.strataframe.net/FindPost22631.aspx</link><description>The link did the same to me and I finally had to copy and paste it to make it work.</description><pubDate>Sat, 04 Apr 2009 06:45:43 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: BO's and Stored Procedures</title><link>http://forum.strataframe.net/FindPost22629.aspx</link><description>Thanks.  Maybe I'm doing something wrong but that link just takes me back to this page :unsure:</description><pubDate>Fri, 03 Apr 2009 18:00:58 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: BO's and Stored Procedures</title><link>http://forum.strataframe.net/FindPost22628.aspx</link><description>Hi Charles,&lt;br&gt;
&lt;br&gt;
Yes I use this procedure for ReadOnly process where I like to use the SF ListView and also for XML files, this way instead of me maintaining the XML fields manually I simply use a dummy DDT profile and tell the BOM to use that DDT profile to build the BO schema.  All this is explained in more detail in the link I provided in this thread before.</description><pubDate>Fri, 03 Apr 2009 15:35:37 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: BO's and Stored Procedures</title><link>http://forum.strataframe.net/FindPost22627.aspx</link><description>Edhy - if you create a structure like that in DDT (interesting idea) do you let the DDT deploy the structure to a table in the database?  Is this for a basically readonly BO?  Not sure how the update would work -are you just updating the primary table that fills the BO, as you would with a VFP remote view?</description><pubDate>Fri, 03 Apr 2009 15:28:01 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: BO's and Stored Procedures</title><link>http://forum.strataframe.net/FindPost22625.aspx</link><description>Hi Michael / Terry,&lt;br&gt;
If you are using the DDT, you can create a table schema with all the columns that you want, then map the BO in the BOM to that table schema and then you can use your store procedure to fill that BO, as long as your SP return columns with the same names mapped in the BO you will be OK.&lt;br&gt;
&lt;br&gt;
Also if you already have a BO created with some some columns, you can add the needed columns as custom fields properties with the same names as the columns returned by your SP and the BO will also fill up those custom field properties for you.</description><pubDate>Fri, 03 Apr 2009 13:31:57 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: BO's and Stored Procedures</title><link>http://forum.strataframe.net/FindPost22624.aspx</link><description>Hi Terry,&lt;/P&gt;&lt;P&gt;2 solutions, that I use in an app:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;create a view as SELECT * from &amp;lt;your SP&amp;gt;, and map your BO on that view &lt;/LI&gt;&lt;LI&gt;create a table, let it empty (no data), map your BO on that table, and from within the BO, ExecuteNonQuery('your_SP'). Of course your SP need to delete all in the table, and then fill the table. You can now fill the BO from the table.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It woud be great if we could map a BO on a table function...</description><pubDate>Fri, 03 Apr 2009 13:06:27 GMT</pubDate><dc:creator>Michel Levy</dc:creator></item><item><title>RE: BO's and Stored Procedures</title><link>http://forum.strataframe.net/FindPost22623.aspx</link><description>Hi Terry,&lt;br&gt;
Check out this post [url=]http://forum.strataframe.net/Topic21580-8-1.aspx[/url] it will explain how to do what you want.</description><pubDate>Fri, 03 Apr 2009 12:42:01 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>