×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Need assistance with XML- Sort/Grouping (alpha sort; hide without groups)

Need assistance with XML- Sort/Grouping (alpha sort; hide without groups)

Need assistance with XML- Sort/Grouping (alpha sort; hide without groups)

(OP)
I am stuck with an XML problem and do not know how else to get around it.

We are using software for invoicing, the program allows me to define what I want group or sorted.

However, no matter which options I play around with, someone's either title or name ends up messing up the way I want the invoice to look.

Is there a way for me to put in some type of XML style language to get it to sort and group the way I want it to.

I would like the Name to be the grouping.

Then I would like the sort to be done in highest-lowest rate, highest-lowest title, and of course the data to flow in date order.

This is an excerpt from the source code.

<dataTable collection="time" style="margin-top:40;" pageBreak="before avoid" showRptTotal="1" showSubTotals="1" group1="TMTeamRole" group2="TMStaffNm" rptTotalTitle="TOTAL FEES" rptTotalTitleCellAlignment="right" sort1="TMDt" sort2="TMStaffNm">
<heading id="time_head" style="" class="TitleFont HeaderTitle">TIME DETAILS</heading>
<fld label="Team Role" style="width:100;">TMTeamRole</fld>
<fld label="Date" style="width:90;text-align:right;">TMDt</fld>
<fld label="Description">TMNotes</fld>
<fld label="Hrs" style="width:80;text-align:right;">TMHrsBill2</fld>
</dataTable>

Thank you, I have had several years of college, but nothing in programming. And, to be honest I am suprised I got this far. The alpha-sort is my last hurdle. Then when I eliminate the groups altogether, the data is exactly as it should be just that we do not want the repeat of each field saying the person's name, role on every line of data.

Thanks.

RE: Need assistance with XML- Sort/Grouping (alpha sort; hide without groups)

Hi kokch,
You posted your question in Perl programming forum, so I thought you need help with a Perl program for XML processing. But you ask "Is there a way for me to put in some type of XML style language to get it to sort and group the way I want it to."
I suggest you rather post your questions in XML specialized forum here:
https://www.tek-tips.com/threadminder.cfm?pid=426

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close