Changeset 293 for ccr


Ignore:
Timestamp:
Nov 20, 2008, 11:04:22 AM (16 years ago)
Author:
George Lilly
Message:

load the CCR DICTIONARY with variable names and xpath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/C0CDIC.m

    r279 r293  
    7777 F  S C0CI=$O(C0CTVARS(C0CI)) Q:C0CI=""  D  ; BY LINE NUMBER
    7878 . S C0CX=C0CTVARS(C0CI) ;VARIABLE NAME
    79  . S C0CY=C0CX_"^"_C0CI ; VAR NAME ^ LINE NUM ^ XPATH
    80  . D PUSH^GPLXPATH("C0C2",C0CY) ; PUT ONTO ARRAY
     79 . S $P(C0CX,"^",2)=C0CI ; LINE NUMBER IS SECOND PIECE
     80 . D PUSH^GPLXPATH("C0C2",C0CX) ; PUT ONTO ARRAY
    8181 K @C0CPVARS
    8282 M @C0CPVARS=C0C2
    8383 Q
    8484 ;
     85LOAD ; LOAD VARIABLE NAMES AND XPATH IN ^C0CDIC(170
     86 ; INITIAL LOAD OF THE CCR DICTIONARY
     87 ;
     88 N C0CDIC,C0CARY,C0CXML,C0CFDA,C0CI
     89 S C0CDIC="^C0CDIC(170," ; ROOT OF THE CCR DICTIONARY
     90 D GXPATH("C0CARY","C0CXML") ; FETCH THE VARIABLES AND XPATH INTO C0CARY
     91 ; C0CXML WILL CONTAIN THE TEMPLATE - NOT NEEDED FOR LOAD
     92 D PARY^GPLXPATH("C0CARY") ;TEST
     93 F C0CI=1:1:C0CARY(0) D  ; LOAD EACH VARIABLE
     94 . S C0CFDA(170,"+"_C0CI_",",.01)=$P(C0CARY(C0CI),"^",1) ; VAR NAME
     95 . S C0CFDA(170,"+"_C0CI_",",2)=$P(C0CARY(C0CI),"^",3) ; XPATH
     96 . D UPDATE^DIE("","C0CFDA")
     97 . I $D(^TMP("DIERR",$J)) U $P BREAK
     98 . W "LOADING:",C0CI," ",C0CARY(C0CI),!
     99 Q
     100 ;
Note: See TracChangeset for help on using the changeset viewer.