﻿<?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 » WebForms (How do I?)  » Something is not right</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 04:51:34 GMT</lastBuildDate><ttl>20</ttl><item><title>Something is not right</title><link>http://forum.strataframe.net/FindPost4641.aspx</link><description>I must have something fundamentally wrong. Last week I had the issue where the SAVE command on the BO was not storing the proper values based on their current (modified) values, I had to manually set the value of each BO field to the correct current control value. I assumed it was due to the fact that I was using the non-SF loginview control, but that is not the case, this behavior also happens for SF bound controls directly on my form.&lt;br&gt;
&lt;br&gt;
Now I have another problem which I feel might be related to a larger issue I have in my application, when I issue BO.add(), the form controls correctly all blank out so I assumed I was on a new record, this is not the case. Any changes to the values of the bound controls when saved are actually saved to the record I was on before I called BO.add(), not the newly added record.&lt;br&gt;
&lt;br&gt;
Any thoughts?</description><pubDate>Mon, 20 Nov 2006 16:17:08 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Something is not right</title><link>http://forum.strataframe.net/FindPost4677.aspx</link><description>LOL....I will have to remeber the term "ghetto bound" ... I liked this! :D</description><pubDate>Mon, 20 Nov 2006 16:17:08 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Something is not right</title><link>http://forum.strataframe.net/FindPost4672.aspx</link><description>I bound (ghetto bound anyway) the field to the ASP.NET calendar control.... works fine, don't waste any time on this.</description><pubDate>Mon, 20 Nov 2006 16:12:08 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Something is not right</title><link>http://forum.strataframe.net/FindPost4669.aspx</link><description>One thing I generally do on dates is break it apart and use combos...this way the user can't flub it up.&amp;nbsp; I would have to play with this for a few minutes to tell you where to place your code to prevent the error.&amp;nbsp; But you might think about using a combo for a date then on the update parse&amp;nbsp;the 3 values to update the DateTime field.&amp;nbsp; You can also have 3 individual columns in your table then have a custom field that returns the date in your BO.&amp;nbsp; 6 one half dozen the other :)</description><pubDate>Mon, 20 Nov 2006 16:09:25 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Something is not right</title><link>http://forum.strataframe.net/FindPost4658.aspx</link><description>Another question:&lt;br&gt;
&lt;br&gt;
Where/how might I trap the user putting the word "Bob" for instance in a SF web textbox that is bound to a date field? I have tried trapping for this in quite a few places and it seems like I cannot get ahead of the error the framework raises.</description><pubDate>Mon, 20 Nov 2006 15:39:03 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Something is not right</title><link>http://forum.strataframe.net/FindPost4644.aspx</link><description>No problem ;)&amp;nbsp; I am glad you found your trouble spot.</description><pubDate>Mon, 20 Nov 2006 11:06:51 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Something is not right</title><link>http://forum.strataframe.net/FindPost4643.aspx</link><description>I did know it in theory, but I havent done much web programming and I missed your call to [b]AndAlso (Not Me.IsPostBack)[/b] in the Sample App code. I was recalling my fill on the postback and since the postback passed no parameters....... well you know the rest.&lt;br&gt;
&lt;br&gt;
I feel silly but now my add is working, as well as the save without explicitly setting all the BO field values.&lt;br&gt;
&lt;br&gt;
THANK YOU!!!!!</description><pubDate>Mon, 20 Nov 2006 10:33:49 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Something is not right</title><link>http://forum.strataframe.net/FindPost4642.aspx</link><description>First of all, do this.&amp;nbsp; Run the sample web application to see if you have the same results.&amp;nbsp; I don't think that you will.&amp;nbsp; If this is the case, we need to look at how your application is setup and why binding seems to be functioning differently within your application.&lt;/P&gt;&lt;P&gt;Next, as for the editing the wrong record, I think that there is something wrong with your postback code that is repositioning the record.&amp;nbsp; For example, if you add a new record, it will navigate to the new record and stop.&amp;nbsp; So if the record position is moving, something has to be moving it.&amp;nbsp; This logic is no different than WinForms.&lt;/P&gt;&lt;P&gt;If you have code in your Page_Load event, are you testing on Page.IsPostBack.&amp;nbsp; This is just one idea of where things could be coming from.&amp;nbsp; When you are dealing with a Web app, you have to take into consideration post backs when placing navigation code and so forth.&amp;nbsp; I know that you know this, but I am just reiterating some common things that I have seen in the past.</description><pubDate>Mon, 20 Nov 2006 10:16:20 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>