dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #44062
Re: Header location for Data Entry tables
Hey All,
We should have jQuery available on the page. So it is probably the most
straight forward way to use the floatThread thing.
The library seems pretty mature. I like that better than the scrollable
table body, as that adds an extra scrollbar.
Regards,
Mark
On Fri, Mar 18, 2016 at 9:04 AM, Vanya Seth <vanyas@xxxxxxxxxxxxxxxx> wrote:
> Hi Mark
>
> Thanks a lot for the response.
>
> The changes are for the section forms only.
>
> Thanks for a good to go. :)
> But if you could also comment on the technical approach presented in the
> first email, it would be very useful.
>
> Regards
> Vanya
>
>
> On Fri, Mar 18, 2016 at 1:16 PM, Mark Polak <mark@xxxxxxxxx> wrote:
>
>> Hey Kaustav and Vanya,
>>
>> Your projected changes are related to section forms (not custom forms) is
>> that correct?
>>
>> For custom forms the users are able to "hack" the html representation.
>> Therefore they could accidentally break this feature, which makes it seem
>> not reliable.
>>
>> So it is for section forms then (the default generated forms) then we
>> think this would be a welcome feature to go into trunk.
>>
>> Regards,
>>
>> Mark
>>
>> On Thu, Mar 17, 2016 at 4:03 PM, Mark Polak <mark@xxxxxxxxx> wrote:
>>
>>> Hey Vanya,
>>>
>>> Thank you for your patience. I'm waiting for a reply from Lars on this.
>>> Will ask him to confirm again ;)
>>>
>>> Regards,
>>>
>>> Mark
>>>
>>> On Thu, Mar 17, 2016 at 3:34 PM, Vanya Seth <vanyas@xxxxxxxxxxxxxxxx>
>>> wrote:
>>>
>>>> Hi Mark and Nicolay
>>>>
>>>> Hope you both are doing well.
>>>>
>>>> Have you had a chance to look into Kaustav's email?
>>>>
>>>> We have started a new iteration and wanted to pick up this work asap.
>>>> Any help would be greatly appreciated.
>>>>
>>>> Thanks in advance
>>>> Vanya
>>>>
>>>>
>>>>
>>>> On Tue, Mar 15, 2016 at 6:36 PM, Kaustav Chakraborty <
>>>> kaustavc@xxxxxxxxxxxxxxxx> wrote:
>>>>
>>>>> Hi Mark
>>>>>
>>>>> Hope you are doing well.
>>>>>
>>>>> We want to make some enhancements to the Data entry app. Which is to
>>>>> make the data entry table header ( category combo header ) stay constant
>>>>> even if we scroll down the page, so that the user knows which column they
>>>>> are entering the data in.
>>>>>
>>>>>
>>>>> These are a few questions,
>>>>>
>>>>>
>>>>> *1. Would this be alright to add this to DHIS?*
>>>>>
>>>>> *2. If you have any recommendations regarding the implementation of
>>>>> this feature? Like using some library or anything of that sort?*
>>>>>
>>>>>
>>>>> At our end we have explored a few things:
>>>>>
>>>>> *Assume, the table is structured as below,*
>>>>>
>>>>> table
>>>>>
>>>>> thead
>>>>>
>>>>> tr
>>>>>
>>>>> th
>>>>>
>>>>> tbody
>>>>>
>>>>> tr
>>>>>
>>>>> td
>>>>>
>>>>>
>>>>> *1. Using a Library:*
>>>>>
>>>>> There is a javascript library called floatThead
>>>>> <https://github.com/mkoryak/floatThead> that can be leveraged for
>>>>> this. It also works with multiple tables present in a single page. So while
>>>>> scrolling the table header remain fixed for each tables.
>>>>>
>>>>>
>>>>> *2. Not using any library,*
>>>>>
>>>>> We can have some fixed height given to a table body and put the
>>>>> y-axis scroll for the table. User has to come to the table element and
>>>>> scroll to get their data element to be seen.
>>>>>
>>>>>
>>>>> I have attached the screenshots for better understanding.
>>>>>
>>>>> We are waiting for your response.
>>>>>
>>>>>
>>>>>
>>>>> Thanks & Regards,
>>>>>
>>>>> *Kaustav Chakraborty*
>>>>> STEP Intern
>>>>> Email kaustavc@xxxxxxxxxxxxxxxx
>>>>> Telephone +91 91009 60526 <+91+91009+60526>
>>>>> [image: ThoughtWorks]
>>>>> <http://www.thoughtworks.com/?utm_campaign=kaustav-chakraborty-signature&utm_medium=email&utm_source=thoughtworks-email-signature-generator>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> With Regards
>>>> ThoughtWorks Technologies
>>>> Hyderabad
>>>>
>>>> --Stay Hungry Stay Foolish!!
>>>>
>>>
>>>
>>
>
>
> --
> With Regards
> ThoughtWorks Technologies
> Hyderabad
>
> --Stay Hungry Stay Foolish!!
>
References