Skip to main content
Forum
Privacy
Contact
How to enable Javascript
Sign Up
Log in
Welcome to the Ninox community
Search all topics or
ask a question
Learn and share
Get help
Updates & status
Plugins
Documentation
Setup
Databases
Automation
My account
Administration
Solutions
Webinars
Overview
Profile
Jacques TUR
Jacques_TUR
Ninox developper
France
www.umangenius.com
Follow
La perfection est atteinte, non pas lorsqu'il n'y a plus rien à ajouter, mais lorsqu'il n'y a plus rien à retirer.
Joined
Sat Nov 14 09:45:24 UTC 2020
943
posts
653
likes received
21
followers
Badges
Latest Posts
Re: Parameters it is possible to pass to a function
@support The best code is this one with you feel comfortable👍 You can simplify like this : let t := this; if Channel like "abc" then (select table1 where 'order-id' = t.'Channel reference').…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
1
Get help
Reported - view
Re: Extract certain variable numbers from attached file title
@thomas Because the year at the end is each time with 4 digits, and in case the file name contains the number, you could use this RegExp. I modified it so that it returns all parts of the complete…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
1
Get help
Reported - view
Re: Extract certain variable numbers from attached file title
@thomas -[^0-9]*(\d+)[^1-9]*(\d+,?\d*)x[^1-9]*(\d+,?\d*)cm-[^1-9]+(\d+)-?(\d+)? It works for all files. I invite you to try it with this site https://regex101.com/r/Tyz1yY/2. This example is recorded.…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
1
Get help
Reported - view
Re: Extract certain variable numbers from attached file title
@thomas I think this RegExp should recover all cases. Try it with different representative file names -[^0-9]*(\d+)[^1-9]*(\d+,?\d*)x[^1-9]*(\d+,\d*)cm-[\w]*-(\d+)-?(\w+)?
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
1
Get help
Reported - view
Re: Extract certain variable numbers from attached file title
@thomasJust add (\d+) at the end of RegExp. But with this new file name example, you have another problem: the file name contains a number and the formula is disturbed.…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
Get help
Reported - view
Re: For loop for accessing different fields
@Fred Yes, there are two undocumented functions in Ninox for manipulating fields: get(record, fieldName): returns the value of the fieldName passed for the record ; var rec := first(select Customer);…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
1
Learn and share
Reported - view
Re: Line feed/Carriage return in an Alert
You can use also the ASCII code 13 + 10 (Carriage Return + Line Feed) with this code : var CRLF := urlDecode("%0D%0A"); alert("coucou"+CRLF+"les amis"); In line 1,…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
3
Get help
Reported - view
Re: Extract certain variable numbers from attached file title
@Fred It to convert string number to JSON number... extractx("NOM-Nr001-200x400cm-Backlight-2021", "(\d+)[^0-9]+(\d+)[^0-9]+(\d+)", "", "{""Numero intero"":$1}"), return {"Numero intero":001}.…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
1
Get help
Reported - view
Re: Extract certain variable numbers from attached file title
@thomas try it : [^1-9]+(\d+,?\d+)[^1-9]+(\d+,?\d+)[^1-9]+(\d+,?\d+)
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
2
Get help
Reported - view
Re: Extract certain variable numbers from attached file title
@Fred of course, you're right is better to stay away "-" and "x" 👍. Also, if you replace [^0-9]+ by ^[1-9]+, it's replace my (0*) and it stay only 3 groups (not 6) :…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
1
Get help
Reported - view
Re: Extract certain variable numbers from attached file title
@Fred good job !!! I just add 3 groups to remove the 0 before the significant digit. I also replaced the "[^0-9]+" by "-" and "+" which are signs directly present in the filename structure :…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
1
Get help
Reported - view
Re: Third party formula editor?
@Javier don't know of any such editor because the Ninox language only exists on Ninox. But I think you can set VisualStudioCode to do it : https://learn.microsoft.…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
Learn and share
Reported - view
Re: Is there a 'command' to delete an attachment?
You can also rename a file with similar NativeJS code : var file := file(this, "myFileName.pdf"); "// put here your old file name"; var newFileName := "myNewFileName.…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
Get help
Reported - view
Re: Third party formula editor?
Otherwise, I'm not sure I understand what you're looking for? Another script editor that can recognize Ninox syntax, right?
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
Learn and share
Reported - view
Re: Third party formula editor?
@Javier said: I'm using functions when possible (they only accept text or number parameters, so not as easy as it could be) There are many more possible types for function parameters.…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
Learn and share
Reported - view
Re: Third party formula editor?
I think Visual Studio Code is a good choice. But when the function grows "too much", the right question is why it is so complex and long and how to reduce it into several simple and easy to…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
Learn and share
Reported - view
Re: Is there a 'command' to delete an attachment?
You can use API to delete a file : https://docs.ninox.com/en/api/public-cloud-apis#delete-a-single-file You can also do it with JavaScript on HTML or NativeJS : var file := first(files(this));…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
Get help
Reported - view
Re: Parameters it is possible to pass to a function
Why create two tables with the same structure and different data? Perhaps the best solution is to merge the two tables and differentiate them by a field named 'data type'.…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
Get help
Reported - view
Re: Parameters it is possible to pass to a function
You cannot pass the table name to the select statement because the Ninox language is pre-compiled and does not support dynamic types like JavaScript. But you can pass your current record (this) to a…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
Get help
Reported - view
Re: Function parameters - which types are possible
@support Hello, I think there are many possible answers. But before that, could you create a new post about it? This post is about what kind of parameters it is possible to pass to a function and to…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
Get help
Reported - view
Re: Array to records in a table
@Fred In JavaScript, \ is an escape character that indicates that the next character is not a marker and should be inserted into the string and not interpreted.…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
Get help
Reported - view
Re: Wish List or can the great Jacques pull one out of the hat
@Patrick W. I tried, but it creates a downward shift in the text. I think it would be better to harmonize the background and text colors when the tabs are selected or not.…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
Learn and share
Reported - view
Re: Using a button to export multiple records
@Jan Inge Iversen You need to install the Ninext project. It is explained here : https://forum.ninox.com/t/p8h78zv/ninext-project In the NativeJS post, there is an app attached with an example of how…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
2
Get help
Reported - view
Re: Using a button to export multiple records
@Jan Inge Iversen Is juste one free extension for Ninox. See here about NativeJS : https://forum.ninox.com/t/g9h7l3a/ninext-native-javascript NativeJS is part of Ninext project : https://forum.ninox.…
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
2
Get help
Reported - view
Re: Using a button to export multiple records
@Jan Inge Iversen Do you have NativeJS installed?
Jacques TUR
Ninox developper
Jacques_TUR
3 yrs ago
Get help
Reported - view
1
22
23
24
25
26
38
Ninox-Website
Overview
Learn and share
Get help
Updates & status
Plugins
Documentation
Setup
Installed apps
Public Cloud
Private Cloud
On-Premises
Plugins
Databases
Tables
Table relationships
Fields and elements
Pages
Views
Import and export
Modules
Printing
History
Templates
Use cases
Automation
Performance
Scripting
Functions
API
My account
Subscriptions
Administration
Manage workspaces
Manage collaborators
Access permissions
Backups and storage
Process monitor
Solutions
Ninox E-Invoice
View all topics