Re: [Dhis2-users] Custom forms - disable / enable sections

2018-02-11 Thread Lars Helge Øverland
Hi Edward,

this is a popular request; unfortunately we do not have a specific feature
for this.

One option is to come up with a few facility "profiles" and create new data
sets for each, while re-using *the same* data elements within the data
sets, then assigning the data sets to the org units accordingly.

We are getting requests for several variants of this feature:

a) assigning data elements to facilities directly
b) assigning sections to facilities directly
c) assigning data elements to org unit groups within a group set
c) assigning sections to org unit groups within a group set

I assume your request is similar to d)? Would be good if you can explain a
bit more about your usecase.

best regards,

Lars




On 10 February 2018 at 00:02, Edward Robinson 
wrote:

> Is it possible to hide or show certain sections (tabs) of custom forms by
> facility based on some facility property?  We are trying to avoid having
> multiple forms for various services and present them on a single page with
> multiple tabs if possible, but we want to be able to hide tabs that are
> irrelevant for certain facilities.
>
> Thanks in advance for any ideas!
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
l...@dhis2.org
http://www.dhis2.org 
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] Custom forms - disable / enable sections

2018-02-09 Thread Edward Robinson
Is it possible to hide or show certain sections (tabs) of custom forms by 
facility based on some facility property?  We are trying to avoid having 
multiple forms for various services and present them on a single page with 
multiple tabs if possible, but we want to be able to hide tabs that are 
irrelevant for certain facilities.
Thanks in advance for any ideas!
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] Custom forms with tabs not working in 2.22

2016-02-22 Thread Ese Egerega
Hello,
I used the below script to create a custom form with tabs in version 2.21.
After upgrade to 2.22, the tabs no longer work. They are now rendered
as an ordered list (see snapshot below) and when you click on the list
it takes you out of the data entry form.
Is there something I need to do to the script to get back my tabs?
Please advice.

Thanks,

Ese


jQuery(document).ready( function() {
jQuery( '#tabs' ).tabs({ collapsible : true });
 });





Tab names
Tab names





[image: Inline image 2]
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Custom Forms

2015-01-19 Thread Guy Ekani
Hello,
Despite the fact that we didn't see all of the form in your screen capture, I 
think Section Forms could help you !
In Edit Data Set, dont forget to set : Render sections as tabs to Yes
https://www.dhis2.org/doc/snapshot/en/user/html/ch06s02.html#d5e1294
 Sincerely,
= EKANI Guy 



  

 Le Lundi 19 janvier 2015 18h22, David Muturi dnmut...@gmail.com a écrit :
   

 Hi DHIS team,
I want to further customize some forms developed by some users we trained on 
DHIS2 by adding some javascript/json to put in tabs because the form is 
long(see attachment). Anyone who has done this before, please help with a 
sample of the script or a resource to allow faster development.rgdsDavid
___
Mailing list: https://launchpad.net/~dhis2-users
Post to    : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help  : https://help.launchpad.net/ListHelp


   ___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Custom Forms

2015-01-19 Thread David Muturi
Many thanks Guy, I am aware of the section forms, this only applies to the
default forms, what  I wanted was a script to enable the custom form get
tabs.
rgds
David

2015-01-20 7:00 GMT+03:00 Guy Ekani constyek...@yahoo.fr:

 Hello,

 Despite the fact that we didn't see all of the form in your screen
 capture, I think *Section Forms *could help you !

 In Edit Data Set, dont forget to set : Render sections as tabs to Yes

 https://www.dhis2.org/doc/snapshot/en/user/html/ch06s02.html#d5e1294

 Sincerely,

 =
 EKANI Guy






   Le Lundi 19 janvier 2015 18h22, David Muturi dnmut...@gmail.com a
 écrit :


 Hi DHIS team,

 I want to further customize some forms developed by some users we trained
 on DHIS2 by adding some javascript/json to put in tabs because the form is
 long(see attachment). Anyone who has done this before, please help with a
 sample of the script or a resource to allow faster development.
 rgds
 David

 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to: dhis2-users@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help  : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Custom forms - Pagination/Section

2013-04-09 Thread Paulo Grácio
Thanks Lars, up and running.

 

From: Lars Helge Øverland [mailto:larshe...@gmail.com] 
Sent: segunda-feira, 8 de Abril de 2013 17:02
To: Paulo Grácio
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Custom forms - Pagination/Section

 

