{"name":"processDiaryLink","operator":null,"title":"processDiaryLink","type":"command","url":"https://community.bistudio.com/wiki/processDiaryLink","revid":321937,"updated":"2022-05-22T12:54:35Z","groups":["Briefing"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Opens the Diary screen on the subject/record specified by link. To get a valid link format, use createDiaryLink.","syntaxes":[{"syntax":"processDiaryLink link","since":null,"effect":null,"exec":null,"params":[{"name":"link","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"link:  String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"link","types":["String"]}}],"examples":[{"text":"```sqf\nprocessDiaryLink createDiaryLink [\"Tasks\", (simpleTasks player) select 0, \"\"]; // Select a task in the Task menu\n```","code":["processDiaryLink createDiaryLink [\"Tasks\", (simpleTasks player) select 0, \"\"]; // Select a task in the Task menu"]},{"text":"```sqf\n// To select various tabs in the map screen:\nprocessDiaryLink createDiaryLink [\"selected_tab\", player, \"\"];\n// ... where \"selected_tab\" can be \"Tasks\", \"Diary\", \"Units\", \"Players\", \"Statistics\", other user created subjects\n```","code":["// To select various tabs in the map screen:\nprocessDiaryLink createDiaryLink [\"selected_tab\", player, \"\"];\n// ... where \"selected_tab\" can be \"Tasks\", \"Diary\", \"Units\", \"Players\", \"Statistics\", other user created subjects"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["createDiaryLink","createDiaryRecord","createDiarySubject","diarySubjectExists"],"notes":[{"user":"Killzone_Kid","date":"2017-06-30T21:49:00Z","text":"You can also force open diary with selected link by passing string in link format directly:\n\n```sqf\nprocessDiaryLink \"<log subject='Diary'></log>\";\n```\n\nThe above will open tab Briefing.\n\n```sqf\nprocessDiaryLink \"<log subject='Diary' record='Record2'></log>\";\n```\n\nThe above will open tab Briefing and select 3rd record from the bottom, provided the records were added consistently."}],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Briefing","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}