getJobList(pResourceCode : Text[50]) lJobList : ARRAY [100,2] OF Text[50] CLEAR(lJobList); i := 0; IF lResource.GET(pResourceCode) THEN BEGIN IF lResource.CheckJobFilter(lJobTmp) THEN BEGIN IF lJobTmp.FINDFIRST() THEN REPEAT i += 1; lJobList[i][1] := lJobTmp."No."; lJobList[i][1] := lJobTmp.Description; UNTIL lJobTmp.NEXT() = 0; END; END;
// Create instance of NavFunctions and set credentials. NavFunctions NavFunc = new NavFunctions(); NavFunc.UseDefaultCredentials = false; NavFunc.Credentials = new NetworkCredential(UserName.ToString(), UserPwd.ToString(), UserDom.ToString()); // Get Resource Code string ResourceCode = NavFunc.GetResourceCode(UserName.ToString(), UserDom.ToString()); //Create JobList Array list string[,] JobList = NavFunc.GetJobList(ResourceCode.ToString());
Comments