cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar

How to create a interactive HTML with two tabs which change the chart image in one based on the value choosen in dropdown list

rpt = New Window("Image Gallery Report",
TabBox("Overlay Maps",
    H List Box(
 
        row1_hlist = V List Box(Text Box("Image Gallery from: " || "INTW.203P"),
        //Text Box("Found " || Char(N Items(image_files)) || " images"),
        
        Spacer Box(Size(0, 10))),
        
        Spacer Box(Size(0, 20)),
        
        // Second row label  
        row2_hlist = V List Box(Text Box("Image Gallery from: " || "INTW.103P"),
        //Text Box("Found " || Char(N Items(image_files)) || " images"),
        
        Spacer Box(Size(0, 10))),
        
        
        Spacer Box(Size(0, 20))
        
        
        
        
    ),
    
    "Indiviudal",
    
    H List Box(
    
    
        
         // Second row label  
        row3_hlist = V List Box(Text Box("DROPDOWN "),
        //Text Box("Found " || Char(N Items(image_files)) || " images"),
        myListbox = ComboBox(Lot_List, doListChoice),
        doListChoice = expr(
choice = myListbox << getSelected;
show(choice););
        
        Spacer Box(Size(0, 10)),
       
        report_conatiner = v list box()
       
        ),
        
        Spacer Box(Size(0, 20)),
        
        // Second row label  
        row5_hlist = V List Box(Text Box("Image Gallery from: " || "INTW.103P")
        //Text Box("Found " || Char(N Items(image_files)) || " images"),
        
       )
        
        
        
    )
    
    
    
    
    ),
 
   
    
);
 
 
I have got the report from above script but its not interactive and I am getting access error on report conatiner. Could you please help
 
rpt = New Window("Image Gallery Report",
	Tab Box(
		"Overlay Maps",
		H List Box(
			row1_hlist = V List Box(
				Text Box("Image Gallery from: " || "INTW.203P"), 
        //Text Box("Found " || Char(N Items(image_files)) || " images"),
				Spacer Box(Size(0, 10))
			),
			Spacer Box(Size(0, 20)), 
        // Second row label  
			row2_hlist = V List Box(
				Text Box("Image Gallery from: " || "INTW.103P"), 
        //Text Box("Found " || Char(N Items(image_files)) || " images"),
				Spacer Box(Size(0, 10))
			),
			Spacer Box(Size(0, 20))
		),
		"Indiviudal",
		H List Box(
         // Second row label  
			row3_hlist = V List Box(
				Text Box("DROPDOWN "), 
        //Text Box("Found " || Char(N Items(image_files)) || " images"),
				myListbox = Combo Box(Lot_List, doListChoice),
				doListChoice = Expr(
					choice = myListbox << getSelected;
					Show(choice);
				);
				Spacer Box(Size(0, 10));,
				report_conatiner = V List Box()
			),
			Spacer Box(Size(0, 20)), 
        
        // Second row label  
			row5_hlist = V List Box(
				Text Box("Image Gallery from: " || "INTW.103P")
        //Text Box("Found " || Char(N Items(image_files)) || " images"),
			)
		)
	),

);
Edit (jthi): added JSL formatting and removed some unnecessary whitespace
5 REPLIES 5

Re: How to create a interactive HTML with two tabs which change the chart image in one based on the value choosen in dropdown list

One more issue on the above script is in JSL report tab is creating but not in HTML report with below code

 

rpt << Save HTML("BSS.HTML", "BSS Report");

jthi
Super User

Re: How to create a interactive HTML with two tabs which change the chart image in one based on the value choosen in dropdown list

Not all the features work within interactive html and you might have to use different structure. 

-Jarmo
hogi
Level XII

Re: How to create a interactive HTML with two tabs which change the chart image in one based on the value choosen in dropdown list

Interactive Tabbed reports in 5 seconds - without issues?
-> use Application Builder 

 

Scripters Club 2024: Session 1 - Application Builder by @DonMcCormack 

One Multi-tabbed, Filterable Dashboard (2021-US-30MP-803)

Re: How to create a interactive HTML with two tabs which change the chart image in one based on the value choosen in dropdown list

Thanks Jarmo. Is it possible to create HTML report with dropdown box and change graph based on value chosen from dropdown box?

hogi
Level XII

Re: How to create a interactive HTML with two tabs which change the chart image in one based on the value choosen in dropdown list

sure, just change the "Style" to "Combo":

hogi_0-1757701898677.png

 

Recommended Articles