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: 415

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
 

FabianGS

Member
Hola amigo, veo que tambien hablas español, anyways, any discount soon for this library? I think i need it
 

fernando1987

Active Member
Licensed User

Version 9 Now Available!

We’re excited to announce the release of Version 9 with significant code corrections and performance enhancements!

How to Download the Update:​

If you’ve already purchased a previous version, simply log in to your user panel on our store at b4xapp.com using your credentials.

  1. Navigate to the "Recent Orders" section.
  2. Locate your purchase of Gsheets or GsheetsPlus.
  3. Click the download option to get the latest version at no additional cost.
Enjoy the improvements and let us know what you think!


Limited-Time Offer!
Take advantage of 50% OFF on all codes and libraries in our store until January 5, 2025! Don't miss this opportunity to expand your toolkit at half the price.

Visit b4xapp.com now and save big!
 

Abbas818

Member
Hi
I want to buy Gsheetplus library. But it is not possible to pay using PayPal and so on. I can pay by Tether. This is my contact information:
Whatsapp:+989358408331
Email:unrezaei@yahoo.com
 

fernando1987

Active Member
Licensed User
Hi
I want to buy Gsheetplus library. But it is not possible to pay using PayPal and so on. I can pay by Tether. This is my contact information:
Whatsapp:+989358408331
Email:unrezaei@yahoo.com
Dear @Abbas818,

Thank you for your interest in the Gsheet library. At the moment, we only accept payments via PayPal. We understand this might be inconvenient for some users, but it is currently the most secure and efficient method available to us.

We are exploring options to include other payment methods, such as Tether, in the future to make transactions easier for all our users. We will keep you updated on any changes.

If you have any other questions or need further assistance, please don’t hesitate to reach out.

Kind regards,
 

fernando1987

Active Member
Licensed User
Hi
I want to buy Gsheetplus library. But it is not possible to pay using PayPal and so on. I can pay by Tether. This is my contact information:
Whatsapp:+989358408331
Email:unrezaei@yahoo.com
Dear Abbas818,

I hope this message finds you well. I am pleased to inform you that someone has purchased the GSheets library as a gift for you.

In order to access the library and download it, please create an account on https://b4xapp.com. Once your account is set up, kindly share your username with me so I can add the library to your account. This will also allow you to download any future updates if they are released.

If you have any questions or need assistance with the process, feel free to reach out.

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