Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

21
LINES

< > BotCompany Repo | #1013529 // Make table from standard function [Dyn]

JavaX source code (desktop) [tags: smartbot-dyn use-pretranspiled] - run with: x30.jar - homepage

Download Jar. Libraryless. Click here for Pure Java version (12405L/83K).

1  
!7
2  
3  
!include once #1013530 // Dyn
4  
5  
html {
6  
  uri = dropPrefix("/", uri);
7  
  S sfName = uri;
8  
  Collection l = (Collection) callSafeSF(sfName);
9  
  new L data;
10  
  for (O o : l)
11  
    data.add(o instanceof Map ? (Map) o : litorderedmap("ID" := str(o)));
12  
13  
  temp tempSetThreadLocal(htmlTable_cellEncoder, func(S s) -> S {
14  
    empty(s) ? s : smartBot_linkedTopic(s)
15  
  });
16  
  
17  
  ret htitle(sfName)
18  
    + hfullcenter(
19  
        h2(sfName + " (" + l(data) + ")")
20  
      + htable(data));
21  
}

Author comment

Began life as a copy of #1013525

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013529
Snippet name: Make table from standard function [Dyn]
Eternal ID of this version: #1013529/6
Text MD5: b48d27eb46c97c85aa052d68e3bd7f58
Transpilation MD5: 4d177810344340052c3ce2c46eaa2cc4
Author: stefan
Category: javax / a.i. / html
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-08 06:00:17
Source code size: 489 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 533 / 1288
Version history: 5 change(s)
Referenced in: [show references]