Android Question How to Re-call a current activity module

Suvetha

Member
In a current activity module (look like a form(with flexgrid table, spinner etc)) when I click save button the data were save perfectly into the database. But the problem is the values, table values were present as it is. Then I enter a new one means, I can call the same activity module. How to call a current activity module?
 

LucaMs

Expert
Licensed User
Longtime User
Upvote 1

Suvetha

Member
In this, I click save button the data were saved into database. After that, I want the old data were clear or reset. If I navigate next page means it works well. How to navigate same page or else clear or reset the old data.

If I had two pages (page1, page 2) means, In page1 I set when a button click then navigate into page2

But I want same page navigation or clear values.
 

Attachments

  • IMG_20221101_105338_888.jpg
    282.1 KB · Views: 70
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
After that, I want the old data were clear or reset
You have two options:

1 - remove all views from the "Activity" (it is better to create B4XPages projects) using Activity.RemoveAllViews and reload the layout
2 - clear the view contents, one by one (by code, of course)

Since you want to do this multiple times, write the related code in a Sub.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…