Android Question [Solved] Step through adding [B4X] [XUI] AnotherDatePicker

malcolmfowler

Member
Licensed User
Longtime User
Could someone step me through adding AnotherDatePicker to my project.

I have downloaded the code, copied AnotherDatePicker.bas into my project folder and added it using the FILES menu

In library manager added DateUtils & XUI

Now I would like to add it from the designer but it is not available. I am obviously missing something here.
 

klaus

Expert
Licensed User
Longtime User
In the Designer click on AddView / CustomView.

upload_2019-2-1_13-3-3.png


You should see AnotherDatePicker.

Don't forget to copy also the DatePicker.bal file to the projects Files folder.
This is for the AnotherDatePicker Class.

A better solution would be to use the B4X library: AnotherDatePicker.b4xlib
Copy the AnotherDatePicker.b4xlib file to AdditionalLibraries folder of B4A.
No need to care about the DatePicker.bal file, it is included in the AnotherDatePicker.b4xlib file.
Then you should see AnotherDatePicker in the Libraries Manager Tab:

upload_2019-2-1_13-12-56.png

If you still have the AnotherDatePicker Class module in your project, you must remove it!
 
Last edited:
Upvote 0

malcolmfowler

Member
Licensed User
Longtime User
Thanks Klaus,

Having come from a PHP background I'm finding it a bit frustrating knowing what I want to achieve but struggling to use B4A IDE etc.

Rgds
Malcolm
 
Upvote 0

malcolmfowler

Member
Licensed User
Longtime User
Klaus,

I followed your guidance, added the library and removed the AnotherDatePicker.bas file. Now in the designer the Add view->Custom View only shows 'Custom List View'

Thanks
Malcolm


lib.PNG
menu.PNG
 
Upvote 0

malcolmfowler

Member
Licensed User
Longtime User
Klaus,

Maybe this is a fault in the IDE or more likely the user! To start from scratch, I closed the Designer, removed the library reference from the IDE and closed the IDE.

Then

Open the IDE, add a tick on AnotherdatePicker library. Close the IDE. (just to be sure it saved the lib references). Opened the IDE, opened my Project, opened the designer ... No sign of the datepicker under AddView->Customview

Any thoughts?
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Any thoughts?
What version of B4A do you have?
B4X libraries are supported in B4A 8.80+

I just tested creating a new project, checking AnotherDatePicker in the Lib Tab, opened the Designer, and think what? I see AnotherDatePicker.

Attached my test project.
 

Attachments

  • TestAnotherDatePicker.zip
    9 KB · Views: 270
Upvote 0
Top