Hi Paolo,

 

I tested on the demo and it worked well.. Note that I have only tested on
version 2.11. You can view a full example from EPI stock data set at the
demo now. 

 

http://apps.dhis2.org/demo/dhis-web-dataentry/index.action

 

http://apps.dhis2.org/demo/dhis-web-maintenance-dataset/viewDataEntryForm.ac
tion?dataSetId=1149441

 

 

You need to hurry as the database is reset nightly ;)

 

 

 

cheers

 

Lars

 

 

On Wed, Apr 3, 2013 at 11:40 PM, Paulo Grácio pgra...@criticalsoftware.com
wrote:

L not getting there. If for instance you have a complete html custom form
definition with a sample working I would appreciate.

 

Regards,

Paulo Grácio

 

From: Lars Helge Øverland [mailto:larshe...@gmail.com] 
Sent: quarta-feira, 3 de Abril de 2013 19:19


To: Paulo Grácio
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Custom forms - Pagination/Section

 

Sorry seems I was a bit quick. You need to add another div with class cent
and an h3 as well. So like this:

 

 

div class=formSection

div class=centh3Name of section goes here/h3/div

 

// section html here

 

/div

 

 

 

 

On Wed, Apr 3, 2013 at 6:54 PM, Paulo Grácio pgra...@criticalsoftware.com
wrote:

Hi Lars,

 

Is this a specific functionality of version 2.11? 

 

Inspecting the code generated when displaying a Section Form we have

 

table style=margin-bottom: 20px; display: table; class=formSection

(…)

/table

 

So what I didn’t figure out is how just adding  div class=formSection
will make parameter “Filter on section” appear… doing what you said just
added a new border to my tables according to css 

 

.formSection {

border: 1px solid #C0C0C0;

border-radius: 3px 3px 3px 3px;

padding: 10px;

}

 

Is this a sign that I’m not a developer J?!

 

Kind regards,

Paulo Grácio

 

 

From: Lars Helge Øverland [mailto:larshe...@gmail.com] 
Sent: quarta-feira, 3 de Abril de 2013 18:03
To: Paulo Grácio
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Custom forms - Pagination/Section

 

Hi Paulo,

 

there is way for developers. Don't try this at home.

 

In custom form editor, view the source. Wrap the HTML contents that you want
to appear as a section in a div and add a class formSection to it,
something like:

 

div class=formSection

 

// Stuff that makes up a section here

 

/div

 

You should now be able to use the section drop-down that appears for section
forms in data entry.

 

Lars

 

 

 

 

 

 

On Wed, Apr 3, 2013 at 5:24 PM, Paulo Grácio pgra...@criticalsoftware.com
wrote:

Hello there,

 

Is there a simple way to add sections or pagination to a custom form? The
goal is to avoid scroll when dealing with long forms.

 

Kind regards,

 mailto:*%20your-email%20* Paulo Grácio
Technical Manager
(+258) 822 544 603 tel:%28%2B258%29%20822%20544%20603  

 http://www.criticalsoftware.co.uk Critical Software Mozambique
Dependable Technologies for Critical Systems

Critical Software Mozambique is a subsidiary of  http://cmmiinstitute.com/
Critical Software, a CMMI® Level 5 rated Company
CMMI® is registered in the USPTO by  http://www.cmu.edu/ CMU

Rua Pereira Marinho, 179
Bairro de Sommerchield
Maputo
Moçambique
Phone: (+258) 214 951 45 tel:%28%2B258%29%20214%20951%2045 
Fax: (+258) 214 951 46 tel:%28%2B258%29%20214%20951%2046 

DISCLAIMER: This message is confidential and may contain privileged
information. It is for use only by the people or entities to whom it is
addressed. If you are not an intended recipient, you should not disclose,
distribute, copy, print, rely on or otherwise make use of this message. If
an addressing or transmission error has misdirected it to you we would be
grateful if you would please notify the sender by return, before deleting it
from your system.

 


___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp

 

 

 

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Custom forms - Pagination/Section

2013-04-08 Thread Lars Helge Øverland
Hi Paolo,

I tested on the demo and it worked well.. Note that I have only tested on
version 2.11. You can view a full example from EPI stock data set at the
demo now.

