cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-515287%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%EC%97%B4%20%EB%AA%A9%EB%A1%9D%EC%9D%B4%20%EC%9E%88%EB%8A%94%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EA%B3%A0%20%ED%8C%9D%EC%97%85%20%EC%B0%BD%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20%EB%88%84%EB%9D%BD%EB%90%9C%20%EC%97%B4%EC%9D%84%20%EB%B3%B4%EA%B3%A0%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-515287%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EB%AA%A8%EB%91%90%20%EC%95%88%EB%85%95!%3C%2FP%3E%3CP%3E%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%97%90%205%EA%B0%9C%EC%9D%98%20%EC%97%B4%20%EC%9D%B4%EB%A6%84%20%EB%AA%A9%EB%A1%9D%EC%9D%B4%20%EC%9E%88%EB%8A%94%EC%A7%80%20%ED%85%8C%EC%8A%A4%ED%8A%B8%ED%95%98%EA%B3%A0%20%EC%8B%B6%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%ED%95%98%EB%82%98%20%EC%9D%B4%EC%83%81%EC%9D%B4%20%EB%88%84%EB%9D%BD%EB%90%9C%20%EA%B2%BD%EC%9A%B0%20%EC%82%AC%EC%9A%A9%EC%9E%90%EC%97%90%EA%B2%8C%20%EB%88%84%EB%9D%BD%EB%90%9C%20%EC%97%B4%EC%9D%84%20%EC%95%8C%EB%A0%A4%EC%A3%BC%EB%8A%94%20%ED%8C%9D%EC%97%85%20%EC%B0%BD%EC%9D%84%20%EA%B0%96%EA%B3%A0%20%EC%8B%B6%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%EB%AA%A8%EB%93%A0%20%EC%97%B4%EC%9D%B4%20%EC%9E%88%EB%8A%94%20%EA%B2%BD%EC%9A%B0%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%8A%94%20%EC%8B%A4%ED%96%89%EC%9D%84%20%EA%B3%84%EC%86%8D%ED%95%B4%EC%95%BC%20%ED%95%A9%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%EC%9E%91%EC%84%B1%20%EB%B0%A9%EB%B2%95%EC%97%90%20%EB%8C%80%ED%95%B4%20%EC%98%AC%EB%B0%94%EB%A5%B8%20%EB%B0%A9%ED%96%A5%EC%9D%84%20%EC%95%8C%EB%A0%A4%EC%A3%BC%EC%8B%9C%EA%B2%A0%EC%8A%B5%EB%8B%88%EA%B9%8C%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%EA%B0%90%EC%82%AC%ED%95%B4%EC%9A%94!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-515287%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%EA%B3%A0%EA%B8%89%20%ED%86%B5%EA%B3%84%20%EB%AA%A8%EB%8D%B8%EB%A7%81%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%EC%9E%90%EB%8F%99%ED%99%94%20%EB%B0%8F%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8C%85%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%98%BC%ED%95%A9%20%EB%B0%8F%20%EC%A0%95%EB%A6%AC%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%EB%8C%80%EB%9F%89%20%EB%A7%9E%EC%B6%A4%ED%99%94%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%ED%92%88%EC%A7%88%20%EB%B0%8F%20%ED%94%84%EB%A1%9C%EC%84%B8%EC%8A%A4%20%EC%97%94%EC%A7%80%EB%8B%88%EC%96%B4%EB%A7%81%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-595242%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%EC%97%B4%20%EB%AA%A9%EB%A1%9D%EC%9D%B4%20%EC%A1%B4%EC%9E%AC%ED%95%98%EB%8A%94%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EA%B3%A0%20%EB%88%84%EB%9D%BD%EB%90%9C%20%EC%97%B4%EC%9D%84%20%ED%8C%9D%EC%97%85%20%EC%B0%BD%EC%9C%BC%EB%A1%9C%20%EB%B3%B4%EA%B3%A0%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-595242%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EC%97%B0%EA%B4%80%20%EB%B0%B0%EC%97%B4%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%9C%20%EC%A0%91%EA%B7%BC%20%EB%B0%A9%EC%8B%9D%EC%9D%80%20%ED%9B%8C%EB%A5%AD%ED%95%A9%EB%8B%88%EB%8B%A4!%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%EA%B7%B8%EB%9F%AC%EB%82%98%20%EC%97%AC%EA%B8%B0%EC%97%90%20%EC%84%A4%EB%AA%85%EB%90%9C%20%EB%B9%84%EA%B5%90%EB%8A%94%3CEM%3E%3CSTRONG%3E%20%EC%A0%95%ED%99%95%ED%95%9C%3C%2FSTRONG%3E%3C%2FEM%3E%20%EC%84%B1%EB%83%A5.%3C%2FP%3E%3CP%3E%EC%9D%BC%EB%B0%98%EC%A0%81%EC%9C%BC%EB%A1%9C%20Jmp%EC%9D%98%20%EA%B2%BD%EC%9A%B0%20%EC%97%B4%20%EC%9D%B4%EB%A6%84%EC%97%90%20%EB%8C%80%EB%AC%B8%EC%9E%90%20%EB%98%90%EB%8A%94%20%EA%B3%B5%EB%B0%B1%EC%9D%B4%20%EC%9E%88%EB%8A%94%EC%A7%80%20%EC%97%AC%EB%B6%80%EB%8A%94%20%EC%A4%91%EC%9A%94%ED%95%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%EB%94%B0%EB%9D%BC%EC%84%9C%20%EC%95%A0%ED%94%8C%EB%A6%AC%EC%BC%80%EC%9D%B4%EC%85%98%20%EC%82%AC%EB%A1%80%EC%97%90%20%EB%94%B0%EB%9D%BC%3CEM%3E%3CSTRONG%3E%20%EC%97%B4%20%EB%AA%A9%EB%A1%9D%EC%9D%B4%20%EC%9E%88%EB%8A%94%EC%A7%80%20%ED%99%95%EC%9D%B8%3C%2FSTRONG%3E%3C%2FEM%3E%20%EC%97%AD%EC%8B%9C%20%EC%8B%A0%EA%B2%BD%EC%93%B0%EC%A7%80%20%EB%A7%90%EC%95%84%EC%95%BC%20%ED%95%A9%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%EB%A7%A4%EC%9A%B0%20%EA%B2%AC%EA%B3%A0%ED%95%A8%EC%9D%80%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F2687%22%20target%3D%22_blank%22%3E%20%40txnelson%3C%2FA%3E%20%EC%9D%98%20%EC%A0%91%EA%B7%BC%20%EB%B0%A9%EC%8B%9D%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Er%3Dtry(column(dt%2Ctn)%26lt%3B%3CGET%20name%3D%22%22%3E%3C%2FGET%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2Fcheck-if-column-exists%2Fm-p%2F572468%23U572468%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3E%EC%97%B4%EC%9D%B4%20%EC%9E%88%EB%8A%94%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EC%8B%9C%EA%B2%A0%EC%8A%B5%EB%8B%88%EA%B9%8C%3F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%EC%97%B4%20%EC%A1%B4%EC%9E%AC%20%ED%99%95%EC%9D%B8%EC%9D%98%20%EB%AA%A8%EB%93%A0%20%ED%95%A8%EC%A0%95%EA%B3%BC%20%ED%95%A8%EA%BB%98%20%EC%A0%9C%20%EC%83%9D%EA%B0%81%EC%97%90%20Jmp%EB%8A%94%20%EC%97%B4%EC%9D%B4%20%EC%A1%B4%EC%9E%AC%ED%95%98%EB%8A%94%EC%A7%80%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%97%90%20%EB%AC%BC%EC%96%B4%EB%B3%BC%20%EC%88%98%20%EC%9E%88%EB%8A%94%20%EA%B0%95%EB%A0%A5%ED%95%9C%20%EB%B0%A9%EB%B2%95%EC%9D%84%20%EC%A0%9C%EA%B3%B5%ED%95%B4%EC%95%BC%20%ED%95%A9%EB%8B%88%EB%8B%A4.%3CBR%20%2F%3E%20%EB%8B%A4%EC%9D%8C%EC%9D%80%20%EC%9C%84%EC%8B%9C%EB%A6%AC%EC%8A%A4%ED%8A%B8%EC%97%90%20%EC%9E%88%EB%8A%94%20%EA%B2%8C%EC%8B%9C%EB%AC%BC%EC%9E%85%EB%8B%88%EB%8B%A4.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Wish-List%2Fdata-table-message-column-exists-colname%2Fm-p%2F573018%23U573018%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-idea-thread%20lia-fa-icon%20lia-fa-idea%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3E%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%20%3A%20%EB%A9%94%EC%8B%9C%EC%A7%80%20%EC%97%B4%EC%9D%B4%20%EC%A1%B4%EC%9E%AC%ED%95%A9%EB%8B%88%EA%B9%8C(colname)%3F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-515834%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%EC%BB%AC%EB%9F%BC%20%EB%AA%A9%EB%A1%9D%EC%9D%B4%20%EC%A1%B4%EC%9E%AC%ED%95%98%EB%8A%94%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EA%B3%A0%20%EB%88%84%EB%9D%BD%EB%90%9C%20%EC%BB%AC%EB%9F%BC%EC%9D%84%20%ED%8C%9D%EC%97%85%EC%B0%BD%EC%9C%BC%EB%A1%9C%20%EC%8B%A0%EA%B3%A0%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9D%B8%EA%B0%80%EC%9A%94%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-515834%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EA%B0%90%EC%82%AC%ED%95%A9%EB%8B%88%EB%8B%A4!%20%EC%9D%B4%EA%B2%83%EC%9D%80%20%ED%9D%A5%EB%AF%B8%EB%A1%9C%EC%9A%B4%20%ED%95%B4%EA%B2%B0%EC%B1%85%EC%9E%85%EB%8B%88%EB%8B%A4!%20%EB%82%98%EB%8A%94%20%EC%A0%95%EB%A7%90%EB%A1%9C%20%EC%9D%BC%ED%95%98%EB%8A%94%20%EB%B2%95%EC%9D%84%20%EB%B0%B0%EC%9B%8C%EC%95%BC%20%ED%95%9C%EB%8B%A4%3CSPAN%3E%20%EC%97%B0%EA%B4%80%20%EB%B0%B0%EC%97%B4...%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-515833%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%EC%97%B4%20%EB%AA%A9%EB%A1%9D%EC%9D%B4%20%EC%A1%B4%EC%9E%AC%ED%95%98%EB%8A%94%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EA%B3%A0%20%EB%88%84%EB%9D%BD%EB%90%9C%20%EC%97%B4%EC%9D%84%20%ED%8C%9D%EC%97%85%20%EC%B0%BD%EC%9C%BC%EB%A1%9C%20%EB%B3%B4%EA%B3%A0%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-515833%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EA%B0%90%EC%82%AC%ED%95%A9%EB%8B%88%EB%8B%A4!%20%EC%9D%B4%EA%B2%83%EC%9D%B4%20%EB%B0%94%EB%A1%9C%20%EB%82%B4%EA%B0%80%20%EC%B0%BE%EB%8D%98%20%EA%B2%83%EC%9E%85%EB%8B%88%EB%8B%A4!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-515326%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%EC%97%B4%20%EB%AA%A9%EB%A1%9D%EC%9D%B4%20%EC%A1%B4%EC%9E%AC%ED%95%98%EB%8A%94%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EA%B3%A0%20%EB%88%84%EB%9D%BD%EB%90%9C%20%EC%97%B4%EC%9D%84%20%ED%8C%9D%EC%97%85%20%EC%B0%BD%EC%9C%BC%EB%A1%9C%20%EB%B3%B4%EA%B3%A0%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-515326%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EB%8B%B9%EC%8B%A0%EC%9D%80%20%EC%82%AC%EC%9A%A9%ED%95%A0%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4%3CCODE%20class%3D%22%20language-jsl%22%3E%20%EC%A0%9C%EA%B1%B0%ED%95%98%EB%8B%A4()%3C%2FCODE%3E%20JSL%20%EB%A3%A8%ED%94%84%20%EC%97%86%EC%9D%B4%20%EC%9D%B4%20%EC%9E%91%EC%97%85%EC%9D%84%20%EC%88%98%ED%96%89%ED%95%98%EB%8A%94%20%EC%97%B0%EA%B4%80%20%EB%B0%B0%EC%97%B4%20%EB%B0%A9%EB%B2%95%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(%201%20)%3B%0A%0Areference%20table%20%3D%20New%20Table(%20%22TEST%22%2C%0A%20%26lt%3B%3CNEW%20column%3D%22%22%3E%3C%2FNEW%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-515323%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%EC%BB%AC%EB%9F%BC%20%EB%AA%A9%EB%A1%9D%EC%9D%B4%20%EC%A1%B4%EC%9E%AC%ED%95%98%EB%8A%94%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EA%B3%A0%20%EB%88%84%EB%9D%BD%EB%90%9C%20%EC%BB%AC%EB%9F%BC%EC%9D%84%20%ED%8C%9D%EC%97%85%EC%B0%BD%EC%9C%BC%EB%A1%9C%20%EC%8B%A0%EA%B3%A0%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9D%B8%EA%B0%80%EC%9A%94%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-515323%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EB%8B%A4%EC%9D%8C%EC%9D%80%20%EC%9D%B4%EB%A5%BC%20%EC%88%98%ED%96%89%ED%95%98%EB%8A%94%20%ED%95%9C%20%EA%B0%80%EC%A7%80%20%EB%B0%A9%EB%B2%95%EC%9D%98%20%EA%B0%84%EB%8B%A8%ED%95%9C%20%EC%98%88%EC%9E%85%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0A%0A%2F%2F%20Open%20Data%20Table%3A%20big%20class.jmp%0A%2F%2F%20%E2%86%92%20Data%20Table(%20%22big%20class%22%20)%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2Fbig%20class.jmp%22%20)%3B%0A%0AcolList%20%3D%20dt%20%26lt%3B%26lt%3B%20get%20column%20names(%20string%20)%3B%0A%0ArequiredList%20%3D%20%7B%22name%22%2C%20%22sex%22%2C%20%22shoe%20size%22%7D%3B%0A%0AFor(%20i%20%3D%20N%20Items(%20requiredList%20)%2C%20i%20%26gt%3B%3D%201%2C%20i--%2C%0A%20If(%20Contains(%20colList%2C%20requiredList%5Bi%5D%20)%2C%0A%20%20Remove%20From(%20requiredList%2C%20i%2C%201%20)%0A%20)%0A)%3B%0A%0Astop%20%3D%20%22NO%22%3B%0AIf(%20N%20Items(%20requiredList%20)%20%26gt%3B%200%2C%0A%20stop%20%3D%20%22YES%22%3B%0A%20New%20Window(%20%22Error%22%2C%0A%20%20Modal%2C%0A%20%20V%20List%20Box(%0A%20%20%20Text%20Box(%20%22The%20following%20column(s)%20are%20required%22%20)%2C%0A%20%20%20Text%20Box(%20%22but%20were%20not%20found%20in%20the%20data%20table.%22%20)%2C%0A%20%20%20Spacer%20Box(%20size(%201%2C%2010%20)%20)%2C%0A%20%20%20List%20Box(%20requiredList%20)%0A%20%20)%0A%20)%3B%0A)%3B%0AIf(%20stop%20%3D%3D%20%22YES%22%2C%20Throw()%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-515303%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%EC%BB%AC%EB%9F%BC%20%EB%AA%A9%EB%A1%9D%EC%9D%B4%20%EC%A1%B4%EC%9E%AC%ED%95%98%EB%8A%94%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EA%B3%A0%20%EB%88%84%EB%9D%BD%EB%90%9C%20%EC%BB%AC%EB%9F%BC%EC%9D%84%20%ED%8C%9D%EC%97%85%EC%B0%BD%EC%9C%BC%EB%A1%9C%20%EC%8B%A0%EA%B3%A0%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9D%B8%EA%B0%80%EC%9A%94%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-515303%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EC%95%88%EB%85%95%20%EB%A1%AD!%3C%2FP%3E%3CP%3E%EC%A0%9C%EC%95%88%ED%95%B4%20%EC%A3%BC%EC%85%94%EC%84%9C%20%EA%B0%90%EC%82%AC%ED%95%A9%EB%8B%88%EB%8B%A4!%20%EC%9D%BC%EB%B6%80%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EC%97%90%20JSL%EC%9D%84%20%ED%86%B5%ED%95%A9%ED%95%A0%20%EA%B3%84%ED%9A%8D%EC%9D%B4%EA%B8%B0%20%EB%95%8C%EB%AC%B8%EC%97%90%20JSL%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20%EC%9D%B4%20%EC%9E%91%EC%97%85%EC%9D%84%20%EC%88%98%ED%96%89%ED%95%98%EA%B3%A0%20%EC%8B%B6%EC%A7%80%EB%A7%8C%20%EC%97%B4%EC%9D%B4%20%EB%88%84%EB%9D%BD%EB%90%9C%20%EA%B2%BD%EC%9A%B0%20%EC%82%AC%EC%9A%A9%EC%9E%90%EC%97%90%EA%B2%8C%20%EC%B9%9C%EC%88%99%ED%95%9C%20GUI%20%EB%A9%94%EC%8B%9C%EC%A7%80%EB%A5%BC%20%EC%A0%9C%EA%B3%B5%ED%95%98%EA%B3%A0%20%EC%8B%B6%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%EA%B7%B8%EB%9E%98%EB%8F%84%20%EA%B3%A0%EB%A7%88%EC%9B%8C!%3C%2FP%3E%3CP%3E%EC%95%84%EB%94%94%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-515294%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%EC%97%B4%20%EB%AA%A9%EB%A1%9D%EC%9D%B4%20%EC%A1%B4%EC%9E%AC%ED%95%98%EB%8A%94%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EA%B3%A0%20%EB%88%84%EB%9D%BD%EB%90%9C%20%EC%97%B4%EC%9D%84%20%ED%8C%9D%EC%97%85%20%EC%B0%BD%EC%9C%BC%EB%A1%9C%20%EB%B3%B4%EA%B3%A0%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-515294%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EC%95%88%EB%85%95%20Lavik17%2C%3C%2FP%3E%3CP%3E%EC%97%B4%20%EB%93%9C%EB%A1%AD%EB%8B%A4%EC%9A%B4%20%EB%A9%94%EB%89%B4%EC%97%90%EC%84%9C%20%EC%97%B4%20%EB%B3%B4%EA%B8%B0%20%EC%84%A0%ED%83%9D%EA%B8%B0%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%B4%20%EB%B3%B4%EC%85%A8%EC%8A%B5%EB%8B%88%EA%B9%8C%3F%20%EA%B7%B8%EB%9F%B0%20%EB%8B%A4%EC%9D%8C%20%EC%9A%94%EC%95%BD%20%ED%86%B5%EA%B3%84%20%EA%B8%B0%EB%8A%A5%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%205%EC%97%B4%20%EC%9D%B4%EB%A6%84%EC%9D%84%20%EC%89%BD%EA%B2%8C%20%EA%B2%80%EC%83%89%ED%95%98%EA%B3%A0%20%EB%88%84%EB%9D%BD%EB%90%9C%20%EB%8D%B0%EC%9D%B4%ED%84%B0%EA%B0%80%20%EC%9E%88%EB%8A%94%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%A0%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%EC%9D%B4%EA%B2%8C%20%EB%8F%84%EC%9B%80%EC%9D%B4%20%EB%90%98%EA%B8%B8%20%EB%B0%94%EB%9E%80%EB%8B%A4%2C%3C%2FP%3E%3CP%3E%EB%A1%AD%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Lavik17
Level II

How to check if list of columns exist and report those that are missing using a pop-up window?

Hi all!

I would like to test if a list of 5 column names exist in a data table. 

If one or more are missing, I would like to have a window pop up telling the user which columns are missing. If all columns are present the script should continue its run.

Could you please point me in the right direction on how to write it?

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How to check if list of columns exist and report those that are missing using a pop-up window?

Here is a simple example of one way to do this

Names Default To Here( 1 );

// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );

colList = dt << get column names( string );

requiredList = {"name", "sex", "shoe size"};

For( i = N Items( requiredList ), i >= 1, i--,
	If( Contains( colList, requiredList[i] ),
		Remove From( requiredList, i, 1 )
	)
);

stop = "NO";
If( N Items( requiredList ) > 0,
	stop = "YES";
	New Window( "Error",
		Modal,
		V List Box(
			Text Box( "The following column(s) are required" ),
			Text Box( "but were not found in the data table." ),
			Spacer Box( size( 1, 10 ) ),
			List Box( requiredList )
		)
	);
);
If( stop == "YES", Throw() );
Jim

View solution in original post

7 REPLIES 7
DirtyDataCoLLC
Level III

Re: How to check if list of columns exist and report those that are missing using a pop-up window?

Hi Lavik17,

Have you tried using the Columns View Selector in the column drop-down menu? Then, using the summary statistics function, you can effortlessly search your five-column names and determine if they are missing data. 

I hope this helps, 

Rob

Robert Williams
Lavik17
Level II

Re: How to check if list of columns exist and report those that are missing using a pop-up window?

 Hi Rob! 

Thank you for the suggestion! I would like to conduct this task using JSL because I am planning to incorporate it in some of my scripts, but would also like to have a user friendly GUI message for the users in case columns are missing.

 

Thanks though!

Adi

 

txnelson
Super User

Re: How to check if list of columns exist and report those that are missing using a pop-up window?

Here is a simple example of one way to do this

Names Default To Here( 1 );

// Open Data Table: big class.jmp
// → Data Table( "big class" )
dt = Open( "$SAMPLE_DATA/big class.jmp" );

colList = dt << get column names( string );

requiredList = {"name", "sex", "shoe size"};

For( i = N Items( requiredList ), i >= 1, i--,
	If( Contains( colList, requiredList[i] ),
		Remove From( requiredList, i, 1 )
	)
);

stop = "NO";
If( N Items( requiredList ) > 0,
	stop = "YES";
	New Window( "Error",
		Modal,
		V List Box(
			Text Box( "The following column(s) are required" ),
			Text Box( "but were not found in the data table." ),
			Spacer Box( size( 1, 10 ) ),
			List Box( requiredList )
		)
	);
);
If( stop == "YES", Throw() );
Jim
Lavik17
Level II

Re: How to check if list of columns exist and report those that are missing using a pop-up window?

Thank you! This is exactly what I was looking for!

 

ErraticAttack
Level VI

Re: How to check if list of columns exist and report those that are missing using a pop-up window?

You can use the Remove() method of Associative Arrays to do this without any JSL loops:

 

Names Default to Here( 1 );

reference table = New Table( "TEST",
	<<New Column( "A" ),
	<<New Column( "B" ),
//	<<New Column( "C" ),
	<<New Column( "D" ),
//	<<New Column( "E" ),
	<<New Column( "F" ),
//	<<New Column( "G" ),
	<<New Column( "H" ),
	<<New Column( "I" ),
	<<New Column( "J" ),
	<<New Column( "K" ),
	<<New Column( "L" ),
	<<New Column( "M" ),
	<<New Column( "N" ),
	<<New Column( "O" )
);

cols of interest = {"B","C","D","E","F"};

table cols = reference table << Get Column Names( "String" );

table cols aa = Associative Array( table cols );
cols of interest aa = Associative Array( cols of interest );

cols of interest aa << Remove( table cols aa );

cols missing = cols of interest aa << Get Keys;

If( N Items( cols missing ),
	New Window( "Error",
		<<Modal,
		Text Box( "Some columns are missing!" ),
		Text Box( Concat Items( cols missing, ", " ) )
	);
	Throw()
);

Print( "rest of script..." )
Jordan
Lavik17
Level II

Re: How to check if list of columns exist and report those that are missing using a pop-up window?

Thank you! This is an interesting solution! I really should learn to work with Associative Arrays...

hogi
Level XI

Re: How to check if list of columns exist and report those that are missing using a pop-up window?

The approach with the associative array is great!

But please note that the comparisons described here just find exact matches.

In general for Jmp it doesn't matter if there are capital letters in the column name - or spaces.

So, depending on your application case, maybe the check if list of columns exist shouldn't care either.

Very robust is @txnelson 's approach :

r=try(column(dt,tn)<<get name,"");

check if column exists? 

 

With all the pitfalls of column existence checks - in my opinion Jmp should provide a robust way to ask a data table if a column exists.
Here is the post in the wish list:
data table : message column exists(colname)?