Changeset 47
- Timestamp:
- 06/22/10 20:36:38 (2 years ago)
- Location:
- projects/updatetreeeffdtinqry/trunk/defn/ApplicationEnginePrograms/GS/GS_QRYEFFDT
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
projects/updatetreeeffdtinqry/trunk/defn/ApplicationEnginePrograms/GS/GS_QRYEFFDT/GS_QRYEFFDT.MAIN.GBL.default.1900-01-01.Step01.OnExecute.pcdefn.peoplecode
r46 r47 51 51 Local ApiObject &MyQuery, &MySession, &CriteriaCollection; 52 52 Local ApiObject &CurrentCriteria; 53 Local string &QryToProcess; 53 54 Local number &i; 54 55 … … 59 60 &MyQuery = &MySession.getquery(); 60 61 61 &MyQuery.open("GS_JRNLS_MY_DEPT", True, True); 62 63 Warning ("Just Opened Query " | &MyQuery.name | ", " | &MyQuery.description); 64 65 &CriteriaCollection = &MyQuery.queryselect.criteria; 66 67 For &i = 1 To &CriteriaCollection.count; 62 Local SQL &sqlGetQueries = CreateSQL("select QRYNAME from PSQRYDEFN where QRYNAME like 'GS%'"); 63 While &sqlGetQueries.Fetch(&QryToProcess) 68 64 69 ProcessCriterion(&CriteriaCollection.item(&i), &i);65 &MyQuery.open(&QryToProcess, True, True); 70 66 71 End-For; 72 73 &MyQuery.save(); 67 Warning ("Just Opened Query " | &MyQuery.name | ", " | &MyQuery.description); 68 69 &CriteriaCollection = &MyQuery.queryselect.criteria; 70 71 For &i = 1 To &CriteriaCollection.count; 72 73 ProcessCriterion(&CriteriaCollection.item(&i), &i); 74 75 End-For; 76 77 &MyQuery.save(); 78 &MyQuery.close(); 79 80 End-While; 74 81 75 82 End-If;
