hexagon logo

Comment controlled by variables

Hello All,

I am trying to make the following

K1 =COMMENT/YESNO,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,OVC=NO,
Has any allowance been made for reporting purposes?
ASSIGN/K2=K1.INPUTVALUE
IF_GOTO/K2==2,GOTO = NO_TREATMENT
IF/K2==1
COMMENT/REPT,
******************************************
** REPORTING HAS ALLOWED FOR TREATMENTS **
******************************************
END_IF/
NO_TREATMENT=LABEL/

Although this works whenever i refresh the report page the comment comes up regardless of if i have yes or no selected. 

Can someone please help here? id like it so only if yes is selected can it show up on the report even if the report is refreshed

Parents
  • K1 =COMMENT/YESNO,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,OVC=NO,
    Has any allowance been made for reporting purposes?
    ASSIGN/K2=K1.INPUTVALUE
    IF/K2==2
    ASSIGN/TOGGLE=$$ (UNSURE IF THIS IS CORRECT FORMAT, JUST NEED COMMENT TYPE THAT DOESNT REPORT)
    END_IF/
    IF/K2==1
    ASSIGN/TOGGLE=REPT
    END_IF/
    COMMENT/TOGGLE, (COMMENT TYPE WILL BE VARIABLE-TOGGLE)
    ******************************************
    ** REPORTING HAS ALLOWED FOR TREATMENTS **
    ******************************************
    

  • Did this from memory, as I dont have an available PC-DMIS license to check, may need some tweaking, but the idea is to just use TOGGLE variable to switch the comment type from "REPT" to another type that does not show up. Let me know if that works or not

Reply Children