Android Question Display Another Page with Data in B4XPages

RishiKumar2210

Active Member
Hey Buddy, I have doubts in B4XPages. I have two screens. First screen name is "Billing List" and Second Name is "Billing". In first screen, I have B4XTable to show a list and a button( "Plus Icon") on the top right. When User clicks the "Plus Icon"(Button). I am going to show the Second page with no values entered. But when the user clicks the cell of B4XTable, then I am going to show Second Page with Some values in the flexgrid table. Now, My Issue is when user clicks the plus icon, then I have loades the layout and no values entered and works perfect. then user press back button and then click the cell of B4XTable, then Again showing only loaded layout. How to overcome this? Hope, You understand my Issue. here is my project
 

Attachments

  • textile_copy.zip
    20.9 KB · Views: 17
Solution
It is better to explain how you solved it so someone read this in the future understand what is happening.
I solved this issue by using a variable as an Indicator. In my Attached Project, I used a variable named "gs_status." I wrote in B4Xpage_Appear in the "billing" screen that when the user clicks the "plus" icon, the variable gs_status = "A" and when the user cell clicks the table, the variable gs_status = "E." I hope it helps. here is my attached project below

aeric

Expert
Licensed User
Longtime User
It is not clear how your project works.
At a quick glance, you seems to load the data from json file in the assets folder. How do you save the data ? I also don't see btnsave event on second page.
Your project is too complicated with mix of B4XTable and Flexgrid. Not to mention on the confusing naming convention.
Please create a more simpler project so it is easier for others to help.
 
Upvote 0

RishiKumar2210

Active Member
It is not clear how your project works.
At a quick glance, you seems to load the data from json file in the assets folder. How do you save the data ? I also don't see btnsave event on second page.
Your project is too complicated with mix of B4XTable and Flexgrid. Not to mention on the confusing naming convention.
Please create a more simpler project so it is easier for others to help.
I solved it on myself buddy. thanks for your valuable reply @aeric.
 
Upvote 0

RishiKumar2210

Active Member
It is better to explain how you solved it so someone read this in the future understand what is happening.
I solved this issue by using a variable as an Indicator. In my Attached Project, I used a variable named "gs_status." I wrote in B4Xpage_Appear in the "billing" screen that when the user clicks the "plus" icon, the variable gs_status = "A" and when the user cell clicks the table, the variable gs_status = "E." I hope it helps. here is my attached project below
 

Attachments

  • textile_copy.zip
    24.9 KB · Views: 4
Last edited:
Upvote 0
Solution
Top