B4J Question SOLVED-B4XTable InlineEditing

Mikelgiles

Active Member
Licensed User
Longtime User
Has anyone modified B4XTable InlineEditing to use the Dialog DateTemplate instead of text editing for date fields. I have a app that can really benefit from converting to inlineEditing but I really hate to loose the calendar template for date fields.

I am referring to( B4J Library [B4X] InlineEditing - extends B4XTable with inline editing features dated Jan 2, 2020)
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I haven't tested it too much but it seems to work properly:

Two changes:

IE_EnterEditMode:

B4X:
Case "Date"
            DateTemplate.Date = FC.PrevValue
            FC.View = xui.CreatePanel("")
            Wait For (Dialog.ShowTemplate(DateTemplate, "", "", "Cancel")) Complete (Result As Int)
            ie.ExitEditMode

IE_GetUdpatedValue:

B4X:
    Case "Date"
            Return DateTemplate.Date
 
Upvote 0

Mikelgiles

Active Member
Licensed User
Longtime User
I haven't tested it too much but it seems to work properly:

Two changes:

IE_EnterEditMode:

B4X:
Case "Date"
            DateTemplate.Date = FC.PrevValue
            FC.View = xui.CreatePanel("")
            Wait For (Dialog.ShowTemplate(DateTemplate, "", "", "Cancel")) Complete (Result As Int)
            ie.ExitEditMode

IE_GetUdpatedValue:

B4X:
    Case "Date"
            Return DateTemplate.Date
Works perfectly. Thanks very much Erel!
 
Upvote 0
Top