Main public logs
Jump to navigation
Jump to search
Combined display of all available logs of SMTX Wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 15:21, 12 November 2025 Smtxwiki talk contribs created page Check if a user has a certain Role (Created page with "Via a webservice, you can check if the logged in user has a certain role. You need the webservice called 'Logged in person has role' (DEV: https://dev.ssp7.smt-x.com/Common/Admin/WsCallAddEdit.aspx?genericid=495) var rolename = g_fieldvalues.filter(function (fld) { return fld.name === "RoleName"; }).map(function (fld) { return fld.value; }).join(""); return StudioInterface.loggedInPersonHasRole(rolename); You can then use this Webservice in a form, with a hidden field...")
- 14:17, 10 November 2025 Smtxwiki talk contribs created page Steps to remove forms and processes (Created page with "== How to Delete a Form and Its Related Data == To delete a form and its associated data, follow these steps: # Go to the '''Release Manager''' and find your form. # Click the '''Add Relations''' button. # You will now see all linked processes and parameters. # Go to the same '''Add Relations''' button under '''Processes''' and click it again. # You now have an overview of all related components. For each process: # Check whether any '''email templates''' are in use....")
- 14:14, 10 November 2025 Smtxwiki talk contribs created page Cleaning (Created page with "Cleaning of platform --Steps to remove forms and processes")
- 15:06, 29 July 2025 Smtxwiki talk contribs created page SMTX DisplayViewModule (Created page with "Include this in your HTML code: <smtx-displayview getdatalocation="api/getmyticketsopendata" tableextraclass="myticketsopen" translation_norecords="No Open Tickets" initialsortfieldname="Id" initialsortfielddirection="Desc" id="myticketsopen" itemsperpage="15"><i class="fas fa-spinner fa-spin"></i></smtx-displayview> Use the following options to configure the view id:string; data:string; getdatalocation:string; postbody:string; tableextraclass:string; itemsperpa...")
- 15:02, 29 July 2025 Smtxwiki talk contribs created page ReactComponents (Created page with "-React Components These components can be used to quickly add views or workflow actions into your studio application |React Display view module")
- 07:53, 7 May 2025 Smtxwiki talk contribs created page Redirect always to Service Catalogue (Created page with "You need to set 2 settings: 1. Settings > Login : After login redirect to: /ServiceCatalog/Admin/ 2. Settings > Dashboard Always redirect dashboard to: /ServiceCatalog/Admin/")
- 13:01, 2 May 2025 Smtxwiki talk contribs created page Get delegates for actor (Created page with "In case you need to get the delegates of an actor, you can make use of an additional parameter return WorkflowInterface.getSteps(ticketId, { includeactordelegates : true }) With this extra parameter, you will receive the delegates of each actor in a workflow")
- 10:52, 2 April 2025 Smtxwiki talk contribs created page Calculate the birthdate of a 18 year old person (Created page with "Below is an example code to calculate the birthdate of a person that turns 18 today format('{0:yyyyMMdd}', DateAdd(ToDate('#REPLACE-FORMFIELD-FormName||TodayDateField||#'), -18, 'Y'))")
- 11:31, 17 January 2025 Smtxwiki talk contribs created page Transpose datastore columns into rows with linebreaks (Created page with "In case you have a multi select form field and you want to show the selected values in a readonly display field and you want to combine multiple columns of the datastore behind the multi-select field, you should use the Transpose function. For example: you have a list with persons and want to show from the selected person their email address and organisation: TRANSPOSE('||', ' - ', '<br />', '#REPLACE-FORMFIELD-FormName||PersonList||EmailAddress#', '#REPLACE-FORMFIELD...")
- 11:24, 17 January 2025 Smtxwiki talk contribs moved page Transpose to Transpose in database queries
- 07:47, 17 September 2024 Smtxwiki talk contribs created page Avoid the white screen (Created page with "When the app isused to show a form, you sometimes get a whitescreen after submitting the form (as a user). THerefor, update the COntent of the page 'redirect-after-submit) to: <script language="javascript" type="text/javascript"> if (window.top.location.search && window.top.location.search.length > 0) { window.top.location.search = "?" + window.top.location.search.substring(1).split('&').filter(function (currentsearch) { return currentsearch.indexOf("tab=") <...")
- 07:46, 17 September 2024 Smtxwiki talk contribs created page SSP Studio Tips (Created page with "Avoid the white screen")
- 10:07, 9 September 2024 Smtxwiki talk contribs created page Make Grid look better with multiple lines (Created page with "In case a grid contains multiple lines in 1 cell, you see the color of the background image, even if you configured a different color. The CSS classes below should be included in your customer.css .RadGrid_Office2010Silver .rgSelectedRow { background: #165f9e78 !important; } .RadGrid_Office2010Silver .rgHoveredRowRow { background: #BBB !important; } .RadGrid_Office2010Silver .rgSelectedRow>td { background-image: none !important; }")
- 12:45, 6 August 2024 Smtxwiki talk contribs created page Import persons into custom actor (Created page with "The script below was written to import people from a CSV file as actor in a service, for which only the id was available. The actor field was a custom multi person field. var file=#1#; //The CSV file comes here. Structure: header on top, per line: serviceid, servicename, actoremail var fileLines=file.split('\r\n'); var log=[]; var allServices = JSON.parse(ServiceCatalogInterface.getAllServicesSummary()); for (var i=1; i< fileLines.length; i++) { var newActor=fil...")
- 12:36, 15 April 2024 Smtxwiki talk contribs created page Get form field values in javascript execution block (Created page with "Example function to retrieve a value from a simple field in a request form var getFormField (formvalues, fieldname) { formvalues.filter(function(fld) { return fld.internallabel === fieldname }).map(function(fld) { return fld.value; }).join(""); } var fieldValue = getFormField(g_forminstance.values, 'fieldname');")
- 09:33, 29 March 2024 Smtxwiki talk contribs created page Update Yes/No field for all documents in a service (Created page with "Updaten van een yes / no veld bij een document, hiervoor kun je de webservice “Services: update document template part numeric value” gebruiken, yes = 1 en no = 0. Ik heb die webservice toegevoegd aan jullie test omgeving. Je kunt dit script gebruiken om alle documenten van een onderzoek die DOC_delete op yes hebben staan aan te passen naar no: var serviceguid = "12345"; var externalprovidername = "the name"; var externalproviderkey = "the key"; var servicedetail...")
- 14:06, 20 February 2024 Smtxwiki talk contribs created page Retrieve Group membership (Created page with "If you want to know in a form, to which groups a user belongs,use this Query in a webservice: SELECT [Name] FROM [PersonGroup] WHERE [Id] IN (SELECT [PersonGroupId] FROM [PersonGroupPerson] WHERE [PersonId] IN (SELECT [Id] FROM [Person] WHERE [Email] = #EMAIL#)) AND [Name] IN ( '03. Anesthesiology (PD)', '04. Biobank (PD)', '05. Cardiologie (PD - OD)', '06. DPO (PD)', '07. Gastro-enterology (PD)', '08. Information management (PD)', '09. Laboratory (PD)', '10. Legal depa...")
- 11:25, 12 February 2024 Smtxwiki talk contribs created page Fetch date last uploaded document in a specific folder (Created page with "If you need to know the date the last documetn was uploaded in a folder: the example below return this form the selected Category (this is a document part 'Doc_Category') of the value : 'J1. Annual progress report' var serviceGuid = #REPLACE-VARIABLE-1550-ServiceGUID#; var serviceDetails = JSON.parse(ServiceCatalogInterface.getServiceDetail(serviceGuid, { LoadRelations: false, LoadParts: false, PartsUseValue: true })); var annualreportdates = serviceDetails.documents.f...")
- 09:15, 8 February 2024 Smtxwiki talk contribs created page Send uploaded files via attachment (Created page with "see test form in DEV : https://dev.ssp7.smt-x.com/Forms/Admin/formDetail.aspx?tab=1&id=739&ActiveFieldId=15011 it contains 2 file upload fields: 1. single file : Upload1FileForm 2. Multiple files: Upload2FilesForm This links into this process: https://dev.ssp7.smt-x.com/Workflow/Admin/ProcessAddEdit.aspx?saved=true&genericid=433 that contains 2 action steps: 1. upload 1 file 2. upload multiple files")
- 08:54, 26 January 2024 Smtxwiki talk contribs created page ACL - make a tab temporarily editable after publication (Created page with "WIth ACLs, you can set read/write access on tabs. But, after a publication flow has started, all fields are locked, and the ACLS do no longer apply. Our Best practice: - set all fields to 'editable when locked' - there is a query for this purpose: https://dev.ssp7.smt-x.com/common/Admin/WsCallAddEdit.aspx?genericid=400 name: SYS - Make all template parts editable when locked for template guid Next, create ACLs that hand out read/write rights, when the ervice is l...")
- 10:24, 19 January 2024 Smtxwiki talk contribs created page Basic Authentication in header (Created page with "Below is an example how to use basic authentication in the SMTX WebServices var username = "john"; var password = "pass123"; var basicauthvalue = CommonInterface.convertToBase64(username + ':' + password); return { updateheaders: { Authorization: "Basic " + basicauthvalue } };")
- 17:26, 9 May 2023 Smtxwiki talk contribs created page Mass close stuck tickets (Created page with "When you have a large amount of stuck tickets, you can use the following javascript script to close multiple at once. Use the serviceIds array to set all tickets ids const serviceIds = [1234, 1235, 1236]; var errorLog = []; for (var i=0; i<serviceIds.length; i++) { try { CommonInterface.callWebservice('Workflow - Stop Process Instance', { ProcessInstanceId : serviceIds[i], Log : 'Some comment line to explain why you closed the ticket'...")
- 12:06, 31 January 2023 Smtxwiki talk contribs created page Use variable from main process in subprocess (Created page with "Insert a step of the type 'Execute Javascript' Run this script: Note: enter the name of the variable of the main proces where is says: VARIABLENAMEHERE var url = #REPLACE-STEP-LINKONLY#; var processInstanceId = +url.split('processInstanceId=')[1].substr(0,6); return WorkflowInterface.getVariableValue(processInstanceId, 'VARIABLENAMEHERE');")
- 15:30, 21 December 2022 Smtxwiki talk contribs created page Customer Journey Configuration (Created page with "Below are some examples for referring to fields in the customer journey")
- 16:16, 13 December 2022 Smtxwiki talk contribs created page Query unused forms datastores processes (Created page with "Show forms with 0 tickets in teh last 24 months (see fixed date in query !!) SELECT * FROM [Form] WHERE [Id] NOT IN ( SELECT [FormField].[Form_Id] FROM [FormInstanceValue], [FormField], [FormInstance] WHERE [FormInstanceValue].[Field_Id] = [FormField].[Id] AND [FormInstanceValue].[FormInstance_Id] = FormInstance.Id AND [FormInstance].[LastUpdate] > '2020-12-12' ) Query to show processes without tickets in the last 24 months (see fixed date in query !!) SE...")
- 12:39, 4 November 2022 Smtxwiki talk contribs created page Calculate the total size in Kb of all uploaded files (Created page with "Field 1 : multi upload file (internal label: 'file') Field 2 : Hidden field (internal label: 'roSize') Field 3: Read only display field (internal label: 'roTotalSize')")
- 10:17, 24 August 2022 Smtxwiki talk contribs created page Find form based on internal label (Created page with "If you want to know the ID of a form, and you only know the internal label, use this query: SELECT [Id] FROM [Form] WHERE [InternalLabel] = 'FormLabel';")