static O getSingleFieldFromSingletonConcept(S progID, S conceptClass, S field) { RemoteDB db = new RemoteDB(progID); if (db.functional()) { L<RC> list = db.xlist(conceptClass); if (empty(list)) null; ret db.xget(first(list), field); } Concepts c = new Concepts(progID).safeLoad(); ret cget(first(c.list(conceptClass)), field); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006274 |
| Snippet name: | getSingleFieldFromSingletonConcept [also remote/from disk] |
| Eternal ID of this version: | #1006274/1 |
| Text MD5: | 3fc437aeb5242090489386dc77987da6 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-26 16:38:24 |
| Source code size: | 359 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 701 / 687 |
| Referenced in: | #1006296 - deleteAllConceptsOfType [also remote/from disk] #1006654 - Standard functions list 2 (LIVE, continuation of #761) |