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.
%3CLINGO-SUB%20id%3D%22lingo-sub-651046%22%20slang%3D%22fr-FR%22%20mode%3D%22NONE%22%3Eimagen%20jpg%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-651046%22%20slang%3D%22fr-FR%22%20mode%3D%22NONE%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3EBuenos%20d%C3%ADas%20a%20todos%2C%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3ETengo%20una%20pregunta%20sobre%20las%20im%C3%A1genes%20jpg%2C%20no%20puedo%20encontrar%20ninguna%20documentaci%C3%B3n%20sobre%20JMP%20al%20respecto.%3C%2FDIV%3E%3CDIV%3EEn%20mi%20caso%2C%20tengo%20una%20carpeta%20que%20contiene%20unas%203000%20im%C3%A1genes%20en%20formato%20%22jpg%22.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EMe%20gustar%C3%ADa%20poder%20mostrar%20en%20el%20generador%20de%20gr%C3%A1ficos%20estas%20im%C3%A1genes%20en%20formato%20%22jpg%22%20seg%C3%BAn%20la%20selecci%C3%B3n%20de%20filtros%20de%20datos%20locales.%3CBR%20%2F%3E%3CBR%20%2F%3EPor%20ejemplo%20%3A%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hcarr01_1-1687505622793.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F54092i9145153644B2A37F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hcarr01_1-1687505622793.png%22%20alt%3D%22hcarr01_1-1687505622793.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CP%3E%3CSPAN%3EAqu%C3%AD%20se%20debe%20mostrar%20la%20siguiente%20imagen%3A%20obj%20%22B%22%20y%20tipo%20%222%22.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EEsta%20imagen%20se%20llama%20as%C3%AD%20en%20mi%20carpeta%3A%20%22B_2.jpg%22.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EGracias%20por%20su%20ayuda%20!%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-651046%22%20slang%3D%22fr-FR%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EAutomatizaci%C3%B3n%20y%20secuencias%20de%20comandos%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAcceso%20a%20los%20datos%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExploraci%C3%B3n%20y%20visualizaci%C3%B3n%20de%20datos%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-651136%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20imagen%20jpg%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-651136%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECreo%20que%20esto%20est%C3%A1%20cerca%20de%20lo%20que%20est%C3%A1%20pidiendo%20y%20deber%C3%ADa%20ayudarlo%20a%20comenzar%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%2F%2F%20https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FDrawing-other-shapes-in-graph-builder%2Fm-p%2F368186%23M61806%0A%0ANamesDefaultToHere(1)%3B%0A%0A%2F%2F%20Open%20a%20table%20and%20do%20Bivariate%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FBig%20Class.jmp%22)%3B%0Abiv%20%3D%20dt%20%26lt%3B%26lt%3B%20Bivariate(X(%3Aheight)%2C%20Y(%3Aweight))%3B%0A%0A%2F%2F%20Add%20a%20local%20data%20filter%20(%3Asex%20plays%20the%20role%20of%20floor%20.%20.%20.%20)%0Adf%20%3D%20biv%20%26lt%3B%26lt%3B%20Local%20Data%20Filter(%20Add%20Filter(%20columns(%20%3Asex%20)%20))%3B%0A%0A%2F%2F%20Get%20the%20title%20of%20the%20window%0Awin%20%3D%20(biv%20%26lt%3B%26lt%3B%20Report)%20%26lt%3B%26lt%3B%20GetWindowTitle%3B%0A%0A%2F%2F%20Define%20a%20function%20that%20will%20update%20the%20background%20image%20on%20the%20Bivariate%20plot%0Af%20%3D%20Function(%20%7Ba%7D%2C%0A%20%20%2F%2F%20Infer%20what%20value%20of%20%3Asex%20is%20currenly%20selected%20in%20the%20data%20filter%0A%20%20levRows%20%3D%20df%20%26lt%3B%26lt%3B%20getFilteredRows%3B%0A%20%20lev%20%3D%20Column(dt%2C%20%22sex%22)%5BlevRows%5D%3B%0A%20%20lev%20%3D%20lev%5B1%5D%3B%0A%20%20Speak(lev)%3B%0A%20%20%2F%2F%20(Try%20to)%20remove%20an%20image%20that%20might%20already%20be%20there%0A%20%20Try(%0A%20%20%20imgSeg%20%3D%20Window(win)%5BFrameBox(2)%5D%20%26lt%3B%26lt%3B%20FindSeg(%20PictSeg(%201%20)%20)%3B%0A%20%20%20imgSeg%20%26lt%3B%26lt%3B%20Remove%3B%0A%20%20%20)%3B%0A%20%20%2F%2F%20Add%20the%20'corresponding'%20image%0A%20%20if(%0A%20%20%20lev%20%3D%3D%20%22M%22%2C%0A%20%20%20%20Window(win)%5BFrameBox(2)%5D%20%26lt%3B%26lt%3B%20Add%20Image(Open(%22%24SAMPLE_IMAGES%2Ftile.jpg%22)%2C%20FillGraph)%2C%0A%20%20%20lev%20%3D%3D%20%22F%22%2C%0A%20%20%20%20Window(win)%5BFrameBox(2)%5D%20%26lt%3B%26lt%3B%20Add%20Image(Open(%22%24SAMPLE_IMAGES%2Fprogress.gif%22)%2C%20FillGraph)%0A%20%20%20)%3B%0A%20%20)%3B%0A%0A%2F%2F%20Add%20a%20handler%20to%20the%20data%20filter%20so%20that%20when%20the%20user%20makes%20a%20selection%20the%20function%20'f'%20is%20called%0Ars%20%3D%20df%20%26lt%3B%26lt%3B%20Make%20Filter%20Change%20Handler(%20f%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-651212%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20imagen%20jpg%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-651212%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ETomando%20un%20enfoque%20similar%20para%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3605%22%20target%3D%22_blank%22%3E%20%40ian_jmp%3C%2FA%3E%20a%20continuaci%C3%B3n%20se%20muestra%20un%20ejemplo%20simple%20de%20secuencia%20de%20comandos%20que%20muestra%20una%20imagen%20basada%20en%20una%20selecci%C3%B3n%20de%20filtro%20de%20datos%2C%20pero%20no%20utiliza%20una%20plataforma%20JMP%20como%20Bivariate%20o%20Graph%20Builder.Simplemente%20muestra%20una%20imagen.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22txnelson_0-1687520501584.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1687520501584.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_0-1687520501584.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F54114iC55AA57005975E81%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22txnelson_0-1687520501584.png%22%20alt%3D%22txnelson_0-1687520501584.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22txnelson_1-1687520603106.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_1-1687520603106.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22txnelson_1-1687520603106.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F54116iF93F90A35EDECB65%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22txnelson_1-1687520603106.png%22%20alt%3D%22txnelson_1-1687520603106.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Apath%20%3D%20%22c%3A%5Cusers%5C%3F%3F%3F%5Cpictures%22%3B%20%2F%2F%20set%20the%20path%20to%20your%20image%20directory%20%0A%0A%2F%2F%20Filter%20out%20all%20non%20jpg%20files%0Afiles%20%3D%20Filter%20Each(%20%7Bfile%7D%2C%20Files%20In%20Directory(%20path%20)%2C%20Word(%20-1%2C%20file%2C%20%22.%22%20)%20%3D%3D%20%22jpg%22%20)%3B%0A%0A%2F%2F%20I%20create%20a%20dummy%20data%20table%20to%20use%20for%20an%20example%0Aob%20%3D%20%7B%22A%22%2C%20%22B%22%2C%20%22C%22%7D%3B%0Adt%20%3D%20New%20Table(%20%22Pictures%22%2C%20invisible%2C%0A%20add%20rows(%20N%20Items(%20files%20)%20)%2C%0A%20New%20Column(%20%22Obj%22%2C%20character%2C%20set%20each%20value(%20ob%5BMod(%20Row()%2C%203%20)%20%2B%201%5D%20)%20)%2C%0A%20New%20Column(%20%22type%22%2C%20nominal%2C%20set%20each%20value(%20Col%20Cumulative%20Sum(%201%2C%20%3Aobj%20)%20)%20)%2C%0A%20New%20Column(%20%22ImagePath%22%2C%20character%2C%20set%20each%20value(%20files%5BRow()%5D%20)%20)%0A)%3B%0A%3AImagePath%20%26lt%3B%26lt%3B%20hide%3B%0A%0A%2F%2F%20Here%20is%20the%20working%20code%20that%20can%20be%20used%20against%20a%20data%20table%20that%20matches%0A%2F%2F%20the%20example%20data%20table%20created%20above%0A%2F%2F%20It%20uses%20a%20Make%20Row%20State%20Handler%20to%20handle%20the%20changing%20of%20images%20when%0A%2F%2F%20the%20data%20filter%20values%20change%0Anw%20%3D%20New%20Window(%20%22Example%22%2C%0A%20hlb%20%3D%20H%20List%20Box(%0A%20%20dt%20%26lt%3B%26lt%3B%20Data%20Filter(%0A%20%20%20Location(%20%7B928%2C%20247%7D%20)%2C%0A%20%20%20Mode(%20Include(%201%20)%20)%2C%0A%20%20%20Add%20Filter(%20columns(%20%3AObj%2C%20%3Atype%20)%2C%20Display(%20%3Atype%2C%20N%20Items(%208%20)%20)%20)%0A%20%20)%2C%0A%20%20pb%20%3D%20Graph%20Box(%20Frame%20Size(%20600%2C%20600%20)%20)%0A%20)%0A)%3B%0Apb(%20report%20)%5Baxisbox(%202%20)%5D%20%26lt%3B%26lt%3B%20delete%3B%0Apb(%20report%20)%5Baxisbox(%201%20)%5D%20%26lt%3B%26lt%3B%20delete%3B%0A%0AtheFunction%20%3D%20Function(%20%7Ba%7D%2C%0A%20If(%20N%20Rows(%20dt%20%26lt%3B%26lt%3B%20get%20selected%20rows%20)%20%3D%3D%201%2C%0A%20%20Try(%20pb%20%26lt%3B%26lt%3B%20delete%20)%3B%0A%20%20hlb%20%26lt%3B%26lt%3B%20append(%20pb%20%3D%20Picture%20Box(%20Open(%20path%20%7C%7C%20%22%5C%22%20%7C%7C%20dt%3AImagePath%5B(dt%20%26lt%3B%26lt%3B%20get%20selected%20rows)%5B1%5D%5D%2C%20jpg%20)%20)%20)%3B%0A%20%20pb%20%26lt%3B%26lt%3B%20set%20height(%20600%20)%3B%0A%20%20pb%20%26lt%3B%26lt%3B%20set%20width(%20600%20)%3B%0A%20%2C%0A%20%20Try(%20pb%20%26lt%3B%26lt%3B%20delete%20)%3B%0A%20%20hlb%20%26lt%3B%26lt%3B%20append(%20pb%20%3D%20Graph%20Box(%20Frame%20Size(%20600%2C%20600%20)%20)%20)%3B%0A%20%20pb(%20report%20)%5Baxisbox(%202%20)%5D%20%26lt%3B%26lt%3B%20delete%3B%0A%20%20pb(%20report%20)%5Baxisbox(%201%20)%5D%20%26lt%3B%26lt%3B%20delete%3B%0A%20)%0A)%3B%0Ars%20%3D%20dt%20%26lt%3B%26lt%3B%20make%20row%20state%20handler(%20theFunction%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
hcarr01
Level VI

image jpg

 

Bonjour à tous, 
 
J’ai une question par rapport aux images jpg, je ne trouve pas de documentation sur JMP à ce sujet.
Dans mon cas, je dispose d’un dossier contenant environ 3000 images sous le format « jpg ».
 
J’aimerais pouvoir afficher dans le constructeur de graphiques ces images au format « jpg » en fonction de la sélection des filtres de données locales.

Par exemple :
 
 
hcarr01_1-1687505622793.png

Ici, il faudrait que s’affiche l’image suivante : obj « B » et type « 2 ».

Cette image se nomme comme ceci dans mon dossier : " B_2.jpg " .

 

Merci pour votre aide !


 

2 REPLIES 2
ian_jmp
Level X

Re: image jpg

I think this is close to what you are asking for and should get you started:

// https://community.jmp.com/t5/Discussions/Drawing-other-shapes-in-graph-builder/m-p/368186#M61806

NamesDefaultToHere(1);

// Open a table and do Bivariate
dt = Open("$SAMPLE_DATA/Big Class.jmp");
biv = dt << Bivariate(X(:height), Y(:weight));

// Add a local data filter (:sex plays the role of floor . . . )
df = biv << Local Data Filter( Add Filter( columns( :sex ) ));

// Get the title of the window
win = (biv << Report) << GetWindowTitle;

// Define a function that will update the background image on the Bivariate plot
f = Function( {a},
		// Infer what value of :sex is currenly selected in the data filter
		levRows = df << getFilteredRows;
		lev = Column(dt, "sex")[levRows];
		lev = lev[1];
		Speak(lev);
		// (Try to) remove an image that might already be there
		Try(
			imgSeg = Window(win)[FrameBox(2)] << FindSeg( PictSeg( 1 ) );
			imgSeg << Remove;
			);
		// Add the 'corresponding' image
		if(
			lev == "M",
				Window(win)[FrameBox(2)] << Add Image(Open("$SAMPLE_IMAGES/tile.jpg"), FillGraph),
			lev == "F",
				Window(win)[FrameBox(2)] << Add Image(Open("$SAMPLE_IMAGES/progress.gif"), FillGraph)
			);
		);

// Add a handler to the data filter so that when the user makes a selection the function 'f' is called
rs = df << Make Filter Change Handler( f );
txnelson
Super User

Re: image jpg

Taking a similar approach to @ian_jmp below is a simple example of script that displays an image based upon a data filter selection, but does not use a JMP platform such as Bivariate or Graph Builder.  It just simply displays an image.

txnelson_0-1687520501584.png

txnelson_1-1687520603106.png

Names Default To Here( 1 );
path = "c:\users\???\pictures"; // set the path to your image directory 

// Filter out all non jpg files
files = Filter Each( {file}, Files In Directory( path ), Word( -1, file, "." ) == "jpg" );

// I create a dummy data table to use for an example
ob = {"A", "B", "C"};
dt = New Table( "Pictures", invisible,
	add rows( N Items( files ) ),
	New Column( "Obj", character, set each value( ob[Mod( Row(), 3 ) + 1] ) ),
	New Column( "type", nominal, set each value( Col Cumulative Sum( 1, :obj ) ) ),
	New Column( "ImagePath", character, set each value( files[Row()] ) )
);
:ImagePath << hide;

// Here is the working code that can be used against a data table that matches
// the example data table created above
// It uses a Make Row State Handler to handle the changing of images when
// the data filter values change
nw = New Window( "Example",
	hlb = H List Box(
		dt << Data Filter(
			Location( {928, 247} ),
			Mode( Include( 1 ) ),
			Add Filter( columns( :Obj, :type ), Display( :type, N Items( 8 ) ) )
		),
		pb = Graph Box( Frame Size( 600, 600 ) )
	)
);
pb( report )[axisbox( 2 )] << delete;
pb( report )[axisbox( 1 )] << delete;

theFunction = Function( {a},
	If( N Rows( dt << get selected rows ) == 1,
		Try( pb << delete );
		hlb << append( pb = Picture Box( Open( path || "\" || dt:ImagePath[(dt << get selected rows)[1]], jpg ) ) );
		pb << set height( 600 );
		pb << set width( 600 );
	,
		Try( pb << delete );
		hlb << append( pb = Graph Box( Frame Size( 600, 600 ) ) );
		pb( report )[axisbox( 2 )] << delete;
		pb( report )[axisbox( 1 )] << delete;
	)
);
rs = dt << make row state handler( theFunction );

 

Jim

Recommended Articles