CONSTRUCT Statement - Any experts in 4GL?
Posted in 1995
I am using the CONSTRUCT statement to build the query. I want user to select the values from the pop-up window on some fields. The following constructs works fine but once the query is completed then the ctxt variable shows "1=1" instead of what user just selected. I can re-display the value back to the screen but how could I passed the selection into ctxt variable? Does construct statement reserves the information in buffer when user enters value on the screen? If this is true then is there anyway I can put the value slected from the pop-up window in buffer? Example: CONSTRUCT ctxt ON call_log.curr_status, call_log.c_prod FROM sl.curr_status, sl.c_prod BEFORE FIELD curr_status IF cl.curr_status IS NULL THEN CALL pop_rep("1") RETURNING cl.curr_status DISPLAY cl.curr_status TO sl.curr_status ; this re-displays on screen NEXT FIELD NEXT; At this point I have a value in the cl.curr_status. END IF END CONSTRUCT DISPLAY ctxt ; This point it shows value " 1=1" instead of the ; "call_log.curr_status = "C"" How could I pass the value that was selected from the pop-up-window into "ctxt" variable? Any hint would be useful. The BEFORE CONSTRUCT statement allows to enter the default value but I can't pass it ctxt once the construct is executed. Please reply your respond to both this list and also to my attention. My address is Ruchi_Patel@avid.com Thank you so much. Ruchi