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

Rules, JS, SQL

Hello there :) I have yet another problem, regarding the form validation. I've attached the rules that I've applied. What I want to do is I want to block the occurence of choosing current day while it's after 9.00 A.M. Otherwise If the day is <> than Today() then the result is TRUE, which means, you are able to go further. Best Regards, Igor

Hi I have a question. I want to return all weekend days in SQL for my form validation. This is my SQL Code that returns these days, but only for the current month: WITH Dates AS ( SELECT CAST(DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0) AS DATE) AS DateValue UNION ALL SELECT DATEADD(DAY, 1, DateValue) FROM Dates WHERE DATEADD(DAY, 1, DateValue) < DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) + 1, 0) ) SELECT DateValue FROM Dates WHERE DATEPART(WEEKDAY, Date (...)

Hello. I have a choice field that is appearing in 2 different steps. Is it possible to filter the returning data depending on the current step? ex: if in step A, choices to be 1,2,3 and if step B, choices to be 4,5,6.

Hello there :) I have a problem when trying to generate a table using the manual initialization via HTML Button. It only works when I initialize the table manually. I want to use SQL however, to automate the whole thing. I failed using many Select Statements. What would be the ideal Select statement that would return the days between two dates, which happen to be the attributes? Best Regards, Igor

MVP

Hello all, I have a use case where for a parent workflow (let's say order) I'm starting many child workflows (suborders). There are some details which i don't want to duplicate on suborders like 'customer' for example - it should be stored only on order, but not on suborders. In the reports i have one report for orders, second one for suborders - on suborders I'm able to show 'customer' using custom column. With SQL like this: ( SELECT dbo.ClearWFElem(WFD_AttChoose2) /* Customer */ (...)

I have three environments: PROD, TEST and DEV. My current WebCon BPS version: 2023.1.3.169. There was a global problem with business rules in the TEST environment (it also occurred before the system update, i.e. 2023.1.3.76) - it is not possible to introduce a single new rule because an error immediately appears, as follows: Typ: System.ArgumentOutOfRangeException ------------------------------------------------------- Wiadomość:Zgłoszono wyjątek typu 'System.ArgumentOutOfRangeException'. (...)

Hello, I have a little problem. My scenario is something like this: I have an item list, with 3 columns A, B(not important here) and C and I want to disable column C(data row), if column A(choice field) has value 1#Mother, for example. Even if it's a new row just added by the user at that moment, even if it's a row added previously by other user in another step.. I just simply want that column C to be "enabled" only for a certain condition. What I did, I followed the steps from this threa (...)

Hi, I have found this thread, but i really don't understand how to create a custom button for each row in item list :( I would like to create a custom button that InvokeMenuAction for the row i have selected. https://community.webcon.com/forum/thread/3293 Can you help me? Thank you.

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