WELCOME TO THE COMMUNITY
find what you are looking for or ask a new question
Home > Forum > Top rated > Rules, JS, SQL

Rules, JS, SQL

MVP

Hi everyone, maybe someone else is using some internal JavaScript objects and if this is the case, check whether you are using window.initialModel and make adjustments. In R2 it's gone. Most of the objects of the initialModel can be accessed via the liteModel. /api/nav/db/${parameters.dbId}/element/${parameters.instanceId}/desktop If you have no idea what I'm talking about, than everything is fine. :) Best regards, Daniel

MVP

Hi, does anyone know how to get via JavaScript whether the page "is dirty". So I can do a similar check to "You are leaving the form with unsaved data"? Best regards, Daniel

Hi All we have a large report build in one of our processes (list of all invoices which contains >350k items) which is now not loading for users. we have rebuilt it in SOLR and it is fast like TGV train but we had some calculated columns based on item lists which we need to rebuild. Is there any manual, KB article that describes this or anyone having expierience?

MVP

Hi everyone, I think any changes to JavaScript is worth a dedicated thread, since these won't effect everyone and can be quite technical. As everyone has read the change log, it should be no surprise that we need to apply some changes to any JavaScript based modifications. The cash-dom library has replaced the former jQuery library. The change may affect how form rules work in JavaScript mode if the rules used the functionality provided by jQuery. For a description of the differences (...)

Hello, does anyone can help me, how to disable a specified cell in item list? Problem description: 1) User enters ID numbers that are not allowed to be edited in the attribute "ID numbers uneditable" (screenshot). 2) For each ID number in item list, specified in the attribute "ID numbers uneditable", item list row should be colored red and should not be editable (should be DISABLE). Especially, in this case, for specified ID number, cell in column "Choose" should be disabled. WEBCON bu (...)

I'm struggling with the syntax of the SQL filter for a report. In general it works, but if I want to use the currently loggedin user, I get an error. I tried with the following syntax: AND (##currentloginname##='servr\Userxxx') The error message is: "Incorrect syntax near '='. Incorrect syntax near ','. Incorrect syntax near the keyword 'order'."

Hi all, I have a question, in a report view like the one attached, I mean the right hand side where the outstanding tasks are, is it possible to intervene to add a description? I have for example an urgent request which is also marked on the form, is it possible to include such information in this view, possibly change the colour of the tile or title. Can I do something to make it stand out? Maybe someone has already struggled with this.

Hello, I'm trying to create a rule in JS that will listen to my checkbox value change. checkbox -> TRUE do something checkbox -> FALSE do something else I've created a HTML field with a simple <script> InvokeRule </script> inside.. placed my rule, and error. :) Can you help at all? Thank you!

Is it possible to get an email notification when somebody is posting a comment without pressing any "move to next path buttons"? In the screenshot the yellow area.

I have got 3 different flows but on each flow I have got the same data in one variable (key). in flow 1 is Signature in flow 2 is WFD_AttChoose5 {72} in flow 3 is WFD_AttChoose6 {692} how to do SQL request or more interesting is how to do report where I can: filter Signature = WFD_AttChoose5 {72} = WFD_AttChoose6 {692} In Webcon reports I don't see process fields if I add 2 or more processes to report :/ so I can't do filter on request :/ so maybe in Source create Source by SQL (...)

Hello, I have a process (start - finish) that creates an instance and remains in the "Finish" state. Here, I have the following form fields: "Quantity TOTAL" (Floating-point number) and "Quantity" (Data table). In that data table, I have other instances from a different process, and in one column (Quantity Requested), I calculate the sum. How could I save that sum in Quantity TOTAL and have it consistently updated? (i mean - transferring the Aggregation type Sum value in my form field). (...)

Hello Community, I've got a problem. I've got two workflows, a parent and one subworkflow. I'm trying to transfer data from the parent workflow (single line of text attributes - 'email' and 'phone') to a table in the subworkflow with the item list update action. The table has columns ('value' - single line of text and 'contact type'(selection list: 1#Mail, 2#Phone)). How to write an SQL query to put different WFD_AttText attributes into one DET_Att column and different Att_Choose values into (...)

Hi all! I want to hide / show / mark as required some form fields based on field Guid. Is there a way to do this easily? When I look at the signature of e.g. Hide function it just seems to take some shrinked DB name (e.g. AttText35) or field id (integer), which is different between environments. Appreciate any hint into right direction. Thanks in advance & best regards, Nik

Hello everyone, I'm wondering if there is any function that will format today's date from original format into "JAN.14.2024" format. Basically to transform the month into letters and display them like that. Thank youu.

Hello Community, is it possible to check whether a value exists in a sharepoint list before I create a new entry via workflow action? What's the best way to do it? Can I use a data connection to query for a certain value in a business rule? Thanks!

Hello Everyone, Recently, we upgraded Webcon from 2021 version to 2022 version. New version 2022.1.4.326. I have this html content in one of HTML field in Webcon: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <a id="RabenCopyToClipboard"><button id="CopyClipboard" class="btn btn-md hide-on-sidebar-dash" onclick=' Promise.all([window.webcon.businessRules.executeBusinessRule(12909, "ClipboardRule", uxContext, {})]); (...)

Hi! I need your help regarding setting focus on the last row of the item list. Business wants to perform the following scenario. Batch of barcode lables from paper documents are to be scanned with hendheld scanner. Each scanned id is to be inserted into ID column of item list table. Based on the ID some additiona data are to displayed in other columns. What I have already done is the form rule that ADDs NEW ROW every time the value of ID item list column is changed. It works ok. The problem is (...)

Hello, I have a workflow and after clicking on the path button I want to assign it to the another workflow as a sub-workflow. In start step I have an attribute where I can choose the instance of workflows and after clicking the path button, this workflow will be a sub-workflow of choosen workflow. I don't know if I write it clearly :) Regards Adam

Hello, I have a parent process with Item list. This item list is list of tasks. I can add positions to this list and I have a button to initialize this list as a tasks. In this list I have a title, responsible person, status of the task and section (it should be item list with attributes in the form?). When I add the position and put in all data (title, person responsible and section) I hit the button, and I make new process Task to responsible person - new workflow. I have 2 problems: (...)

Hello, I want to hide/show the buttons in an item list for : add row, delete row and clone but based on rule. To be more specific, I want the 3 buttons to be visible when the instance is using business entity 1, 2 and 3 , but when i use the business entity 4 i want them to be hidden. The only way I made it possible is by using a form rule with a Java Script, but could not see any build in Webcon options. If anyone knows other ways to make this happen, I would appreciate it a lot. Thanx