[{"data":1,"prerenderedAt":407},["ShallowReactive",2],{"/docs/jobs/dojjob/api/client-exports":3,"/docs/jobs/dojjob/api/client-exports-surround":397,"/docs/jobs/dojjob/api/client-exports-implemented-suggestions":406},{"id":4,"title":5,"body":6,"description":387,"extension":388,"head":389,"implementedSuggestions":389,"meta":390,"navigation":391,"path":392,"schemaOrg":389,"seo":393,"sitemap":394,"stem":395,"__hash__":396},"docs/1.docs/0.jobs/5.dojjob/5.api/1.client-exports.md","Client Exports",{"type":7,"value":8,"toc":380},"minimark",[9,24,32,61,66,73,76,120,147,188,280,289,304,308,319,373,376],[10,11,12,13,17,18,23],"p",{},"Call these exports from your resource's ",[14,15,16],"strong",{},"client Lua",". Document creation, record queries and courtroom integrations belong in ",[19,20,22],"a",{"href":21},"/docs/jobs/dojjob/api/server-exports","Server Exports",".",[10,25,26,27,31],{},"Declare DOJ as a dependency in your resource's ",[28,29,30],"code",{},"fxmanifest.lua",":",[33,34,39],"pre",{"className":35,"code":36,"language":37,"meta":38,"style":38},"language-lua shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","dependency \"sky_dojjob\"\n","lua","",[28,40,41],{"__ignoreMap":38},[42,43,46,50,54,58],"span",{"class":44,"line":45},"line",1,[42,47,49],{"class":48},"s2Zo4","dependency",[42,51,53],{"class":52},"sMK4o"," \"",[42,55,57],{"class":56},"sfazB","sky_dojjob",[42,59,60],{"class":52},"\"\n",[62,63,65],"h2",{"id":64},"tablet","Tablet",[67,68,70],"h3",{"id":69},"openroute",[28,71,72],{},"Open(route?)",[10,74,75],{},"Opens a DOJ tablet application from an existing menu or interaction. Omitting the route opens the law application.",[33,77,79],{"className":35,"code":78,"language":37,"meta":38,"style":38},"-- client.lua, inside your existing menu action\nexports[\"sky_dojjob\"]:Open(\"/tablet/doj/files\")\n",[28,80,81,87],{"__ignoreMap":38},[42,82,83],{"class":44,"line":45},[42,84,86],{"class":85},"sHwdD","-- client.lua, inside your existing menu action\n",[42,88,90,94,97,99,101,104,107,110,112,115,117],{"class":44,"line":89},2,[42,91,93],{"class":92},"sTEyZ","exports[",[42,95,96],{"class":52},"\"",[42,98,57],{"class":56},[42,100,96],{"class":52},[42,102,103],{"class":92},"]:",[42,105,106],{"class":48},"Open",[42,108,109],{"class":92},"(",[42,111,96],{"class":52},[42,113,114],{"class":56},"/tablet/doj/files",[42,116,96],{"class":52},[42,118,119],{"class":92},")\n",[33,121,123],{"className":35,"code":122,"language":37,"meta":38,"style":38},"-- Open the default law application.\nexports[\"sky_dojjob\"]:Open()\n",[28,124,125,130],{"__ignoreMap":38},[42,126,127],{"class":44,"line":45},[42,128,129],{"class":85},"-- Open the default law application.\n",[42,131,132,134,136,138,140,142,144],{"class":44,"line":89},[42,133,93],{"class":92},[42,135,96],{"class":52},[42,137,57],{"class":56},[42,139,96],{"class":52},[42,141,103],{"class":92},[42,143,106],{"class":48},[42,145,146],{"class":92},"()\n",[148,149,150,166],"table",{},[151,152,153],"thead",{},[154,155,156,160,163],"tr",{},[157,158,159],"th",{},"Argument",[157,161,162],{},"Type",[157,164,165],{},"Description",[167,168,169],"tbody",{},[154,170,171,177,182],{},[172,173,174],"td",{},[28,175,176],{},"route",[172,178,179],{},[28,180,181],{},"string?",[172,183,184,185,23],{},"Optional application route from the table below. Defaults to ",[28,186,187],{},"/tablet/doj/law",[148,189,190,200],{},[151,191,192],{},[154,193,194,197],{},[157,195,196],{},"Route",[157,198,199],{},"Application",[167,201,202,211,221,230,240,250,260,270],{},[154,203,204,208],{},[172,205,206],{},[28,207,114],{},[172,209,210],{},"File Explorer, including citizen and vehicle files.",[154,212,213,218],{},[172,214,215],{},[28,216,217],{},"/tablet/doj/shared-files",[172,219,220],{},"Shared Documents.",[154,222,223,227],{},[172,224,225],{},[28,226,187],{},[172,228,229],{},"Law management.",[154,231,232,237],{},[172,233,234],{},[28,235,236],{},"/tablet/doj/offences",[172,238,239],{},"Offence catalogue.",[154,241,242,247],{},[172,243,244],{},[28,245,246],{},"/tablet/doj/conditions",[172,248,249],{},"Court-condition orders.",[154,251,252,257],{},[172,253,254],{},[28,255,256],{},"/tablet/doj/hearings",[172,258,259],{},"Hearings and courtroom workflow.",[154,261,262,267],{},[172,263,264],{},[28,265,266],{},"/tablet/doj/elections",[172,268,269],{},"Elections.",[154,271,272,277],{},[172,273,274],{},[28,275,276],{},"/tablet/doj",[172,278,279],{},"Alias for File Explorer.",[10,281,282,285,286,288],{},[14,283,284],{},"Return value:"," none. ",[28,287,106],{}," requests the application to open; it does not return an authorization result. Application and record permissions still apply. An unknown route is rejected with a client diagnostic.",[10,290,291,292,295,296,299,300,303],{},"This export opens an application, not an individual case or document. Do not append ",[28,293,294],{},"documentId",", ",[28,297,298],{},"caseFileId"," or arbitrary paths expecting a record deep link. Select the saved record in Files. The specialist ",[28,301,302],{},"/tablet/doj/registers"," application also exists, but is disabled by default and is not needed for citizen or vehicle files.",[62,305,307],{"id":306},"internal-compatibility-exports","Internal compatibility exports",[10,309,310,311,313,314,318],{},"These exports support the maintained shared-preview and radial integration. They are listed for completeness; use ",[28,312,106],{}," for a custom tablet entry point and the ",[19,315,317],{"href":316},"/docs/jobs/dojjob/api/server-exports#documents","server document APIs"," for authorized record workflows.",[148,320,321,331],{},[151,322,323],{},[154,324,325,328],{},[157,326,327],{},"Export",[157,329,330],{},"Existing integration role",[167,332,333,343,353,363],{},[154,334,335,340],{},[172,336,337],{},[28,338,339],{},"CloseSharedDocumentPreview",[172,341,342],{},"Shared preview close callback and its existing focus lifecycle.",[154,344,345,350],{},[172,346,347],{},[28,348,349],{},"GetDocumentPreviewLocales",[172,351,352],{},"Supplies the existing document preview's locale data.",[154,354,355,360],{},[172,356,357],{},[28,358,359],{},"RequestSharedDocument",[172,361,362],{},"Existing asynchronous shared-document request callback contract.",[154,364,365,370],{},[172,366,367],{},[28,368,369],{},"getRadialActions",[172,371,372],{},"Radial compatibility provider; currently returns an empty table.",[10,374,375],{},"These callback contracts are not generic document import, print or permission-bypass APIs. Keep shared document viewing, sharing and printing in the established tablet workflow.",[377,378,379],"style",{},"html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}",{"title":38,"searchDepth":45,"depth":89,"links":381},[382,386],{"id":64,"depth":89,"text":65,"children":383},[384],{"id":69,"depth":385,"text":72},3,{"id":306,"depth":89,"text":307},"Open DOJ tablet applications from your client-side menus and integrations.","md",null,{},true,"/docs/jobs/dojjob/api/client-exports",{"title":5,"description":387},{"loc":392},"1.docs/0.jobs/5.dojjob/5.api/1.client-exports","K1_EcEGxonRxOSMCL4h_Ht9dCYpNMUqY9X6lOoFsbGU",[398,403],{"title":399,"path":400,"stem":401,"description":402,"children":-1},"Troubleshooting","/docs/jobs/dojjob/reference/troubleshooting","1.docs/0.jobs/5.dojjob/4.reference/2.troubleshooting","Resolve common DOJ setup, access, template, sharing, upload and printing issues.",{"title":22,"path":21,"stem":404,"description":405,"children":-1},"1.docs/0.jobs/5.dojjob/5.api/2.server-exports","Create DOJ template documents, query court conditions and connect hearings or courtroom evidence from server resources.",[],1790629496735]