cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

Scripters Club Recording: Building Robust and fail-safe scripts

jthi
Super User

Building robust scripts.mp4
Video Player is loading.
Current Time 0:00
Duration 0:00
Loaded: 0%
Stream Type LIVE
Remaining Time 0:00
 
1x
    • Chapters
    • descriptions off, selected
    • captions off, selected
      (view in My Videos)

      -Jarmo
      11 REPLIES 11
      jthi
      Super User


      Re: Scripters Club Recording: Building Robust and fail-safe scripts

      hogi
      Level XII


      Re: Scripters Club Recording: Building Robust and fail-safe scripts

      thank you @jthi , very helpful to get everybody on the same page.

      Thanks for the tiny secrets like rename a table @21:15min : )

      WebDesignesCrow
      Super User


      Re: Scripters Club Recording: Building Robust and fail-safe scripts

      Thank you very much @jthi for sharing!

      Ressel
      Level VI


      Re: Scripters Club Recording: Building Robust and fail-safe scripts

      Marvelous!

      lehaofeng
      Level V


      Re: Scripters Club Recording: Building Robust and fail-safe scripts

      Why does this vedio become blurry when I watch it? How to solve it?

      Re: Scripters Club Recording: Building Robust and fail-safe scripts

      Hello @lehaofeng mybe the bandwith during the recording changed. 

      Is there anything you cannot follow? 

       

      lehaofeng
      Level V

      Re: Scripters Club Recording: Building Robust and fail-safe scripts

      Just like this, sometimes it`s clear,but sometimes it`s blurry.

      lehaofeng_0-1726572339036.png

      lehaofeng_1-1726577613465.png

       

      Ressel
      Level VI

      Re: Scripters Club Recording: Building Robust and fail-safe scripts

      Possibly, the issue is on your machine? I couldn't notice blurriness when watching.

      Re: Scripters Club Recording: Building Robust and fail-safe scripts

      thank you @jthi for this presentation !

      I just discovered the scripters club and I am so happy to learn all those tips and tricks.

       

      At 39:00, you are mentioning that you will make an example for listed references for many check boxes in a window. In the joined script, it seems to not have been implemented (as neither of the other examples from what I can find).

      Did I miss them somewhere? Or is it plan to update the script with those examples? If you have something under the finger to make a snippet out of it that will be great ! Otherwise, I guess it will be a good exercise to script it.

      jthi
      Super User

      Re: Scripters Club Recording: Building Robust and fail-safe scripts

      I might have forgotten about it, but I think I might have referred to this Incorrect alignment of checkboxes on the user interface . Usually you have two options, either collect the checkboxes into lists while youi append them or utilize XPath.

       

      Names Default To Here(1);
      
      ids = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L"};
      
      nw = New Window("CBs",
      	lub = Lineup Box(N Col(4))
      );
      
      
      // Collecting references to a list
      cb_refs = {};
      For Each({id}, ids,
      	Eval(EvalExpr(
      		lub << Append(cb = Check Box({Expr(id)}));	
      	));
      	Insert Into(cb_refs, cb);
      );
      
      
      // XPath 
      cbs = nw << XPath("//CheckBoxBox");
      
      
      // You can then get values from the checkboxes by sending message to the list
      show(cb_refs << get items, cbs << get items);

      Maybe these give some ideas about what you could do. The post I added has a bit more complicated example and in one of my responses I did utilize XPath

      -Jarmo
      scottahindle
      Level IV

      Re: Scripters Club Recording: Building Robust and fail-safe scripts

      Very helpful - thanks!