Search found 27 matches

by kkirkfield
Mon Jul 23, 2018 1:22 pm
Forum: Automation Code Snippets
Topic: Convert RTF to Text Using Same Library as SPS
Replies: 3
Views: 1717

Re: Convert RTF to Text Using Same Library as SPS

Thanks Bob, I didn't realize I could do this with a built-in control. WinForms is in the GAC, so I'm able to use the RichTextBox from IronPython to achieve good results. Here is a working example. import clr clr.AddReference('System.Windows.Forms') from System.Windows.Forms import RichTextBox rtb = ...
by kkirkfield
Sat Jul 21, 2018 2:05 pm
Forum: Automation Code Snippets
Topic: Convert RTF to Text Using Same Library as SPS
Replies: 3
Views: 1717

Convert RTF to Text Using Same Library as SPS

If I get the text from Order.Title.Commitments.Requirements.Text, it is a string in RTF format. How can I convert this string to plain text using the same library or methods SPS uses?
by kkirkfield
Tue Jul 10, 2018 2:01 pm
Forum: Automation Code Snippets
Topic: Create an order note from automation script
Replies: 8
Views: 2931

Re: Create an order note from automation script

Thanks Bob! It works perfectly. Will be able to do so much more from python scripts now that I can get services from it.
by kkirkfield
Thu Jun 28, 2018 12:26 pm
Forum: Automation Code Snippets
Topic: Create an order note from automation script
Replies: 8
Views: 2931

Re: Create an order note from automation script

One final question regarding order notes in automation scripts. The Note Categories property in the Field Code Browser shows it is a String. I originally assumed it was a comma separated list, because that is how it is displayed on the notes screen on the order. That didn't work, so now I'm thinking...
by kkirkfield
Thu Jun 28, 2018 10:12 am
Forum: Automation Code Snippets
Topic: Create an order note from automation script
Replies: 8
Views: 2931

Re: Create an order note from automation script

Thanks Bob, works perfectly. I was confused how the CreateNew() method was working in your example since it doesn't match any method signatures on IOrder. Found this great site explaining the syntax you used and that the first parameter is the instance. Makes sense now. http://ironpython.net/documen...
by kkirkfield
Tue Jun 26, 2018 5:00 pm
Forum: Automation Code Snippets
Topic: Create an order note from automation script
Replies: 8
Views: 2931

Create an order note from automation script

Hello, I'm trying to make an automation script in IronPython that creates an order note and adds it to the order being saved. In C#, it would be created by doing Order.CreateNew("Note") and then adding it to the order and applying the changes. When I try doing this in an automation script ...
by kkirkfield
Thu Oct 12, 2017 2:15 pm
Forum: Automation Code Snippets
Topic: Remove a checklist task from order
Replies: 1
Views: 962

Remove a checklist task from order

SoftPro Select has it's own collection implementations (E.g. SoftPro.EntityModel.Collections.Set<T>). This is used for Order.ChecklistTasks. As far as I can tell, all the methods to add to and remove from the list have been overridden and hidden. What is the proper way to add and remove checklist ta...
by kkirkfield
Wed Jun 21, 2017 9:33 am
Forum: Installation and Setup
Topic: Mid-tier failover clustering and load balancing
Replies: 1
Views: 1482

Mid-tier failover clustering and load balancing

Currently we have two mid-tiers on VMs in the same colo. We are expanding to more colos and want to set up better failover and load balancing support. If we use Windows Server Failover Clustering, can we install two mid-tiers in one cluster and two mid-tiers in another cluster to support failover in...
by kkirkfield
Mon Apr 10, 2017 4:19 pm
Forum: Integration Development
Topic: New HTML ReadyDoc Syntax
Replies: 1
Views: 724

New HTML ReadyDoc Syntax

Can someone please post a list of the pipes/functions available in the new HTML ReadyDocs, as well as a simple example showing how to make custom pipes/functions? So far I know of: upper(), lower(), format(), money(), hotspot(), prompt(), choose(), and multiprompt(). Also, do value and section tags ...
by kkirkfield
Wed Jul 27, 2016 10:10 am
Forum: Integration Development
Topic: Document Generation Issues
Replies: 12
Views: 1838

Re: Document Generation Issues

Verify that your custom report has a context of {{Ledger.Transaction}} in the dbo.DocReport view like you expect. The renderer should be detecting the context that is required, and getting it from the object you passed to Render(). If it is still not working, try the following code: rendering = rend...