WELCOME TO THE COMMUNITY
find what you are looking for or ask a new question
Home > Forum > Latest posts

latest posts

MVP

Hi everyone,

maybe someone has a good idea for this request.

One application will be migrated from WEBCON to another platform. The users should still be able to view the data but they shouldn't be able to modify it.

While this isn't a problem the process privilege level, the users didn't work correctly with the system and now have hundreds of open tasks. Which in turn means, the users with those tasks have also a personal edit privilege.

I haven't come up with a good way how to solve this. These are the options I thought about:
- Modify the privileges in the database directly
- Change the field field matrix to read only for all processes in the application
- Create a path enable quick path and reassign the tasks to service user.
- Unassign the licenses from the users

I want to refrain modifying the database directly and editing the process. I also can't unassign the licenses because it a perpetual license.

Does someone have a good idea for this request?

Best regards,
Daniel

MVP

Hi Franz,

if you use the SQL query in the Merge Attachments action you are free to select whatever attachments you want.

https://docs.webcon.com/docs/2025R1/Studio/Action/Attachments/Action_MergeAttachments#4-sql-query

I haven't checked the latest 2025 Version but in the 2026 R1 version the issue is fixed, that the order of the SQL query has been ignored during the merge process.,

If you want to save the files from the database on a hard drive, I would use PowerShell. This would be a part of the solution

___
The query to get all relevant files and their length
___

___
Iterating over the result set
___
$fileLength = $row.FileLength

$fileContentQuery = @"
SELECT TOP 1 ATF_Value
FROM [$AttachmentDatabaseName].[dbo].[WFAttachmentFiles]
WHERE ATF_ATTID = $attId
ORDER BY ATF_Version DESC
"@

$fileContentResult = Invoke-Sqlcmd -ConnectionString $ConnectionString -Query $fileContentQuery -MaxBinaryLength $fileLength
$fileContent = $fileContentResult.ATF_Value
____
Define the file path / name
____
[System.IO.File]::WriteAllBytes($filePath, $fileContent)

Hi,
is it possible, to use the action 'mergeattachment' not only for attachments in ONE form but also in DIFFERENT forms?

If not, is it possible via sql?
In the attached picture there is a screenshot of the following sql-query of the webcon-database:

select ATF_WFDID, ATF_OrginalName, ATF_OrginalValueHash from dbo.WFAttachmentFiles
where ATF_WFDID > 9620

how can I export the word-docs as real word-docs to the filesystem of the server?

Greetings
Franz Mayer

MVP

Hi,
You can try copying this field not from the URL parameters, but, for example, using the "Change value" action on the element's save path.
You would have to pass the WFD_ID of the source element to the technical field and then use SQL to retrieve the image in the action.

However, this has the disadvantage that it will only be visible after the element is saved (of course, you can also pass the path to the element in the URL and save the element immediately).