취소
다음에 대한 결과 표시 
표시  만  | 다음에 대한 검색 
다음을 의미합니까? 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
언어 선택 변환 막대 숨기기
Elise_B
Level III

Supprimer l'heure de l'affichage Calendar Box

Bonjour,

J'ai un code JSL qui demande à l'utilisateur de spécifier un intervalle de temps via une Calendar Box. Mon code fonctionne bien je souhaite seulement pouvoir supprimer l'affichage de l'heure qui ne m'est pas utile par la suite. Est ce que c'est possible ?

 

txnelson_0-1625492997709.png

 

 

 

dt1=Today(),
dt2=Today(),
HListBox(
	PanelBox( "From Time", scal = Calendar Box(SetFunction(Function({this}, date1=scal<< Get Date) ))),
	spacerbox(Size(20,20)),
	PanelBox( "To Time", ecal = Calendar Box(SetFunction(Function({this}, date2=ecal<< Get Date) )))
)

 

 

Merci d'avance pour vos réponses !

Elise B.
2 채택된 솔루션

채택된 솔루션
txnelson
Super User

Re: Supprimer l'heure de l'affichage Calendar Box

I was able to change the visibility on the not required objects with the script below

txnelson_0-1625492919865.png

dt1 = Today();
dt2 = Today();
nw = New Window( "test",
	H List Box(
		Panel Box( "From Time",
			scal = Calendar Box( SetFunction( Function( {this}, date1 = scal << Get Date ) ) )
		),
		Spacer Box( Size( 20, 20 ) ),
		Panel Box( "To Time",
			ecal = Calendar Box( SetFunction( Function( {this}, date2 = ecal << Get Date ) ) )
		)
	)
);

nw[Text Box( 16 )] << visibility( collapse );
nw[Text Box( 8 )] << visibility( collapse );
nw[Number Edit Box( 4 )] << visibility( collapse );
nw[Number Edit Box( 2 )] << visibility( collapse );

See Craige Hales response below.

Jim

원본 게시물의 솔루션 보기

Craige_Hales
Super User

Re: Supprimer l'heure de l'affichage Calendar Box

You might also like Select Date Range with Calendar Boxes  which links the two boxes together, forces the returned dates to midnight, and uses <<showTime(0) to remove the GUI elements.

Craige

원본 게시물의 솔루션 보기

3 응답 3
txnelson
Super User

Re: Supprimer l'heure de l'affichage Calendar Box

I was able to change the visibility on the not required objects with the script below

txnelson_0-1625492919865.png

dt1 = Today();
dt2 = Today();
nw = New Window( "test",
	H List Box(
		Panel Box( "From Time",
			scal = Calendar Box( SetFunction( Function( {this}, date1 = scal << Get Date ) ) )
		),
		Spacer Box( Size( 20, 20 ) ),
		Panel Box( "To Time",
			ecal = Calendar Box( SetFunction( Function( {this}, date2 = ecal << Get Date ) ) )
		)
	)
);

nw[Text Box( 16 )] << visibility( collapse );
nw[Text Box( 8 )] << visibility( collapse );
nw[Number Edit Box( 4 )] << visibility( collapse );
nw[Number Edit Box( 2 )] << visibility( collapse );

See Craige Hales response below.

Jim
Elise_B
Level III

Re: Supprimer l'heure de l'affichage Calendar Box

Cela a parfaitement fonctionné merci beaucoup !

Elise B.
Craige_Hales
Super User

Re: Supprimer l'heure de l'affichage Calendar Box

You might also like Select Date Range with Calendar Boxes  which links the two boxes together, forces the returned dates to midnight, and uses <<showTime(0) to remove the GUI elements.

Craige

추천 글