http://apps.dhis2.org/demo/dhis-web-dataentry/index.action

http://apps.dhis2.org/demo/dhis-web-maintenance-dataset/viewDataEntryForm.action?dataSetId=1149441


You need to hurry as the database is reset nightly ;)



cheers

Lars



On Wed, Apr 3, 2013 at 11:40 PM, Paulo Grácio
pgra...@criticalsoftware.comwrote:

 L not getting there. If for instance you have a complete html custom form
 definition with a sample working I would appreciate.

 ** **

 Regards,

 Paulo Grácio

 ** **

 *From:* Lars Helge Øverland [mailto:larshe...@gmail.com]
 *Sent:* quarta-feira, 3 de Abril de 2013 19:19

 *To:* Paulo Grácio
 *Cc:* dhis2-users@lists.launchpad.net
 *Subject:* Re: [Dhis2-users] Custom forms - Pagination/Section

 ** **

 Sorry seems I was a bit quick. You need to add another div with class cent
 and an h3 as well. So like this:

 ** **

 ** **

 div class=formSection

 div class=centh3Name of section goes here/h3/div

 ** **

 // section html here

 ** **

 /div

 ** **

 ** **

 ** **

 ** **

 On Wed, Apr 3, 2013 at 6:54 PM, Paulo Grácio pgra...@criticalsoftware.com
 wrote:

 Hi Lars,

  

 Is this a specific functionality of version 2.11? 

  

 Inspecting the code generated when displaying a Section Form we have

  

 table style=margin-bottom: 20px; display: table; class=formSection**
 **

 (…)

 /table

  

 So what I didn’t figure out is how just adding  *div class=formSection
 * will make parameter *“Filter on section”* appear… doing what you said
 just added a new border to my tables according to css 

  

 *.formSection {*

 *border: 1px solid #C0C0C0;*

 *border-radius: 3px 3px 3px 3px;*

 *padding: 10px;*

 *}*

  

 Is this a sign that I’m not a developer J?!

  

 Kind regards,

 Paulo Grácio

  

  

 *From:* Lars Helge Øverland [mailto:larshe...@gmail.com]
 *Sent:* quarta-feira, 3 de Abril de 2013 18:03
 *To:* Paulo Grácio
 *Cc:* dhis2-users@lists.launchpad.net
 *Subject:* Re: [Dhis2-users] Custom forms - Pagination/Section

  

 Hi Paulo,

  

 there is way for developers. Don't try this at home.

  

 In custom form editor, view the source. Wrap the HTML contents that you
 want to appear as a section in a div and add a class formSection to it,
 something like:

  

 div class=formSection

  

 // Stuff that makes up a section here

  

 /div

  

 You should now be able to use the section drop-down that appears for
 section forms in data entry.

  

 Lars

  

  

  

  

  

  

 On Wed, Apr 3, 2013 at 5:24 PM, Paulo Grácio pgra...@criticalsoftware.com
 wrote:

 Hello there,

  

 Is there a simple way to add sections or pagination to a custom form? The
 goal is to avoid scroll when dealing with long forms.

  

 Kind regards,

 *Paulo Grácio *%20your-email%20**
 *Technical Manager*
 (+258) 822 544 603 

 *Critical Software Mozambique* http://www.criticalsoftware.co.uk
 *Dependable Technologies for Critical Systems*

 Critical Software Mozambique is a subsidiary of Critical Software, a
 CMMI® Level 5 rated Company http://cmmiinstitute.com/
 CMMI® is registered in the USPTO by CMU http://www.cmu.edu/

 Rua Pereira Marinho, 179
 Bairro de Sommerchield
 Maputo
 Moçambique
 Phone: (+258) 214 951 45
 Fax: (+258) 214 951 46

 DISCLAIMER: This message is confidential and may contain privileged
 information. It is for use only by the people or entities to whom it is
 addressed. If you are not an intended recipient, you should not disclose,
 distribute, copy, print, rely on or otherwise make use of this message. If
 an addressing or transmission error has misdirected it to you we would be
 grateful if you would please notify the sender by return, before deleting
 it from your system.

  


 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-users@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp

  

 ** **

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Custom forms - Pagination/Section

2013-04-03 Thread Lars Helge Øverland
Hi Paulo,

there is way for developers. Don't try this at home.

