Last activity: 18 Mar 2023 5:24 EDT
how to create multiple check boxes using page list and repeat dynamic layout in ver 8.7
My requirement is create multiple check boxes in page list with repeat dynamic layout data page as source.
I was created a Data type "Org-Data-Tests" and Add records. I want those record names to my check boxes.
Next i was created section in data class "Org-Data-Tests" for repeating dynamic grid with one check box. Check Below Images for section with cell properly. Then I was created a section, page list in work class and drag repeat dynamic layout and it has data page as source and Container format property = Page List.
my data class having 18 records. That record are added as check boxes. But names of check boxes are not visible. how to add that record names check boxes. I need output like 4 columns, 1st, 2nd,4th columns each having 5 check boxes and 3rd check box having 3 check boxes and I was attached required format Image also. How to do that please help me. check below images
@NagarjunaS16644648 Hi, Can you please add the property in check box caption (the property which holds the values like Diabetes, CT Scan etc., ) then you will have the names for the check boxes as well. You can also adjust the position of the caption in the presentation tab. Please check and let us know
@SrinidhiM Thank You Srinidhi M. Its Working. I need output like 4 columns, 1st, 2nd,4th columns each having 5 check boxes and 3rd check box having 3 check boxes and I was attached required format Image also. How to do that please help me. check below image.
@NagarjunaS16644648 , Hi,
Add a Repeating Dynamic Layout use a data page/ property where you have the data stored and configure as shown below:
Drag a section to the RDL, the section should be available in the definition class of your data page or property, add a checkbox in the created section and configure it with the desired property and caption. Now save and check it. Please let me know if it works
@NagarjunaS16644648 if you have added only checkboxes in your data type add 1 more column, say .pyLabel/Name to hold the display name. Then you can add this .pyLabel/Name in Checkbox caption of TestRepeatSection or you can keep a text Value right to the checkbox and refer this property.
@AnoopK12 Thank You Anoop K. Its Working. I need output like 4 columns, 1st, 2nd,4th columns each having 5 check boxes and 3rd check box having 3 check boxes and I was attached required format Image also. How to do that please help me. check below image.
@NagarjunaS16644648 In the data type you can add 1 more column, columnorder(Integer). For 1st column give 1, 2nd column 2, 3rd 3, 4th 4. For all the checkboxes in the 1st column give 1 as the value for column order, 2 for 2nd and so on. Then in the Report Definition of your Dpage add this new column and apply sorting(1). Now in TestRepeatSection, you add 4 stacked dynamic layout and keep 4 checkboxes inside each dynamic layout. Now give visible condition for each stacked layout like-> when columnorder==1, columnorder==2,columnorder==3,columnorder==4.
@NagarjunaS16644648 Without sorting also it will work. Sorting is optional.
@AnoopK12 Thank Anoop. But I was done same. But my 1st column check boxes are visible in 1st row, I need 3rd columns have 3 check boxes only and 4th column have 5 boxes. But here 4 4 check boxes in 4th and column. please give solution
@NagarjunaS16644648 If you are inserting column order in data type and having seperate stacked dynamic layout for different checkboxes, and writing visibility based on column order will work for this scenario. You can first figure by displaying the 1st column...So visible never all the other 3 checkboxes and check how 1st is behaving. Then do for 2nd and so on.
@AnoopK12 Thank you very Mr. Anoop. Its Working Fine. Can you tell me how to write data transfer select all check boxes are selected when radio button "Select All" radio button is selected and Blood Pressure, Diabetic, Hemoglobin check boxes are selected when "Set to default" radio button is select. One more thing if I select all individual checkboxes then Select all radio button is selected
Updated: 28 Feb 2023 1:15 EST
@NagarjunaS16644648 Can you make this solution as accepted? Sure so what you are asking is you want a select All option in which users on enabling that all the checkboxes should become true?
@NagarjunaS16644648 You can keep a checkbox at the top, you can use ootb property or new property for it, but boolean. Write a data transform in the action set of this checkbox. So onchane-> 1.Post Value 2.Refresh-this-section. On refresh this section call a data transform-> If this property=true, you loop your data page D_TestLists and set the checkbox property to true. That means checkbox of all the pages within the data pages will become true and this will satisfy your requirement.
@Anoop Krishna Here I'm using radio button select all option is used. how to achieve it
@NagarjunaS16644648 . I have small about this requirement. how to shows the selected check boxes in pyWorkPage.
@NagarjunaS16644648 you will have true value for all of your checkboxes. You can use a read only section including all your checkboxes and in each of the cell with that checkbox property as true
@Anoop Krishna I am Asking for How to show those selected check box properties values to pyWorkPage in clipboard