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

19
LINES

< > BotCompany Repo | #1021238 // Dialogs CRUD

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (8626L/46K).

1  
!7
2  
3  
concept Dialog {
4  
  S globalID = aGlobalID(), text;
5  
}
6  
7  
cmodule DialogsCRUD > DynCRUD<Dialog> {
8  
  afterVisualize {
9  
    addSelectionDependentButton("Edit in editor", rThread {
10  
      dm_makeOrShowAndCallModule("#1021235/DialogEditor", 'fromRaw, selected().text)
11  
    });
12  
  }
13  
  
14  
  // API
15  
  
16  
  void saveDialog(S globalID, S text) {
17  
    cset(uniq_sync Dialog(+globalID), +text);
18  
  }
19  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021238
Snippet name: Dialogs CRUD
Eternal ID of this version: #1021238/3
Text MD5: 5b07f1f07e6ba91b685eea38e245ab55
Transpilation MD5: 582eef7b01d016667a795e631688c66f
Author: stefan
Category: javax / a.i.
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-05 14:31:58
Source code size: 398 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 293 / 610
Version history: 2 change(s)
Referenced in: [show references]