In custom form editor, view the source. Wrap the HTML contents that you
want to appear as a section in a div and add a class formSection to it,
something like:

div class=formSection

// Stuff that makes up a section here

/div

You should now be able to use the section drop-down that appears for
section forms in data entry.

Lars







On Wed, Apr 3, 2013 at 5:24 PM, Paulo Grácio
pgra...@criticalsoftware.comwrote:

 Hello there,

 ** **

 Is there a simple way to add sections or pagination to a custom form? The
 goal is to avoid scroll when dealing with long forms.

 ** **

 Kind regards,

 *Paulo Grácio *%20your-email%20**
 *Technical Manager*
 (+258) 822 544 603 

 *Critical Software Mozambique* http://www.criticalsoftware.co.uk
 *Dependable Technologies for Critical Systems*

 Critical Software Mozambique is a subsidiary of Critical Software, a
 CMMI® Level 5 rated Company http://cmmiinstitute.com/
 CMMI® is registered in the USPTO by CMU http://www.cmu.edu/

 Rua Pereira Marinho, 179
 Bairro de Sommerchield
 Maputo
 Moçambique
 Phone: (+258) 214 951 45
 Fax: (+258) 214 951 46

 DISCLAIMER: This message is confidential and may contain privileged
 information. It is for use only by the people or entities to whom it is
 addressed. If you are not an intended recipient, you should not disclose,
 distribute, copy, print, rely on or otherwise make use of this message. If
 an addressing or transmission error has misdirected it to you we would be
 grateful if you would please notify the sender by return, before deleting
 it from your system.

 ** **

 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-users@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Custom forms - Pagination/Section

2013-04-03 Thread Saptarshi Purkayastha
Love the Don't try this at home disclaimer! ;-)

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 3 April 2013 18:02, Lars Helge Øverland larshe...@gmail.com wrote:
 Hi Paulo,

 there is way for developers. Don't try this at home.

 In custom form editor, view the source. Wrap the HTML contents that you want
 to appear as a section in a div and add a class formSection to it,
 something like:

 div class=formSection

 // Stuff that makes up a section here

 /div

 You should now be able to use the section drop-down that appears for section
 forms in data entry.

 Lars







 On Wed, Apr 3, 2013 at 5:24 PM, Paulo Grácio pgra...@criticalsoftware.com
 wrote:

 Hello there,



 Is there a simple way to add sections or pagination to a custom form? The
 goal is to avoid scroll when dealing with long forms.



 Kind regards,

 Paulo Grácio
 Technical Manager
 (+258) 822 544 603

 Critical Software Mozambique
 Dependable Technologies for Critical Systems

 Critical Software Mozambique is a subsidiary of Critical Software, a CMMI®
 Level 5 rated Company
 CMMI® is registered in the USPTO by CMU

 Rua Pereira Marinho, 179
 Bairro de Sommerchield
 Maputo
 Moçambique
 Phone: (+258) 214 951 45
 Fax: (+258) 214 951 46

 DISCLAIMER: This message is confidential and may contain privileged
 information. It is for use only by the people or entities to whom it is
 addressed. If you are not an intended recipient, you should not disclose,
 distribute, copy, print, rely on or otherwise make use of this message. If
 an addressing or transmission error has misdirected it to you we would be
 grateful if you would please notify the sender by return, before deleting it
 from your system.




 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-users@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp



 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-users@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Custom forms - Pagination/Section

2013-04-03 Thread Paulo Grácio
Hi Lars,

 

Is this a specific functionality of version 2.11? 

 

Inspecting the code generated when displaying a Section Form we have

 

table style=margin-bottom: 20px; display: table; class=formSection

(…)

/table

 

So what I didn’t figure out is how just adding  div class=formSection
will make parameter “Filter on section” appear… doing what you said just
added a new border to my tables according to css 

 

.formSection {

border: 1px solid #C0C0C0;

border-radius: 3px 3px 3px 3px;

padding: 10px;

}

 

Is this a sign that I’m not a developer J?!

 

Kind regards,

Paulo Grácio

 

 

From: Lars Helge Øverland [mailto:larshe...@gmail.com] 
Sent: quarta-feira, 3 de Abril de 2013 18:03
To: Paulo Grácio
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Custom forms - Pagination/Section

 

Hi Paulo,

 

there is way for developers. Don't try this at home.

 

