Support Forum

Ask questions and get help from MobileTogether experts.
MobileTogether Product Information
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages<12
Options
View
Go to last post Go to first unread
jge  
#21 Posted : Monday, August 25, 2014 7:17:47 PM(UTC)
jge

Rank: Advanced Member

Groups: Registered
Joined: 7/31/2014(UTC)
Posts: 40
Location: sterling, VA

tried again with edit fuction. this time system crashed. but the changed result did saved in backend table. see attached with dmp file.

after update node, there is SAVE node command.
File Attachment(s):
MobileTogetherDesigner_1.0.b1_20140721.dmp (82kb) downloaded 60 time(s).
bbv  
#22 Posted : Tuesday, August 26, 2014 10:07:18 AM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 476

Was thanked: 80 time(s) in 80 post(s)
Thanks for new dump files. Both crashes had the same reason - you are reloading $DB2 within Even Entry, which is not necessary - when subpage is closed, MobileTogether will automatically update $DB2 with the data from the mapped tree.

So, just remove the "Reload $DB2" command from ADD and EDIT button scripts - this will work quicker and will avoid crash, and we will make sure in the next release to not crash in such cases.

Here is the screenshot of the EDIT button actions:
bbv attached the following image(s):
CaptureSave.JPG
bbv  
#23 Posted : Tuesday, August 26, 2014 10:14:10 AM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 476

Was thanked: 80 time(s) in 80 post(s)
Note: now as you are using a SELECT statement for $DB3, it will return only Row with correct Primary Key combination - not all rows like in the past. This means, that there is no need anymore to search for a correct Row when updating nodes in $DB3 with EDIT button. So we can simplify it like this:
bbv attached the following image(s):
CaptureEditSimplified.JPG
bbv  
#24 Posted : Tuesday, August 26, 2014 10:23:12 AM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 476

Was thanked: 80 time(s) in 80 post(s)
In order to make the ADD button work you need to append a new Row to the $DB3 RowSet and then Save $DB3. It is correct, that $DB3 is blank for new entries - when you add a new Row and Save, MobileTogether will see there is a new Row and will generate an INSERT statement.
bbv attached the following image(s):
CaptureAdd.JPG
jge  
#25 Posted : Tuesday, August 26, 2014 2:42:41 PM(UTC)
jge

Rank: Advanced Member

Groups: Registered
Joined: 7/31/2014(UTC)
Posts: 40
Location: sterling, VA

Followed your instruction, for ADD button, using APPEND node (append a new Row to the $DB3 RowSet) and SAVE node $DB3 (not use Insert Node).
Also took out Reload $DB2, HOWEVER, the new record did saved into database, but the application still crashed.
please see attached DMP file.
File Attachment(s):
MobileTogetherDesigner_1.0.b1_20140721.dmp (82kb) downloaded 59 time(s).
jge  
#26 Posted : Tuesday, August 26, 2014 2:44:55 PM(UTC)
jge

Rank: Advanced Member

Groups: Registered
Joined: 7/31/2014(UTC)
Posts: 40
Location: sterling, VA

attached MID file for you review.
File Attachment(s):
otmbat_event4.mtd (27kb) downloaded 61 time(s).
jge  
#27 Posted : Tuesday, August 26, 2014 2:52:41 PM(UTC)
jge

Rank: Advanced Member

Groups: Registered
Joined: 7/31/2014(UTC)
Posts: 40
Location: sterling, VA

when edit again, application crashed. see attached dmp file.
File Attachment(s):
MobileTogetherDesigner_1.0.b1_20140721.dmp (81kb) downloaded 59 time(s).
jge  
#28 Posted : Tuesday, August 26, 2014 7:26:05 PM(UTC)
jge

Rank: Advanced Member

Groups: Registered
Joined: 7/31/2014(UTC)
Posts: 40
Location: sterling, VA

Thanks for your kind helps, Final I got this application works as we expected. We can edit or add new record. we also combined ADD and EDIT into one button SAVE. So we do not push resposibility to user side. System can handle such logic based on condition.
There is no crash happen again.
attached is latest MID file for you review.
File Attachment(s):
otmbat_event5.mtd (29kb) downloaded 63 time(s).
bbv  
#29 Posted : Thursday, August 28, 2014 12:20:12 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 476

Was thanked: 80 time(s) in 80 post(s)
I'm happy about your success, though you still have one Goto Subpage call too much, which currently causes all the crashes reported by you (this will be fixed), but also does not make sense.

In your QUIT button action, you call Go to Subpage "event" in order to return to your parent sub page, though all you need is the Close Subpage call which you have anyway. Just remove Go to Subpage here and everything should be fine.
bbv attached the following image(s):
GoToSubpage.JPG
Users browsing this topic
2 Pages<12
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.