Recursive

O

olivier

Hi,

I'm trying to define a form that describe a system and would like to do that
in a recursive way. That's to say :

A system is composed of functions and a function is composed as
sub-functions (also called function)
A function is described with criteria, and a criteria could itself be
composed of criteria

So, I would like to have a form that allows to add function and criteria
horizontally and vertically, something like

Function 1
--criteria 1-a
--criteria 1-b
----criteria 1-b1
----criteria 1-b2
** Function 1-1
****criteria 1-1-a
******criteria 1-1-a1
Function 2
-- criteria 2-a

and so on

With the repeating option, the vertical growth is not a problem, but the
horizontal one (depth) causes problem. I get strange results depending if I
select repeating table, repeating section, repeating section with control
(I'm a bit lost) and don't undestand the difference between setting those
values in the data source view and selecting them as proposed when drag them
to the form. The insert command isn't always there.

The basic problem is that I don't know if this doesn't work because I don't
do it well or because Infopath isn't able to do it.

Thanks for your help
 
O

olivier

olivier said:
Hi,

I'm trying to define a form that describe a system and would like to do that
in a recursive way. That's to say :

A system is composed of functions and a function is composed as
sub-functions (also called function)
A function is described with criteria, and a criteria could itself be
composed of criteria

So, I would like to have a form that allows to add function and criteria
horizontally and vertically, something like

Function 1
--criteria 1-a
--criteria 1-b
----criteria 1-b1
----criteria 1-b2
** Function 1-1
****criteria 1-1-a
******criteria 1-1-a1
Function 2
-- criteria 2-a

and so on

With the repeating option, the vertical growth is not a problem, but the
horizontal one (depth) causes problem. I get strange results depending if I
select repeating table, repeating section, repeating section with control
(I'm a bit lost) and don't undestand the difference between setting those
values in the data source view and selecting them as proposed when drag them
to the form. The insert command isn't always there.

The basic problem is that I don't know if this doesn't work because I don't
do it well or because Infopath isn't able to do it.

Thanks for your help
Well, if anybody does not have a better answer, I think I found something
interesting but a bit complicated in the infopath sdf/best practices.
 
O

olivier

olivier said:
Hi,

I'm trying to define a form that describe a system and would like to do that
in a recursive way. That's to say :

A system is composed of functions and a function is composed as
sub-functions (also called function)
A function is described with criteria, and a criteria could itself be
composed of criteria

So, I would like to have a form that allows to add function and criteria
horizontally and vertically, something like

Function 1
--criteria 1-a
--criteria 1-b
----criteria 1-b1
----criteria 1-b2
** Function 1-1
****criteria 1-1-a
******criteria 1-1-a1
Function 2
-- criteria 2-a

and so on

With the repeating option, the vertical growth is not a problem, but the
horizontal one (depth) causes problem. I get strange results depending if I
select repeating table, repeating section, repeating section with control
(I'm a bit lost) and don't undestand the difference between setting those
values in the data source view and selecting them as proposed when drag them
to the form. The insert command isn't always there.

The basic problem is that I don't know if this doesn't work because I don't
do it well or because Infopath isn't able to do it.

Thanks for your help
Later...
If anybody doesn't have something more simple to propose, I think I found
something in the Infopath sdk/best practices/Create a recursive data
structure.
 
O

olivier

Well, thanks for the answer but it's a bit more complicated my english
explanation must not be very good.

I don't want just to indent but at first include a recursive section inside
another one. I want to have repeating functions (works ok of course),
functions composed of functions, function described by 0 to n criterions
(repeating), criterion composed of subcriterion.

The problem is that it's quite easy to have repeating functions or
criterions but I can't manage at this point to insert another function in a
function, or insert another criteria inside another one (component of a main
criterion or function)

In other words, I always get "insert below" or "insert above" but not always
for both the insert function and insert criterion command that are required
to insert in a sublevel.

Function (folder)
--FunctionId (Element)
--Criterion (folder)
----Criterion (Element)
--Function (reference to function)

I'm lost when dragging the stucture to the form, do I have to select insert
section, insert section with controls, insert table. And when I select
insert section with controls, I get many fields which do not looks like what
I want.


Greg Collins said:
It sounds like what you want is a way to indent the recursive section. This is not hard to do. Add a single-cell layout table with left-padding. Place the recursive block inside the layout table.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



Hi,

I'm trying to define a form that describe a system and would like to do that
in a recursive way. That's to say :

A system is composed of functions and a function is composed as
sub-functions (also called function)
A function is described with criteria, and a criteria could itself be
composed of criteria

So, I would like to have a form that allows to add function and criteria
horizontally and vertically, something like

Function 1
--criteria 1-a
--criteria 1-b
----criteria 1-b1
----criteria 1-b2
** Function 1-1
****criteria 1-1-a
******criteria 1-1-a1
Function 2
-- criteria 2-a

and so on

With the repeating option, the vertical growth is not a problem, but the
horizontal one (depth) causes problem. I get strange results depending if I
select repeating table, repeating section, repeating section with control
(I'm a bit lost) and don't undestand the difference between setting those
values in the data source view and selecting them as proposed when drag them
to the form. The insert command isn't always there.

The basic problem is that I don't know if this doesn't work because I don't
do it well or because Infopath isn't able to do it.

Thanks for your help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top