cancel
Showing results for 
Search instead for 
Did you mean: 

Reporting on Frequency of Fragment Usage

Rob_Dale
Star Contributor
Star Contributor

I have a tricky request from our users.  I've been asked to create a report showing which fragments from a certain Doc Comp template are used, the frequency that they are used, and also providing a report on which fragments were used for individual composed letters.

 

The template in question has 92 possible fragments.  These fragments are selected from an HTML form with 92 check boxes.  Currently, these check boxes are not mapped to keywords, they are only used for selecting the fragments.

 

I'm really struggling to come up with a viable solution.  The closest I've been able to come up with is update the HTML form to have the check boxes set values in a MIKG.  However, it's not recommended to use MIKG's in Doc Comp.  Having individual keywords doesn't seem like a viable option, as I'd either have to have 92 columns on the report, or create a SQL query to get the values of 92 keywords, and concatenate into a single column.

 

Has anyone had to do this, or have any suggestions on how to track and report on which Fragments are used?

1 ACCEPTED ANSWER

Eric_Beavers
Employee
Employee

Is the HTML form an actual Eform Document Type? That is what it sounds like from your description, including the checkboxes being nonkeyword fields. Is this the case?

 

How many are in the system at this time?

 

I think Workflow could be a possible solution. Here are few ideas...

For 100-10,000s of these documents, a system task would be fine. For more documents a Unity Scheduler timer would scale much more effectively.

 

First, Workflow can interact with Non-Keyword fields using Properties.

Take the following Eform example:

419610854a474269bf5491712972a2fa

 

Source Code:

711f82760a484c4fa5b1871cdd098945

 

To get the value of CheckBox1, I would configure the above action, Set Property Value, (prop name - propOption1) with "From E-Form Field" = c1. I believe the property will store as "on" when the box is checked.

 

8aa8a4edc5714db7b486b2f180f65cb7

 

To test this I just call a message box:

c59fd183956a4f98b1e79c13ee1b3b93

 

so in my client I get a success:

 

e968707ed6774806bcc5b88fb0ee3c66

or a null:

79dd55a4cd984f7fbb5b665a170b9b25

 

 

 

Next, you could use the Rule: Check Property Value to see if it matches the above (ex: propOption1 = TRUE).

Then, On True, increment a property (propOption1Count) with Action: Set Property to Expression (propOption1Count = Cint(%VpropOption1Count)+1). With a completed run of a system task or timer, you could then access your propOptionCount with a %VpropOption1Count token and display a message box or send an email report on demand.

df1a3113acfc49558ae1d8fd47ce05f8

 

9ab1b8deb00f4465a70bb0ead9a5c518

 

I know what you are thinking right now "With 92 separate fields it would be a massive task list", but the logic would be generally a repeat of the same 3 rule/actions listed here. So it would take a few hours to copy and paste, changing the field and property names for each checkbox.

 

Is there a better approach? As I built this out I started thinking...

Perhaps we can simply the logic and just export to a CSV file with half the logic...then use MS Excel to get the reports.

 

The logic is easier...2 actions:

3f52277d1a8045b9a953122ffc8a8f23

The Set multiple props action is new in OnBase18 and very useful here.

c9d685d8ae274a6497e1d8243e60deb3

 

The Export to Network Location just needs to be configured as an Index File:

 

2cb6bc31ebcd487cbef6b2a722ad5585

 

The output =

 

0c20b92582554cdca6b4d1d2120612c5

 

At this point you can  just use pure ms excel. I added a header row, replaced all instances of "on" with 1, and added a count() function.

 

5947f90be604490bb04e223c11bc515d

 

View answer in original post

2 REPLIES 2

Eric_Beavers
Employee
Employee

Is the HTML form an actual Eform Document Type? That is what it sounds like from your description, including the checkboxes being nonkeyword fields. Is this the case?

 

How many are in the system at this time?

 

I think Workflow could be a possible solution. Here are few ideas...

For 100-10,000s of these documents, a system task would be fine. For more documents a Unity Scheduler timer would scale much more effectively.

 

First, Workflow can interact with Non-Keyword fields using Properties.

Take the following Eform example:

419610854a474269bf5491712972a2fa

 

Source Code:

711f82760a484c4fa5b1871cdd098945

 

To get the value of CheckBox1, I would configure the above action, Set Property Value, (prop name - propOption1) with "From E-Form Field" = c1. I believe the property will store as "on" when the box is checked.

 

8aa8a4edc5714db7b486b2f180f65cb7

 

To test this I just call a message box:

c59fd183956a4f98b1e79c13ee1b3b93

 

so in my client I get a success:

 

e968707ed6774806bcc5b88fb0ee3c66

or a null:

79dd55a4cd984f7fbb5b665a170b9b25

 

 

 

Next, you could use the Rule: Check Property Value to see if it matches the above (ex: propOption1 = TRUE).

Then, On True, increment a property (propOption1Count) with Action: Set Property to Expression (propOption1Count = Cint(%VpropOption1Count)+1). With a completed run of a system task or timer, you could then access your propOptionCount with a %VpropOption1Count token and display a message box or send an email report on demand.

df1a3113acfc49558ae1d8fd47ce05f8

 

9ab1b8deb00f4465a70bb0ead9a5c518

 

I know what you are thinking right now "With 92 separate fields it would be a massive task list", but the logic would be generally a repeat of the same 3 rule/actions listed here. So it would take a few hours to copy and paste, changing the field and property names for each checkbox.

 

Is there a better approach? As I built this out I started thinking...

Perhaps we can simply the logic and just export to a CSV file with half the logic...then use MS Excel to get the reports.

 

The logic is easier...2 actions:

3f52277d1a8045b9a953122ffc8a8f23

The Set multiple props action is new in OnBase18 and very useful here.

c9d685d8ae274a6497e1d8243e60deb3

 

The Export to Network Location just needs to be configured as an Index File:

 

2cb6bc31ebcd487cbef6b2a722ad5585

 

The output =

 

0c20b92582554cdca6b4d1d2120612c5

 

At this point you can  just use pure ms excel. I added a header row, replaced all instances of "on" with 1, and added a count() function.

 

5947f90be604490bb04e223c11bc515d

 

Eric,

 

Wow, thanks!  That's pretty close.  The one limitation I see from this is that it's running on a task or timer, and since it's a property, it's only available at run time.  I know, the alternative would be 92 keywords, though, which isn't much better.  I'll be discussing with our users.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.