B4J Library [B4X] [XUI] SD FlexGrid (Table)

I have a problem with the FlexGrid.GetCellValue
It always returns the value of the last cell of the selected column.
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Update 0.20
  • Fix bugs . Custom height row
 

Star-Dust

Expert
Licensed User
Longtime User
I have a problem with the FlexGrid.GetCellValue
It always returns the value of the last cell of the selected column.
I don't have enough information to understand what your problem is
 

Pravee7094

Active Member
Hello,
I have one doubt in your table.
Is there any feature to Hide columns?

For example, In that table I have one column named as itemnamePK, But I didn't want to show them to customer.
So I want to Hide that one column.

Any suggestion or Help?

Thanks
Praveen
 

Star-Dust

Expert
Licensed User
Longtime User
Set the column width to 0Dip with the SetColWidth method
 

Pravee7094

Active Member
Hello,

Can I able to modify cell value automatically?

For example:
First I just added a single row with two columns, column name is username and password.

B4X:
    Dim row(2) As Object
    row(0) = "Username"
    row(1) = "Password"
    
    if_flexgrid.AddRow(row, False)

And then I have a text field, If I enter some username in the text field and click submit, It will update or modify on the table column automatically.
I just tried this coding but not worked,

B4X:
Private Sub ip_editUsername_TextChanged (Old As String, New As String)
    is_username = New

    if_flexgrid.SetCellValue(1, 1, is_username)       

End Sub

Any suggestion or Help?

Thanks
 

Star-Dust

Expert
Licensed User
Longtime User
Update 0.21
  • Add TypeList. Allows you to add a ComboBox type box (Spinner in B4A and Picker in B4i) and select to a list
  • Added other examples to POST n. 2 To populate the grid from the database, search for a string in a column and to use TypeList in the grid
  • added SetCellListIndex method to change the position of the selected index

Example TypeList (FG_Sample2)
B4X:
FlexGrid1.ColsName=Array As String("ID","Sel","User","Img","Digit","List")
FlexGrid1.ColsType=Array As Int(FlexGrid1.TypeInt,FlexGrid1.TypeCheck,FlexGrid1.TypeString,FlexGrid1.TypeImage,FlexGrid1.TypeFloat,FlexGrid1.TypeList)

Dim ListItem As String =  "Jan,Feb,Mar,Apr,May,June,Jul"
For i=1 To 10
        FlexGrid1.AddRow(Array As Object(i,b,"User " & i,Null,Rnd(50,1000)/10,ListItem),True)
Next
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Update 0.23
  • Fix Bug
 

lelelor

Active Member
Licensed User
buongiorno, ora mi dice che manca jcore, sono un pochino imbranato ma sono all'inizio...

Impossibile trovare: C:\Program Files (x86)\Anywhere Software\Basic4android\libraries\jcore.jar
 

Star-Dust

Expert
Licensed User
Longtime User
imagine you are hearing B4j. jcore is the base library of b4j it is not possible that it is not present otherwise you have to install b4j again.

But if i instead you are using b4a then you have the wrong version of flexGrid. you must use the android version (aSD_FlexGrid)
 

Pravee7094

Active Member
Hello,
I have one column named as "Quantity" and datatype is "Float".
Now, How to check the empty value in the quantity column?

Ex:
If we going to edit the quantity column, Just clear the all values (make empty) and click the "Done" or "Next" button in the keypad.
It Shows the below message in the "Logs" tab:
B4X:
java.lang.NumberFormatException: empty String

How to check the empty value in number format?
In mobile screen, It shows the "Yes or No" message box. If we click yes, Nothing happened. that's ok. But if we click no, it will exit from the application.

Any Suggestion?

Thanks
 

Star-Dust

Expert
Licensed User
Longtime User
I guess the problem is related to B4J where you can't select the input type
 

amorosik

Expert
Licensed User
buongiorno, ora mi dice che manca jcore, sono un pochino imbranato ma sono all'inizio...

Impossibile trovare: C:\Program Files (x86)\Anywhere Software\Basic4android\libraries\jcore.jar

Tranquillo, pure io sono un pochino imbranato, anche se sono alla fine...

???
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…