Something is not right


Author
Message
Keith Chisarik
Keith Chisarik
StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
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.



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.



Any thoughts?

Keith Chisarik
Replies
Keith Chisarik
Keith Chisarik
StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)StrataFrame VIP (5.9K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
I did know it in theory, but I havent done much web programming and I missed your call to AndAlso (Not Me.IsPostBack) 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.



I feel silly but now my add is working, as well as the save without explicitly setting all the BO field values.



THANK YOU!!!!!

Keith Chisarik
Trent Taylor
Trent Taylor
StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)StrataFrame Developer (38K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
No problem Wink  I am glad you found your trouble spot.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search