Last SF version broke some of my code


Author
Message
Doron Farber
Doron Farber
StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)
Group: Forum Members
Posts: 92, Visits: 612
Hi Trent,

The last version broke the below code that I had in the Wizard Control. I have in the first all PK and FK field for debugging purposes, and the ItemsBO does not create any new record. I don't see the value of -1 when a new record is added.

If I install the previous version then all works fine. I really spend some time to figure out why code that works fine suddenly stopped working.

Members->PaymentHeader->Items
     |
Address

In the above the Member is the parent of PaymentHeader and the Address table. There is much more code into it but this line Me.ItemsBO1.Add()  does not even provides any error message. While I had a custom properly that failed due to that.

Me.MemberInfoBO1.Add()
Me.AddressMemBO1.Add()
Me.PaymentHeaderBO1.Add()
Me.ItemsBO1.Add()
Me.ProductsMGRBO1.FillAllRecords()
Me.cboMainProductSelection.Requery()

Right now I am working with the previous version.

Let me know if you have any idea.

Regards,

Doron

Replies
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (938 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
One more thing: You had a filter on your ItemsBO1, which is why the added record was not showing up. Set the filter to an empty string before adding the record, and set the AllowNullValuesOnNewRows to false as Trent mentioned, and you will be good to go.
Doron Farber
Doron Farber
StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)StrataFrame User (212 reputation)
Group: Forum Members
Posts: 92, Visits: 612
Hi Trent and Dustin,

Thanks for the feedback and I will look into it and let you know.

I never said the code was perfectSmile That code was created around the July 2008 before the training I took with you. It worked fine while I was there and stopped working later on newer versions. Then I Re- installed the older version of SF and it worked again.Tongue Since that code was just a prototype I did not care to fine tune it as long as I can produce the test data with it. I guess your newer versions are more critical the way the data is entered.
 
Thanks,

Doron

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