Tool [B4X] Forms Builder - Designer for B4XPreferencesDialog

Discussion in 'Additional libraries, classes and official updates' started by Erel, Apr 9, 2019.

  1. Erel

    Erel Administrator Staff Member Licensed User

    [​IMG]

    FormsBuilder is a desktop tool that helps with building templates for B4XPreferencesDialog: https://www.b4x.com/android/forum/t...alog-cross-platform-forms.103842/#post-651047

    The output of FormsBuilder is a json file that is loaded with:
    Code:
    prefdialog.LoadFromJson(File.ReadString(File.DirAssets, "Example.json"))
    Click on the monitor icon to see the preferences dialog.


    Updates

    V1.66 - Support for 24 hours mode in time items.
    V1.65 - Support for the new Explanation item added to B4XPreferencesDialog v1.65.
    V1.50 - Support for two new field types added to B4XPreferencesDialog v1.50: Multiline Text and Decimal Number.
    Note that you can set the height of multiline text fields.
    V1.10 - Support for light themes. Make sure to also update B4XPreferencesDialog to v1.30.

    Make sure to download the latest version of B4XPreferencesDialog: https://www.b4x.com/android/forum/threads/b4x-b4xpreferencesdialog-cross-platform-forms.103842
     

    Attached Files:

    Last edited: Sep 22, 2019
    hibrid0, MarkusR, A0_2_A7 and 25 others like this.
  2. Erel

    Erel Administrator Staff Member Licensed User

    V1.10 released with support for forms with light themes.

    [​IMG]
     
  3. HAH

    HAH Active Member Licensed User

    Great tool, it is SUPER fast UI designing.
    Can this tool generate form for another purpose? as any form on activity?
    Also
    Why RTL still not supported!
     
    José J. Aguilar likes this.
  4. Erel

    Erel Administrator Staff Member Licensed User

    Interesting question. You are asking whether you can show the form without a dialog, right?

    This is quite complicated as different versions of Android behave in different ways. Might be added in the future...
     
    amaxco likes this.
  5. HAH

    HAH Active Member Licensed User

    Yes,how?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    It is currently not possible. Might be added in the future.
     
    hibrid0 likes this.
  7. HAH

    HAH Active Member Licensed User

    If this feature introduced to B4X, It'll make it the time fastest between competitors for developing B4X forms in activity.
    Currently; In large b4x apps that require a lot of forms (a lot of time), I am using my non b4x approach to accelerate the process, then merge the results inside b4x wrapper.

    I hope Mr. @Erel to introduce this feature in nearest future (Yes you can :) )
     
    hibrid0 likes this.
  8. Erel

    Erel Administrator Staff Member Licensed User

    It would have actually being simpler to build this library without the dialog.

    Try to implement your layout with dialogs. They are more efficient with the limited screen space.
     
    ocalle likes this.
  9. tuhatinhvn

    tuhatinhvn Active Member Licensed User

    can we set default value for item?
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    Yes. The default values are not part of the template. You need to set them in the "data" map.
     
    tuhatinhvn likes this.
  11. tuhatinhvn

    tuhatinhvn Active Member Licensed User

    so i will this form-builder to make a "default"-"data"-map( Store it : xui.DefaultFolder & "options.map" -as example) and copy this file to my app and use it for first-time ?
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    This tool creates the template. The data is not part of the template.

    You need to set the defaults in your app:
    Code:
    Dim data As Map = CreateMap("Key1"100"Key2""Example")
     
    tuhatinhvn likes this.
  13. Gabino A. de la Gala

    Gabino A. de la Gala Active Member Licensed User

    Would it be possible for events to be triggered each time the value of one of the fields was changed so that we could make verifications or even vary the value of other fields in the form at run time?
     
  14. Erel

    Erel Administrator Staff Member Licensed User

    I will add an optional validation event. It will allow you to validate the values when the user clicks on OK. Similar to the way the "required" fields work.
     
    Gabino A. de la Gala likes this.
  15. Erel

    Erel Administrator Staff Member Licensed User

  16. jimmyF

    jimmyF Active Member Licensed User

    B4XTable1.COLUMN_TYPE_NUMBERS does not accept decimals, only integers.
     
  17. Erel

    Erel Administrator Staff Member Licensed User

    B4XTable1.COLUMN_TYPE_NUMBERS is not related to B4XPreferencesDialog or forms builder.

    I guess that you are asking for a new item type that will accept decimal numbers, right?
     
    jimmyF likes this.
  18. jimmyF

    jimmyF Active Member Licensed User

    Yes, sorry, of course, :confused: I was working with the TableAndForms sample.

    A new item type that will accept decimal numbers would be greatly appreciated.

    If you could do it last week it would be even better :D
     
  19. Erel

    Erel Administrator Staff Member Licensed User

    Hopefully tomorrow...
     
    José J. Aguilar and jimmyF like this.
  20. jimmyF

    jimmyF Active Member Licensed User

    Well, that would be incredible. Thank you!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice