B4A Library GSheet Library (integrate google sheets into your B4X apps easily)

fernando1987

Active Member
Licensed User
Dear, check the page and it is working normally, please try to delete the cookies and reload the page, enter and let me know if you still have problems
 

Attachments

  • Screenshot_20221122-061338_Chrome.jpg
    268.6 KB · Views: 153

fernando1987

Active Member
Licensed User
No, but inside the library, being b4x, there are the modules with the code for the api calls, it includes some json responses... with that and some free time, maybe it could be implemented... sorry, dear friend, maybe in the future Prepare something... by the way, I am a great admirer of your work and I would like to congratulate you on having achieved great things.
 

asales

Expert
Licensed User
Longtime User
Dear, check the page and it is working normally, please try to delete the cookies and reload the page, enter and let me know if you still have problems
[ edit: solved - see #27 ]
Same problem.
Tested with 3 different browsers (Firefox, Chrome and Edge) and a new installation of Firefox:
 
Last edited:

asales

Expert
Licensed User
Longtime User
Same problem.
Tested with 3 different browsers (Firefox, Chrome and Edge) and a new installation of Firefox:
Problem solved!
I made the registration (using Edge) and after the checkout apply the coupon. If I try to apply the coupon without login, the error is raised.
 

fernando1987

Active Member
Licensed User
All the source codes and libraries of the store until the last day of the month of February will be at a 30% discount with the following coupon:

STORECODE30​

 

fernando1987

Active Member
Licensed User
*Version 4.0 available


* get method added
Get sheet:
    sub getsheets
    s.SpreadsheetsId = "xxxxxxxxxxxxxx"
    s.Sheets_name =  "hoja1"
    s.GetSheet(Me)
    Wait For get_result(x As List)
    
    For Each col As Map In x
        
        TableView1.Items.Add(Array As String(col.Get("1"),col.Get("Téléphone"),col.Get("Name"),col.Get("Age"),col.Get("created")))
        
    Next
    
    end sub

* Correction and improvement of the code

For those who have already acquired earlier version, enter the store with their credentials in their user panel in the recent orders part, they are placed in Gsheets see order and that's it, they can download it again from the download option
 

fernando1987

Active Member
Licensed User
Version 5.0 now available!
- Extensive code improvements and optimizations have been made.
- Introducing a new module called Gdrive in Gesheetsplus, allowing you to seamlessly work with files in Google Drive. You can now effortlessly search, create folders, delete files, upload files, and download files. Special thanks to @fredo, @Erel and @mw71, for their valuable contributions with b4x community, which served as a reference and were adapted and modified to seamlessly integrate within the library.

* Code corrections and enhancements.

-The option to put your own custom html code was added when the connection is accepted and made successfully to obtain the token. If you do not define it by default, the image and text of the following screenshot will remain

example:
s.oauth2.html_code ="<html><head><meta charset=""UTF-8""><title>Successful Connection</title><style>body{text-align:center;background-color:#f0f5f9;color:#333333;font-family:Arial,sans-serif;}h1{color:#007bff;font-size:24px;}img{width:200px;height:200px;}p{margin-bottom:20px;font-size:16px;}</style></head><body><h1>Successful Connection</h1><img src=""https://images.prismic.io/wdr-test-icti/3f9387b0e53fb535624c3a559964e5f3871345ac_connect-logo3x.png?auto=compress,format"" alt=""Logo""><p>You can now return to your application.</p></body></html>"



"For those who have already purchased the previous version, please log in to your user panel on our store using your credentials. Under the 'Recent Orders' section, locate 'Gsheets' or 'Gsheetsplus' and you will find the option to download the latest version again. We hope you enjoy this improved release!"
 
Last edited:

fernando1987

Active Member
Licensed User
Take advantage and get a 30% discount on any product throughout this month with the code STORECODE30
 

fernando1987

Active Member
Licensed User
Version 6.0 now available!


Changes

GSheet​

-Code corrections and enhancements.

-GetSheetDataByColumnValue(sheet_name As String, column_name As String, search_value As String):
Retrieves rows based on a search value.


Example:
Sub Button1_Click
   
    s.GetSheetDataByColumnValue("Example","Name","Javier")
   

End Sub

Private Sub s_DataByColumnValue_success(x As List, success As Boolean)
    If success = True Then
        Log(x)
        For Each col As Map In x
            Log(col.Get("Name"))
            Log(col.Get("Age"))
        Next
    Else

    End If
End Sub

GSheet plus​

-Code corrections and enhancements.

-GetSheetDataByColumnValue(sheet_name As String, column_name As String, search_value As String):
Retrieves rows based on a search value.


Example:
Sub Button1_Click
   
    s.GetSheetDataByColumnValue("Example","Name","Javier")
   

End Sub

Private Sub s_DataByColumnValue_success(x As List, success As Boolean)
    If success = True Then
        Log(x)
        For Each col As Map In x
            Log(col.Get("Name"))
            Log(col.Get("Age"))
        Next
    Else

    End If
End Sub

-GetColumnSum(sheet_name As String, column_name As String):
Calculates the values sum of a specific column.

example:
Sub Button1_Click
   
    s.GetColumnSum("Example","Name")
   

End Sub

Private Sub s_GetColumnSum_success(sum As Double, success As Boolean)
    If success = True Then
        Log(sum)
    Else

    End If
End Sub

-GetSheetColumnCount(sheet_name As String, column_name As String):
Counts the number of non-empty cells in a specific column.

Example:
Sub Button1_Click
   
    s.GetSheetColumnCount("Example","Name")
   

End Sub

Private Sub sColumnCount_success(count As Double, success As Boolean)
    If success = True Then
        Log(count)
    Else

    End If
End Sub

-GetValueCountInColumn(sheet_name As String, column_name As String, value1 As String):
Counts the number of non-empty cells in a specific column based on a search value.

Example:
Sub Button1_Click
   
    s.GetValueCountInColumn("Example","Name","Javier")
   

End Sub

Private Sub s_ValueCountInColumn_success(count As Double, success As Boolean)
    If success = True Then
        Log(count)
    Else

    End If
End Sub

-GetSheetDataByColumnRange(sheet_name As String, column_name As String, operator As String, value As Double):
Retrieves rows from a specific column based on certain numerical conditions (e.g., greater than, less than).

Example:
Sub Button1_Click
   
    s.GetSheetDataByColumnRange("Example","Age",">=",39)
   

End Sub

Private Sub s_DataByColumnRange_success(x As List, success As Boolean)
    If success = True Then
        For Each col As Map In x
            Log(col.Get("Name"))
            Log(col.Get("Age"))
        Next
    Else

    End If
End Sub


"For those who have already purchased the previous version, please log in to your user panel on our store using your credentials. Under the 'Recent Orders' section, locate 'Gsheets' or 'Gsheetsplus' and you will find the option to download the latest version again. We hope you enjoy this improved release!"
 

fernando1987

Active Member
Licensed User
Version 6.1 now available!


Changes


-Code corrections and enhancements.

"For those who have already purchased the previous version, please log in to your user panel on our store using your credentials. Under the 'Recent Orders' section, locate 'Gsheets' or 'Gsheetsplus' and you will find the option to download the latest version again. We hope you enjoy this improved release!"
 

fernando1987

Active Member
Licensed User
Version 7 now available!

Changes:


  • Code corrections and enhancements.
  • Added extraction of the row number each time a query is made. This data, called "id_row", is included in all queries and can be useful for deleting or updating that row.
"For those who have already purchased the previous version, please log in to your user panel on our store using your credentials. Under the 'Recent Orders' section, locate 'Gsheets' or 'Gsheetsplus' and you will find the option to download the latest version again. We hope you enjoy this improved release!"

Example:
Sub Process_Globals
    Private fx As JFX
    Private MainForm As Form
    Private xui As XUI
    Private Button1 As B4XView
    Dim s As Gsheetsplus
End Sub

Sub AppStart (Form1 As Form, Args() As String)
    MainForm = Form1
    MainForm.RootPane.LoadLayout("Layout1")
    MainForm.Show
    s.Initialize(Me,"googlesheets","xxxxxxx","xxxxxxxx.apps.googleusercontent.com")
    s.SpreadsheetsId = "1FHx-a_a4afTQ3L5hXJIOttCVaJNngO3113E-qqFOjbk"
End Sub

Sub Button1_Click
    s.GetSheetDataByColumnRange("Example","Age","<",26)

End Sub


Private Sub googlesheets_DataByColumnRange_success(x As List, success As Boolean)
    If success = True Then
        For Each col As Map In x
            Log(col.Get("Name"))
            Log(col.Get("Age"))
            Log(col.Get("id_row"))
        Next
    Else

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