Article Details
| Id: | 10832 |
| Product: | finPOWER Connect |
| Type: | NEW |
| Version: | 1.06.06 |
| Opened: | 28/11/2012 |
| Closed: | 09/01/2013 |
| Released: | 29/01/2013 |
| Job: | J010829 |
High Importance |
|
Credit Enquiry; New Script event added to allow options to be set
A new Script event has been added to allow the options for a Credit Enquiry request to be set.
This event is called via the new finCreditBureau.UpdateCreditEnquiryRequestOptions method. This is called every time the Options page in the Credit Enquiry wizard is visited.
An example of using this Script event is shown below:
Dim Client As finClientDim Request As ISCreditEnquiryRequestDim RequestOption As ISKeyValueListItemDim ServiceId As String' Assume SuccessMain = True' Handle EventsSelect Case eventIdCase "RequestRefreshOptions"' Runs when the finCreditBureau.UpdateCreditEnquiryRequestOptions method is called via a Script or the Credit Enquiry wizard (when the 'Options' page is displayed)Client = DirectCast(contextData2, finClient)Request = DirectCast(source, ISCreditEnquiryRequest)ServiceId = DirectCast(contextdata1, String)' Update OptionsWith Request.EnquiryAmount = 123.45.EnquiryPurpose = "Credit Review".AccountType = "28 Day Account".ApplicantType = "Guarantor".EnquiryReference = "my reference"' Other Options (set all Boolean options to True)For Each RequestOption In Request.RequestOptionsIf TypeOf RequestOption.Value Is Boolean ThenRequestOption.Value = TrueEnd IfNextEnd WithEnd Select
High Importance