Generate URI for Error Message

Discussions related to SoftPro Select user interface development.

Moderator: Phil Barton

Post Reply
User avatar
JustinDaw
Posts: 1
Joined: Wed Oct 26, 2011 2:43 pm
Location: Honolulu, Hawaii
Contact:

Generate URI for Error Message

Post by JustinDaw »

I am generating a URI for an error message. This is what I have so far.

Code: Select all

"sp-select:///ordertracking/order?id=" + orderID
But I want it to go to the specific field that is causing the error. What else to I need to get it to do that?

Thanks.
TJ Daw
Software Developer
Title Guaranty of Hawaii
Mark McKenna

Re: Generate URI for Error Message

Post by Mark McKenna »

You can create an OrderUri moniker, using the same constructor that we use for HotSpot targeting from documents.

For example:

Code: Select all

// navigate to the LoanNumber field of a Loan object with ID loanID inside an Order with an ID of orderID.
OrderUri moniker = new OrderUri( OrderKind.Order, OrderNavigationTarget.HotSpot, orderID, "Loan", loanID, "LoanNumber" );
IShell shell = sps.GetService<IShell>( );
shell.OpenStandardEditor( moniker );
Post Reply