B4J Question RESOLVED [BANanoVuetifyAD3] VRadio1.Check

Duque

Active Member
Licensed User
Longtime User
Hello !
It's a simple query from a BANano newbie.
Because this returns empty:

B4X:
Log("VRadio1.Check:")
Log(VRadio1.Check) 'Empty

'OR

Log("VRadio1.VElement.Value:")
Log(VRadio1.VElement.Value) 'Empty

    If (VRadio1.Check == "true") Then
   End If

Help !
 

Mashiane

Expert
Licensed User
Longtime User
Welcome to our beautiful world..

Use .GetValue(page)
or .GetValueOnApp(Vuetify) if you are in pgIndex

For clarity

1664386539325.png


The values of the checkboxes are bound directionally using the vmodel. In this screen shot when checkbox is checked it will return Y and when unchecked will return N.
If the true and false values are not specified, true/false will be returned.

If you are building forms with other input components I would greatly suggest you use the VFlexDialog (based on the Prefence Dialog)

Happy BVAD3 Coding.

PS: If there are any further questions, please dont hesitate to ask.

I have attached a project here but which uses pgIndex with no other pages.
 

Attachments

  • XCheckBox.zip
    7.8 KB · Views: 152
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
You can find here a complete example that uses a CRUD REST API (php)

 
Upvote 0

Duque

Active Member
Licensed User
Longtime User
Oh very fast, thank you!
the query was about the VRadio component, so I did the following:
B4X:
VRadio1.GetValue(page)
The answer is always false
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
I have updated the example using a v-radio-group.

Although v-radio can be used on its own, it is best used in conjunction with v-radio-group.

1664392053514.png

So i never really implemented a full single radio option. If the above is not suitable for your use case, I can then make time to look into the single radio full implementation.

Please indicate if this is suitable/not suitable so that we can move on.
 

Attachments

  • XCheckBox.zip
    8.3 KB · Views: 165
Upvote 0
Top