In custom form editor, view the source. Wrap the HTML contents that you want
to appear as a section in a div and add a class formSection to it,
something like:

 

div class=formSection

 

// Stuff that makes up a section here

 

/div

 

You should now be able to use the section drop-down that appears for section
forms in data entry.

 

Lars

 

 

 

 

 

 

On Wed, Apr 3, 2013 at 5:24 PM, Paulo Grácio pgra...@criticalsoftware.com
wrote:

Hello there,

 

Is there a simple way to add sections or pagination to a custom form? The
goal is to avoid scroll when dealing with long forms.

 

Kind regards,

 mailto:*%20your-email%20* Paulo Grácio
Technical Manager
(+258) 822 544 603 tel:%28%2B258%29%20822%20544%20603  

 http://www.criticalsoftware.co.uk Critical Software Mozambique
Dependable Technologies for Critical Systems

Critical Software Mozambique is a subsidiary of  http://cmmiinstitute.com/
Critical Software, a CMMI® Level 5 rated Company
CMMI® is registered in the USPTO by  http://www.cmu.edu/ CMU

Rua Pereira Marinho, 179
Bairro de Sommerchield
Maputo
Moçambique
Phone: (+258) 214 951 45 tel:%28%2B258%29%20214%20951%2045 
Fax: (+258) 214 951 46 tel:%28%2B258%29%20214%20951%2046 

DISCLAIMER: This message is confidential and may contain privileged
information. It is for use only by the people or entities to whom it is
addressed. If you are not an intended recipient, you should not disclose,
distribute, copy, print, rely on or otherwise make use of this message. If
an addressing or transmission error has misdirected it to you we would be
grateful if you would please notify the sender by return, before deleting it
from your system.

 


___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp

 

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Custom forms - Pagination/Section

2013-04-03 Thread Lars Helge Øverland
Sorry seems I was a bit quick. You need to add another div with class cent
and an h3 as well. So like this:


div class=formSection
div class=centh3Name of section goes here/h3/div

// section html here

/div





On Wed, Apr 3, 2013 at 6:54 PM, Paulo Grácio
pgra...@criticalsoftware.comwrote:

 Hi Lars,

 ** **

 Is this a specific functionality of version 2.11? 

 ** **

 Inspecting the code generated when displaying a Section Form we have

 ** **

 table style=margin-bottom: 20px; display: table; class=formSection**
 **

 (…)

 /table

 ** **

 So what I didn’t figure out is how just adding  *div class=formSection
 * will make parameter *“Filter on section”* appear… doing what you said
 just added a new border to my tables according to css 

 ** **

 *.formSection {*

 *border: 1px solid #C0C0C0;*

 *border-radius: 3px 3px 3px 3px;*

 *padding: 10px;*

 *}*

 ** **

 Is this a sign that I’m not a developer J?!

 ** **

 Kind regards,

 Paulo Grácio

 ** **

 ** **

 *From:* Lars Helge Øverland [mailto:larshe...@gmail.com]
 *Sent:* quarta-feira, 3 de Abril de 2013 18:03
 *To:* Paulo Grácio
 *Cc:* dhis2-users@lists.launchpad.net
 *Subject:* Re: [Dhis2-users] Custom forms - Pagination/Section

 ** **

 Hi Paulo,

 ** **

 there is way for developers. Don't try this at home.

 ** **

 In custom form editor, view the source. Wrap the HTML contents that you
 want to appear as a section in a div and add a class formSection to it,
 something like:

 ** **

 div class=formSection

 ** **

 // Stuff that makes up a section here

 ** **

 /div

 ** **

 You should now be able to use the section drop-down that appears for
 section forms in data entry.

 ** **

 Lars

 ** **

 ** **

 ** **

 ** **

 ** **

 ** **

 On Wed, Apr 3, 2013 at 5:24 PM, Paulo Grácio pgra...@criticalsoftware.com
 wrote:

 Hello there,

  

 Is there a simple way to add sections or pagination to a custom form? The
 goal is to avoid scroll when dealing with long forms.

  

 Kind regards,

 *Paulo Grácio *%20your-email%20**
 *Technical Manager*
 (+258) 822 544 603 

 *Critical Software Mozambique* http://www.criticalsoftware.co.uk
 *Dependable Technologies for Critical Systems*

 Critical Software Mozambique is a subsidiary of Critical Software, a
 CMMI® Level 5 rated Company http://cmmiinstitute.com/
 CMMI® is registered in the USPTO by CMU http://www.cmu.edu/

 Rua Pereira Marinho, 179
 Bairro de Sommerchield
 Maputo
 Moçambique
 Phone: (+258) 214 951 45
 Fax: (+258) 214 951 46

 DISCLAIMER: This message is confidential and may contain privileged
 information. It is for use only by the people or entities to whom it is
 addressed. If you are not an intended recipient, you should not disclose,
 distribute, copy, print, rely on or otherwise make use of this message. If
 an addressing or transmission error has misdirected it to you we would be
 grateful if you would please notify the sender by return, before deleting
 it from your system.

  


 ___
 Mailing list: https://launchpad.net/~dhis2-users
 Post to : dhis2-users@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp

 ** **

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Custom forms - Pagination/Section

