Problem with webforms


Author
Message
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
*************************** Question 1 ****************************

I have a webform with bound textboxes that is exibiting some odd behavior. I am hoping it will ring a bell with you perhaps.



My form works, the problem I had a few days ago went away with 1.5. The problem is this, only two 'navigate' events work.



Scenario 1:



When the form loads my initial record from the fill method is displayed, great.

When I hit my next button, the record pointer moves and the bound textbox refreshes, great.

When I hit next again, the page refreshes but I am on the same record.

I can only navigate 'prior' and 'next' and toggle between these two records.



Scenario 2:



When the form loads my initial record from the fill method is displayed, great.

When I hit my last button, the record pointer moves correctly to the last record in the table and the bound textbox refreshes, great.

I can navigate 'prior' and toggle between these two records ( the first and last record, not the last and the one prior to it)



Also my edit button correctly sets the state of the bound controls to enabled, but the call to save() refreshes the form, sets the controls to disables, but does not save my changes.



************************** Question 2 ********************************

Every time I make a change to the business object class (contained in its own project as in the WebSample) in the web project I have had to manually move the .dll to the \bin directory of the webforms project, remap, and rebuild. Is that right?



Thanks.

Keith Chisarik
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Is it possible that your business object only has 2 records?  If that is the case, then you would only be able to move forward/back and first/last between those 2 records.

As for the business object not saving, if the controls are being disabled, then the business object thinks it has saved because it is setting its EditingState back to idle.  However, you might check on the return value of the Save() method and make sure it is Success and not something else.

On the assemblies, if the assembly has been added to the /bin folder as a reference, and it has been set to CopyLocal = True, then you shouldn't need to copy the DLL every time you build it, VS will take care of that for you.  However, if you notice any "funky" behavior, like changes to the business objects not being seen by the website, you can copy the DLL manually, or just add the business objects project to the same solution as the website (remember that a project can belong to more than one solution).

Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
this odd behavior continues, I need help.



Save issue:

I call save and the following line returns true as I step through it, yet my values do not get updated. I know the binding is correct because if I change the values in SQL Server itself, I see the updated values in my web page.

Transaction.Save() = MicroFour.StrataFrame.Data.SaveUndoResult.Success



Navigation:

I removed all but 5 records for testing purposes. The webform properly displays the first record and it will navigate to the second record, upon hitting the "next" button subsequent times nothing happens, the page flickers but no navigation occurs. If I hit "last" it will properly navigate to the last record, then if I hit "prior" it goes back to the first record. Very odd.



I am using....

Transaction.Navigate(MicroFour.StrataFrame.Business.BusinessNavigationDirection.Next)

Transaction.Navigate(MicroFour.StrataFrame.Business.BusinessNavigationDirection.Prior)

Transaction.Navigate(MicroFour.StrataFrame.Business.BusinessNavigationDirection.Last)

Transaction.Edit()



(please note 'transaction' is the name of my BO, no actual transactions are being used here)



This table navigates fine using winforms and the exact same fill methods.

Keith Chisarik
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Is SmartNavigation turned on, by chance? And is this a web project, or a web site?
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
Web site, no SmartNavigation.

Keith Chisarik
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Just for grins, try setting the CheckCurrentRowBeforeNavigate property on the business object to False and see if that makes a difference.
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
no effect.........

Keith Chisarik
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Keith,

One thing I would like to test to make sure it is not an environment issue is for you to test the sample web application because it has this exact functionality you are trying to acheive.  You can navigate and save and the fields and records are updated properly.  You can get to the web sample through the menu:

Start -> All Programs -> MicroFour StrataFrame -> Samples -> VB.NET -> Web Sample

Just FYI, it uses the StrataFrameSample database and you may need to change your connection string information in the global.asax file.

Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
The sample works fine, in fact I copied 90% of my code from it Smile

Keith Chisarik
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Can you let me see the code behind to see if there is something in the mix or possibly even package up the solution...either way.  Just shooting from the hip I can't tell you what else to look at.
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