26
Views
7
Comments
Solved
Dynamically Checkbox
Question

Hello All,

i have an entity named "Service_List" with 3 attributes ("Name","Service","Barcode") 

|Name|Service|Barcode|

|George|Service 1|55|

|George|Service_1|56|

|George|Service_3|61|

The common attribute is the "Name" but the barcode must be severals.

I want to display X checkboxes for the Name= George ( where X =3 because in this example  the list length is 3) and every check box should have as additional text , the "Barcode" number. 

In my example, the requested result should be


Any advise or suggestion?

mvp_badge
MVP
Rank: #128
Solution

George Mitsiou wrote:

Thanks for your reply.

i aggregate successfully based on your instructions.

My confusion is how to list a list of checkboxes  and how to bind that data to list and assign value to the checkbox.

can you provide a sample example oml?


Use the attached OML to understand the way!

ListDemo.oap

mvp_badge
MVP
Rank: #128

George Mitsiou wrote:

Hello All,

i have an entity named "Service_List" with 3 attributes ("Name","Service","Barcode") 

|Name|Service|Barcode|

|George|Service 1|55|

|George|Service_1|56|

|George|Service_3|61|

The common attribute is the "Name" but the barcode must be severals.

I want to display X checkboxes for the Name= George ( where X =3 because in this example  the list length is 3) and every check box should have as additional text , the "Barcode" number. 

In my example, the requested result should be


Any advise or suggestion?


Hi,

Use a list of checkboxes and call aggregate that will return the row count for Name along with barcode and simply bind that data to list and assign value to the checkbox.


Aggregate should return Count and barcode-based on Name.


Thanks

Rank: #2428

Thanks for your reply.

i aggregate successfully based on your instructions.

My confusion is how to list a list of checkboxes  and how to bind that data to list and assign value to the checkbox.

can you provide a sample example oml?