2013-04-03 Thread Paulo Grácio
L not getting there. If for instance you have a complete html custom form
definition with a sample working I would appreciate.

 

Regards,

Paulo Grácio

 

From: Lars Helge Øverland [mailto:larshe...@gmail.com] 
Sent: quarta-feira, 3 de Abril de 2013 19:19
To: Paulo Grácio
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Custom forms - Pagination/Section

 

Sorry seems I was a bit quick. You need to add another div with class cent
and an h3 as well. So like this:

 

 

div class=formSection

div class=centh3Name of section goes here/h3/div

 

// section html here

 

/div

 

 

 

 

On Wed, Apr 3, 2013 at 6:54 PM, Paulo Grácio pgra...@criticalsoftware.com
wrote:

Hi Lars,

 

Is this a specific functionality of version 2.11? 

 

Inspecting the code generated when displaying a Section Form we have

 

table style=margin-bottom: 20px; display: table; class=formSection

(…)

/table

 

So what I didn’t figure out is how just adding  div class=formSection
will make parameter “Filter on section” appear… doing what you said just
added a new border to my tables according to css 

 

.formSection {

border: 1px solid #C0C0C0;

border-radius: 3px 3px 3px 3px;

padding: 10px;

}

 

Is this a sign that I’m not a developer J?!

 

Kind regards,

Paulo Grácio

 

 

From: Lars Helge Øverland [mailto:larshe...@gmail.com] 
Sent: quarta-feira, 3 de Abril de 2013 18:03
To: Paulo Grácio
Cc: dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] Custom forms - Pagination/Section

 

Hi Paulo,

 

there is way for developers. Don't try this at home.

 

In custom form editor, view the source. Wrap the HTML contents that you want
to appear as a section in a div and add a class formSection to it,
something like:

 

div class=formSection

 

// Stuff that makes up a section here

 

/div

 

You should now be able to use the section drop-down that appears for section
forms in data entry.

 

Lars

 

 

 

 

 

 

On Wed, Apr 3, 2013 at 5:24 PM, Paulo Grácio pgra...@criticalsoftware.com
wrote:

Hello there,

 

Is there a simple way to add sections or pagination to a custom form? The
goal is to avoid scroll when dealing with long forms.

 

Kind regards,

 mailto:*%20your-email%20* Paulo Grácio
Technical Manager
(+258) 822 544 603 tel:%28%2B258%29%20822%20544%20603  

 http://www.criticalsoftware.co.uk Critical Software Mozambique
Dependable Technologies for Critical Systems

Critical Software Mozambique is a subsidiary of  http://cmmiinstitute.com/
Critical Software, a CMMI® Level 5 rated Company
CMMI® is registered in the USPTO by  http://www.cmu.edu/ CMU

Rua Pereira Marinho, 179
Bairro de Sommerchield
Maputo
Moçambique
Phone: (+258) 214 951 45 tel:%28%2B258%29%20214%20951%2045 
Fax: (+258) 214 951 46 tel:%28%2B258%29%20214%20951%2046 

DISCLAIMER: This message is confidential and may contain privileged
information. It is for use only by the people or entities to whom it is
addressed. If you are not an intended recipient, you should not disclose,
distribute, copy, print, rely on or otherwise make use of this message. If
an addressing or transmission error has misdirected it to you we would be
grateful if you would please notify the sender by return, before deleting it
from your system.

 


___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp

 

 

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp