cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-791307%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%EC%95%B1%EC%9D%B4%20%EB%A1%9C%EB%93%9C%EB%90%A0%20%EB%95%8C%20%ED%85%8D%EC%8A%A4%ED%8A%B8%20%EC%83%81%EC%9E%90%EB%A5%BC%20%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-791307%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESQL%EC%97%90%EC%84%9C%20%EB%8D%B0%EC%9D%B4%ED%84%B0%EB%A5%BC%20%EB%A1%9C%EB%94%A9%ED%95%98%EA%B8%B0%20%EC%9C%84%ED%95%9C%20%EC%95%B1%EC%9D%84%20%EB%A7%8C%EB%93%A4%EC%97%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%EC%8B%9C%EC%9E%91%20%EB%B0%8F%20%EC%A2%85%EB%A3%8C%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%EC%8B%9C%EA%B0%84%20%EC%84%A0%ED%83%9D%EC%9D%84%20%EC%9C%84%ED%95%9C%20%EB%91%90%20%EA%B0%9C%EC%9D%98%20%ED%85%8D%EC%8A%A4%ED%8A%B8%20%EC%83%81%EC%9E%90%EA%B0%80%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%EC%9D%B4%EC%A0%9C%20%EC%95%B1%EC%9D%B4%20%EC%8B%A4%ED%96%89%EB%90%98%EB%A9%B4%20%ED%98%84%EC%9E%AC%20%EC%8B%9C%EA%B0%84%EC%9D%84%20%EC%A2%85%EB%A3%8C%20%EC%8B%9C%EA%B0%84%EC%9C%BC%EB%A1%9C%20%EC%82%AC%EC%9A%A9%ED%95%98%EA%B3%A0%20%EC%8B%B6%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%ED%95%98%EC%A7%80%EB%A7%8C%20%EC%95%84%EB%9E%98%EC%97%90%20%ED%91%9C%EC%8B%9C%EB%90%9C%20%EB%8C%80%EB%A1%9C%20%EB%8B%AC%EC%84%B1%ED%95%A0%20%EC%88%98%20%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%EB%B3%B4%EC%97%AC%EC%A4%84%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EA%B9%8C%3F%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EOnModuleLoad(%7B%7D%2C%0A%09s%20%3D%20Format(%20today()%2C%20%22Format%20Pattern%22%2C%20%22%3CYYYY%3E%26lt%3B-%26gt%3B%3CMM%3E%26lt%3B-%26gt%3B%3CDL%3E%3CDD%3E%22%20)%3B%0A%09txt_endTime%26lt%3B%3CSET%20text%3D%22%22%3E%3C%2FSET%3E%3C%2FDD%3E%3C%2FDL%3E%3C%2FMM%3E%3C%2FYYYY%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CLINGO-LABS%20id%3D%22lingo-labs-791307%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%EC%9C%88%EB%8F%84%EC%9A%B0%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FCODE%3E%3CLINGO-SUB%20id%3D%22lingo-sub-791329%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%EC%95%B1%20%EB%A1%9C%EB%93%9C%20%EC%8B%9C%20%ED%85%8D%EC%8A%A4%ED%8A%B8%20%EC%83%81%EC%9E%90%EB%A5%BC%20%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-791329%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EC%A0%80%EB%8A%94%20%EC%95%A0%ED%94%8C%EB%A6%AC%EC%BC%80%EC%9D%B4%EC%85%98%20%EB%B9%8C%EB%8D%94%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%A7%80%20%EC%95%8A%EC%A7%80%EB%A7%8C%20OnModuleLoad%20%EC%99%B8%EB%B6%80%EB%A1%9C%20%EC%98%AE%EA%B2%A8%EC%95%BC%20%ED%95%A0%20%EC%88%98%EB%8F%84%20%EC%9E%88%EB%8B%A4%EA%B3%A0%20%EC%83%9D%EA%B0%81%ED%95%A9%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_0-1725014231778.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1725014231778.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1725014231778.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1725014231778.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1725014231778.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F67731i8897C4070F24455B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_0-1725014231778.png%22%20alt%3D%22jthi_0-1725014231778.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%EC%95%84%EB%8B%88%EB%A9%B4%20onmoduleload%20%EB%82%B4%EB%B6%80%EC%97%90%EC%84%9C%20%EB%AC%B8%EC%9E%90%EC%97%B4%20%EC%83%9D%EC%84%B1%EC%9D%84%20%ED%95%98%EA%B3%A0%20%EC%99%B8%EB%B6%80%EC%97%90%EC%84%9C%20(%EA%B0%9D%EC%B2%B4%EA%B0%80%20%EC%83%9D%EC%84%B1%EB%90%9C%20%ED%9B%84)%20%EC%84%A4%EC%A0%95%ED%95%A0%20%EC%88%98%EB%8F%84%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_1-1725014310080.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1725014310080.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1725014310080.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1725014310080.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1725014310080.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F67732iAA28CA445E2AF567%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_1-1725014310080.png%22%20alt%3D%22jthi_1-1725014310080.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-791691%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%EC%95%B1%20%EB%A1%9C%EB%93%9C%20%EC%8B%9C%20%ED%85%8D%EC%8A%A4%ED%8A%B8%20%EC%83%81%EC%9E%90%EB%A5%BC%20%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-791691%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EC%9D%B4%20%EB%B6%80%EB%B6%84%EC%97%90%EC%84%9C%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F14366%22%20target%3D%22_blank%22%3E%40jthi%3C%2FA%3E%20%EC%9D%98%20%EC%9D%98%EA%B2%AC%EC%97%90%20%EB%8F%99%EC%9D%98%ED%95%A9%EB%8B%88%EB%8B%A4.%20OnModuleLoad%EB%8A%94%20%EA%B8%B0%EB%B3%B8%EC%A0%81%EC%9C%BC%EB%A1%9C%20%EB%8B%A4%EB%A5%B8%20%EB%AA%A8%EB%93%88%EC%97%90%EC%84%9C%20%EC%83%9D%EC%84%B1%20%EC%8B%9C%EC%A0%90%EC%97%90%20%EC%9D%B8%EC%88%98%EB%A5%BC%20%EB%B0%9B%EB%8A%94%20%EA%B0%80%EC%83%81%20%ED%95%A8%EC%88%98%EC%9E%85%EB%8B%88%EB%8B%A4.%20%EB%8B%A4%EB%A5%B8%20%EB%AA%A8%EB%93%88%EC%9D%84%20%EC%9D%B8%EC%8A%A4%ED%84%B4%EC%8A%A4%ED%99%94%ED%95%98%EB%8A%94%20%EB%9F%B0%EC%B2%98%EC%99%80%20%EA%B0%99%EC%9D%80%20%EA%B2%83%EC%9D%84%20%EB%A7%8C%EB%93%9C%EB%8A%94%20%EB%8D%B0%20%EC%9C%A0%EC%9A%A9%ED%95%A9%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3EBelow%20are%20the%20default%20arguments%20included%20in%20a%20Module%20script%20-%20anything%20that%20uses%20the%20symbols%20created%20by%20the%20Module%20has%20to%20be%20placed%20after%20the%20%3CCODE%20class%3D%22%20language-jsl%22%3EthisModuleInstance%20%26lt%3B%26lt%3B%20Create%20Objects%3B%3C%2FCODE%3E%20line%3A%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%2F%2F%20This%20special%20function%20will%20receive%20parameters%20passed%20to%20CreateInstance()%0AOnModuleLoad(%7B%7D%2C%0A)%3B%0A%0AthisModuleInstance%20%26lt%3B%26lt%3B%20Create%20Objects%3B%0A%0A%2F%2F%20After%20this%20point%20your%20module%20instance%20objects%20have%20been%20created%0A%2F%2F%20and%20can%20be%20referred%20to%20by%20name%20(for%20example%2C%20%22Button1%22).%0A%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-792959%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%EC%95%B1%20%EB%A1%9C%EB%93%9C%20%EC%8B%9C%20%ED%85%8D%EC%8A%A4%ED%8A%B8%20%EC%83%81%EC%9E%90%EB%A5%BC%20%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-792959%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EA%B3%A0%EB%A7%99%EC%8A%B5%EB%8B%88%EB%8B%A4!%20%EB%8B%B9%EC%8B%A0%EC%9D%98%20%EC%A0%9C%EC%95%88%EC%9D%B4%20%EC%98%B3%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-792960%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20%EC%95%B1%20%EB%A1%9C%EB%93%9C%20%EC%8B%9C%20%ED%85%8D%EC%8A%A4%ED%8A%B8%20%EC%83%81%EC%9E%90%EB%A5%BC%20%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-792960%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%EC%95%8C%EA%B2%A0%EC%8A%B5%EB%8B%88%EB%8B%A4.%20%EB%AA%A8%EB%91%90%EB%93%A4%20%EC%A0%95%EB%A7%90%20%EA%B3%A0%EB%A7%99%EC%8A%B5%EB%8B%88%EB%8B%A4!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
zql3050
Level II

how to update the text box when app load

I built a App for data loading from SQL. Here is two Text box for start and end data time select. Now I want to use the current time as the end time once the app running. But I can not achieve it as below shown. Could you show

OnModuleLoad({},
	s = Format( today(), "Format Pattern", "<YYYY><-><MM><-><DD>" );
	txt_endTime<<set text(s);
);
2 ACCEPTED SOLUTIONS

Accepted Solutions
jthi
Super User

Re: how to update the text box when app load

I don't use application builder but I think you might have to move that outside of OnModuleLoad

jthi_0-1725014231778.png

Or maybe have the string creation inside onmoduleload and setting it outside (after objects have been created)

jthi_1-1725014310080.png

 

-Jarmo

View solution in original post

Re: how to update the text box when app load

Agree with @jthi here - OnModuleLoad is basically a pseudo-function to receive arguments from another module at creation time - useful for creating things like launchers that instantiate other modules.

 

Below are the default arguments included in a Module script - anything that uses the symbols created by the Module has to be placed after the thisModuleInstance << Create Objects; line:

 

// This special function will receive parameters passed to CreateInstance()
OnModuleLoad({},
);

thisModuleInstance << Create Objects;

// After this point your module instance objects have been created
// and can be referred to by name (for example, "Button1").

View solution in original post

4 REPLIES 4
jthi
Super User

Re: how to update the text box when app load

I don't use application builder but I think you might have to move that outside of OnModuleLoad

jthi_0-1725014231778.png

Or maybe have the string creation inside onmoduleload and setting it outside (after objects have been created)

jthi_1-1725014310080.png

 

-Jarmo

Re: how to update the text box when app load

Agree with @jthi here - OnModuleLoad is basically a pseudo-function to receive arguments from another module at creation time - useful for creating things like launchers that instantiate other modules.

 

Below are the default arguments included in a Module script - anything that uses the symbols created by the Module has to be placed after the thisModuleInstance << Create Objects; line:

 

// This special function will receive parameters passed to CreateInstance()
OnModuleLoad({},
);

thisModuleInstance << Create Objects;

// After this point your module instance objects have been created
// and can be referred to by name (for example, "Button1").

zql3050
Level II

Re: how to update the text box when app load

Got it. Thanks all very much!

zql3050
Level II

Re: how to update the text box when app load

Thanks! Your suggestion is right.