Skip to Content
0
Sep 29, 2018 at 07:25 AM

Get the Work Description field value in Service Confirmation

75 Views Last edit Oct 03, 2018 at 08:38 AM 3 rev

Dear teachers, good. How can I get the value of the Work Description field in Service Confirmation?

import ABSL;

import AP.CRM.Global; var instServiceConfirmation;

var qryServiceConfirmation_ServiceConfirmationOverview_QueryByElements;

var selParamsServiceConfirmation_ServiceConfirmationOverview_QueryByElements;

var colQryResult; qryServiceConfirmation_ServiceConfirmationOverview_QueryByElements = ServiceConfirmation.ServiceConfirmationOverview.QueryByElements; selParamsServiceConfirmation_ServiceConfirmationOverview_QueryByElements = qryServiceConfirmation_ServiceConfirmationOverview_QueryByElements.CreateSelectionParams();

if(this.ServiceConfirmationID.content!=""){ selParamsServiceConfirmation_ServiceConfirmationOverview_QueryByElements.Add(qryServiceConfirmation_ServiceConfirmationOverview_QueryByElements.ID.content,"I","EQ",this.ServiceConfirmationID.content);

colQryResult = qryServiceConfirmation_ServiceConfirmationOverview_QueryByElements.Execute(selParamsServiceConfirmation_ServiceConfirmationOverview_QueryByElements);

foreach (instServiceConfirmation in colQryResult) { break; }

if(instServiceConfirmation.IsSet())

{

this.AIRWORTHY_CERTIFICATION_DATE = instServiceConfirmation.DateTime.GetDate();

this.TextCollection = instServiceConfirmation.ToRoot.?

}

}