Comma separated version of Repeating Section

A

A.M

Hi,



When I use a Repeating Section to show my data, it adds a line break to each
line (row), so InfoPath shows a list like:



A

B

C

D

E



How can I remove the line break, so InfoPath renders my data as comma
separated chain of item like this:



A, B, C, D, E



Any help would be appreciated,

Alan
 
S

Scott L. Heim [MSFT]

Hi Alan,

Typically a Repeating Section is indeed used to display multiple records
(i.e. rows) so what you are seeing is expected. What is your Repeating
Section bound to? In other words, what type of data (records) is this
supposed to display?

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
A

A.M

Hi Scott,

I am creating a RSS viewer.

For example if you have alook at this link:

http://msdn.microsoft.com/rss.xml

The style sheet renders all category tags within /rss/channel/item/categoty
as a chain of categories separated by "|" (or bar character).

My RSS viewer that I designed with InfoPath shows categories like this:

Technical article |
Academics |
Architects |
Developers |
ISVs |
IT Professionals |
Students |
C# |
CPU |
Windows |
MapPoint .NET |
Microsoft Office |
Microsoft Office Developer |
..NET development |
..NET Framework |

whereas it should appear as:

Technical article | Academics | Architects | Developers | ISVs | IT
Professionals | Students | C# | CPU | Windows | C# | MapPoint .NET |
Microsoft Office | Microsoft Office Developer | .NET development | .NET
Framework |

Does that make sense?





Thank you for help,
Alan
 
S

Scott L. Heim [MSFT]

Hi Alan,

Thanks for the additional information. So now I have one more question:
where do your categories come from that are being displayed in InfoPath?

Thanks,

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

Scott L. Heim [MSFT]

Hi Alan,

Again...thanks - that is what I was looking for.

I am assuming you are adding the XML file as a "data connection" to your
InfoPath project. As you are seeing, each of these items are considered a
"record" hence you get a "repeating" type of control.

The only way I can think of to get what you would need is to not use the
XML data specifically on your form but to write code (script) that loads
that XML file, selects the appropriate nodes (i.e. the ones that contain
the categories), loops through those nodes, builds a string of the values
and then finally sets the "text" value of a control on your form to that
string.

Does that make sense?

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
A

A.M

Sorry, I hit "Send" Button accidentally in my previous post.



Yes it does makes sense. Thank you for help.



Regards,

Alan
 

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