Mikelgiles Active Member Licensed User Longtime User Sep 6, 2020 #1 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)
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 Sep 6, 2020 #2 I haven't tested it too much but it seems to work properly: Two changes: IE_EnterEditMode: Code: Case "Date" DateTemplate.Date = FC.PrevValue FC.View = xui.CreatePanel("") Wait For (Dialog.ShowTemplate(DateTemplate, "", "", "Cancel")) Complete (Result As Int) ie.ExitEditMode IE_GetUdpatedValue: Code: Case "Date" Return DateTemplate.Date Upvote 0
I haven't tested it too much but it seems to work properly: Two changes: IE_EnterEditMode: Code: Case "Date" DateTemplate.Date = FC.PrevValue FC.View = xui.CreatePanel("") Wait For (Dialog.ShowTemplate(DateTemplate, "", "", "Cancel")) Complete (Result As Int) ie.ExitEditMode IE_GetUdpatedValue: Code: Case "Date" Return DateTemplate.Date
LucaMs Expert Licensed User Longtime User Sep 27, 2020 #3 Erel said: I haven't tested it too much but it seems to work properly: Click to expand... Correct, as always. Attachments B4XTableEditingDates.zip B4XTableEditingDates.zip 5.6 KB · Views: 577 Upvote 0
Erel said: I haven't tested it too much but it seems to work properly: Click to expand... Correct, as always.
Mikelgiles Active Member Licensed User Longtime User Oct 9, 2020 #5 Erel said: I haven't tested it too much but it seems to work properly: Two changes: IE_EnterEditMode: Code: Case "Date" DateTemplate.Date = FC.PrevValue FC.View = xui.CreatePanel("") Wait For (Dialog.ShowTemplate(DateTemplate, "", "", "Cancel")) Complete (Result As Int) ie.ExitEditMode IE_GetUdpatedValue: Code: Case "Date" Return DateTemplate.Date Click to expand... Works perfectly. Thanks very much Erel! Upvote 0
Erel said: I haven't tested it too much but it seems to work properly: Two changes: IE_EnterEditMode: Code: Case "Date" DateTemplate.Date = FC.PrevValue FC.View = xui.CreatePanel("") Wait For (Dialog.ShowTemplate(DateTemplate, "", "", "Cancel")) Complete (Result As Int) ie.ExitEditMode IE_GetUdpatedValue: Code: Case "Date" Return DateTemplate.Date Click to expand... Works perfectly. Thanks very much Erel!